LLVM API Documentation
#include "llvm/IR/AutoUpgrade.h"
#include "llvm/IR/CFG.h"
#include "llvm/IR/CallSite.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DebugInfo.h"
#include "llvm/IR/DiagnosticInfo.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/ErrorHandling.h"
#include <cstring>
Go to the source code of this file.
Functions | |
static bool | UpgradeSSE41Function (Function *F, Intrinsic::ID IID, Function *&NewFn) |
static bool | UpgradeX86IntrinsicsWith8BitMask (Function *F, Intrinsic::ID IID, Function *&NewFn) |
static bool | UpgradeIntrinsicFunction1 (Function *F, Function *&NewFn) |
static bool UpgradeIntrinsicFunction1 | ( | Function * | F, |
Function *& | NewFn | ||
) | [static] |
Definition at line 62 of file AutoUpgrade.cpp.
References llvm::Function::arg_begin(), llvm::Function::arg_size(), llvm::Function::Create(), F(), llvm::FunctionType::get(), llvm::Function::getContext(), llvm::Intrinsic::getDeclaration(), llvm::Type::getInt1Ty(), llvm::GlobalValue::getLinkage(), llvm::Intrinsic::getName(), llvm::Value::getName(), llvm::GlobalValue::getParent(), llvm::Function::getReturnType(), Name, llvm::Value::setName(), llvm::StringRef::size(), llvm::StringRef::startswith(), llvm::StringRef::substr(), UpgradeSSE41Function(), and UpgradeX86IntrinsicsWith8BitMask().
Referenced by llvm::UpgradeIntrinsicFunction().
static bool UpgradeSSE41Function | ( | Function * | F, |
Intrinsic::ID | IID, | ||
Function *& | NewFn | ||
) | [static] |
Definition at line 32 of file AutoUpgrade.cpp.
References llvm::VectorType::get(), llvm::Function::getContext(), llvm::Intrinsic::getDeclaration(), llvm::Type::getFloatTy(), llvm::Function::getFunctionType(), llvm::Value::getName(), llvm::FunctionType::getParamType(), llvm::GlobalValue::getParent(), and llvm::Value::setName().
Referenced by UpgradeIntrinsicFunction1().
static bool UpgradeX86IntrinsicsWith8BitMask | ( | Function * | F, |
Intrinsic::ID | IID, | ||
Function *& | NewFn | ||
) | [static] |
Definition at line 48 of file AutoUpgrade.cpp.
References llvm::Intrinsic::getDeclaration(), llvm::Function::getFunctionType(), llvm::Value::getName(), llvm::FunctionType::getNumParams(), llvm::FunctionType::getParamType(), llvm::GlobalValue::getParent(), llvm::Type::isIntegerTy(), and llvm::Value::setName().
Referenced by UpgradeIntrinsicFunction1().