Displaying 5 results from an estimated 5 matches for "addoperator".
2013 Oct 01
3
[LLVMdev] ScalarEvolution::createNodeForPHI
...INode
and during the analysis of the loop-invariant part of the increment the flags
NSW/NUW are set according to the Operator BEValueV
(ScalarEvoluton.cpp:3099-3113), but only Add and GEP operators are checked.
//-------------------------------------------------------------------------//
if (const AddOperator *OBO = dyn_cast<AddOperator>(BEValueV)) {
if (OBO->hasNoUnsignedWrap())
Flags = setFlags(Flags, SCEV::FlagNUW);
if (OBO->hasNoSignedWrap())
Flags = setFlags(Flags, SCEV::FlagNSW);
} else if (const GEPOperator *GEP =
dyn_cast<GEPOperator>(BEValueV)) {
//...
2008 Feb 10
2
[LLVMdev] Instrumenting virtual function calls
...he pointers are somewhat close: getPointerToFunction returns
0x47829a0, but my instrumentation gets 0x477fc10.
What am I missing?
Lines starting with "!" are the instrumented lines.
define double @Return() {
entry:
%this = load
%"struct.Q::BinaryOperation<bool,bool,bool,Q::AddOperator>"**
@q_constant2 ; <
%"struct.Q::BinaryOperation<bool,bool,bool,Q::AddOperator>"*> [#uses=2]
%tmp9.i = getelementptr
%"struct.Q::BinaryOperation<bool,bool,bool,Q::AddOperator>"* %this,
i32 0, i32 2, i32 0 ; <%"struct.Q::Function"*...
2013 Oct 02
0
[LLVMdev] ScalarEvolution::createNodeForPHI
...ysis of the loop-invariant part of the increment the flags
> NSW/NUW are set according to the Operator BEValueV
> (ScalarEvoluton.cpp:3099-3113), but only Add and GEP operators are checked.
>
> //-------------------------------------------------------------------------//
> if (const AddOperator *OBO = dyn_cast<AddOperator>(BEValueV)) {
> if (OBO->hasNoUnsignedWrap())
> Flags = setFlags(Flags, SCEV::FlagNUW);
> if (OBO->hasNoSignedWrap())
> Flags = setFlags(Flags, SCEV::FlagNSW);
> } else if (const GEPOperator *GEP =
> dyn_cast<GEPOperat...
2013 Oct 02
1
[LLVMdev] ScalarEvolution::createNodeForPHI
...ent
> > the flags
> > NSW/NUW are set according to the Operator BEValueV
> > (ScalarEvoluton.cpp:3099-3113), but only Add and GEP operators are
> > checked.
> >
> > //-------------------------------------------------------------------------//
> > if (const AddOperator *OBO = dyn_cast<AddOperator>(BEValueV)) {
> > if (OBO->hasNoUnsignedWrap())
> > Flags = setFlags(Flags, SCEV::FlagNUW);
> > if (OBO->hasNoSignedWrap())
> > Flags = setFlags(Flags, SCEV::FlagNSW);
> > } else if (const GEPOperator *GEP =
> >...
2010 Jul 05
0
[LLVMdev] how to have a Operator reference from an Instruction?
Hi All,
I'm new to LLVM and trying to do some analysis on the IR.
For a instruction, e.g., a BinaryOperator, can I have the reference of an
Operator from it? Now I can use getOpcode() or getOpcodeName() to have
unsigned int or string. But can I have a Operator or specifically
AddOperator as the return value?
Thanks.
Regards,
--Wenbin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100705/b3915b4e/attachment.html>