LLVM API Documentation
#include <Operator.h>


Public Member Functions | |
| unsigned | getOpcode () const |
Static Public Member Functions | |
| static unsigned | getOpcode (const Value *V) |
| static bool | classof (const Instruction *) |
| static bool | classof (const ConstantExpr *) |
| static bool | classof (const Value *V) |
Protected Member Functions | |
| ~Operator () | |
Operator - This is a utility class that provides an abstraction for the common functionality between Instructions and ConstantExprs.
Definition at line 34 of file Operator.h.
| llvm::Operator::~Operator | ( | ) | [protected] |
Definition at line 86 of file User.cpp.
References llvm_unreachable.
| static bool llvm::Operator::classof | ( | const Instruction * | ) | [inline, static] |
Reimplemented in llvm::ConcreteOperator< PossiblyExactOperator, Instruction::SDiv >, llvm::ConcreteOperator< OverflowingBinaryOperator, Instruction::Add >, llvm::ConcreteOperator< OverflowingBinaryOperator, Instruction::Sub >, llvm::ConcreteOperator< OverflowingBinaryOperator, Instruction::Shl >, llvm::ConcreteOperator< PossiblyExactOperator, Instruction::UDiv >, llvm::ConcreteOperator< PossiblyExactOperator, Instruction::LShr >, llvm::ConcreteOperator< Operator, Instruction::GetElementPtr >, llvm::ConcreteOperator< PossiblyExactOperator, Instruction::AShr >, llvm::ConcreteOperator< OverflowingBinaryOperator, Instruction::Mul >, llvm::FPMathOperator, llvm::PossiblyExactOperator, and llvm::OverflowingBinaryOperator.
Definition at line 68 of file Operator.h.
| static bool llvm::Operator::classof | ( | const ConstantExpr * | ) | [inline, static] |
Reimplemented in llvm::ConcreteOperator< PossiblyExactOperator, Instruction::SDiv >, llvm::ConcreteOperator< OverflowingBinaryOperator, Instruction::Add >, llvm::ConcreteOperator< OverflowingBinaryOperator, Instruction::Sub >, llvm::ConcreteOperator< OverflowingBinaryOperator, Instruction::Shl >, llvm::ConcreteOperator< PossiblyExactOperator, Instruction::UDiv >, llvm::ConcreteOperator< PossiblyExactOperator, Instruction::LShr >, llvm::ConcreteOperator< Operator, Instruction::GetElementPtr >, llvm::ConcreteOperator< PossiblyExactOperator, Instruction::AShr >, llvm::ConcreteOperator< OverflowingBinaryOperator, Instruction::Mul >, llvm::PossiblyExactOperator, and llvm::OverflowingBinaryOperator.
Definition at line 69 of file Operator.h.
Reimplemented from llvm::User.
Reimplemented in llvm::ConcreteOperator< PossiblyExactOperator, Instruction::SDiv >, llvm::ConcreteOperator< OverflowingBinaryOperator, Instruction::Add >, llvm::ConcreteOperator< OverflowingBinaryOperator, Instruction::Sub >, llvm::ConcreteOperator< OverflowingBinaryOperator, Instruction::Shl >, llvm::ConcreteOperator< PossiblyExactOperator, Instruction::UDiv >, llvm::ConcreteOperator< PossiblyExactOperator, Instruction::LShr >, llvm::ConcreteOperator< Operator, Instruction::GetElementPtr >, llvm::ConcreteOperator< PossiblyExactOperator, Instruction::AShr >, llvm::ConcreteOperator< OverflowingBinaryOperator, Instruction::Mul >, llvm::FPMathOperator, llvm::PossiblyExactOperator, and llvm::OverflowingBinaryOperator.
Definition at line 70 of file Operator.h.
| unsigned llvm::Operator::getOpcode | ( | ) | const [inline] |
getOpcode - Return the opcode for this Instruction or ConstantExpr.
Definition at line 51 of file Operator.h.
References I.
Referenced by llvm::CannotBeNegativeZero(), llvm::ComputeMaskedBits(), llvm::ComputeMultiple(), llvm::ComputeNumSignBits(), ComputeSpeculationCost(), DecomposeGEPExpression(), getAdjustedPtr(), llvm::GetPointerBaseWithConstantOffset(), llvm::GetUnderlyingObject(), getUnderlyingObjectFromInt(), getUnderlyingObjects(), llvm::isSafeToSpeculativelyExecute(), and stripAndComputeConstantOffsets().
getOpcode - If V is an Instruction or ConstantExpr, return its opcode. Otherwise return UserOp1.
Definition at line 60 of file Operator.h.
References I.