search for: def_my_builtin

Displaying 2 results from an estimated 2 matches for "def_my_builtin".

2009 Mar 04
0
[LLVMdev] Adding Intrinsics for custom processor (frotend, problem)
...want to look > like: > > void* llvm.my.foo(void**, void*) > > 1) Get the llvm-gcc source from svn. > > 2) Edit the file gcc/builtins.def > > The comments at the top are helpful, read them. > > a) Add a macro that looks something like > > #undef DEF_MY_BUILTIN > #define DEF_MY_BUILTIN(ENUM, NAME, TYPE, ATTRS) \ > DEF_BUILTIN (ENUM, "__builtin_" NAME, BUILT_IN_MD, TYPE, TYPE, \ > false, false, true, ATTRS, false, true) > > You can figure out what this means based on the comments in the > bu...
2009 Mar 03
4
[LLVMdev] Adding Intrinsics for custom processor (frotend problem)
As mentioned in an earlier mail, I am working on an LLVM backend for a custom processor based on MIPS. My problem is how to extend LLVM to support some esoteric/non-standard feature of the underlying hardware. I saw in the "Extending LLVM" document, that the easiest / most common way to do this was using an intrinsic function, and examples of the technique abound (all SSE for