|
LLVM
4.0.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 "llvm/Support/Regex.h"#include <cstring>Go to the source code of this file.
|
static |
Definition at line 574 of file AutoUpgrade.cpp.
References C, llvm::IRBuilder< T, Inserter >::CreateSelect(), llvm::Value::getType(), llvm::Type::getVectorNumElements(), and getX86MaskVec().
Referenced by upgradeIntMinMax(), llvm::UpgradeIntrinsicCall(), UpgradeX86ALIGNIntrinsics(), and UpgradeX86MaskedShift().
Definition at line 554 of file AutoUpgrade.cpp.
References llvm::IRBuilder< T, Inserter >::CreateBitCast(), llvm::IRBuilder< T, Inserter >::CreateShuffleVector(), llvm::VectorType::get(), getBitWidth(), llvm::IRBuilderBase::getInt1Ty(), llvm::Value::getType(), i, llvm::makeArrayRef(), and llvm::BitmaskEnumDetail::Mask().
Referenced by EmitX86Select(), upgradeMaskedCompare(), UpgradeMaskedLoad(), and UpgradeMaskedStore().
Definition at line 2008 of file AutoUpgrade.cpp.
Referenced by llvm::upgradeInstructionLoopAttachment().
|
static |
Definition at line 34 of file AutoUpgrade.cpp.
References llvm::Value::getName(), and llvm::Value::setName().
Referenced by llvm::inferLibFuncAttributes(), UpgradeIntrinsicFunction1(), UpgradeSSE41Function(), and UpgradeX86IntrinsicsWith8BitMask().
|
static |
Definition at line 674 of file AutoUpgrade.cpp.
References llvm::IRBuilder< T, Inserter >::CreateICmp(), llvm::IRBuilder< T, Inserter >::CreateSelect(), EmitX86Select(), llvm::CallInst::getArgOperand(), and llvm::CallInst::getNumArgOperands().
Referenced by llvm::UpgradeIntrinsicCall().
Definition at line 68 of file AutoUpgrade.cpp.
References llvm::Function::arg_begin(), llvm::Function::arg_size(), AMDGPU::RuntimeMD::KeyName::Args, assert(), llvm::Function::Create(), llvm::StringRef::find(), llvm::FunctionType::get(), llvm::Function::getContext(), llvm::Intrinsic::getDeclaration(), llvm::Function::getFunctionType(), llvm::Type::getInt1Ty(), llvm::GlobalValue::getLinkage(), llvm::Intrinsic::getName(), llvm::Value::getName(), llvm::GlobalValue::getParent(), llvm::Function::getReturnType(), llvm::Regex::match(), llvm::StringRef::npos, llvm::FunctionType::params(), rename(), llvm::StringRef::size(), llvm::StringRef::startswith(), llvm::StringRef::substr(), UpgradeSSE41Function(), and UpgradeX86IntrinsicsWith8BitMask().
Referenced by llvm::UpgradeIntrinsicFunction().
Definition at line 2032 of file AutoUpgrade.cpp.
References E, I, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::SmallVectorImpl< T >::reserve(), and upgradeLoopTag().
Referenced by llvm::upgradeInstructionLoopAttachment().
|
static |
Definition at line 2020 of file AutoUpgrade.cpp.
References assert(), llvm::StringRef::drop_front(), llvm::StringRef::size(), and llvm::StringRef::startswith().
Referenced by upgradeLoopArgument().
|
static |
Definition at line 687 of file AutoUpgrade.cpp.
References C, llvm::IRBuilder< T, Inserter >::CreateAnd(), llvm::IRBuilder< T, Inserter >::CreateBitCast(), llvm::IRBuilder< T, Inserter >::CreateICmp(), llvm::IRBuilder< T, Inserter >::CreateShuffleVector(), llvm::dyn_cast(), llvm::IntegerType::get(), llvm::CallInst::getArgOperand(), llvm::Value::getContext(), llvm::Constant::getNullValue(), llvm::Value::getType(), llvm::Type::getVectorNumElements(), getX86MaskVec(), i, and llvm::BitmaskEnumDetail::Mask().
Referenced by llvm::UpgradeIntrinsicCall().
|
static |
Definition at line 654 of file AutoUpgrade.cpp.
References C, llvm::IRBuilder< T, Inserter >::CreateAlignedLoad(), llvm::IRBuilder< T, Inserter >::CreateBitCast(), llvm::IRBuilderBase::CreateMaskedLoad(), getBitWidth(), llvm::Value::getType(), llvm::PointerType::getUnqual(), llvm::Type::getVectorNumElements(), and getX86MaskVec().
Referenced by llvm::UpgradeIntrinsicCall().
Definition at line 722 of file AutoUpgrade.cpp.
References A, B, llvm::IRBuilder< T, Inserter >::CreateAnd(), llvm::IRBuilder< T, Inserter >::CreateExtractElement(), llvm::IRBuilder< T, Inserter >::CreateInsertElement(), llvm::IRBuilder< T, Inserter >::CreateIsNotNull(), llvm::IRBuilder< T, Inserter >::CreateSelect(), llvm::CallInst::getArgOperand(), llvm::BitmaskEnumDetail::Mask(), and llvm::MCID::Select.
Referenced by llvm::UpgradeIntrinsicCall().
|
static |
Definition at line 634 of file AutoUpgrade.cpp.
References C, llvm::IRBuilder< T, Inserter >::CreateAlignedStore(), llvm::IRBuilder< T, Inserter >::CreateBitCast(), llvm::IRBuilderBase::CreateMaskedStore(), getBitWidth(), llvm::Value::getType(), llvm::PointerType::getUnqual(), llvm::Type::getVectorNumElements(), and getX86MaskVec().
Referenced by llvm::UpgradeIntrinsicCall().
|
static |
Definition at line 38 of file AutoUpgrade.cpp.
References llvm::VectorType::get(), llvm::Function::getContext(), llvm::Intrinsic::getDeclaration(), llvm::Type::getFloatTy(), llvm::Function::getFunctionType(), llvm::FunctionType::getParamType(), llvm::GlobalValue::getParent(), and rename().
Referenced by UpgradeIntrinsicFunction1().
|
static |
Definition at line 588 of file AutoUpgrade.cpp.
References assert(), llvm::IRBuilder< T, Inserter >::CreateShuffleVector(), EmitX86Select(), llvm::Constant::getNullValue(), llvm::Value::getType(), llvm::Type::getVectorNumElements(), i, llvm::isPowerOf2_32(), and llvm::makeArrayRef().
Referenced by llvm::UpgradeIntrinsicCall().
|
static |
Definition at line 54 of file AutoUpgrade.cpp.
References llvm::Intrinsic::getDeclaration(), llvm::Function::getFunctionType(), llvm::FunctionType::getNumParams(), llvm::FunctionType::getParamType(), llvm::GlobalValue::getParent(), llvm::Type::isIntegerTy(), and rename().
Referenced by UpgradeIntrinsicFunction1().
|
static |
Definition at line 713 of file AutoUpgrade.cpp.
References llvm::IRBuilder< T, Inserter >::CreateCall(), EmitX86Select(), llvm::CallInst::getArgOperand(), llvm::CallInst::getCalledFunction(), llvm::Intrinsic::getDeclaration(), and llvm::GlobalValue::getParent().
Referenced by llvm::UpgradeIntrinsicCall().
|
static |
Definition at line 488 of file AutoUpgrade.cpp.
References llvm::IRBuilder< T, Inserter >::CreateBitCast(), llvm::IRBuilder< T, Inserter >::CreateShuffleVector(), llvm::VectorType::get(), llvm::IRBuilderBase::getInt8Ty(), llvm::Constant::getNullValue(), llvm::Value::getType(), llvm::Type::getVectorNumElements(), i, and llvm::makeArrayRef().
Referenced by llvm::UpgradeIntrinsicCall().
|
static |
Definition at line 522 of file AutoUpgrade.cpp.
References llvm::IRBuilder< T, Inserter >::CreateBitCast(), llvm::IRBuilder< T, Inserter >::CreateShuffleVector(), llvm::VectorType::get(), llvm::IRBuilderBase::getInt8Ty(), llvm::Constant::getNullValue(), llvm::Value::getType(), llvm::Type::getVectorNumElements(), i, and llvm::makeArrayRef().
Referenced by llvm::UpgradeIntrinsicCall().
1.8.6