search for: constantasmetadata

Displaying 3 results from an estimated 3 matches for "constantasmetadata".

2016 Jul 27
1
'invalid subroutine type ref' when linking custom metadata
...it is caused by r266579. > > It seems that: > > 1) The module for a.ll is created. > 2) "!3 = !{void ()* @a}" is a MDTuple, and MDTuple nodes are leaking to the context and survive module deletion. > 3) "void ()* @a” which is the only element in this MDTuple is a “ConstantAsMetadata”, this does not leak and will be deleted with the module. > 4) a.ll is linked into an empty module, using an IRMover. This process will involved populating a map of Metadata -> mapped Metadata. One entry will be created with this MDTuple !3. > 5) a.ll is destroyed, including the “ConstantA...
2016 Jul 26
4
'invalid subroutine type ref' when linking custom metadata
With 3.9, llvm-link tells me 'invalid subroutine type ref' when linking the two code pieces below, and I don't quite understand why. It looks like it merges the debug information with the custom metadata. I've filed a ticket already [1] but as I'm not sure if this is indeed a bug or if I'm misunderstanding something, I thought I'd ask here. Any ideas? Thanks, Robin
2017 Jun 15
7
[RFC] Profile guided section layout
...()) { + raw_svector_ostream O(Out); + MDNode *E = cast<MDNode>(Edge); + O << cast<MDString>(E->getOperand(0))->getString() << " " + << cast<MDString>(E->getOperand(1))->getString() << " " + << cast<ConstantAsMetadata>(E->getOperand(2)) + ->getValue() + ->getUniqueInteger() + .getZExtValue() + << "\n"; + Streamer.EmitBytes(O.str()); + Out.clear(); + } } MCSymbol *TargetLoweringObjectFileELF::getCFIPersonalitySymbol( diff --git a/lib/...