search for: insertdbgvalueintrinsic

Displaying 3 results from an estimated 3 matches for "insertdbgvalueintrinsic".

2019 Jan 14
2
Metadata/DebugInfo in *.ll file
...LLVM IR bytecode. It can be done for compileunits, functions, and other constructs, with the help of DIBuilder class. However I can't save debug information related to individual llvm::Instructions. I tried DebugLoc, DILocation setting directly with setMetadata(). I tried other ways, for e.g.: insertDbgValueIntrinsic(). If I set invalid parameters for the call, then the LLVM passes warn me, correctly, so at least I see in the log, that LLVM tries to assign debuginfo to given instruction. If however I set valid parameters, then I suppose, that the passes drop the debuginfo related to an Instruction. Do you know...
2018 Apr 02
0
[Dwarf] Register a local variable in DIBuilder and locate it later with a DwarfContext
...ilder, for instance. So you could look at how Clang uses the IRBuilder when compiling a small source file containing a local variable. You'll find it calls into DIBuilder (the debug info equivalent of IRBuilder) for constructing types and the location descriptions (see "insertDeclare"/insertDbgValueIntrinsic", etc.). On Sun, Apr 1, 2018 at 2:17 PM Vivien Millet via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Hi Paul, > How can i make this call to intrinsic from the c++ code ? > I'm not working with the IR language, but directly in C++ with > IRBuilder::CreateAlloca. &gt...
2018 Apr 01
2
[Dwarf] Register a local variable in DIBuilder and locate it later with a DwarfContext
Hi Paul, How can i make this call to intrinsic from the c++ code ? I'm not working with the IR language, but directly in C++ with IRBuilder::CreateAlloca. My goal is that one : - Generate machine code with an instance of the class 'IRBuilder' - Emit 'ObjFile' class instance with MCJIT - Create a DwarfContext instance directly from the emitted ObjFile object