LLVM API Documentation

Instructions.cpp File Reference

#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"

Include dependency graph for Instructions.cpp:

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 Documentation

#define CALLSITE_DELEGATE_GETTER ( METHOD   ) 

#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().


Function Documentation

static Value* getAISize ( Value *  Amt  )  [static]

template<typename IndexTy>
static const Type* getIndexedTypeInternal ( const Type *  Ptr,
IndexTy const *  Idxs,
unsigned  NumIdx 
) [inline, static]

static bool isConstantAllOnes ( const Value *  V  )  [inline, static]

static unsigned retrieveAddrSpace ( const Value *  Val  )  [static]

Definition at line 984 of file Instructions.cpp.

References llvm::Value::getType().