search for: emittedinsts

Displaying 10 results from an estimated 10 matches for "emittedinsts".

2006 Sep 08
2
[LLVMdev] build broken on linux/amd64
Compiling llvm on a linux/amd64 box produces: home/rafael/dev/llvm/build/Debug/lib/LLVMX86.o: In function `_X86CompilationCallback': (.text+0x316fe): undefined reference to `_X86CompilationCallback2' /home/rafael/dev/llvm/build/Debug/lib/LLVMX86.o: In function `llvm::X86JITInfo::getLazyResolverFunction(void* (*)(void*))': /home/rafael/dev/llvm/cvs/lib/Target/X86/X86JITInfo.cpp:219:
2006 Sep 08
0
[LLVMdev] build broken on linux/amd64
I am not sure if it is the correct solution, but the attached patch fixes the problem. The build now fails when linking lto: relocation R_X86_64_32 against `(anonymous namespace)::EmittedInsts' Rafael -------------- next part -------------- A non-text attachment was scrubbed... Name: amd64.patch Type: application/octet-stream Size: 1176 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060908/ee7efbcf/attachment.obj>
2006 Sep 08
2
[LLVMdev] build broken on linux/amd64
...patch though, which doesn't use the ifdefs, hopefully it is more robust: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20060904/037632.html Please lemme know if it works. > The build now fails when linking lto: > > relocation R_X86_64_32 against `(anonymous namespace)::EmittedInsts' I don't know what that is :( -Chris -- http://nondot.org/sabre/ http://llvm.org/
2012 Jun 28
0
[LLVMdev] Counting instructions in MCJIT
Hi Verena, I think that we can count the number of instructions with "-stats" command line option. As you mentioned, this option uses Statistic class like "STATISTIC(EmittedInsts, "Number of machine instrs printed");" I don't know exactly about parallel code generation environment but this option seems like to work correctly in common case as following. This is an example from http://llvm.org/docs/DebuggingJITedCode.html. 1 int compute_factorial(int n...
2007 Aug 10
2
[LLVMdev] Extending AsmPrinter
..., E = I->end(); II != E; ++II) { // Print the assembly for the instruction. O << "\t"; printInstruction(II); // Overridden for each target postInstructionAction(II); // New API for comment printing, etc. O << "\n"; ++EmittedInsts; } } } Then TableGen wouldn't have to worry about printing newlines either. The best thing is that parts of postInstructionAction are independent of the target. Comment printing is a good example. The only thing that matters on any machine llvm targets is the comment delimeter, which i...
2012 Jun 27
3
[LLVMdev] Counting instructions in MCJIT
Hi there, I wondered whether anyone could give me any advice about counting assembly instructions when using MCJIT? For performance regression testing I would like to be able to count the number of instructions generated during the jit compilation of a given module. The Statistic class, as far as I understand, cannot collect this data per-module (per-ExecutionEngine/per-MCJIT), and there is
2009 Jun 03
5
[LLVMdev] patch for llc/ARM: added mechanism to move switch tables from .text -> .data; also cleanup and documentation
...#include <cctype> +#include <sstream> using namespace llvm; +extern cl::opt<bool> FlagOutlineJumpTables; +cl::opt<std::string> FlagJumpTableSection("jumptable-section", + cl::init(".data.jtab")); + STATISTIC(EmittedInsts, "Number of machine instrs printed"); namespace { @@ -139,6 +145,7 @@ /// EmitMachineConstantPoolValue - Print a machine constantpool value to /// the .s file. virtual void EmitMachineConstantPoolValue(MachineConstantPoolValue *MCPV) { + // NOTE: A lot of this code...
2009 Jun 11
0
[LLVMdev] patch for llc/ARM: added mechanism to move switch tables from .text -> .data; also cleanup and documentation
On Jun 8, 2009, at 2:42 PM, robert muth wrote: > On Sun, Jun 7, 2009 at 11:53 PM, Evan Cheng <evan.cheng at apple.com> > wrote: >> >> On Jun 7, 2009, at 6:59 AM, robert muth wrote: >> >>> On Sat, Jun 6, 2009 at 4:51 PM, Evan Cheng<evan.cheng at apple.com> >>> wrote: >>>> +cl::opt<std::string>
2009 Jun 08
2
[LLVMdev] patch for llc/ARM: added mechanism to move switch tables from .text -> .data; also cleanup and documentation
On Sun, Jun 7, 2009 at 11:53 PM, Evan Cheng <evan.cheng at apple.com> wrote: > > On Jun 7, 2009, at 6:59 AM, robert muth wrote: > >> On Sat, Jun 6, 2009 at 4:51 PM, Evan Cheng<evan.cheng at apple.com> >> wrote: >>> +cl::opt<std::string> FlagJumpTableSection("jumptable-section", >>> +                                          
2009 Jun 24
2
[LLVMdev] patch for llc/ARM: added mechanism to move switch tables from .text -> .data; also cleanup and documentation
.../Compiler.h" #include "llvm/Support/Mangler.h" #include "llvm/Support/MathExtras.h" #include "llvm/Support/raw_ostream.h" #include <cctype> +#include <sstream> using namespace llvm; +extern cl::opt<bool> FlagOutlineJumpTables; + STATISTIC(EmittedInsts, "Number of machine instrs printed"); namespace { @@ -141,6 +145,7 @@ /// EmitMachineConstantPoolValue - Print a machine constantpool value to /// the .s file. virtual void EmitMachineConstantPoolValue(MachineConstantPoolValue *MCPV) { + // NOTE: A lot of this code...