LLVM API Documentation
#include "InstCombine.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/MemoryBuiltins.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/Support/CallSite.h"
#include "llvm/Support/PatternMatch.h"
#include "llvm/Transforms/Utils/BuildLibCalls.h"
#include "llvm/Transforms/Utils/Local.h"
Go to the source code of this file.
Functions | |
STATISTIC (NumSimplified,"Number of library calls simplified") | |
static Type * | getPromotedType (Type *Ty) |
static Type * | reduceToSingleValueType (Type *T) |
static bool | isSafeToEliminateVarargsCast (const CallSite CS, const CastInst *const CI, const DataLayout *const TD, const int ix) |
static IntrinsicInst * | FindInitTrampolineFromAlloca (Value *TrampMem) |
static IntrinsicInst * | FindInitTrampolineFromBB (IntrinsicInst *AdjustTramp, Value *TrampMem) |
static IntrinsicInst * | FindInitTrampoline (Value *Callee) |
|
static |
Definition at line 862 of file InstCombineCalls.cpp.
References llvm::Intrinsic::adjust_trampoline, llvm::dyn_cast(), FindInitTrampolineFromAlloca(), FindInitTrampolineFromBB(), llvm::IntrinsicInst::getIntrinsicID(), llvm::User::getOperand(), IT(), and llvm::Value::stripPointerCasts().
|
static |
Definition at line 801 of file InstCombineCalls.cpp.
References llvm::Intrinsic::adjust_trampoline, llvm::dyn_cast(), llvm::IntrinsicInst::getIntrinsicID(), llvm::User::getOperand(), llvm::Value::hasOneUse(), I, llvm::Intrinsic::init_trampoline, llvm::Value::stripPointerCasts(), llvm::Value::use_begin(), and llvm::Value::use_end().
Referenced by FindInitTrampoline().
|
static |
Definition at line 841 of file InstCombineCalls.cpp.
References llvm::BasicBlock::begin(), llvm::IntrinsicInst::getIntrinsicID(), llvm::User::getOperand(), llvm::Instruction::getParent(), I, llvm::Intrinsic::init_trampoline, and llvm::Instruction::mayWriteToMemory().
Referenced by FindInitTrampoline().
getPromotedType - Return the specified type promoted as it would be to pass though a va_arg area.
Definition at line 29 of file InstCombineCalls.cpp.
References llvm::Type::getContext(), and llvm::Type::getInt32Ty().
|
static |
isSafeToEliminateVarargsCast - If this cast does not affect the value passed through the varargs area, we can eliminate the use of the cast.
Definition at line 763 of file InstCombineCalls.cpp.
References llvm::User::getOperand(), llvm::Value::getType(), llvm::DataLayout::getTypeAllocSize(), llvm::CallSiteBase< FunTy, ValTy, UserTy, InstrTy, CallTy, InvokeTy, IterTy >::isByValArgument(), llvm::CastInst::isLosslessCast(), and llvm::Type::isSized().
reduceToSingleValueType - Given an aggregate type which ultimately holds a single scalar element, like {{{type}}} or [1 x type], return type.
Definition at line 39 of file InstCombineCalls.cpp.
References llvm::Type::isSingleValueType(), and T.
STATISTIC | ( | NumSimplified | , |
"Number of library calls simplified" | |||
) |