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
On Wed, Jan 9, 2013 at 4:14 PM, reed kotler <rkotler at mips.com> wrote:> 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.There's <http://clang.llvm.org/docs/InternalsManual.html#how-to-add-an-attribute>. If that's not up to date please let me know. -- Sean Silva
On 01/09/2013 01:19 PM, Sean Silva wrote:> On Wed, Jan 9, 2013 at 4:14 PM, reed kotler <rkotler at mips.com> wrote: >> 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. > There's <http://clang.llvm.org/docs/InternalsManual.html#how-to-add-an-attribute>. > If that's not up to date please let me know. > > -- Sean SilvaThanks. Not sure I understand the purpose of InheritableAttr .