search for: initllvm

Displaying 7 results from an estimated 7 matches for "initllvm".

2019 Nov 18
2
Unable to parse command line more than once using llvm libraries?
Thanks, I tried calling ResetAllOptionOccurrences after the run like this… // Compile the module TimeCompilations times to give better compile time // metrics. for (unsigned I = TimeCompilations; I; --I) if (int RetVal = compileModule(argv, Context)) return RetVal; if (YamlFile) YamlFile->keep(); cl::ResetAllOptionOccurrences(); return 0; } Unfortunately
2016 Nov 17
3
DWARF Generator
...llvm.org/pipermail/llvm-dev/attachments/20161117/a50b2c03/attachment.obj> -------------- next part -------------- I am having trouble getting things to work with the AsmPrinter. I was able to get simple DWARF to be emitted with the AsmPrinter version of the DWARF generator with code like: initLLVM(); DwarfGen DG; Triple Triple("x86_64--"); StringRef Path("/tmp/test.elf"); bool DwarfInitSuccess = DG.init(Triple, Path); EXPECT_TRUE(DwarfInitSuccess); uint16_t Version = 4; uint8_t AddrSize = 8; DwarfGenCU &CU = DG.appendCompileUnit(Version, AddrSi...
2018 Apr 16
0
LLVM Weekly - #224, Apr 16th 2018
...set extension. [r329871](https://reviews.llvm.org/rL329871), [r329874](https://reviews.llvm.org/rL329874), and more. * MIPS GlobalISel now has the minimal support necessary to lower a function that returns the sum of two i32 values. [r329819](https://reviews.llvm.org/rL329819). * The newly added InitLLVM class was added to perform common initialization functions needed before using LLVM APIs. [r330046](https://reviews.llvm.org/rL330046). * llvm-mca gained the ability to recognise comments marking regions of code for analysis. [r329590](https://reviews.llvm.org/rL329590). * A partial demangling AB...
2014 Jun 09
2
[LLVMdev] Use of statics and ManagedStatics in LLVM
Based on a recent discussion[1], I started trying to remove the functions llvm_start_multithreaded() and llvm_stop_multithreaded() from the codebase. It turns out this is a little bit tricky. Consider the following scenario: During program initialization, a global static object's constructor dereferences a ManagedStatic. During dereferencing of the ManagedStatic, it needs to know whether
2016 Nov 18
4
DWARF Generator
...patch attached. This AsmPrinter based code steals code from the DwarfLinker.cpp. > > > > I am having trouble getting things to work with the AsmPrinter. I was able to get simple DWARF to be emitted with the AsmPrinter version of the DWARF generator with code like: > > > initLLVM(); > DwarfGen DG; > Triple Triple("x86_64--"); > StringRef Path("/tmp/test.elf"); > bool DwarfInitSuccess = DG.init(Triple, Path); > EXPECT_TRUE(DwarfInitSuccess); > uint16_t Version = 4; > uint8_t AddrSize = 8; > DwarfGenCU &C...
2016 Nov 18
2
DWARF Generator
...er.cpp. >>> >>> >>> >>> I am having trouble getting things to work with the AsmPrinter. I was >> able to get simple DWARF to be emitted with the AsmPrinter version of the >> DWARF generator with code like: >>> >>> >>> initLLVM(); >>> DwarfGen DG; >>> Triple Triple("x86_64--"); >>> StringRef Path("/tmp/test.elf"); >>> bool DwarfInitSuccess = DG.init(Triple, Path); >>> EXPECT_TRUE(DwarfInitSuccess); >>> uint16_t Version = 4; >>>...
2016 Nov 18
2
DWARF Generator
...gt; >>> > >>> I am having trouble getting things to work with the AsmPrinter. I was > >> able to get simple DWARF to be emitted with the AsmPrinter version of > the > >> DWARF generator with code like: > >>> > >>> > >>> initLLVM(); > >>> DwarfGen DG; > >>> Triple Triple("x86_64--"); > >>> StringRef Path("/tmp/test.elf"); > >>> bool DwarfInitSuccess = DG.init(Triple, Path); > >>> EXPECT_TRUE(DwarfInitSuccess); > >>> uint1...