|
LLVM
5.0.0
|
#include "llvm/IR/AutoUpgrade.h"#include "llvm/ADT/StringSwitch.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 677 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 657 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(), llvm::makeArrayRef(), and llvm::BitmaskEnumDetail::Mask().
Referenced by EmitX86Select(), upgradeMaskedCompare(), UpgradeMaskedLoad(), UpgradeMaskedStore(), and UpgradeMaskToInt().
Definition at line 2290 of file AutoUpgrade.cpp.
Referenced by llvm::upgradeInstructionLoopAttachment().
|
static |
Definition at line 35 of file AutoUpgrade.cpp.
References llvm::Value::getName(), and llvm::Value::setName().
Referenced by llvm::FileOutputBuffer::commit(), UpgradeIntrinsicFunction1(), UpgradePTESTIntrinsic(), UpgradeX86IntrinsicFunction(), and UpgradeX86IntrinsicsWith8BitMask().
Definition at line 69 of file AutoUpgrade.cpp.
References llvm::Function::arg_size(), and llvm::StringRef::startswith().
Referenced by UpgradeX86IntrinsicFunction().
|
static |
Definition at line 777 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 333 of file AutoUpgrade.cpp.
References llvm::Function::arg_begin(), llvm::Function::arg_size(), llvm::AMDGPU::CodeObject::Kernel::Key::Args, assert(), llvm::StringSwitch< T, R >::Case(), llvm::StringSwitch< T, R >::Cases(), llvm::Function::Create(), llvm::StringSwitch< T, R >::Default(), 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::Value::getType(), llvm::Regex::match(), Name, llvm::None, llvm::Intrinsic::not_intrinsic, llvm::StringRef::npos, llvm::FunctionType::params(), llvm::Intrinsic::remangleIntrinsicFunction(), rename(), llvm::StringRef::size(), llvm::StringRef::startswith(), llvm::StringRef::substr(), and UpgradeX86IntrinsicFunction().
Referenced by llvm::UpgradeIntrinsicFunction().
Definition at line 2314 of file AutoUpgrade.cpp.
References E, llvm::MDTuple::get(), I, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::SmallVectorImpl< T >::reserve(), and upgradeLoopTag().
Referenced by llvm::upgradeInstructionLoopAttachment().
|
static |
Definition at line 2302 of file AutoUpgrade.cpp.
References assert(), llvm::StringRef::drop_front(), llvm::MDString::get(), llvm::StringRef::size(), and llvm::StringRef::startswith().
Referenced by upgradeLoopArgument().
|
static |
Definition at line 790 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::VectorType::get(), llvm::Constant::getAllOnesValue(), llvm::CallInst::getArgOperand(), llvm::Value::getContext(), llvm::IRBuilderBase::getInt1Ty(), llvm::Constant::getNullValue(), llvm::CallInst::getNumArgOperands(), llvm::Value::getType(), llvm::Type::getVectorNumElements(), getX86MaskVec(), llvm::CmpInst::ICMP_EQ, llvm::CmpInst::ICMP_NE, llvm::CmpInst::ICMP_SGE, llvm::CmpInst::ICMP_SGT, llvm::CmpInst::ICMP_SLE, llvm::CmpInst::ICMP_SLT, llvm::CmpInst::ICMP_UGE, llvm::CmpInst::ICMP_UGT, llvm::CmpInst::ICMP_ULE, llvm::CmpInst::ICMP_ULT, llvm_unreachable(), llvm::BitmaskEnumDetail::Mask(), and llvm::max().
Referenced by llvm::UpgradeIntrinsicCall().
|
static |
Definition at line 757 of file AutoUpgrade.cpp.
References llvm::AMDGPU::CodeObject::Kernel::Arg::Key::Align, 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 843 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 737 of file AutoUpgrade.cpp.
References llvm::AMDGPU::CodeObject::Kernel::Arg::Key::Align, 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().
Definition at line 858 of file AutoUpgrade.cpp.
References llvm::IRBuilder< T, Inserter >::CreateSExt(), llvm::CallInst::getArgOperand(), llvm::Value::getType(), llvm::Type::getVectorNumElements(), getX86MaskVec(), and llvm::BitmaskEnumDetail::Mask().
Referenced by llvm::UpgradeIntrinsicCall().
|
static |
Definition at line 39 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 UpgradeX86IntrinsicFunction().
|
static |
Definition at line 691 of file AutoUpgrade.cpp.
References llvm::AMDGPU::CodeObject::Kernel::Arg::Key::Align, assert(), llvm::IRBuilder< T, Inserter >::CreateShuffleVector(), EmitX86Select(), llvm::Constant::getNullValue(), llvm::Value::getType(), llvm::Type::getVectorNumElements(), llvm::isPowerOf2_32(), and llvm::makeArrayRef().
Referenced by llvm::UpgradeIntrinsicCall().
Definition at line 253 of file AutoUpgrade.cpp.
References llvm::Function::arg_size(), llvm::Intrinsic::getDeclaration(), llvm::Function::getFunctionType(), llvm::FunctionType::getParamType(), llvm::GlobalValue::getParent(), rename(), ShouldUpgradeX86Intrinsic(), llvm::StringRef::startswith(), llvm::StringRef::substr(), UpgradePTESTIntrinsic(), and UpgradeX86IntrinsicsWith8BitMask().
Referenced by UpgradeIntrinsicFunction1().
|
static |
Definition at line 55 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 UpgradeX86IntrinsicFunction().
|
static |
Definition at line 834 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 591 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(), and llvm::makeArrayRef().
Referenced by llvm::UpgradeIntrinsicCall().
|
static |
Definition at line 625 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(), and llvm::makeArrayRef().
Referenced by llvm::UpgradeIntrinsicCall().
1.8.6