[LLVMdev] attributes

reed kotler rkotler at mips.com
Wed Jan 9 13:14:21 PST 2013


I need to add two function attributes to clang that I can subsequently 
process in llvm.

void __attribute__((mips16)) foo16 ();
void __attribute__((nomips16)) foo32 ();

int main() {
   foo16();
   foo32();
}


Does anyone know offhand where this gets added to clang and where the 
hook for processing
in llc is?

I think that this code has changed recently.

These options mimick those of gcc.

Tia.

Reed




More information about the llvm-dev mailing list