search for: valuemapper

Displaying 20 results from an estimated 65 matches for "valuemapper".

2012 Jan 11
2
[LLVMdev] ValueMapper question: no type mapping for GlobalValue?
Hi all, I was looking at the ValueMapper code this morning and I notice that it doesn't do type mapping for GlobalValues. Is this correct? I ask because I am seeing a case where I'm failing type assertions from ModuleLinker::linkGlobalInits() when an array initializer references an external global. It looks like the external gl...
2012 Jan 12
0
[LLVMdev] ValueMapper question: no type mapping for GlobalValue?
On 11/01/12 07:50 AM, Michael Muller wrote: > > Hi all, I was looking at the ValueMapper code this morning and I notice that > it doesn't do type mapping for GlobalValues. Is this correct? > > I ask because I am seeing a case where I'm failing type assertions from > ModuleLinker::linkGlobalInits() when an array initializer references an > external global. It l...
2012 Jan 13
0
[LLVMdev] ValueMapper question: no type mapping for GlobalValue?
> I can reproduce this consistently, but only under an extremely large pile of > code :-) I haven't tried to strip it down to minimal a test case yet, but I > will. One salient difference with the code you've provided is that in my > code, @a is a struct type. However, changing the example to use a minimal > structure doesn't trigger the assertion failure. Is the
2012 Jan 12
2
[LLVMdev] ValueMapper question: no type mapping for GlobalValue?
=?ISO-8859-1?Q?Rafael_=C1vila_de_Esp=EDndola?= wrote: > On 11/01/12 07:50 AM, Michael Muller wrote: > > > > Hi all, I was looking at the ValueMapper code this morning and I notice that > > it doesn't do type mapping for GlobalValues. Is this correct? > > > > I ask because I am seeing a case where I'm failing type assertions from > > ModuleLinker::linkGlobalInits() when an array initializer references an > &g...
2012 Nov 15
1
[LLVMdev] ValueMapper question: no type mapping for GlobalValue?
...tried. >> >> I'll recreate this situation just to verify that the verifier pass identifies >> the problem, if it doesn't I'll proceed from there but I'm currently assuming >> the problem is entirely ours :-) >> >> If you think the behavior of the ValueMapper is incorrect in this situation, >> I'd prefer to furnish you with a minimal test case - the unreduced form >> involves checking out and building a specific revision of the Crack compiler >> and running one of the tests in "native" (AOT compile) mode. >> >&gt...
2012 Jan 13
2
[LLVMdev] ValueMapper question: no type mapping for GlobalValue?
...pt when running non-optimized + debug, which I never tried. I'll recreate this situation just to verify that the verifier pass identifies the problem, if it doesn't I'll proceed from there but I'm currently assuming the problem is entirely ours :-) If you think the behavior of the ValueMapper is incorrect in this situation, I'd prefer to furnish you with a minimal test case - the unreduced form involves checking out and building a specific revision of the Crack compiler and running one of the tests in "native" (AOT compile) mode. Thank you for looking into this :-) >...
2012 Jan 17
0
[LLVMdev] ValueMapper question: no type mapping for GlobalValue?
...+ debug, which I never tried. > > I'll recreate this situation just to verify that the verifier pass identifies > the problem, if it doesn't I'll proceed from there but I'm currently assuming > the problem is entirely ours :-) > > If you think the behavior of the ValueMapper is incorrect in this situation, > I'd prefer to furnish you with a minimal test case - the unreduced form > involves checking out and building a specific revision of the Crack compiler > and running one of the tests in "native" (AOT compile) mode. > > Thank you for loo...
2012 Jun 05
0
[LLVMdev] [llvm-commits][PATHCH] Bug 12530 - llvm-link dropping debug-information for local
When linking .ll files with llvm-link or llvm-ld, the debug information is corrupted. As my investigation, alloca instruction, used to hold the debug information, nullifies the debug meta information The attachments is the patch for it. Index: lib/Transforms/Utils/ValueMapper.cpp =================================================================== --- lib/Transforms/Utils/ValueMapper.cpp (revision 157974) +++ lib/Transforms/Utils/ValueMapper.cpp (working copy) @@ -85,6 +85,10 @@ // No operands needed remapping. Use an identity mapping. retu...
2017 Jun 28
2
About the concept of "materialization"
OK. About the error it’s a long story, so it’s probably better to pin some source code here. Below is a piece of code related to my problem, clipped from lib/Transforms/Utils/ValueMapper.cpp. I was wondering what “materialized” means here. Value *Mapper::mapBlockAddress(const BlockAddress &BA) { Function *F = cast<Function>(mapValue(BA.getFunction())); // F may not have materialized its initializer. In that case, create a // dummy basic block for now, and rep...
2016 Mar 23
0
[RFC] Lazy-loading of debug info metadata
....html > > Similar to (2) above, this will naturally filter the types that get > linked in to the ones actually used by the code being linked. > > It should also allow the reader to skip records for types that have > already been loaded in the main module. > The ValueMapper or something will need to figure out which types referenced by UUID to map/link in to the dest module. Currently the ValueMapper does not follow UUID references, but these are brought in when the DICompileUnit is mapped since they are all in the retained types list. > > 5. Create a special...
2016 Mar 23
2
[RFC] Lazy-loading of debug info metadata
...gt; > Similar to (2) above, this will naturally filter the types that get > linked in to the ones actually used by the code being linked. > > It should also allow the reader to skip records for types that have > already been loaded in the main module. > > The ValueMapper or something will need to figure out which types referenced by UUID to map/link in to the dest module. Currently the ValueMapper does not follow UUID references, but these are brought in when the DICompileUnit is mapped since they are all in the retained types list. > > > 5. Create a s...
2011 Aug 04
0
[LLVMdev] metadata linking bug or by design
...inker::run in lib/Linker/LinkModules.cpp. > > If I move the call to linkNamedMDNodes in ModuleLinker::run to the > last step (just before return false), everything looks good. Not sure > if linkNamedMDNodes must be called earlier. I made that change in response to Chris's change ValueMapper. Metadata mapping is being investigated as part of PR 10553 anyway. So Ill fix this particular regression you have found. Thanks! - Devang > > - xi > > On Thu, Aug 4, 2011 at 1:22 PM, Devang Patel <dpatel at apple.com> wrote: >> >> On Aug 4, 2011, at 8:21 AM, Xi Wa...
2015 May 21
2
[LLVMdev] [LLVM 3.6.0] Metadata/Value split and RAUW.
Hello everyone, If I understand correctly after the Metadata/Value split the Metadata support of RAUW is limited by ValueAsMetadata and MDNodeFwdDecl (i.e. until cycled in MDNode are not resovled). And my question is. Is where any way to replace an MDNode which is referenced by other MDNodes w\o iterating over all MDNodes in LLMVContext to find and replace those references? Unfortunately I
2013 Jun 06
0
[LLVMdev] CFG of a function
...n different functions. Therefore, take into account the function name as well. Good luck On Thu, Jun 6, 2013 at 10:55 AM, Rasha Omar <rasha.sala7 at gmail.com> wrote: > I think I understood that, but what I mean is what is the function > responsible to do mapping is it MapValue() in ValueMapper.h? > > Thanks for your help > > > > On 6 June 2013 09:54, Alexandru Ionut Diaconescu < > alexandruionutdiaconescu at gmail.com> wrote: > >> Map every basic block from the CFG to a set of integers. The successors >> from the CFG can be used to make the edges...
2013 Jun 06
3
[LLVMdev] CFG of a function
I think I understood that, but what I mean is what is the function responsible to do mapping is it MapValue() in ValueMapper.h? Thanks for your help On 6 June 2013 09:54, Alexandru Ionut Diaconescu < alexandruionutdiaconescu at gmail.com> wrote: > Map every basic block from the CFG to a set of integers. The successors > from the CFG can be used to make the edges in your simplified graph. The > pair (C...
2016 Mar 23
0
[RFC] Lazy-loading of debug info metadata
...above, this will naturally filter the types that get > > linked in to the ones actually used by the code being linked. > > > > It should also allow the reader to skip records for types that have > > already been loaded in the main module. > > > > The ValueMapper or something will need to figure out which types > referenced by UUID to map/link in to the dest module. Currently the > ValueMapper does not follow UUID references, but these are brought in when > the DICompileUnit is mapped since they are all in the retained types list. > > > &g...
2016 Mar 23
1
[RFC] Lazy-loading of debug info metadata
...above, this will naturally filter the types that get > > linked in to the ones actually used by the code being linked. > > > > It should also allow the reader to skip records for types that have > > already been loaded in the main module. > > > > The ValueMapper or something will need to figure out which types referenced by UUID to map/link in to the dest module. Currently the ValueMapper does not follow UUID references, but these are brought in when the DICompileUnit is mapped since they are all in the retained types list. > > > > > > 5...
2015 Nov 24
3
Functions have two types, one can be mutated but not the other
Function has its own FunctionType* member as well as a Type* member that it inherits from GlobalValue. The latter can be mutated but not the former, leading to potential strange inconsistencies. While I realize using mutateType is probably going to trigger a bunch of "you're doing it wrong" replies, it seems like mutateType, as a necessary evil, should be virtual and do the right
2015 May 15
3
[LLVMdev] RFC: ThinLTO Impementation Plan
...lization (i.e. after all function > >>> importing is complete). This actually applies to all module-level > >>> metadata, not just debug, although it is the largest. This can be > >>> added as a separate set of patches. Changes to BitcodeReader, > >>> ValueMapper, ModuleLinker > >> > >> It sounds like this would work well with the "full" LTO implemented > >> by tools/gold-plugin right now. What exactly did you do to improve > >> this? > > > > I don't think it will help with full LTO. The parsing...
2013 Jun 07
1
[LLVMdev] CFG of a function
...take into account the function name as well. > > Good luck > > > On Thu, Jun 6, 2013 at 10:55 AM, Rasha Omar <rasha.sala7 at gmail.com> wrote: > >> I think I understood that, but what I mean is what is the function >> responsible to do mapping is it MapValue() in ValueMapper.h? >> >> Thanks for your help >> >> >> >> On 6 June 2013 09:54, Alexandru Ionut Diaconescu < >> alexandruionutdiaconescu at gmail.com> wrote: >> >>> Map every basic block from the CFG to a set of integers. The successors >>> fr...