[cfe-commits] r156630 - in /cfe/trunk: include/clang/Basic/BuiltinsHexagon.def lib/CodeGen/CGBuiltin.cpp
John McCall
rjmccall at apple.com
Fri May 11 23:13:38 PDT 2012
On May 11, 2012, at 8:57 PM, Sirish Pande wrote:
> I would love to have a macro-generated switch statement - but that would
> require a target dependent file - which I don't think clang folks would like
> in lib/CodeGen. Since most of the architectures are doing the same thing, I
> adopted the style. But it's a pain for me as well. The whole switch block is
> auto-generated by my other script, and I have to copy/paste. So yes, I would
> love to have macro generated switch case. Clang folks, can I have a target
> dependent file there?
I have nothing against macro metaprogramming and would much prefer a
macro-generated switch over this enormous blob of code.
Bob, you had some experience doing this with the Neon intrinsics; is there
reusable infrastructure there, or at least useful lessons that apply?
John.
More information about the cfe-commits
mailing list