search for: classllvm_1_1asmprint

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

2011 Nov 17
0
[LLVMdev] Rephrased: How to get function virtual starting address from MCSymbolRefExpr?
...n as gp-relative, e.g.: // .gprel32 LBB123 MCSymbol<http://llvm.org/doxygen/classllvm_1_1MCSymbol.html> *MBBSym = MBB->getSymbol<http://llvm.org/doxygen/classllvm_1_1MachineBasicBlock.html#a24d0da534c4fb156547a04749b9f6468>(); OutStreamer<http://llvm.org/doxygen/classllvm_1_1AsmPrinter.html#a32ad5336c0020843cbb5a982c0f1a708>.EmitGPRel32Value<http://llvm.org/doxygen/classllvm_1_1MCStreamer.html#a3c0872c5c75608d870c0b6aaf0d206ed>(MCSymbolRefExpr::Create<http://llvm.org/doxygen/classllvm_1_1MCSymbolRefExpr.html#acfd4c9d4f462e858c577dc0f57ef2d30>(MBBSym, OutContext&l...
2016 Jan 12
1
Some llvm questions (for tgsi backend)
...a proper tgsi program needs a header >> to declare which registers (etc) it is using, in which >> class-method should I implement this ? >> > > These kinds of things should be emitted by the TGSI implementation of the > AsmPrinter class: http://llvm.org/docs/doxygen/html/classllvm_1_1AsmPrinter.html > You probably want to use EmitStartOfAsmFile() for the headers. Ok, is there an easy way to suppress the generation of: .text .file "/home/hans/foo.cl" .globl test_kern ? It seems I need to tackle all 3 of those separately ? >> 2) Immedi...
2016 Jan 11
0
Some llvm questions (for tgsi backend)
...; > 1) As you can see a proper tgsi program needs a header > to declare which registers (etc) it is using, in which > class-method should I implement this ? > These kinds of things should be emitted by the TGSI implementation of the AsmPrinter class: http://llvm.org/docs/doxygen/html/classllvm_1_1AsmPrinter.html You probably want to use EmitStartOfAsmFile() for the headers. > 2) Immediates need to be declared with a specific > value and then addressed as IMM[x], how would I go about > this ? > I would recommend adding a pass that replaced immediates in the code with IMM file regitser...
2016 Jan 11
4
Some llvm questions (for tgsi backend)
Hi, After a few distractions I'm back to work on the llvm tgsi backend. I've added clang integration and I can now compile a simple opencl program to something which sort of looks like tgsi. You can find my latest work on this here: http://cgit.freedesktop.org/~jwrdegoede/llvm http://cgit.freedesktop.org/~jwrdegoede/clang (the latter may still need to sync) I've a little test