search for: dilabel

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

2018 Mar 28
7
[RFC] Generate Debug Information for Labels in Function
...are the steps I propose to implement the feature. 1. Define debug metadata and intrinsic functions for labels. First of all, we need to record debug information in LLVM IR. In LLVM IR, LLVM uses metadata and intrinsic function to keep debug information. So, I need to define new kind of metadata, DILabel, and new intrinsic function, llvm.dbg.label, to associate DILabel with label statement. DILabel will contain name of the label, file metadata, line number, and scope metadata. Intrinsic function llvm.dbg.label uses DILabel metadata as its parameter. 2. Create MI instruction DBG_LABEL. I create...
2018 Mar 30
2
[RFC] Generate Debug Information for Labels in Function
...gt;> >> 1. Define debug metadata and intrinsic functions for labels. >> >> First of all, we need to record debug information in LLVM IR. In LLVM >> IR, LLVM uses metadata and intrinsic function to keep debug >> information. So, I need to define new kind of metadata, DILabel, and >> new intrinsic function, llvm.dbg.label, to associate DILabel with >> label statement. >> >> DILabel will contain name of the label, file metadata, line number, >> and scope metadata. >> >> Intrinsic function llvm.dbg.label uses DILabel metadata as i...
2018 Mar 28
0
[RFC] Generate Debug Information for Labels in Function
...implement the feature. > > 1. Define debug metadata and intrinsic functions for labels. > > First of all, we need to record debug information in LLVM IR. In LLVM > IR, LLVM uses metadata and intrinsic function to keep debug > information. So, I need to define new kind of metadata, DILabel, and > new intrinsic function, llvm.dbg.label, to associate DILabel with > label statement. > > DILabel will contain name of the label, file metadata, line number, > and scope metadata. > > Intrinsic function llvm.dbg.label uses DILabel metadata as its parameter. > > 2. C...
2018 Mar 28
0
[RFC] Generate Debug Information for Labels in Function
...implement the feature. > > 1. Define debug metadata and intrinsic functions for labels. > > First of all, we need to record debug information in LLVM IR. In LLVM > IR, LLVM uses metadata and intrinsic function to keep debug > information. So, I need to define new kind of metadata, DILabel, and > new intrinsic function, llvm.dbg.label, to associate DILabel with > label statement. > > DILabel will contain name of the label, file metadata, line number, > and scope metadata. > > Intrinsic function llvm.dbg.label uses DILabel metadata as its parameter. > > 2. C...
2018 Mar 29
0
[RFC] Generate Debug Information for Labels in Function
...plement the feature. > > 1. Define debug metadata and intrinsic functions for labels. > > First of all, we need to record debug information in LLVM IR. In LLVM > IR, LLVM uses metadata and intrinsic function to keep debug > information. So, I need to define new kind of metadata, DILabel, and > new intrinsic function, llvm.dbg.label, to associate DILabel with > label statement. > > DILabel will contain name of the label, file metadata, line number, > and scope metadata. > > Intrinsic function llvm.dbg.label uses DILabel metadata as its parameter. Looking at...
2018 Mar 30
0
[RFC] Generate Debug Information for Labels in Function
...wrote: > > I agree with you. Attach debug metadata to basic block will be a > better solution. I will change my design to convey debug metadata > through basic block instead of intrinsic. > > https://reviews.llvm.org/D45078 In this revised design it is now possible to attach a DILabel to a BasicBlock. When the basic block is inlined it will be ambiguous to which function the DILabel belongs. For instructions, we store the inline information in the inlinedAt: field of its DILocation. In order to handle inlining for DILabels we have two options: 1. Also attach a DILocation to b...
2018 Mar 30
4
[RFC] Generate Debug Information for Labels in Function
...with you. Attach debug metadata to basic block will be a >> better solution. I will change my design to convey debug metadata >> through basic block instead of intrinsic. >> >> https://reviews.llvm.org/D45078 > > In this revised design it is now possible to attach a DILabel to a BasicBlock. When the basic block is inlined it will be ambiguous to which function the DILabel belongs. For instructions, we store the inline information in the inlinedAt: field of its DILocation. In order to handle inlining for DILabels we have two options: > > 1. Also attach a DILoca...
2019 Jan 30
2
[RFC] Generate Debug Information for Labels in Function
...> > >> better solution. I will change my design to convey debug metadata > > >> through basic block instead of intrinsic. > > >> > > >> https://reviews.llvm.org/D45078 > > > > > > In this revised design it is now possible to attach a DILabel to a > > BasicBlock. When the basic block is inlined it will be ambiguous to > > which function the DILabel belongs. For instructions, we store the > > inline information in the inlinedAt: field of its DILocation. In order > > to handle inlining for DILabels we have two opti...
2020 Jul 19
2
Instrument intrinsic invalid
Hi, I try to use llvm-dis to disassemble the result after opt, my pass will add a intrinsic after the load instruction, like following: bool fpscan::ldAddMetadata (Instruction *Inst, StringRef c) { std::vector<Metadata *> dataTuples; // Add metadata in list dataTuples.push_back(MDString::get(Inst->getContext(), c)); MDNode* N = MDNode::get(Inst->getContext(),
2018 May 14
0
LLVM Weekly - #228, May 14th 2018
...nity of merging offsets into the generated load/store instructions. [r332015](https://reviews.llvm.org/rL332015). * An initial version of the llvm-strip tool was introduced. This is ultimately intended to be a drop-in replacement for binutils strip. [r331663](https://reviews.llvm.org/rL331663). * DILabel metadata and the llvm.dbg.label intrinsic have been introduced to LLVM. These allow debug info on labels to be emitted, which ultimately enables debuggers to set breakpoints on labels. [r331841](https://reviews.llvm.org/rL331841). * HexagonMCCodeEmitter was refactored to use data tables to handle...