LLVM API Documentation
#include <Operator.h>


Public Member Functions | |
| unsigned | getOpcode () const |
Public Member Functions inherited from llvm::User | |
| ~User () | |
| void | operator delete (void *Usr) |
| operator delete - free memory allocated for User and Use objects More... | |
| void | operator delete (void *, unsigned) |
| placement delete - required by std, but never called. More... | |
| void | operator delete (void *, unsigned, bool) |
| placement delete - required by std, but never called. More... | |
| Value * | getOperand (unsigned i) const |
| void | setOperand (unsigned i, Value *Val) |
| const Use & | getOperandUse (unsigned i) const |
| Use & | getOperandUse (unsigned i) |
| unsigned | getNumOperands () const |
| op_iterator | op_begin () |
| const_op_iterator | op_begin () const |
| op_iterator | op_end () |
| const_op_iterator | op_end () const |
| value_op_iterator | value_op_begin () |
| value_op_iterator | value_op_end () |
| void | dropAllReferences () |
| void | replaceUsesOfWith (Value *From, Value *To) |
Public Member Functions inherited from llvm::Value | |
| virtual | ~Value () |
| void | dump () const |
| dump - Support for debugging, callable in GDB: V->dump() More... | |
| void | print (raw_ostream &O, AssemblyAnnotationWriter *AAW=0) const |
| Type * | getType () const |
| LLVMContext & | getContext () const |
| All values hold a context through their type. More... | |
| bool | hasName () const |
| ValueName * | getValueName () const |
| void | setValueName (ValueName *VN) |
| StringRef | getName () const |
| void | setName (const Twine &Name) |
| void | takeName (Value *V) |
| void | replaceAllUsesWith (Value *V) |
| bool | use_empty () const |
| use_iterator | use_begin () |
| const_use_iterator | use_begin () const |
| use_iterator | use_end () |
| const_use_iterator | use_end () const |
| User * | use_back () |
| const User * | use_back () const |
| bool | hasOneUse () const |
| bool | hasNUses (unsigned N) const |
| bool | hasNUsesOrMore (unsigned N) const |
| bool | isUsedInBasicBlock (const BasicBlock *BB) const |
| unsigned | getNumUses () const |
| void | addUse (Use &U) |
| unsigned | getValueID () const |
| unsigned | getRawSubclassOptionalData () const |
| void | clearSubclassOptionalData () |
| bool | hasSameSubclassOptionalData (const Value *V) const |
| void | intersectOptionalDataWith (const Value *V) |
| bool | hasValueHandle () const |
| Value * | stripPointerCasts () |
| Strips off any unneeded pointer casts, all-zero GEPs and aliases from the specified value, returning the original uncasted value. More... | |
| const Value * | stripPointerCasts () const |
| Value * | stripPointerCastsNoFollowAliases () |
| Strips off any unneeded pointer casts and all-zero GEPs from the specified value, returning the original uncasted value. More... | |
| const Value * | stripPointerCastsNoFollowAliases () const |
| Value * | stripInBoundsConstantOffsets () |
| Strips off unneeded pointer casts and all-constant GEPs from the specified value, returning the original pointer value. More... | |
| const Value * | stripInBoundsConstantOffsets () const |
| Value * | stripAndAccumulateInBoundsConstantOffsets (const DataLayout &DL, APInt &Offset) |
Strips like stripInBoundsConstantOffsets but also accumulates the constant offset stripped. More... | |
| const Value * | stripAndAccumulateInBoundsConstantOffsets (const DataLayout &DL, APInt &Offset) const |
| Value * | stripInBoundsOffsets () |
| Strips off unneeded pointer casts and any in-bounds offsets from the specified value, returning the original pointer value. More... | |
| const Value * | stripInBoundsOffsets () const |
| bool | isDereferenceablePointer () const |
| Value * | DoPHITranslation (const BasicBlock *CurBB, const BasicBlock *PredBB) |
| const Value * | DoPHITranslation (const BasicBlock *CurBB, const BasicBlock *PredBB) const |
| void | mutateType (Type *Ty) |
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) |
Static Public Member Functions inherited from llvm::User | |
| static bool | classof (const Value *V) |
Protected Member Functions | |
| ~Operator () | |
Protected Member Functions inherited from llvm::User | |
| void * | operator new (size_t s, unsigned Us) |
| User (Type *ty, unsigned vty, Use *OpList, unsigned NumOps) | |
| Use * | allocHungoffUses (unsigned) const |
| void | dropHungoffUses () |
| template<int Idx> | |
| Use & | Op () |
| template<int Idx> | |
| const Use & | Op () const |
Protected Member Functions inherited from llvm::Value | |
| virtual void | printCustom (raw_ostream &O) const |
| Value (Type *Ty, unsigned scid) | |
| unsigned short | getSubclassDataFromValue () const |
| void | setValueSubclassData (unsigned short D) |
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.
|
protected |
Definition at line 86 of file User.cpp.
References llvm_unreachable.
|
inlinestatic |
Definition at line 68 of file Operator.h.
|
inlinestatic |
Definition at line 69 of file Operator.h.
Definition at line 70 of file Operator.h.
|
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(), llvm::GetPointerBaseWithConstantOffset(), llvm::GetUnderlyingObject(), getUnderlyingObjectFromInt(), getUnderlyingObjects(), llvm::isSafeToSpeculativelyExecute(), llvm::Value::stripAndAccumulateInBoundsConstantOffsets(), 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.