search for: diglobalvariableexpression

Displaying 20 results from an estimated 23 matches for "diglobalvariableexpression".

2019 Jan 20
3
DIGlobalVariableExpression doc in langref
Hi, I don't find DIGlobalVariableExpression in langref. Should it be documented? Could anybody explain what it is? https://llvm.org/docs/LangRef.html In one ll file converted from bitcode, I mostly see something like this. !8273 = !DIGlobalVariableExpression(var: !8274, expr: !DIExpression()) Only one looks like this. !8945 = !DIGlobalV...
2018 Dec 05
2
DebugInfo: Global variable expression management
...d=39900> and PR39899 <https://bugs.llvm.org/show_bug.cgi?id=39899>). But a broader question I was wondering if it was anyone's radar (it's not something I'll be pushing on myself in the near future, but just wanted to see if the idea was already out there, etc): Why are there DIGlobalVariableExpressions that are both attached as !dbg metadata on llvm::GlobalVariables, and in the globals() list of a DICompileUnit? I would've thought, ideally, a DIGlobalVariableExpression would be mutually exclusively in one place or the other - the only ones in the globals() list of a DICompileUnit would be th...
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_LANG_C99,...
2018 Dec 06
2
DebugInfo: Global variable expression management
...iables (PR39900 and PR39899). > > > > But a broader question I was wondering if it was anyone's radar (it's > not something I'll be pushing on myself in the near future, but just wanted > to see if the idea was already out there, etc): > > > > Why are there DIGlobalVariableExpressions that are both attached as !dbg > metadata on llvm::GlobalVariables, and in the globals() list of a > DICompileUnit? I would've thought, ideally, a DIGlobalVariableExpression > would be mutually exclusively in one place or the other - the only ones in > the globals() list of a DICom...
2020 Jul 08
2
Defining the DIExpression operator DW_OP_LLVM_arg
...t hierarchy, I guess we could address it with a "Debug Version" rev, but since it's an intrinsic in the IR it's either rev the IR itself (expensive) or use a new name. > However, writing this made me realize that DIExpressions also appear outside of debug intrinsics, namely in DIGlobalVariableExpression(). There we run into this ambiguity already, since this form > > @i = global i32, !dbg !0 > !0 = !DIGlobalVariableExpression(var: !DIGlobalVariable(...), expr: !DIExpression()) > > implicitly pushes the first arg, but this form > > !0 = distinct !DICompileUnit(..., globals:...
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_LANG_C99, f...
2020 Jul 08
2
Defining the DIExpression operator DW_OP_LLVM_arg
On Wed, Jul 8, 2020 at 9:29 AM Adrian Prantl via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > > > > On Jul 8, 2020, at 5:21 AM, Tozer, Stephen <stephen.tozer at sony.com> wrote: > > > >> To summarize my understanding: Neither of these operators is strictly necessary, since the same effect can be achieved by implicitly pushing all operands of a
2017 May 22
2
DebugInfo, Metadata usage
...DebugInfo or Metadata. But my little research was not successful. my code excerpt: DebugInfoFinder DIFinder; DIFinder.processModule(*M); llvm::outs() << "Count of global Variables in Module : " << DIFinder.global_variable_count() << "\n"; for(DIGlobalVariableExpression *DIGVExpr : DIFinder.global_variables()) { if(DIGlobalVariable *DIGV = DIGVExpr->getVariable()) { llvm::outs() << "DIGV DisplayName : " << DIGV->getDisplayName() << "\n"; } } for(DIType *DIT : DIFinder.typ...
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 = !DIGlobalVariableExpression(v...
2018 Nov 01
4
Fwd: RFC: Adding debug information to LLVM to support Fortran
...common global %alphabytes_ zeroinitializer, align 64, !dbg !27, !dbg !30, !dbg !33 !14 = distinct !DISubprogram(…) !20 = distinct !DICommonBlock(scope: !14, declaration: !25, name: "alpha") !25 = distinct !DIGlobalVariable(scope: !20, name: "common alpha", type: !24) !27 = !DIGlobalVariableExpression(var: !25, expr: !DIExpression()) !29 = distinct !DIGlobalVariable(scope: !20, name: "i", file: !3, type: !28) !30 = !DIGlobalVariableExpression(var: !29, expr: !DIExpression()) !31 = distinct !DIGlobalVariable(scope: !20, name: "j", file: !3, type: !28) !32 = !DIExpression(D...
2017 May 24
2
DebugInfo, Metadata usage
...ata information? > To get to the source variables associated with a global you can use code like this (copied from the IR Verifier): > > SmallVector<MDNode *, 1> MDs; > GV.getMetadata(LLVMContext::MD_dbg, MDs); > for (auto *MD : MDs) { > if (auto *GVE = dyn_cast<DIGlobalVariableExpression>(MD)) > // do stuff. > > -- adrian > >> I would appreciate it for any help. >> In advance, thank you very much. >> >> -- >> ---------------------- >> the best regards! >> 0x0859549A >> >> >> __________________________...
2018 Mar 21
0
lld/lto/win32 crash on DIE code
Ok, I've done a bit more investigation. I found the module which declares broken DIE (e54b3dc8c0536e29a65f8548b5ae7958-Global.o) and here is what I found there: !2 = !DIFile(filename: "island.windows.elements", ... ... !4 = distinct !DICompileUnit(language: DW_LANG_C99, file: !5, ... !5 = !DIFile(filename: "island.windows.elements-e54b3dc8c0536e29a65f8548b5ae7958-global",
2018 Mar 21
2
lld/lto/win32 crash on DIE code
Op 21-3-2018 om 10:28 schreef Evgeny Leviant: > It looks the problem lies in how your compiler generates debug info. LLVM doesn't > expect DIDerivedType scope to be an instance of DICompileUnit. Here is a quick fix: > > DIE *DwarfUnit::getOrCreateContextDIE(const DIScope *Context) { > - if (!Context || isa<DIFile>(Context)) > + if (!Context ||
2018 Nov 01
2
RFC: Adding debug information to LLVM to support Fortran
..._ = common global %alphabytes_ zeroinitializer, align 64, !dbg !27, !dbg !30, !dbg !33 !14 = distinct !DISubprogram(…) !20 = distinct !DICommonBlock(scope: !14, declaration: !25, name: "alpha") !25 = distinct !DIGlobalVariable(scope: !20, name: "common alpha", type: !24) !27 = !DIGlobalVariableExpression(var: !25, expr: !DIExpression()) !29 = distinct !DIGlobalVariable(scope: !20, name: "i", file: !3, type: !28) !30 = !DIGlobalVariableExpression(var: !29, expr: !DIExpression()) !31 = distinct !DIGlobalVariable(scope: !20, name: "j", file: !3, type: !28) !32 = !DIExpression(DW_OP...
2019 Jan 19
2
What does "preds" mean in a .ll file?
Hi, I see things like this. What does it mean? Is it documented somewhere? Thanks. ; preds = %for.body https://llvm.org/docs/LangRef.html ; <label>:91: ; preds = %88 %92 = load i8**, i8*** @glob_complete_word.matches, align 8, !dbg !99798 %93 = load i32, i32* @glob_complete_word.ind, align 4, !dbg !99799 %94 = sext i32 %93 to i64, !dbg !99798
2017 Sep 16
2
assertion triggered since update to llvm 5
...8, encoding: DW_ATE_unsigned) !7 = !{!8, !9, !10, !11} !8 = !DIEnumerator(name: "Internal", value: 0) !9 = !DIEnumerator(name: "Strong", value: 1) !10 = !DIEnumerator(name: "Weak", value: 2) !11 = !DIEnumerator(name: "LinkOnce", value: 3) !12 = !{!13} !13 = !DIGlobalVariableExpression(var: !14) !14 = distinct !DIGlobalVariable(name: "__zig_panic_implementation_provided", linkageName: "__zig_panic_implementation_provided", scope: !5, file: !5, line: 201, type: !15, isLocal: true, isDefinition: true) !15 = !DIBasicType(name: "bool", size: 8, encoding:...
2017 Jun 19
2
LLVM behavior different depending on function symbol name
...ncoding: DW_ATE_unsigned_char) !7 = !{!8, !9, !10, !11} !8 = !DIEnumerator(name: "Internal", value: 0) !9 = !DIEnumerator(name: "Strong", value: 1) !10 = !DIEnumerator(name: "Weak", value: 2) !11 = !DIEnumerator(name: "LinkOnce", value: 3) !12 = !{!13} !13 = !DIGlobalVariableExpression(var: !14) !14 = distinct !DIGlobalVariable(name: "__zig_panic_implementation_provided", linkageName: "__zig_panic_implementation_provided", scope: !5, file: !5, line: 189, type: !15, isLocal: true, isDefinition: true) !15 = !DIBasicType(name: "bool", size: 8, encoding:...
2017 Sep 17
2
assertion triggered since update to llvm 5
...} >> !8 = !DIEnumerator(name: "Internal", value: 0) >> !9 = !DIEnumerator(name: "Strong", value: 1) >> !10 = !DIEnumerator(name: "Weak", value: 2) >> !11 = !DIEnumerator(name: "LinkOnce", value: 3) >> !12 = !{!13} >> !13 = !DIGlobalVariableExpression(var: !14) >> !14 = distinct !DIGlobalVariable(name: "__zig_panic_implementation_provided", >> linkageName: "__zig_panic_implementation_provided", scope: !5, file: !5, >> line: 201, type: !15, isLocal: true, isDefinition: true) >> !15 = !DIBasicType(name:...
2018 Jul 25
2
A question to the DWARF experts on symbol indirection
> -----Original Message----- > From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Tim > Northover via llvm-dev > Sent: Wednesday, July 25, 2018 3:07 AM > To: Nat! > Cc: LLVM Developers Mailing List > Subject: Re: [llvm-dev] A question to the DWARF experts on symbol > indirection > > Hi Nat!, > > On Wed, 25 Jul 2018 at 01:21, Nat! via
2017 Sep 17
4
assertion triggered since update to llvm 5
...t;Internal", value: 0) >>>> !9 = !DIEnumerator(name: "Strong", value: 1) >>>> !10 = !DIEnumerator(name: "Weak", value: 2) >>>> !11 = !DIEnumerator(name: "LinkOnce", value: 3) >>>> !12 = !{!13} >>>> !13 = !DIGlobalVariableExpression(var: !14) >>>> !14 = distinct !DIGlobalVariable(name: >>>> "__zig_panic_implementation_provided", linkageName: >>>> "__zig_panic_implementation_provided", scope: !5, file: !5, line: 201, >>>> type: !15, isLocal: true, isDefinition:...