search for: __attributes

Displaying 4 results from an estimated 4 matches for "__attributes".

Did you mean: __attribute
2011 Oct 05
0
[LLVMdev] LLVM IR is a compiler IR
On Oct 4, 2011, at 4:41 PM, Talin wrote: >> One thing you would need is the ability to assign names to struct members. Currently LLVM refers to struct members by numerical index, and I wouldn't want to change that. However, in order to be visible in the debugger, you also have to assign a name to each member. Note that this information doesn't need to take a lot of space in the
2012 Nov 05
0
[LLVMdev] Adding function attributes
...virtual bool runOnModule(Module& m) > { > Module* module = &m; > > for (Module::iterator functionIter = module->begin(); functionIter != > module->end(); functionIter++) > functionIter->addFnAttr(llvm::__Attributes::AlwaysInline); > > return true; > } > > > Command line > =========== > clang -O0 -S -emit-llvm -o test.S test.c && opt -S -mem2reg -load <path > to lib> > -mypass < test.S > test_opt.S &...
2011 Oct 04
2
[LLVMdev] LLVM IR is a compiler IR
On Tue, Oct 4, 2011 at 4:36 PM, Chris Lattner <clattner at apple.com> wrote: > > On Oct 4, 2011, at 4:31 PM, Talin wrote: > > >> This sounds interesting. I did not get what is a ``rich type system to >> express all of the DWARF semantics''. Could you show an example >> program that the rich type system can define, but the current IR fails >> to
2012 Nov 05
2
[LLVMdev] Adding function attributes
Hi Duncan, thanks for the quick answer. Yes I'm sure the runOnModule is being called, and when I dump the functions before exiting the method I can see the AlwaysInline attribute. I'll check InlineAlways.cpp and will reimplement as last resource but I still wonder why this is not working. On Mon, Nov 5, 2012 at 5:03 PM, Duncan Sands <baldrick at free.fr> wrote: > Hi Arnaldo,