Displaying 3 results from an estimated 3 matches for "getuniqueinteg".
Did you mean:
getuniqueinteger
2013 Jul 23
0
[LLVMdev] Inverse of ConstantFP::get and similar functions?
...i.e.,
> given a llvm::Value, check whether it is either a scalar of the given
> constant value or a splat vector with the given constant value? I
> can't seem to find any, and it doesn't look like the pattern matching
> interface provides something similar to this either.
yes, getUniqueInteger.
Ciao, Duncan.
2013 Jul 22
6
[LLVMdev] Inverse of ConstantFP::get and similar functions?
Hi,
I noticed that ConstantFP::get automatically returns the appropriately
types Constant depending on the LLVM type passed in (i.e. if called
with a vector, it returns a splat vector with the given constant).
Is there any simple way to do the inverse of this function? i.e.,
given a llvm::Value, check whether it is either a scalar of the given
constant value or a splat vector with the given
2017 Jun 15
7
[RFC] Profile guided section layout
...< 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/Transforms/IPO/PassManagerBuilder.cpp b/lib/Transforms/IPO/PassManagerBuilder.cpp
index 4...