Displaying 2 results from an estimated 2 matches for "noflaattr".
2015 Mar 24
2
[LLVMdev] Propagate clang attribute to IR
...unction semantic attributes translate into IR
> attributes to be passed along to LLVM.
>
> HTH!
>
> ~Aaron
Hi,
Thx for your answer...
I tried that without any luck:
static void handleOBF(Sema &S, Decl *D, const AttributeList &Attr) {
D->addAttr(::new (S.Context)NoFLAAttr(Attr.getRange(), S.Context, Attr.getAttributeSpellingListIndex()));
// ???????????
llvm::AttrBuilder FuncAttrs;
FuncAttrs.addAttribute();
}
In CodeGenModule::ConstructAttributeList it uses a AttrBuilder, I tried there to add a random attribute and it works.
But I’m...
2015 Mar 24
2
[LLVMdev] Propagate clang attribute to IR
Hi,
I want to *tag* some functions with some *flags*. I was using annotate((“myFlag”)) and everything was working fine until I tried on ObjC method. It seems that clang just ignore it.
So, to be able to *flag* my functions I’m trying to add a *real* attribute to clang.
I’ve added a new attribute to clang in tools/clang/include/clang/Basic/Attr.td:
def NoFLA : Attr {
let Spellings =