search for: lexicalscopes

Displaying 20 results from an estimated 26 matches for "lexicalscopes".

Did you mean: lexicalscope
2011 Jul 27
1
[LLVMdev] LexicalScope Debug Info - Line Number
Hi, I need to find out the line no info for each lexical block in the code being compiled with llc. The docs mention metadata format for debug info for lexical block is !3 = metadata !{ i32, ;; Tag = 11 + LLVMDebugVersion (DW_TAG_lexical_block) metadata, ;; Reference to context descriptor i32, ;; Line
2017 May 09
2
lib/CodeGen/AsmPrinter/DwarfDebug.h:131: void llvm::DbgVariable::addMMIEntry(const llvm::DbgVariable&): Assertion `V.Var == Var && "conflicting variable"' failed.
David, Dean, all, The bots got red today with assertion failures in llvm::DbgVariable::addMMIEntry: http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/1816/steps/check-msan%20in%20gcc%20build/logs/stdio I did not find the offender yet. Any ideas? clang-5.0: /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h:131: void
2017 May 09
2
lib/CodeGen/AsmPrinter/DwarfDebug.h:131: void llvm::DbgVariable::addMMIEntry(const llvm::DbgVariable&): Assertion `V.Var == Var && "conflicting variable"' failed.
Thanks! On Mon, May 8, 2017 at 6:25 PM, Reid Kleckner <rnk at google.com> wrote: > I give it 99% odds it was r302483. Let's revert and debug it tomorrow. > > On Mon, May 8, 2017 at 6:20 PM, Kostya Serebryany via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> David, Dean, all, >> >> The bots got red today with assertion failures in >>
2011 Oct 12
2
[LLVMdev] Local variable information in scope
Hi all,   Using "CodeGen/LexicalScopes" pass, I could collect scope information i.e. start and end line numbers.   I also want to collect information of variables within the scope.   For the below example:   int global; int func( int t) {    //scope 1   {      int a;      ....   }   return x; }   For "scope 1", I sho...
2011 Oct 13
1
[LLVMdev] Local variable information in scope
Hi,   I want to list some additional information on this.   The variable collection I am looking at is, "variables 'declared' in scope".   1. When I traverse the MachineInstructions in the LexicalScopes ranges, and check for variables, I get variables used in this scope.      The variables listed include variables which may not have been declared in the scope. (for example "int t", which is not declared in scope1, is listed.)    I do this by checking if the instruction uses memoperands...
2020 May 31
2
LLC crash while handling DEBUG info
...field should *not* be present, though I do not know the difference between ` DISPFlagDefinition` and ` DISPFlagOptimized`. if that is expected, then we may need to check `nullity` of `DISubprogram::getUnit()` before accessing it at https://github.com/llvm/llvm-project/blob/master/llvm/lib/CodeGen/LexicalScopes.cpp#L53 Thanks, Mahesha On Sun, May 31, 2020 at 11:26 AM David Blaikie <dblaikie at gmail.com> wrote: > In theory the LLVM IR verifier (llvm/lib/IR/Verifier.cpp) should catch > this sort of thing. Maybe it isn't running in llc? It probably should > be. It's also likely no...
2011 Oct 12
0
[LLVMdev] Local variable information in scope
On Oct 12, 2011, at 3:14 AM, Pankaj Gode wrote: > Hi all, > > Using "CodeGen/LexicalScopes" pass, I could collect scope information i.e. start and end line numbers. > > I also want to collect information of variables within the scope. > > For the below example: > > int global; > int func( int t) > { > //scope 1 > { > int a; >...
2020 May 31
2
LLC crash while handling DEBUG info
...as been > compiled (so I suppose it must be a definition - though we may not > rely on/verify that/need that to be true at the moment). > > Sounds like you're saying the verifier does check the constraint > you're interested in (ie: you only hit the assert in > lib/CodeGen/LexicalScopes if the code is in violation of the > verifier?) - and the verification check sounds correct/reasonable to > me. (declarations are owned by the unit - whereas definitions are > intentionally owned by the llvm::Function and refer to the unit they > are within so they can be implicitly dro...
2011 Oct 05
0
[LLVMdev] collect end line number for scope
...want to decorate MachineInstrs then for the end of scope you're not looking at "}" but instead you're looking at _last_ machine instruction in that scope. Now, if you want to find out start and end MachineInstrs for a lexical scope (and corresponding line numbers) then see CodeGen/LexicalScopes pass. It collects lexical scope information and maps MIs to respective lexical scopes. - Devang On Oct 5, 2011, at 3:48 AM, Pankaj Gode wrote: > Hi, > > The link and the information shared was helpful. > > I will make my problem definition more clear. > While I am "asm...
2020 Jun 01
2
LLC crash while handling DEBUG info
...e a definition - though we may not > >> rely on/verify that/need that to be true at the moment). > >> > >> Sounds like you're saying the verifier does check the constraint > >> you're interested in (ie: you only hit the assert in > >> lib/CodeGen/LexicalScopes if the code is in violation of the > >> verifier?) - and the verification check sounds correct/reasonable to > >> me. (declarations are owned by the unit - whereas definitions are > >> intentionally owned by the llvm::Function and refer to the unit they > >> are...
2020 May 31
2
LLC crash while handling DEBUG info
...ed, retainedNodes: !2) !8 = !DISubroutineType(types: !9) !9 = !{null} !10 = !DILocation(line: 2, column: 1, scope: !7) ----------- Now, if I compile the above modified IR file using LLC, then LLC crashes as below. The crash point is https://github.com/llvm/llvm-project/blob/master/llvm/lib/CodeGen/LexicalScopes.cpp#L53. Reason for crash is `NULL` pointer access. `DISubprogram::getUnit()` returns `NULL` pointer since there is no `unit` field in the related metadata info. ----------- PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace. Stack dump: 0. Program arguments:...
2011 Oct 05
2
[LLVMdev] collect end line number for scope
Hi,   The link and the information shared was helpful.   I will make my problem definition more clear. While I am "asm printing" target code, I also want to emit scope related information. Scope related information includes, - for each scope, start line, end line, start column, end column and - scope heirarchy. As scope is delimited by "{" and "}" (for an input
2013 Jul 15
2
[LLVMdev] Regarding scope information for variable declaration.
Hi Eric,  I was considering machine instructions to get scope information. And variable declaration does not correspond to machine instruction, hence the problem i.e. no scope associated with it. If 'i' is initialized in the 'if-scope' then we get 'variable i' mapped to correct scope as corresponding machine instruction is generated for this. This is not a problem as we
2013 Jul 12
0
[LLVMdev] Regarding scope information for variable declaration.
I have the same demand. Have you resolved this problems? if so, would you share me the solution? Best Regards. Eric -- View this message in context: http://llvm.1065342.n5.nabble.com/Regarding-scope-information-for-variable-declaration-tp47707p59268.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
2012 Jul 30
3
[LLVMdev] Regarding scope information for variable declaration.
Hi All,   I have question regarding lexical scope information.   If I have .c source with scope as below. void func() {    //-- some code here..    { //parent scope       if() //high pass       {          int i;          for( i =0; i < FRAM_I; i++)          {          }       }       if() //low pass       {          int i;          for( i =0; i < FRAM_J; i++)          {          }       }
2013 Jul 15
0
[LLVMdev] Fwd: Regarding scope information for variable declaration.
Thank your reply. Pankaj. Actually, I have done it very similar to yours. But I think for my demand, it is better to implement in Front End. Maybe I will re-implement it later in clang. ---------- Forwarded message ---------- From: Pankaj Gode [via LLVM] <ml-node+s1065342n59345h22 at n5.nabble.com> Date: Mon, Jul 15, 2013 at 2:35 PM Subject: Re: Regarding scope information for variable
2015 May 20
5
[LLVMdev] RFC: Reduce the memory footprint of DIEs (and DIEValues)
Pete Cooper and I have been looking at memory profiles of running llc on verify-uselistorder.lto.opt.bc (ld -save-temps dump just before CodeGen of building verify-uselistorder with -flto -g). I've attached leak-backend.patch, which we're using to make Intrustruments more accurate (instead of effectively leaking things onto BumpPtrAllocators, really leak them with malloc()). (I've
2018 Jan 12
2
StripDeadDebugInfo for static inline functions.
Hi Arsen, we are beyond what I understand about how metadata operates. Maybe Adrian or David knows. --paulr From: Arsen Hakobyan [mailto:hakobyan.ars at gmail.com] Sent: Friday, January 12, 2018 12:16 PM To: Robinson, Paul Cc: llvm-dev at lists.llvm.org; David Blaikie Subject: Re: [llvm-dev] StripDeadDebugInfo for static inline functions. Just one update: the function causing the segmentation
2018 Jan 12
0
StripDeadDebugInfo for static inline functions.
Just one update: the function causing the segmentation fault is the following: 359 void DwarfDebug::constructAbstractSubprogramScopeDIE(LexicalScope *Scope) { 360 assert(Scope && Scope->getScopeNode()); 361 assert(Scope->isAbstractScope()); 362 assert(!Scope->getInlinedAt()); 363 364 const MDNode *SP = Scope->getScopeNode(); 365 366
2018 Jan 14
0
StripDeadDebugInfo for static inline functions.
Thanks Paul, Hi Adrian and David I would really appreciate any comments, thoughts assumptions. If additional information is needed please let me know. Regards, Arsen On Sat, Jan 13, 2018 at 2:54 AM, Robinson, Paul <paul.robinson at sony.com> wrote: > Hi Arsen, we are beyond what I understand about how metadata operates. > Maybe Adrian or David knows. > > --paulr > >