search for: diglobalvariable

Displaying 20 results from an estimated 66 matches for "diglobalvariable".

2016 May 09
4
RFC: metadata attachments for global variables
...d >>>>>>>>> metadata on the next line) >>>>>>>>> >>>>>>>>> SGTM. >>>>>>>>> >>>>>>>>> > Benefits: >>>>>>>>> > 1) Lets us reverse the DIGlobalVariable -> GlobalVariable edge, >>>>>>>>> which should hopefully clear the way for removing the llvm.dbg.cu >>>>>>>>> named metadata node. >>>>>>>>> >>>>>>>>> A little harder than it sounds (need...
2016 May 10
2
RFC: metadata attachments for global variables
...etadata on the next line) >>>>>>>>>>> >>>>>>>>>>> SGTM. >>>>>>>>>>> >>>>>>>>>>> > Benefits: >>>>>>>>>>> > 1) Lets us reverse the DIGlobalVariable -> GlobalVariable >>>>>>>>>>> edge, which should hopefully clear the way for removing the >>>>>>>>>>> llvm.dbg.cu named metadata node. >>>>>>>>>>> >>>>>>>>>>> A lit...
2016 May 10
2
RFC: metadata attachments for global variables
...t;>>>> metadata on the next line) >>>>>>>>>> >>>>>>>>>> SGTM. >>>>>>>>>> >>>>>>>>>> > Benefits: >>>>>>>>>> > 1) Lets us reverse the DIGlobalVariable -> GlobalVariable edge, >>>>>>>>>> which should hopefully clear the way for removing the llvm.dbg.cu >>>>>>>>>> named metadata node. >>>>>>>>>> >>>>>>>>>> A little harder than...
2016 May 09
2
RFC: metadata attachments for global variables
...commas are required to disambiguate from a named >>>>>>> metadata on the next line) >>>>>>> >>>>>>> SGTM. >>>>>>> >>>>>>> > Benefits: >>>>>>> > 1) Lets us reverse the DIGlobalVariable -> GlobalVariable edge, >>>>>>> which should hopefully clear the way for removing the llvm.dbg.cu >>>>>>> named metadata node. >>>>>>> >>>>>>> A little harder than it sounds (need to somehow support a >>&gt...
2016 May 06
10
RFC: metadata attachments for global variables
...d like to add support for metadata attachments for global variables in the same way as we did for functions. Syntax would be pretty simple: @foo = global i32 0, !foo !0, !bar !1 (the extra commas are required to disambiguate from a named metadata on the next line) Benefits: 1) Lets us reverse the DIGlobalVariable -> GlobalVariable edge, which should hopefully clear the way for removing the llvm.dbg.cu named metadata node. 2) Allows for bitset metadata to be attached to globals rather than being represented as a named metadata node. This means that bitset metadata is naturally dropped when globals are dr...
2016 May 09
2
RFC: metadata attachments for global variables
...!0, !bar !1 >>>>> > (the extra commas are required to disambiguate from a named metadata >>>>> on the next line) >>>>> >>>>> SGTM. >>>>> >>>>> > Benefits: >>>>> > 1) Lets us reverse the DIGlobalVariable -> GlobalVariable edge, >>>>> which should hopefully clear the way for removing the llvm.dbg.cu >>>>> named metadata node. >>>>> >>>>> A little harder than it sounds (need to somehow support a >>>>> GlobalVariable that is...
2016 May 06
2
RFC: metadata attachments for global variables
> On May 6, 2016, at 3:17 PM, Adrian Prantl <aprantl at apple.com> wrote: > > >> On May 6, 2016, at 1:17 PM, Peter Collingbourne via llvm-dev <llvm-dev at lists.llvm.org> wrote: >> 1) Lets us reverse the DIGlobalVariable -> GlobalVariable edge, which should hopefully clear the way for removing the llvm.dbg.cu named metadata node. > > Not to spoil all the fun, but I’m not sure if this will bring us much closer to removing the llvm.dbg.cu node. The reason the llvm.dbg.cu node exits is so we can find all DIC...
2017 Jan 26
2
Question about versioning of LVVM IR
...https://github.com/mull-project which deals with LLVM IR in the first place so it is often that we encounter errors like the following one when we do things like parseAssemblyString(IR, Err, GlobalCtx);`: ``` test: <string>:7237:187: error: invalid field 'variable' !1526 = distinct !DIGlobalVariable(name: "test_info_", linkageName: "_ZN14Hello_sup_Test10test_info_E", scope: !0, file: !1527, line: 4, type: !1528, isLocal: false, isDefinition: true, variable: %"class.testing::TestInfo"** @_ZN14Hello_sup_Test10test_info_E, declaration: !2817) ``` Quick research of r...
2012 May 06
2
[LLVMdev] DebugInfo library
...from an object file, so not much > thought went into it. However, the only user is llvm-objdump so you can be > really free in redesigning and extending it. > > I'd like to keep the DWARF stuff an implementation detail so you'll likely > end up with something like DIFunction, DIGlobalVariable, … which is then > filled by the dwarf-implementation of DIContext. Some operations require > traversing the DIE tree so it would be nice if the API only gives you what > you ask for. Getting the File/Line/Column triple is a completely different > operation in DWARF than fetching the fu...
2018 Mar 21
3
lld/lto/win32 crash on DIE code
Thanks! Unfortunately this doesn't seem to cause it, because when I fix it to match the other files (and pretty much how clang emits it:) !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) !1 = !DIGlobalVariable(name: "IDispatch_UID", linkageName: "f_t2b_RemObjects_d_Elements_d_System_d_____Global.IDispatchUID", scope: !2, file: !3, type: !622, isLocal: false, isDefinition: true) !2 = distinct !DICompileUnit(language: DW...
2016 May 06
4
RFC: metadata attachments for global variables
...tty simple: >>> > @foo = global i32 0, !foo !0, !bar !1 >>> > (the extra commas are required to disambiguate from a named metadata >>> on the next line) >>> >>> SGTM. >>> >>> > Benefits: >>> > 1) Lets us reverse the DIGlobalVariable -> GlobalVariable edge, which >>> should hopefully clear the way for removing the llvm.dbg.cu named >>> metadata node. >>> >>> A little harder than it sounds (need to somehow support a GlobalVariable >>> that is RAUW'ed with a ConstantInt), but I...
2015 Jul 01
2
[LLVMdev] Obtaining a GlobalVariable from an MDNode
I’m trying to debug SAFECode source code files, and I need to find a way to obtain a GlobalVariable from its appropriate MDNode. How can I do this? I’ve been looking over the doxygen and I can’t seem to find a way to do this. Thanks, Peter Finn
2018 Nov 01
4
Fwd: RFC: Adding debug information to LLVM to support Fortran
...k like the following example. COMMON /ALPHA/ I, J For this construct, the compiler generates a new scope-like DI construct (!DICommonBlock) into which variables (see I, J above) can be placed. As the common block implies a range of storage with global lifetime, the !DICommonBlock refers to a !DIGlobalVariable. The Fortran variable that comprise the COMMON block are also linked via metadata to offsets within the global variable that stands for the entire common block. @alpha_ = common global %alphabytes_ zeroinitializer, align 64, !dbg !27, !dbg !30, !dbg !33 !14 = distinct !DISubprogram(…) !20 =...
2012 May 06
0
[LLVMdev] DebugInfo library
...olumn triples from an object file, so not much thought went into it. However, the only user is llvm-objdump so you can be really free in redesigning and extending it. > > I'd like to keep the DWARF stuff an implementation detail so you'll likely end up with something like DIFunction, DIGlobalVariable, … which is then filled by the dwarf-implementation of DIContext. Some operations require traversing the DIE tree so it would be nice if the API only gives you what you ask for. Getting the File/Line/Column triple is a completely different operation in DWARF than fetching the function name, so it...
2018 Mar 21
0
lld/lto/win32 crash on DIE code
...cts.com> Отправлено: 21 марта 2018 г. 18:22 Кому: Evgeny Leviant; llvm-dev at lists.llvm.org Тема: Re: [llvm-dev] lld/lto/win32 crash on DIE code Thanks! Unfortunately this doesn't seem to cause it, because when I fix it to match the other files (and pretty much how clang emits it:) !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) !1 = !DIGlobalVariable(name: "IDispatch_UID", linkageName: "f_t2b_RemObjects_d_Elements_d_System_d_____Global.IDispatchUID", scope: !2, file: !3, type: !622, isLocal: false, isDefinition: true) !2 = distinct !DICompileUnit(language: DW_L...
2016 May 06
2
RFC: metadata attachments for global variables
...as we did for functions. > > > > Syntax would be pretty simple: > > @foo = global i32 0, !foo !0, !bar !1 > > (the extra commas are required to disambiguate from a named metadata on > the next line) > > SGTM. > > > Benefits: > > 1) Lets us reverse the DIGlobalVariable -> GlobalVariable edge, which > should hopefully clear the way for removing the llvm.dbg.cu named > metadata node. > > A little harder than it sounds (need to somehow support a GlobalVariable > that is RAUW'ed with a ConstantInt), but I think this is important to do. > How...
2012 May 05
0
[LLVMdev] DebugInfo library
...ile/line/column triples from an object file, so not much thought went into it. However, the only user is llvm-objdump so you can be really free in redesigning and extending it. I'd like to keep the DWARF stuff an implementation detail so you'll likely end up with something like DIFunction, DIGlobalVariable, … which is then filled by the dwarf-implementation of DIContext. Some operations require traversing the DIE tree so it would be nice if the API only gives you what you ask for. Getting the File/Line/Column triple is a completely different operation in DWARF than fetching the function name, so it...
2016 May 06
2
RFC: metadata attachments for global variables
...>> >> >>> On May 6, 2016, at 3:17 PM, Adrian Prantl <aprantl at apple.com> wrote: >>> >>> >>>> On May 6, 2016, at 1:17 PM, Peter Collingbourne via llvm-dev <llvm-dev at lists.llvm.org> wrote: >>>> 1) Lets us reverse the DIGlobalVariable -> GlobalVariable edge, which should hopefully clear the way for removing the llvm.dbg.cu named metadata node. >>> >>> Not to spoil all the fun, but I’m not sure if this will bring us much closer to removing the llvm.dbg.cu node. The reason the llvm.dbg.cu node exits is so we...
2017 Oct 01
2
load with alignment of 1 crashes from being unaligned
...gned) !42 = !{!43, !44, !45, !46} !43 = !DIEnumerator(name: "Internal", value: 0) !44 = !DIEnumerator(name: "Strong", value: 1) !45 = !DIEnumerator(name: "Weak", value: 2) !46 = !DIEnumerator(name: "LinkOnce", value: 3) !47 = !{!48, !51, !54, !56, !58} !48 = !DIGlobalVariableExpression(var: !49) !49 = distinct !DIGlobalVariable(name: "link_libc", linkageName: "link_libc", scope: !5, file: !5, line: 200, type: !50, isLocal: true, isDefinition: true) !50 = !DIBasicType(name: "bool", size: 8, encoding: DW_ATE_boolean) !51 = !DIGlobalVariableEx...
2012 May 05
2
[LLVMdev] DebugInfo library
Hi, I would like to extend DebugInfo library for the purpose of using it in AddressSanitizer/ThreadSanitizer run-time libraries. Current interface is: class DILineInfo { const char *FileName; uint32_t Line; uint32_t Column; ... }; class DIContext { ... virtual DILineInfo getLineInfoForAddress(uint64_t address) = 0; }; First, I would like to get function name associated with the