LLVM API Documentation
#include "llvm/Constants.h"#include "llvm/DerivedTypes.h"#include "llvm/Function.h"#include "llvm/Instructions.h"#include "llvm/Support/CallSite.h"#include "llvm/Support/ConstantRange.h"#include "llvm/Support/MathExtras.h"
Go to the source code of this file.
Defines | |
| #define | CALLSITE_DELEGATE_GETTER(METHOD) |
| #define | CALLSITE_DELEGATE_SETTER(METHOD) |
Functions | |
| static Value * | getAISize (Value *Amt) |
| static unsigned | retrieveAddrSpace (const Value *Val) |
| template<typename IndexTy> | |
| static const Type * | getIndexedTypeInternal (const Type *Ptr, IndexTy const *Idxs, unsigned NumIdx) |
| static bool | isConstantAllOnes (const Value *V) |
| #define CALLSITE_DELEGATE_GETTER | ( | METHOD | ) |
Value:
Instruction *II(getInstruction()); \ return isCall() \ ? cast<CallInst>(II)->METHOD \ : cast<InvokeInst>(II)->METHOD
Definition at line 28 of file Instructions.cpp.
Referenced by llvm::CallSite::doesNotAccessMemory(), llvm::CallSite::doesNotReturn(), llvm::CallSite::doesNotThrow(), llvm::CallSite::getAttributes(), llvm::CallSite::getCallingConv(), llvm::CallSite::getParamAlignment(), llvm::CallSite::onlyReadsMemory(), and llvm::CallSite::paramHasAttr().
| #define CALLSITE_DELEGATE_SETTER | ( | METHOD | ) |
Value:
Instruction *II(getInstruction()); \ if (isCall()) \ cast<CallInst>(II)->METHOD; \ else \ cast<InvokeInst>(II)->METHOD
Definition at line 34 of file Instructions.cpp.
Referenced by llvm::CallSite::setAttributes(), llvm::CallSite::setCallingConv(), llvm::CallSite::setDoesNotAccessMemory(), llvm::CallSite::setDoesNotReturn(), llvm::CallSite::setDoesNotThrow(), and llvm::CallSite::setOnlyReadsMemory().
Definition at line 679 of file Instructions.cpp.
References llvm::ConstantInt::get(), llvm::Value::getType(), and llvm::Type::Int32Ty.
| static const Type* getIndexedTypeInternal | ( | const Type * | Ptr, | |
| IndexTy const * | Idxs, | |||
| unsigned | NumIdx | |||
| ) | [inline, static] |
Definition at line 1050 of file Instructions.cpp.
References llvm::dyn_cast(), llvm::SequentialType::getElementType(), llvm::Type::getForwardedType(), llvm::CompositeType::getTypeAtIndex(), Index, llvm::CompositeType::indexValid(), and Ty.
Referenced by llvm::GetElementPtrInst::getIndexedType().
| static bool isConstantAllOnes | ( | const Value * | V | ) | [inline, static] |
Definition at line 1635 of file Instructions.cpp.
Referenced by llvm::BinaryOperator::getNotArgument(), and llvm::BinaryOperator::isNot().