|
LLVM
3.7.0
|
#include "llvm/IR/AutoUpgrade.h"#include "llvm/IR/CFG.h"#include "llvm/IR/CallSite.h"#include "llvm/IR/Constants.h"#include "llvm/IR/DIBuilder.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 Value * | UpgradeX86PSLLDQIntrinsics (IRBuilder<> &Builder, LLVMContext &C, Value *Op, unsigned NumLanes, unsigned Shift) |
| static Value * | UpgradeX86PSRLDQIntrinsics (IRBuilder<> &Builder, LLVMContext &C, Value *Op, unsigned NumLanes, unsigned Shift) |
Definition at line 65 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(), llvm::Value::setName(), llvm::StringRef::size(), llvm::StringRef::startswith(), llvm::StringRef::substr(), UpgradeSSE41Function(), and UpgradeX86IntrinsicsWith8BitMask().
Referenced by llvm::UpgradeIntrinsicFunction().
|
static |
Definition at line 35 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 |
Definition at line 51 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().
|
static |
Definition at line 249 of file AutoUpgrade.cpp.
References llvm::IRBuilder< preserveNames, T, Inserter >::CreateBitCast(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateShuffleVector(), llvm::VectorType::get(), llvm::ConstantVector::get(), llvm::IRBuilderBase::getInt32(), llvm::Type::getInt64Ty(), llvm::IRBuilderBase::getInt8(), llvm::Type::getInt8Ty(), llvm::ConstantVector::getSplat(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by llvm::UpgradeIntrinsicCall().
|
static |
Definition at line 286 of file AutoUpgrade.cpp.
References llvm::IRBuilder< preserveNames, T, Inserter >::CreateBitCast(), llvm::IRBuilder< preserveNames, T, Inserter >::CreateShuffleVector(), llvm::VectorType::get(), llvm::ConstantVector::get(), llvm::IRBuilderBase::getInt32(), llvm::Type::getInt64Ty(), llvm::IRBuilderBase::getInt8(), llvm::Type::getInt8Ty(), llvm::ConstantVector::getSplat(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by llvm::UpgradeIntrinsicCall().
1.8.6