LLVM API Documentation

AutoUpgrade.cpp File Reference

#include "llvm/Assembly/AutoUpgrade.h"
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Function.h"
#include "llvm/Module.h"
#include "llvm/Instructions.h"
#include "llvm/Intrinsics.h"
#include "llvm/SymbolTable.h"
#include <iostream>

Include dependency graph for AutoUpgrade.cpp:

Go to the source code of this file.

Functions

static FunctiongetUpgradedUnaryFn (Function *F)
static FunctiongetUpgradedIntrinsic (Function *F)
static unsigned * getArgumentPermutation (Function *Fn, Function *NewFn)
Functionllvm::UpgradeIntrinsicFunction (Function *F)
 Remove overloaded intrinsic function names.
static ValueCastArg (Value *Arg, const Type *Ty, Instruction *InsertBefore)
void llvm::UpgradeIntrinsicCall (CallInst *CI, Function *NewFn)
 Get replacement instruction for overloaded intrinsic function call.
bool llvm::UpgradeCallsToIntrinsic (Function *F)


Function Documentation

static Value* CastArg ( Value Arg,
const Type Ty,
Instruction InsertBefore 
) [static]

Definition at line 205 of file AutoUpgrade.cpp.

References C, and Ty.

Referenced by llvm::UpgradeIntrinsicCall().

static unsigned* getArgumentPermutation ( Function Fn,
Function NewFn 
) [static]

Definition at line 156 of file AutoUpgrade.cpp.

References llvm::Function::getFunctionType(), llvm::Value::getName(), llvm::FunctionType::getNumParams(), M, and Name.

Referenced by llvm::UpgradeIntrinsicCall().

static Function* getUpgradedIntrinsic ( Function F  )  [static]

Definition at line 55 of file AutoUpgrade.cpp.

References N86::ESP, F, llvm::Module::getOrInsertFunction(), getUpgradedUnaryFn(), M, and Name.

Referenced by llvm::UpgradeIntrinsicFunction().

static Function* getUpgradedUnaryFn ( Function F  )  [static]

Definition at line 25 of file AutoUpgrade.cpp.

References F, llvm::Module::getOrInsertFunction(), M, and Name.

Referenced by getUpgradedIntrinsic().