LLVM  8.0.1
Classes | Namespaces | Macros | Functions | Variables
AMDGPULibCalls.cpp File Reference

This file does AMD library function optimizations. More...

#include "AMDGPU.h"
#include "AMDGPULibFunc.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Analysis/Loads.h"
#include "llvm/ADT/StringSet.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/ValueSymbolTable.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetOptions.h"
#include <vector>
#include <cmath>
Include dependency graph for AMDGPULibCalls.cpp:

Go to the source code of this file.

Classes

class  llvm::AMDGPULibCalls
 
struct  TableRef
 

Namespaces

 llvm
 This class represents lattice values for constants.
 

Macros

#define DEBUG_TYPE   "amdgpu-simplifylib"
 
#define MATH_PI   3.14159265358979323846264338327950288419716939937511
 
#define MATH_E   2.71828182845904523536028747135266249775724709369996
 
#define MATH_SQRT2   1.41421356237309504880168872420969807856967187537695
 
#define MATH_LOG2E   1.4426950408889634073599246810018921374266459541529859
 
#define MATH_LOG10E   0.4342944819032518276511289189166050822943970058036665
 
#define MATH_LOG2_10   3.3219280948873623478703194294893901758648313930245806
 
#define MATH_RLOG2_10   0.3010299956639811952137388947244930267681898814621085
 
#define MATH_RLOG2_E   0.6931471805599453094172321214581765680755001343602552
 

Functions

 INITIALIZE_PASS_BEGIN (AMDGPUSimplifyLibCalls, "amdgpu-simplifylib", "Simplify well-known AMD library calls", false, false) INITIALIZE_PASS_END(AMDGPUSimplifyLibCalls
 
amdgpu Simplify well known AMD library false INITIALIZE_PASS (AMDGPUUseNativeCalls, "amdgpu-usenative", "Replace builtin math calls with that native versions.", false, false) template< typename IRB > static CallInst *CreateCallEx(IRB &B
 
static bool HasNative (AMDGPULibFunc::EFuncId id)
 
static TableRef getOptTable (AMDGPULibFunc::EFuncId id)
 
static int getVecSize (const AMDGPULibFunc &FInfo)
 
static AMDGPULibFunc::EType getArgType (const AMDGPULibFunc &FInfo)
 
static double llvm::log2 (double V)
 
static bool setFastFlags (Function &F, const TargetOptions &Options)
 

Variables

static cl::opt< boolEnablePreLink ("amdgpu-prelink", cl::desc("Enable pre-link mode optimizations"), cl::init(false), cl::Hidden)
 
static cl::list< std::string > UseNative ("amdgpu-use-native", cl::desc("Comma separated list of functions to replace with native, or all"), cl::CommaSeparated, cl::ValueOptional, cl::Hidden)
 
amdgpu simplifylib
 
amdgpu Simplify well known AMD library calls
 
amdgpu Simplify well known AMD library false
 
amdgpu Simplify well known AMD library false ValueCallee
 
amdgpu Simplify well known AMD library false Value ValueArg
 
amdgpu Simplify well known AMD library false Value Value const TwineName
 
static const TableEntry tbl_acos []
 
static const TableEntry tbl_acosh []
 
static const TableEntry tbl_acospi []
 
static const TableEntry tbl_asin []
 
static const TableEntry tbl_asinh []
 
static const TableEntry tbl_asinpi []
 
static const TableEntry tbl_atan []
 
static const TableEntry tbl_atanh []
 
static const TableEntry tbl_atanpi []
 
static const TableEntry tbl_cbrt []
 
static const TableEntry tbl_cos []
 
static const TableEntry tbl_cosh []
 
static const TableEntry tbl_cospi []
 
static const TableEntry tbl_erfc []
 
static const TableEntry tbl_erf []
 
static const TableEntry tbl_exp []
 
static const TableEntry tbl_exp2 []
 
static const TableEntry tbl_exp10 []
 
static const TableEntry tbl_expm1 []
 
static const TableEntry tbl_log []
 
static const TableEntry tbl_log2 []
 
static const TableEntry tbl_log10 []
 
static const TableEntry tbl_rsqrt []
 
static const TableEntry tbl_sin []
 
static const TableEntry tbl_sinh []
 
static const TableEntry tbl_sinpi []
 
static const TableEntry tbl_sqrt []
 
static const TableEntry tbl_tan []
 
static const TableEntry tbl_tanh []
 
static const TableEntry tbl_tanpi []
 
static const TableEntry tbl_tgamma []
 

Detailed Description

This file does AMD library function optimizations.

Definition in file AMDGPULibCalls.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "amdgpu-simplifylib"

Definition at line 15 of file AMDGPULibCalls.cpp.

◆ MATH_E

#define MATH_E   2.71828182845904523536028747135266249775724709369996

Definition at line 50 of file AMDGPULibCalls.cpp.

◆ MATH_LOG10E

#define MATH_LOG10E   0.4342944819032518276511289189166050822943970058036665

Definition at line 54 of file AMDGPULibCalls.cpp.

◆ MATH_LOG2_10

#define MATH_LOG2_10   3.3219280948873623478703194294893901758648313930245806

Definition at line 56 of file AMDGPULibCalls.cpp.

◆ MATH_LOG2E

#define MATH_LOG2E   1.4426950408889634073599246810018921374266459541529859

Definition at line 53 of file AMDGPULibCalls.cpp.

◆ MATH_PI

#define MATH_PI   3.14159265358979323846264338327950288419716939937511

Definition at line 49 of file AMDGPULibCalls.cpp.

◆ MATH_RLOG2_10

#define MATH_RLOG2_10   0.3010299956639811952137388947244930267681898814621085

Definition at line 58 of file AMDGPULibCalls.cpp.

◆ MATH_RLOG2_E

#define MATH_RLOG2_E   0.6931471805599453094172321214581765680755001343602552

Definition at line 60 of file AMDGPULibCalls.cpp.

◆ MATH_SQRT2

#define MATH_SQRT2   1.41421356237309504880168872420969807856967187537695

Definition at line 51 of file AMDGPULibCalls.cpp.

Function Documentation

◆ getArgType()

static AMDGPULibFunc::EType getArgType ( const AMDGPULibFunc FInfo)
inlinestatic

◆ getOptTable()

static TableRef getOptTable ( AMDGPULibFunc::EFuncId  id)
static

◆ getVecSize()

static int getVecSize ( const AMDGPULibFunc FInfo)
inlinestatic

◆ HasNative()

static bool HasNative ( AMDGPULibFunc::EFuncId  id)
static

◆ INITIALIZE_PASS()

amdgpu Simplify well known AMD library false INITIALIZE_PASS ( AMDGPUUseNativeCalls  ,
"amdgpu-usenative"  ,
"Replace builtin math calls with that native versions."  ,
false  ,
false   
) &

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( AMDGPUSimplifyLibCalls  ,
"amdgpu-simplifylib ,
"Simplify well-known AMD library calls ,
false  ,
false   
)

◆ setFastFlags()

static bool setFastFlags ( Function F,
const TargetOptions Options 
)
static

Variable Documentation

◆ Arg

amdgpu Simplify well known AMD library false Value Value* Arg

Definition at line 220 of file AMDGPULibCalls.cpp.

Referenced by llvm::AAEvaluator::AAEvaluator(), llvm::AAResults::AAResults(), llvm::opt::Option::accept(), llvm::AliasSetTracker::add(), AddAliasScopeMetadata(), AddAlignmentAssumptions(), addArgumentReturnedAttrs(), addConditions(), llvm::AnalysisUsage::addUsedIfAvailable(), addVCallToSet(), alwaysAvailable(), llvm::analyzeArguments(), llvm::CCState::AnalyzeArgumentsSecondPass(), llvm::AMDGPUTargetLowering::analyzeFormalArgumentsCompute(), AnalyzeReturnValues(), llvm::cl::basic_parser_impl::anchor(), llvm::xray::CallArgRecord::arg(), llvm::BTFDebug::beginFunctionImpl(), CalculateTailCallArgDest(), llvm::orc::rpc::ParallelCallGroup::call(), llvm::CallGraph::CallGraph(), CallingConvSupported(), CC_Lanai32_VarArg(), llvm::ARMTargetLowering::CCAssignFnForReturn(), CheckForCanReleaseCFGHazard(), checkFunctionMemoryAccess(), llvm::PriorityWorklist< llvm::LazyCallGraph::SCC *, SmallVector< llvm::LazyCallGraph::SCC *, N >, SmallDenseMap< llvm::LazyCallGraph::SCC *, ptrdiff_t > >::clear(), llvm::ScalarEvolution::clearFlags(), llvm::CoroIdInst::clearPromise(), computeKnownBitsFromAssume(), llvm::computeLTOCacheKey(), ComputePostOrders(), llvm::DwarfUnit::constructSubprogramArguments(), createCallInst(), createCast(), llvm::createDeadArgHackingPass(), llvm::AMDGPUTargetLowering::CreateLiveInRegisterRaw(), llvm::createObjCARCOptPass(), llvm::objcarc::Depends(), despeculateCountZeros(), llvm::dlltoolDriverMain(), llvm::DominatorTreeBase< BasicBlock, false >::DominatorTreeBase(), llvm::LazyValueInfo::enableDT(), EnsureStackAlignment(), findArgumentCopyElisionCandidates(), FindPredecessorRetainWithSafePath(), FindSingleUseIdentifiedObject(), llvm::VarDefInit::Fold(), llvm::FoldingSet< llvm::DIEAbbrev >::FoldingSet(), llvm::FoldingSetBase::FoldingSetBase(), llvm::FoldingSetImpl< llvm::DIEAbbrev >::FoldingSetImpl(), ForeachDagApply(), llvm::PPCTargetLowering::functionArgumentNeedsConsecutiveRegisters(), llvm::GlobalsAAResult::FunctionInfo::FunctionInfo(), llvm::DagInit::get(), llvm::DILocalVariable::getArg(), llvm::VarDefInit::getAsString(), getCompareCC(), getComparePred(), llvm::CoroSuspendInst::getCoroSave(), llvm::APFloat::getExactInverse(), llvm::SparcTargetLowering::getExceptionSelectorRegister(), llvm::AMDGPUSubtarget::getExplicitKernArgSize(), llvm::MemoryLocation::getForArgument(), llvm::cflaa::getGlobalOrArgAttrFromValue(), llvm::DenseMapInfo< MemoryLocOrCall >::getHashValue(), getInterfaceValue(), llvm::X86TargetLowering::getMaxSupportedInterleaveFactor(), llvm::AAResults::getModRefInfo(), getMOVL(), llvm::DiagnosticInfoOptimizationBase::getMsg(), getNarrowIntrinsic(), getNextIntArgReg(), getOffsetFromIndices(), llvm::AMDGPU::getOperandSize(), getOutputPath(), getParentPad(), llvm::CoroIdInst::getPromise(), llvm::Pass::getResolver(), getRetComponentType(), GetRMWLibcall(), getSearchPaths(), llvm::ARM_AM::getSOImmVal(), getSuccPad(), llvm::ARCTargetLowering::getTargetNodeName(), llvm::CallLowering::getTLI(), getUnderlyingArgReg(), llvm::GlobalsAAResult::GlobalsAAResult(), llvm::GPUDivergenceAnalysis::GPUDivergenceAnalysis(), HandleByValArgument(), handlePhiDef(), hasAnyNonFlatUseOfReg(), llvm::CallSiteBase<>::hasArgument(), llvm::CallBase::hasArgument(), hasOnlySelectUsers(), llvm::ARMTargetLowering::hasStandaloneRem(), llvm::HexagonEvaluator::HexagonEvaluator(), INITIALIZE_PASS(), initSlots2Values(), llvm::yaml::CustomMappingTraits< std::map< std::vector< uint64_t >, WholeProgramDevirtResolution::ByArg > >::inputOne(), insertIfNamed(), insertParsePoints(), insertSinCosCall(), llvm::SIInstrInfo::insertWaitStates(), instrumentMaskedLoadOrStore(), llvm::PreservedAnalyses::intersect(), isBLACompatibleAddress(), isBroadcastShuffle(), isDynamicConstant(), llvm::DenseMapInfo< VTableSlot >::isEqual(), isIntExtFree(), isKnownNonNullFromDominatingCondition(), isMulPowOf2(), llvm::detail::IEEEFloat::isNegZero(), isOrdered(), llvm::DILocalVariable::isParameter(), llvm::objcarc::IsPotentialRetainableObjPtr(), isReassociableOp(), llvm::APInt::isSameValue(), isSDKVersionToken(), isSExtLoad(), isSortedByValueNo(), llvm::NVPTXTTIImpl::isSourceOfDivergence(), isSupportedType(), llvm::Value::isSwiftError(), llvm::SITargetLowering::isTypeDesirableForOp(), llvm::AMDGPUInstrInfo::isUniformMMO(), llvm::LazyValueInfo::LazyValueInfo(), LLVMGetNextParam(), LLVMGetPreviousParam(), LLVMSetParamAlignment(), LookupNearestOption(), llvm::LoopInfoBase< BasicBlock, Loop >::LoopInfoBase(), LowerADDSUBCARRY(), llvm::ARMCallLowering::lowerCall(), llvm::MipsCallLowering::lowerCall(), llvm::HexagonTargetLowering::LowerCall(), llvm::CallLowering::lowerCall(), llvm::SITargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), LowerCallResult(), llvm::FastISel::lowerCallTo(), llvm::SparcTargetLowering::LowerF128_LibCallArg(), llvm::X86CallLowering::lowerFormalArguments(), llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::ARMCallLowering::lowerFormalArguments(), llvm::AArch64CallLowering::lowerFormalArguments(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::MipsCallLowering::lowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), LowerFSINCOS(), LowerInterruptReturn(), llvm::BPFTargetLowering::LowerOperation(), llvm::ARMCallLowering::lowerReturn(), llvm::SITargetLowering::LowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), lowerStatepointMetaArgs(), LowerVectorINT_TO_FP(), makeStatepointExplicitImpl(), llvm::coro::LowererBase::makeSubFnCall(), markTails(), MatchingStackOffset(), maybePrintComdat(), mayTailCallThisCC(), needsFPFromSig(), onlySingleValue(), llvm::GVNExpression::BasicExpression::op_push_back(), llvm::cl::SubCommand::operator bool(), llvm::orc::rpc::detail::ReadArgs< ArgT, ArgTs... >::operator()(), operator<<(), llvm::operator<<(), llvm::LazyValueInfo::operator=(), llvm::yaml::CustomMappingTraits< std::map< std::vector< uint64_t >, WholeProgramDevirtResolution::ByArg > >::output(), llvm::cflaa::parentFunctionOfValue(), llvm::LTOCodeGenerator::parseCodeGenDebugOptions(), llvm::itanium_demangle::AbstractManglingParser< ManglingParser< Alloc >, Alloc >::parseEncoding(), llvm::itanium_demangle::AbstractManglingParser< ManglingParser< Alloc >, Alloc >::parseExpr(), ParseFunctionArgs(), llvm::parseFunctionArgs(), llvm::opt::OptTable::ParseOneArg(), llvm::cl::parser< bool >::parser(), llvm::cl::parser< boolOrDefault >::parser(), llvm::cl::parser< int >::parser(), llvm::cl::parser< unsigned >::parser(), llvm::cl::parser< unsigned long long >::parser(), llvm::cl::parser< double >::parser(), llvm::cl::parser< float >::parser(), llvm::itanium_demangle::AbstractManglingParser< ManglingParser< Alloc >, Alloc >::parseTemplateArg(), llvm::itanium_demangle::AbstractManglingParser< ManglingParser< Alloc >, Alloc >::parseTemplateArgs(), false::LibCallsShrinkWrap::perform(), llvm::R600TargetLowering::PerformDAGCombine(), llvm::AMDGPUAAResult::pointsToConstantMemory(), populateExternalRelations(), PrepareCall(), llvm::LegacyDivergenceAnalysis::print(), processDbgDeclares(), ProfileDagInit(), llvm::promoteCall(), PropagateConstantsIntoArguments(), PushArgMD(), regionReader(), llvm::R600TargetLowering::ReplaceNodeResults(), replaceShuffleOfInsert(), llvm::VarDefInit::resolveReferences(), llvm::DagInit::resolveReferences(), llvm::LoopAnalysisManagerFunctionProxy::Result<>::Result(), llvm::InnerAnalysisManagerProxy< AnalysisManagerT, IRUnitT, ExtraArgTs >::Result::Result(), llvm::APIntOps::RoundFloatToAPInt(), llvm::WholeProgramDevirtPass::run(), llvm::runFuzzerOnInputs(), llvm::IRTranslator::runOnMachineFunction(), llvm::ScalarEvolution::ScalarEvolution(), llvm::FastISel::selectIntrinsicCall(), selectJumpTableArmEncoding(), llvm::SetVector< llvm::SUnit *>::set_subtract(), llvm::CallLowering::setArgFlags(), llvm::LoopVectorizeHints::setPotentiallyUnsafe(), llvm::SIMachineFunctionInfo::setWorkItemIDX(), llvm::SIMachineFunctionInfo::setWorkItemIDY(), llvm::SIMachineFunctionInfo::setWorkItemIDZ(), ShrinkDemandedConstant(), simplifyInvariantGroupIntrinsic(), simplifyX86movmsk(), simplifyX86round(), llvm::DISubprogram::splitFlags(), StackMallocSizeClass(), StoreTailCallArgumentsToStackSlot(), truncateToSize(), tryToElideArgumentCopy(), unpackF64OnRV32DSoftABI(), llvm::LoopVectorizeHints::vectorizeAnalysisPassName(), llvm::InstCombiner::visitCallInst(), llvm::ObjectSizeOffsetVisitor::visitCallSite(), llvm::codeview::TypeDumpVisitor::visitMemberEnd(), llvm::InnerLoopVectorizer::widenInstruction(), and X86ChooseCmpImmediateOpcode().

◆ Callee

amdgpu Simplify well known AMD library false Value* Callee

Definition at line 220 of file AMDGPULibCalls.cpp.

Referenced by llvm::AArch64TTIImpl::AArch64TTIImpl(), addEdge(), addNoRecurseAttrs(), addStackMapLiveVars(), allCallersPassInValidPointerForArgument(), llvm::analyzeArguments(), analyzeLoopUnrollCost(), AnalyzeReturnValues(), areFunctionArgsABICompatible(), llvm::ARMTTIImpl::ARMTTIImpl(), llvm::AVRDAGToDAGISel::select< AVRISD::CALL >(), CalculateTailCallSPDiff(), CallingConvSupported(), callsiteIsHot(), canTransformToMemCmp(), CC_Lanai32_VarArg(), CC_MipsO32_FP64(), llvm::ARMTargetLowering::CCAssignFnForReturn(), computeBytesPoppedByCalleeForSRet(), computeFunctionSummary(), copyFeaturesToFunction(), llvm::createAlwaysInlinerLegacyPass(), llvm::createAMDGPUFunctionInliningPass(), DeleteBasicBlock(), doCallSiteSplitting(), llvm::emitBinaryFloatFnCall(), emitDirectiveRelocJalr(), EmitHiLo(), llvm::MipsSETargetLowering::EmitInstrWithCustomInserter(), emitSignedInt64(), emitUnaryFloatFnCallHelper(), llvm::Evaluator::EvaluateBlock(), ExpandBVWithShuffles(), findInitTrampoline(), llvm::sampleprof::FunctionSamples::findInlinedFunctions(), FindUses(), llvm::PPCTargetLowering::functionArgumentNeedsConsecutiveRegisters(), llvm::StackSafetyInfo::FunctionInfo::FunctionInfo(), FunctionNumber(), llvm::MipsTargetLowering::getAddrGPRel(), getAllocationData(), getAllocationSize(), getCalledFunction(), getCompareCC(), getComparePred(), llvm::XCoreTargetLowering::getExceptionSelectorRegister(), llvm::getFunctionName(), llvm::X86TargetLowering::getMaxSupportedInterleaveFactor(), getMemCmpLoad(), getMOVL(), getOffsetFromIndices(), llvm::AArch64InstrInfo::getOutliningType(), llvm::NVPTXTargetLowering::getPrototype(), llvm::MSP430TargetLowering::getScalarShiftAmountTy(), llvm::AVRTargetLowering::getSetCCResultType(), getSignature(), getSqrtCall(), getSuccPad(), llvm::ARCTargetLowering::getTargetNodeName(), llvm::GCNTTIImpl::getVectorSplitCost(), getX86SSEConditionCode(), hasAnyNonFlatUseOfReg(), hasProfileData(), llvm::ARMTargetLowering::hasStandaloneRem(), INITIALIZE_PASS(), InlineCallIfPossible(), insertSinCosCall(), InstrBreaksNonThrowing(), instrumentOneFunc(), llvm::NVPTXTargetLowering::isCheapToSpeculateCtlz(), llvm::isFreeCall(), isReturnNonNull(), llvm::isSafeToSpeculativelyExecute(), llvm::MipsSETargetLowering::isShuffleMaskLegal(), isUnconditionalBranch(), isWrapperOnlyCall(), llvm::HexagonTargetLowering::LowerCall(), llvm::CallLowering::lowerCall(), llvm::SITargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), LowerCallResult(), llvm::SelectionDAGBuilder::LowerCallSiteWithDeoptBundleImpl(), llvm::SelectionDAGBuilder::LowerDeoptimizeCall(), llvm::SparcTargetLowering::LowerF128Compare(), llvm::SparcTargetLowering::LowerF128Op(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), llvm::IntrinsicLowering::LowerIntrinsicCall(), llvm::BPFTargetLowering::LowerOperation(), llvm::AMDGPUTargetLowering::lowerUnhandledCall(), LowerVectorINT_TO_FP(), llvm::TargetLowering::makeLibCall(), markAliveBlocks(), MarkBlocksLiveIn(), MatchingStackOffset(), mayTailCallThisCC(), llvm::pdb::operator<<(), llvm::itanium_demangle::AbstractManglingParser< ManglingParser< Alloc >, Alloc >::parseExpr(), false::LibCallsShrinkWrap::perform(), llvm::CallGraphNode::removeCallEdge(), llvm::AAEvaluator::run(), llvm::InlinerPass::run(), runImpl(), llvm::FastISel::selectStackmap(), llvm::SelectionDAGBuilder::setUnusedArgValue(), shouldInline(), shouldInstrumentBlock(), shouldKeepInEntry(), simplifySuspendPoint(), llvm::AArch64TargetLowering::supportSwiftError(), unpackF64OnRV32DSoftABI(), llvm::coro::updateCallGraph(), UpdateCallGraphAfterInlining(), useSinCos(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::sampleprof::SampleProfileWriterBinary::writeBody(), X86ChooseCmpImmediateOpcode(), and llvm::X86TTIImpl::X86TTIImpl().

◆ calls

amdgpu Simplify well known AMD library calls

Definition at line 212 of file AMDGPULibCalls.cpp.

◆ EnablePreLink

cl::opt<bool> EnablePreLink("amdgpu-prelink", cl::desc("Enable pre-link mode optimizations"), cl::init(false), cl::Hidden)
static

Referenced by getArgType(), and setFastFlags().

◆ false

amdgpu Simplify well known AMD library false

Definition at line 212 of file AMDGPULibCalls.cpp.

Referenced by llvm::AMDGPULibCalls::fold().

◆ Name

amdgpu Simplify well known AMD library false Value Value const Twine& Name
Initial value:
= "") {
CallInst *R = B.CreateCall(Callee, Arg, Name);
if (Function* F = dyn_cast<Function>(Callee))
R->setCallingConv(F->getCallingConv());
return R;
}
template <typename IRB>
static CallInst *CreateCallEx2(IRB &B, Value *Callee, Value *Arg1, Value *Arg2,
const Twine &Name = "") {
CallInst *R = B.CreateCall(Callee, {Arg1, Arg2}, Name);
if (Function* F = dyn_cast<Function>(Callee))
R->setCallingConv(F->getCallingConv());
return R;
}
struct TableEntry {
double result;
double input;
}
This class represents a function call, abstracting a target machine&#39;s calling convention.
F(f)
amdgpu Simplify well known AMD library false Value Value const Twine & Name
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:81
amdgpu Simplify well known AMD library false Value * Callee
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
void setCallingConv(CallingConv::ID CC)
Definition: InstrTypes.h:1229
amdgpu Simplify well known AMD library false Value Value * Arg
LLVM Value Representation.
Definition: Value.h:73

Definition at line 221 of file AMDGPULibCalls.cpp.

Referenced by llvm::AccelTable< llvm::DWARF5AccelTableData >::AccelTable(), AddAliasScopeMetadata(), llvm::ExecutionEngine::addGlobalMapping(), llvm::ModuleSymbolTable::addModule(), llvm::LTOCodeGenerator::addMustPreserveSymbol(), llvm::AccelTable< llvm::DWARF5AccelTableData >::addName(), addNegOperand(), llvm::SetTheory::addOperator(), llvm::InstrProfWriter::addRecord(), llvm::DIEHash::addSLEB128(), allOpsDefaultValue(), llvm::AMDGPUInstPrinter::AMDGPUInstPrinter(), llvm::AMDGPUMangledLibFunc::AMDGPUMangledLibFunc(), llvm::AMDGPUUnmangledLibFunc::AMDGPUUnmangledLibFunc(), llvm::cl::basic_parser_impl::anchor(), llvm::TarWriter::append(), llvm::Module::appendModuleInlineAsm(), appendTypeSuffix(), llvm::RuntimeDyldImpl::applyExternalSymbolRelocations(), llvm::DwarfCompileUnit::applyLabelAttributes(), llvm::DwarfUnit::applySubprogramAttributes(), llvm::DwarfCompileUnit::applyVariableAttributes(), llvm::ARMTargetLowering::ARMTargetLowering(), assureFPCallStub(), llvm::object::MachOObjectFile::BindRebaseAddress(), llvm::GCOVFunction::blocks(), buildFrameType(), llvm::buildModuleSummaryIndex(), llvm::DICompositeType::buildODRType(), llvm::orc::buildSimpleReexportsAliasMap(), llvm::call_once(), llvm::canConstantFoldCallTo(), canThrow(), llvm::RuntimeDyldCheckerImpl::checkAllRulesInBuffer(), checkParametrizedPassName(), llvm::AVRMCExpr::classof(), llvm::AMDGPUMangledLibFunc::classof(), llvm::yaml::AliasNode::classof(), llvm::MachineOperand::clearParent(), collectFunctionUsers(), llvm::BTFTypeFunc::completeType(), llvm::ComputeASanStackFrameDescription(), computeIndexValue(), llvm::RuntimeDyldImpl::computeTotalAllocSize(), llvm::ConstantFoldCall(), llvm::DwarfUnit::constructContainingTypeDIEs(), llvm::DwarfCompileUnit::constructImportedEntityDIE(), llvm::DwarfUnit::constructTypeDIE(), CopyStringRef(), llvm::symbolize::SymbolizableObjectFile::create(), llvm::GlobalAlias::create(), llvm::BasicBlock::Create(), llvm::BinaryOperator::Create(), llvm::MCSymbolRefExpr::create(), llvm::InstrProfSymtab::create(), llvm::UnaryOperator::Create(), llvm::IRBuilder< TargetFolder >::CreateAdd(), llvm::IRBuilder< TargetFolder >::CreateAlignedLoad(), llvm::IRBuilder< TargetFolder >::CreateAnd(), llvm::MDBuilder::createAnonymousAliasScope(), llvm::MDBuilder::createAnonymousAliasScopeDomain(), llvm::IRBuilder< TargetFolder >::CreateAShr(), llvm::IRBuilderBase::CreateBinaryIntrinsic(), llvm::IRBuilder< TargetFolder >::CreateCall(), createCallHelper(), llvm::IRBuilder< TargetFolder >::CreateCast(), llvm::IRBuilder< TargetFolder >::CreateCatchPad(), llvm::IRBuilder< TargetFolder >::CreateCatchSwitch(), llvm::IRBuilder< TargetFolder >::CreateCleanupPad(), llvm::IRBuilder< TargetFolder >::CreateConstGEP1_32(), llvm::IRBuilder< TargetFolder >::CreateConstGEP1_64(), llvm::IRBuilder< TargetFolder >::CreateConstGEP2_32(), llvm::IRBuilder< TargetFolder >::CreateConstGEP2_64(), llvm::IRBuilder< TargetFolder >::CreateConstInBoundsGEP1_32(), llvm::IRBuilder< TargetFolder >::CreateConstInBoundsGEP1_64(), llvm::IRBuilder< TargetFolder >::CreateConstInBoundsGEP2_32(), llvm::IRBuilder< TargetFolder >::CreateConstInBoundsGEP2_64(), llvm::IRBuilderBase::CreateElementUnorderedAtomicMemMove(), llvm::IRBuilder< TargetFolder >::CreateExtractElement(), llvm::IRBuilder< TargetFolder >::CreateExtractValue(), llvm::IRBuilder< TargetFolder >::CreateFCmp(), llvm::BinaryOperator::CreateFNeg(), llvm::IRBuilder< TargetFolder >::CreateFNeg(), llvm::IRBuilder< TargetFolder >::CreateFPCast(), createFPFnStub(), llvm::IRBuilderBase::CreateGCStatepointCall(), llvm::IRBuilderBase::CreateGCStatepointInvoke(), llvm::IRBuilder< TargetFolder >::CreateGEP(), createGlobalFwdRef(), llvm::IRBuilderBase::CreateGlobalString(), llvm::IRBuilder< TargetFolder >::CreateICmp(), llvm::IRBuilder< TargetFolder >::CreateInBoundsGEP(), llvm::IRBuilder< TargetFolder >::CreateInsertElement(), llvm::IRBuilder< TargetFolder >::CreateInsertValue(), llvm::IRBuilder< TargetFolder >::CreateIntCast(), llvm::IRBuilder< TargetFolder >::CreateInvoke(), createInvokeHelper(), llvm::orc::LLJIT::createJITDylib(), llvm::createLibcall(), llvm::IRBuilder< TargetFolder >::CreateLoad(), llvm::IRBuilder< TargetFolder >::CreateLShr(), llvm::IRBuilderBase::CreateMaskedStore(), llvm::IRBuilderBase::CreateMaximum(), llvm::IRBuilderBase::CreateMaxNum(), llvm::IRBuilderBase::CreateMinimum(), llvm::IRBuilderBase::CreateMinNum(), llvm::IRBuilder< TargetFolder >::CreateMul(), llvm::BinaryOperator::CreateNeg(), llvm::IRBuilder< TargetFolder >::CreateNeg(), llvm::BinaryOperator::CreateNot(), llvm::IRBuilder< TargetFolder >::CreateNot(), llvm::IRBuilder< TargetFolder >::CreateOr(), llvm::IRBuilder< TargetFolder >::CreatePointerBitCastOrAddrSpaceCast(), llvm::IRBuilder< TargetFolder >::CreatePointerCast(), createRdxShuffleMask(), llvm::IRBuilder< TargetFolder >::CreateSDiv(), llvm::IRBuilder< TargetFolder >::CreateSelect(), llvm::IRBuilder< TargetFolder >::CreateSExtOrBitCast(), llvm::createShadowStackGCLoweringPass(), llvm::IRBuilder< TargetFolder >::CreateShl(), llvm::IRBuilder< TargetFolder >::CreateShuffleVector(), llvm::IRBuilder< TargetFolder >::CreateSub(), llvm::MCContext::createTempSymbol(), llvm::IRBuilder< TargetFolder >::CreateTruncOrBitCast(), llvm::IRBuilder< TargetFolder >::CreateUDiv(), llvm::IRBuilderBase::CreateUnaryIntrinsic(), llvm::IRBuilder< TargetFolder >::CreateUnreachable(), llvm::createX86RetpolineThunksPass(), llvm::IRBuilder< TargetFolder >::CreateZExtOrBitCast(), llvm::MachineFunction::deallocateOperandArray(), llvm::coro::declaresIntrinsics(), llvm::DWARFContext::defaultErrorHandler(), llvm::orc::MaterializationResponsibility::delegate(), deleteDeadInstruction(), llvm::Value::deleteValue(), llvm::symbolize::LLVMSymbolizer::DemangleName(), llvm::AsmPrinter::doFinalization(), llvm::FunctionImportGlobalProcessing::doImportAsDefinition(), llvm::DominatorTree::DominatorTree(), llvm::GlobalValue::dropLLVMManglingEscape(), llvm::DWARFTypeUnit::dump(), llvm::DWARFContext::dump(), llvm::ReadyQueue::dump(), dumpAttribute(), llvm::ModuleSummaryIndex::dumpSCCs(), dumpTypeName(), llvm::DWARFDebugPubTable::DWARFDebugPubTable(), llvm::orc::CompileOnDemandLayer::emit(), llvm::orc::RemoteObjectClientLayer< RPCEndpoint >::emitAndFinalize(), llvm::emitBinaryFloatFnCall(), llvm::RuntimeDyldImpl::emitCommonSymbols(), emitDebugLabelComment(), emitDebugValueComment(), llvm::WebAssemblyAsmPrinter::EmitEndOfAsmFile(), llvm::AsmPrinter::emitGlobalGOTEquivs(), llvm::Mips16TargetLowering::EmitInstrWithCustomInserter(), llvm::MCDwarfLineStr::emitRef(), llvm::RuntimeDyldImpl::emitSection(), emitSignedInt64(), llvm::emitStrCpy(), llvm::emitStrNCpy(), llvm::emitUnaryFloatFnCall(), llvm::DebugCounter::enableAllCounters(), llvm::ValueSymbolTable::end(), EvaluateCRExpr(), ExecGraphViewer(), llvm::orc::JITCompileCallbackManager::executeCompileCallback(), llvm::RuntimeDyldImpl::finalizeAsync(), llvm::pdb::GSIHashStreamBuilder::finalizeBuckets(), llvm::RuntimeDyldMachOCRTPBase< RuntimeDyldMachOX86_64 >::finalizeLoad(), llvm::RuntimeDyldELF::finalizeLoad(), llvm::RuntimeDyldCOFFX86_64::finalizeLoad(), llvm::RuntimeDyldMachOI386::finalizeSection(), llvm::RuntimeDyldMachOARM::finalizeSection(), llvm::pdb::PDBSymbol::findAllChildren(), findBasePointer(), llvm::Mips16HardFloatInfo::findFuncSignature(), llvm::sampleprof::FunctionSamples::findInlinedFunctions(), llvm::MCJIT::findModuleForSymbol(), llvm::findOptionMDForLoop(), llvm::orc::LambdaResolver< DylibLookupFtorT, ExternalLookupFtorT >::findSymbol(), llvm::orc::LambdaResolver< DylibLookupFtorT, ExternalLookupFtorT >::findSymbolInLogicalDylib(), fixupFPReturnAndCall(), llvm::symbolize::LLVMSymbolizer::flush(), llvm::UnOpInit::Fold(), forceRenaming(), FunctionNumber(), llvm::DiagnosticLocation::getAbsolutePath(), GetAEABIUnwindPersonalityName(), llvm::DOTGraphTraitsViewer< AnalysisT, IsSimple, GraphT, AnalysisGraphTraitsT >::getAnalysisUsage(), llvm::DOTGraphTraitsPrinter< AnalysisT, IsSimple, GraphT, AnalysisGraphTraitsT >::getAnalysisUsage(), llvm::DOTGraphTraitsModuleViewer< AnalysisT, IsSimple, GraphT, AnalysisGraphTraitsT >::getAnalysisUsage(), llvm::DOTGraphTraitsModulePrinter< AnalysisT, IsSimple, GraphT, AnalysisGraphTraitsT >::getAnalysisUsage(), llvm::Triple::getArchTypeForLLVMName(), getArrayElements(), llvm::LTOModule::getAsmUndefinedRefs(), llvm::Attribute::getAsString(), llvm::itanium_demangle::NameType::getBaseName(), getCOFFStaticStructorSection(), getComparePred(), llvm::MSP430MCInstLower::GetConstantPoolIndexSymbol(), llvm::LanaiMCInstLower::GetConstantPoolIndexSymbol(), llvm::BasicBlock::getContext(), llvm::LLParser::getContext(), llvm::getCopyDeclaration(), llvm::ARMAsmPrinter::GetCPISymbol(), llvm::ExecutionEngine::getDataLayout(), llvm::pdb::DIARawSymbol::getDiaSymbol(), llvm::TargetLoweringObjectFileCOFF::getExplicitSectionGlobal(), llvm::TargetLoweringObjectFileWasm::getExplicitSectionGlobal(), llvm::pdb::DbiModuleList::getFileName(), llvm::MipsAsmBackend::getFixupKind(), getFixupKindLog2Size(), getFixupKindNumBytes(), llvm::object::Archive::Child::getFullName(), llvm::MachineBasicBlock::getFullName(), llvm::sampleprof::FunctionSamples::getFuncNameInModule(), llvm::ItaniumPartialDemangler::getFunctionBaseName(), llvm::ItaniumPartialDemangler::getFunctionDeclContextName(), llvm::AsmPrinter::getFunctionEnd(), llvm::ItaniumPartialDemangler::getFunctionName(), getFunctionNameAndStartLineForAddress(), llvm::AMDGPUUnmangledLibFunc::getFunctionType(), llvm::GCModuleInfo::getGCStrategy(), llvm::ExecutionEngineState::getGlobalAddressReverseMap(), llvm::AArch64MCInstLower::GetGlobalAddressSymbol(), llvm::GlobalValue::getGlobalIdentifier(), getGlobalOffsetTable(), llvm::pdb::GlobalsStream::getGlobalsTable(), llvm::ExecutionEngine::getGlobalValueAtAddress(), getGlobalVariableI32(), llvm::pdb::PDBFileBuilder::getGsiBuilder(), llvm::sampleprof::FunctionSamples::getGUID(), llvm::pdb::InfoStream::getHeader(), llvm::DwarfTypeUnit::getHeaderSize(), llvm::sys::getHostCPUName(), getHostID(), llvm::TargetLoweringObjectFileMachO::getIndirectSymViaGOTPCRel(), llvm::DWARFContext::getInliningInfoForAddress(), llvm::ScheduleDAG::getInstrDesc(), getItaniumTypeName(), llvm::MachineFunction::getJTISymbol(), llvm::MSP430MCInstLower::GetJumpTableSymbol(), llvm::LanaiMCInstLower::GetJumpTableSymbol(), llvm::AVRMCExpr::getKindByName(), llvm::object::MachOObjectFile::getLibraryShortNameByIndex(), llvm::MCContext::getMachOSection(), llvm::DwarfCompileUnit::getMacroLabelBegin(), llvm::object::Archive::Child::getMemoryBufferRef(), getModifierVariantKind(), llvm::symbolize::SymbolizableObjectFile::getModulePreferredBase(), getName(), llvm::Comdat::getName(), llvm::object::ArchiveMemberHeader::getName(), llvm::MachinePassRegistryNode< FunctionPassCtor >::getName(), llvm::orc::IRMaterializationUnit::getName(), llvm::SectionEntry::getName(), llvm::GCStrategy::getName(), llvm::Timer::getName(), llvm::object::Archive::Child::getName(), llvm::orc::rpc::RPCTypeName< Expected< T > >::getName(), llvm::orc::rpc::RPCTypeName< std::pair< T1, T2 > >::getName(), llvm::orc::rpc::RPCTypeName< std::tuple< ArgTs... > >::getName(), llvm::irsymtab::Symbol::getName(), llvm::orc::rpc::RPCTypeName< std::vector< T > >::getName(), llvm::orc::rpc::RPCTypeName< std::set< T > >::getName(), llvm::orc::rpc::RPCTypeName< std::map< K, V > >::getName(), llvm::codeview::MemberFuncIdRecord::getName(), llvm::DWARFDie::getName(), llvm::GCOVFunction::getName(), llvm::Target::getName(), llvm::orc::ReExportsMaterializationUnit::getName(), llvm::MCRegisterInfo::getName(), llvm::itanium_demangle::NameType::getName(), llvm::codeview::NestedTypeRecord::getName(), llvm::VPBlockBase::getName(), llvm::sampleprof::FunctionSamples::getName(), llvm::codeview::ArrayRecord::getName(), llvm::AMDGPUUnmangledLibFunc::getName(), llvm::codeview::TagRecord::getName(), llvm::yaml::AliasNode::getName(), llvm::LazyCallGraph::SCC::getName(), llvm::ReadyQueue::getName(), llvm::codeview::TypeServer2Record::getName(), llvm::codeview::FuncIdRecord::getName(), llvm::LazyCallGraph::RefSCC::getName(), llvm::codeview::OneMethodRecord::getName(), llvm::codeview::OverloadedMethodRecord::getName(), llvm::itanium_demangle::FunctionEncoding::getName(), llvm::codeview::DataMemberRecord::getName(), llvm::codeview::StaticDataMemberRecord::getName(), llvm::codeview::EnumeratorRecord::getName(), llvm::VPlan::getName(), llvm::Record::getName(), llvm::NamedMDNode::getName(), llvm::RecordVal::getNameInit(), llvm::Record::getNameInit(), llvm::sampleprof::FunctionSamples::getNameInModule(), llvm::object::ResourceEntryRef::getNameString(), llvm::Mangler::getNameWithPrefix(), getNameWithPrefixImpl(), llvm::ScheduleDAGMI::getNextClusterSucc(), getNMDOps(), llvm::MCAsmInfo::getNonexecutableStackSection(), llvm::CallBase::getOperandBundle(), llvm::SDNode::getOperationName(), getOptionHelpName(), llvm::GetOrCreateFunctionComdat(), llvm::MCContext::getOrCreateLSDASymbol(), llvm::DwarfUnit::getOrCreateNameSpace(), llvm::getOrdinalSuffix(), llvm::Module::getOrInsertFunction(), llvm::AMDGPULibFunc::getOrInsertFunction(), llvm::Module::getOrInsertNamedMetadata(), llvm::ModuleSummaryIndex::getOrInsertValueInfo(), getOrInsertValueProfilingCall(), llvm::DwarfUnit::getParentContextString(), getPassNameAndInstanceNum(), llvm::sys::fs::getPermissions(), llvm::MCJIT::getPointerToFunction(), llvm::orc::rpc::Function< DerivedFunc, RetT(ArgTs...)>::getPrototype(), llvm::object::Archive::Child::getRawSize(), getReciprocalOpName(), getRelaxedOpcode(), llvm::object::ELFFile< ELFT >::getRelocationTypeName(), llvm::sampleprof::getRepInFormat(), llvm::object::ELFObjectFile< ELFT >::getSectionName(), llvm::object::COFFObjectFile::getSectionName(), llvm::DIBasicType::getSignedness(), llvm::DIVariable::getSizeInBits(), llvm::object::ArchiveMemberHeader::getSizeOf(), llvm::pdb::DbiStreamBuilder::getSourceFileNameIndex(), getSqrtCall(), getStaticStructorSection(), llvm::AMDGPUTargetELFStreamer::getStreamer(), llvm::orc::remote::OrcRemoteTargetClient::getSymbolAddress(), llvm::object::ELFObjectFile< ELFT >::getSymbolFlags(), GetSymbolFromOperand(), llvm::orc::MaterializationResponsibility::getSymbols(), llvm::object::COFFObjectFile::getSymbolTableEntrySize(), getTLSGetOffset(), llvm::MachineRegisterInfo::getType(), llvm::getTypeName(), llvm::codeview::LazyRandomTypeCollection::getTypeName(), llvm::AMDGPUMangledLibFunc::getUnmangledName(), getVarName(), llvm::NVPTXAsmPrinter::getVirtualRegisterName(), llvm::GlobalIndirectSymbol::GlobalIndirectSymbol(), llvm::DWARFVerifier::handleDebugLine(), llvm::DwarfUnit::hasContent(), llvm::Value::hasName(), llvm::coverage::InstantiationGroup::hasName(), hasVectorBeenPadded(), llvm::FunctionImporter::importFunctions(), incrementLoc(), inferDSOLocal(), llvm::SSAUpdater::Initialize(), INITIALIZE_PASS(), llvm::MIRParserImpl::initializeFrameInfo(), llvm::MIRParserImpl::initializeJumpTableInfo(), llvm::MCObjectFileInfo::InitMCObjectFileInfo(), llvm::MCInst::insert(), llvm::IRBuilder< TargetFolder >::Insert(), insertSinCosCall(), instrumentMaskedLoadOrStore(), llvm::AsmPrinter::isBlockOnlyReachableByFallthrough(), isCGSCCPassName(), llvm::object::Decompressor::isCompressed(), llvm::DIExpression::isConstant(), llvm::IsCPSRDead< MCInst >(), llvm::ItaniumPartialDemangler::isCtorOrDtor(), llvm::DenseMapInfo< VTableSlot >::isEqual(), llvm::orc::AsynchronousSymbolQuery::isFullyReady(), isFuncOrArgAttr(), isFunctionPassName(), isImplicitOperandIn(), isInPartition(), llvm::Function::isIntrinsic(), isKnownTypeIdMember(), isLoopPassName(), llvm::TargetTransformInfoImplBase::isLoweredToCall(), isModulePassName(), llvm::objcarc::IsObjCIdentifiedObject(), isObjectStart(), isOperator(), llvm::MCObjectFileInfo::isPositionIndependent(), llvm::Record::isSubClassOf(), isValidEncoding(), isVariableIndexable(), isWeak(), llvm::MachObjectWriter::isX86_64(), llvm::orc::JITDylib::legacyLookup(), llvm::LibCallSimplifier::LibCallSimplifier(), llvm::LinkingSymbolResolver::LinkingSymbolResolver(), llvm::llvm_is_multithreaded(), LLVMAddAlias(), LLVMBuildLoad(), LLVMDIBuilderCreateAutoVariable(), LLVMDIBuilderCreateBasicType(), LLVMDIBuilderCreateBitFieldMemberType(), LLVMDIBuilderCreateClassType(), LLVMDIBuilderCreateEnumerationType(), LLVMDIBuilderCreateForwardDecl(), LLVMDIBuilderCreateFunction(), LLVMDIBuilderCreateGlobalVariableExpression(), LLVMDIBuilderCreateImportedDeclaration(), LLVMDIBuilderCreateMemberType(), LLVMDIBuilderCreateObjCIVar(), LLVMDIBuilderCreateObjCProperty(), LLVMDIBuilderCreateParameterVariable(), LLVMDIBuilderCreatePointerType(), LLVMDIBuilderCreateReplaceableCompositeType(), LLVMDIBuilderCreateStaticMemberType(), LLVMDIBuilderCreateStructType(), LLVMDIBuilderCreateTempGlobalVariableFwdDecl(), LLVMDIBuilderCreateTypedef(), LLVMDIBuilderCreateUnionType(), LLVMDIBuilderCreateUnspecifiedType(), LLVMGetOrInsertNamedMetadata(), LLVMGetTargetFromName(), loadObj(), llvm::orc::JITDylib::lookupFlags(), llvm::AMDGPUIntrinsicInfo::lookupName(), LowerADDSUBCARRY(), llvm::lto::LTO::LTO(), llvm::MCGenDwarfLabelEntry::Make(), llvm::LTOModule::makeBuffer(), makeCombineInst(), makeStatepointExplicitImpl(), llvm::AMDGPUUnmangledLibFunc::mangle(), llvm::object::ObjectFile::mapDebugSectionName(), llvm::object::MachOObjectFile::mapDebugSectionName(), llvm::object::COFFObjectFile::mapDebugSectionName(), mapNameAndUniqueName(), maybeSetDSOLocal(), mayLoopAccessLocation(), llvm::BranchFolder::MBFIWrapper::MBFIWrapper(), MCAttrForString(), llvm::MCLOHNameToId(), llvm::MCSymbol::MCSymbol(), llvm::MDBuilder::MDBuilder(), llvm::sampleprof::FunctionSamples::merge(), llvm::MipsAsmBackend::MipsAsmBackend(), llvm::MSP430TargetLowering::MSP430TargetLowering(), llvm::PassInfoMixin< PromotePass >::name(), llvm::GlobalValueSummaryInfo::NameOrGV::NameOrGV(), llvm::RuntimeDyld::MemoryManager::notifyObjectLoaded(), llvm::cl::SubCommand::operator bool(), llvm::MCSymbol::operator new(), llvm::CmpInst::operator new(), llvm::orc::DynamicLibrarySearchGenerator::operator()(), llvm::orc::ReexportsGenerator::operator()(), llvm::TargetRegistry::iterator::operator->(), llvm::symbolize::DIPrinter::operator<<(), llvm::sys::fs::operator|=(), optimizeCall(), llvm::ms_demangle::DynamicStructorIdentifierNode::output(), llvm::ms_demangle::NamedIdentifierNode::output(), llvm::ms_demangle::LiteralOperatorIdentifierNode::output(), llvm::ms_demangle::SymbolNode::output(), llvm::ms_demangle::SpecialTableSymbolNode::output(), llvm::ms_demangle::LocalStaticGuardVariableNode::output(), llvm::ms_demangle::VariableSymbolNode::output(), llvm::ms_demangle::FunctionSymbolNode::output(), llvm::DWARFDebugLine::LineTable::parse(), llvm::itanium_demangle::parse_discriminator(), llvm::PassBuilder::parseAAPipeline(), llvm::itanium_demangle::AbstractManglingParser< ManglingParser< Alloc >, Alloc >::parseClassEnumType(), llvm::itanium_demangle::AbstractManglingParser< ManglingParser< Alloc >, Alloc >::parseEncoding(), llvm::AMDGPUMangledLibFunc::parseFuncName(), parseHexOcta(), parseOptionalLinkageAux(), parseSectionFlags(), llvm::itanium_demangle::AbstractManglingParser< ManglingParser< Alloc >, Alloc >::parseSourceName(), llvm::itanium_demangle::AbstractManglingParser< ManglingParser< Alloc >, Alloc >::parseSpecialName(), llvm::ms_demangle::Demangler::parseTagUniqueName(), parseV2DirFileTables(), llvm::orc::PartitioningIRMaterializationUnit::PartitioningIRMaterializationUnit(), llvm::CallBase::populateBundleOperandInfos(), llvm::InstrProfReaderItaniumRemapper< HashTableImpl >::populateRemappings(), llvm::TimeRecord::print(), llvm::DWARFExpression::Operation::print(), llvm::AccelTableBase::HashData::print(), llvm::MachineOperand::print(), llvm::GCOVFunction::print(), llvm::MCSymbol::print(), llvm::ARMInstPrinter::printBankedRegOperand(), llvm::AArch64InstPrinter::printBarrierOption(), printBSDMemberHeader(), PrintCFIEscape(), printFrameIndex(), llvm::itanium_demangle::NameType::printLeft(), llvm::printLLVMNameWithoutPrefix(), printMCExpr(), printName(), printNodeDOT(), llvm::printReg(), llvm::object::ObjectFile::printSymbolName(), llvm::AArch64InstPrinter::printSysAlias(), llvm::MachineOperand::printTargetFlags(), ProfileDagInit(), PushArgMD(), QualifiedNameOfImplicitName(), llvm::SymbolRemappingReader::read(), llvm::sampleprof::SampleProfileReaderCompactBinary::read(), llvm::BitstreamCursor::ReadBlockInfoBlock(), llvm::GCOVFunction::readGCDA(), llvm::GCOVFunction::readGCNO(), llvm::sampleprof::SampleProfileReaderGCC::readOneFunctionProfile(), llvm::readPGOFuncNameStrings(), llvm::object::readStringOrId(), readTriple(), llvm::Function::recalculateIntrinsicID(), RefineErrorLoc(), llvm::PassBuilder::registerParseTopLevelPipelineCallback(), llvm::TargetRegistry::RegisterTarget(), llvm::LoopInfoWrapperPass::releaseMemory(), llvm::Intrinsic::remangleIntrinsicFunction(), llvm::orc::RemoteObjectServerLayer< BaseLayerT, RPCEndpoint >::RemoteObjectServerLayer(), llvm::Record::removeValue(), llvm::MCContext::renameELFSection(), llvm::MCAsmBackend::reset(), llvm::RuntimeDyldImpl::resolveExternalSymbols(), resolveFwdRef(), RetagMask(), rewriteComdat(), llvm::orc::rpc::detail::RPCEndpointBase< SingleThreadedRPCEndpoint< ChannelT, FunctionIdT, SequenceNumberT >, ChannelT, FunctionIdT, SequenceNumberT >::RPCEndpointBase(), llvm::orc::CtorDtorRunner::run(), llvm::WholeProgramDevirtPass::run(), llvm::DOTGraphTraitsViewer< AnalysisT, IsSimple, GraphT, AnalysisGraphTraitsT >::runOnFunction(), llvm::DOTGraphTraitsPrinter< AnalysisT, IsSimple, GraphT, AnalysisGraphTraitsT >::runOnFunction(), llvm::DOTGraphTraitsModuleViewer< AnalysisT, IsSimple, GraphT, AnalysisGraphTraitsT >::runOnModule(), llvm::DOTGraphTraitsModulePrinter< AnalysisT, IsSimple, GraphT, AnalysisGraphTraitsT >::runOnModule(), llvm::orc::ExecutionSession::runSessionLocked(), llvm::MCJIT::runStaticConstructorsDestructors(), llvm::ExecutionEngine::runStaticConstructorsDestructors(), llvm::orc::LegacyLocalCXXRuntimeOverrides::searchOverrides(), selectELFSectionForGlobal(), llvm::TargetLoweringObjectFileCOFF::SelectSectionForGlobal(), selectWasmSectionForGlobal(), llvm::TargetLibraryInfoImpl::setAvailableWithName(), llvm::MachinePassRegistry< FunctionPassCtor >::setDefault(), llvm::MCTargetAsmParser::SetFrameRegister(), llvm::orc::JITDylib::setGenerator(), llvm::orc::GlobalMappingLayer< BaseLayerT >::setGlobalMapping(), llvm::MCSymbolWasm::setImportModule(), llvm::MCSymbolWasm::setImportName(), llvm::TargetLoweringBase::setLibcallName(), llvm::AMDGPULibFuncImpl::setName(), llvm::sampleprof::FunctionSamples::setName(), llvm::pdb::DbiModuleDescriptorBuilder::setObjFileName(), llvm::GlobalValueSummary::setOriginalName(), llvm::MipsTargetStreamer::setPic(), llvm::MipsTargetELFStreamer::setPic(), llvm::LoopVectorizeHints::setPotentiallyUnsafe(), llvm::orc::OrcMCJITReplacement::setProcessAllSections(), llvm::MachineRegisterInfo::setRegClassOrRegBank(), setRequiredFeatureString(), llvm::Module::setSourceFileName(), llvm::MIRParserImpl::setupRegisterInfo(), llvm::MCContext::setUseNamesOnTempLabels(), shouldAlwaysEmitCompleteClassType(), shouldBeSls(), shouldEmitUdt(), llvm::HexagonTargetObjectFile::shouldPutJumpTableInFunctionSection(), smallData(), splitAround(), llvm::DISubprogram::splitFlags(), llvm::Function::stealArgumentListFrom(), llvm::stripNonLineTableDebugInfo(), synthesizeNamedIdentifier(), llvm::TargetMachine::targetSchedulesPostRAScheduling(), toString(), translateIntrinsicFunctionCode(), llvm::AArch64ExternalSymbolizer::tryAddingSymbolicOperand(), llvm::MCExternalSymbolizer::tryAddingSymbolicOperand(), llvm::pdb::TpiStream::typeCollection(), unifyReturnBlockSet(), unpackLoadToAggregate(), llvm::DIEHash::update(), llvm::ExecutionEngine::updateGlobalMapping(), upgradeDLLImportExportLinkage(), llvm::UpgradeIntrinsicCall(), UpgradeIntrinsicFunction1(), llvm::AMDGPULibCalls::useNative(), llvm::LoopVectorizeHints::vectorizeAnalysisPassName(), llvm::sroa::AllocaSliceRewriter::visit(), llvm::codeview::TypeRecordMapping::visitMemberEnd(), llvm::sampleprof::SampleProfileWriterCompactBinary::write(), llvm::WriteGraph(), llvm::LTOCodeGenerator::writeMergedModules(), writeSymbolTable(), llvm::XCoreTargetStreamer::XCoreTargetStreamer(), llvm::IRBuilderBase::FastMathFlagGuard::~FastMathFlagGuard(), llvm::symbolize::LLVMSymbolizer::~LLVMSymbolizer(), llvm::SSAUpdaterBulk::~SSAUpdaterBulk(), llvm::codeview::TypeSymbolEmitter::~TypeSymbolEmitter(), and llvm::ValueSymbolTable::~ValueSymbolTable().

◆ simplifylib

amdgpu simplifylib

Definition at line 212 of file AMDGPULibCalls.cpp.

◆ tbl_acos

const TableEntry tbl_acos[]
static
Initial value:
= {
{MATH_PI/2.0, 0.0},
{MATH_PI/2.0, -0.0},
{0.0, 1.0},
{MATH_PI, -1.0}
}
#define MATH_PI

Definition at line 246 of file AMDGPULibCalls.cpp.

◆ tbl_acosh

const TableEntry tbl_acosh[]
static
Initial value:
= {
{0.0, 1.0}
}

Definition at line 252 of file AMDGPULibCalls.cpp.

◆ tbl_acospi

const TableEntry tbl_acospi[]
static
Initial value:
= {
{0.5, 0.0},
{0.5, -0.0},
{0.0, 1.0},
{1.0, -1.0}
}

Definition at line 255 of file AMDGPULibCalls.cpp.

◆ tbl_asin

const TableEntry tbl_asin[]
static
Initial value:
= {
{0.0, 0.0},
{-0.0, -0.0},
{MATH_PI/2.0, 1.0},
{-MATH_PI/2.0, -1.0}
}
#define MATH_PI

Definition at line 261 of file AMDGPULibCalls.cpp.

◆ tbl_asinh

const TableEntry tbl_asinh[]
static
Initial value:
= {
{0.0, 0.0},
{-0.0, -0.0}
}

Definition at line 267 of file AMDGPULibCalls.cpp.

◆ tbl_asinpi

const TableEntry tbl_asinpi[]
static
Initial value:
= {
{0.0, 0.0},
{-0.0, -0.0},
{0.5, 1.0},
{-0.5, -1.0}
}

Definition at line 271 of file AMDGPULibCalls.cpp.

◆ tbl_atan

const TableEntry tbl_atan[]
static
Initial value:
= {
{0.0, 0.0},
{-0.0, -0.0},
{MATH_PI/4.0, 1.0},
{-MATH_PI/4.0, -1.0}
}
#define MATH_PI

Definition at line 277 of file AMDGPULibCalls.cpp.

◆ tbl_atanh

const TableEntry tbl_atanh[]
static
Initial value:
= {
{0.0, 0.0},
{-0.0, -0.0}
}

Definition at line 283 of file AMDGPULibCalls.cpp.

◆ tbl_atanpi

const TableEntry tbl_atanpi[]
static
Initial value:
= {
{0.0, 0.0},
{-0.0, -0.0},
{0.25, 1.0},
{-0.25, -1.0}
}

Definition at line 287 of file AMDGPULibCalls.cpp.

◆ tbl_cbrt

const TableEntry tbl_cbrt[]
static
Initial value:
= {
{0.0, 0.0},
{-0.0, -0.0},
{1.0, 1.0},
{-1.0, -1.0},
}

Definition at line 293 of file AMDGPULibCalls.cpp.

◆ tbl_cos

const TableEntry tbl_cos[]
static
Initial value:
= {
{1.0, 0.0},
{1.0, -0.0}
}

Definition at line 299 of file AMDGPULibCalls.cpp.

◆ tbl_cosh

const TableEntry tbl_cosh[]
static
Initial value:
= {
{1.0, 0.0},
{1.0, -0.0}
}

Definition at line 303 of file AMDGPULibCalls.cpp.

◆ tbl_cospi

const TableEntry tbl_cospi[]
static
Initial value:
= {
{1.0, 0.0},
{1.0, -0.0}
}

Definition at line 307 of file AMDGPULibCalls.cpp.

◆ tbl_erf

const TableEntry tbl_erf[]
static
Initial value:
= {
{0.0, 0.0},
{-0.0, -0.0}
}

Definition at line 315 of file AMDGPULibCalls.cpp.

◆ tbl_erfc

const TableEntry tbl_erfc[]
static
Initial value:
= {
{1.0, 0.0},
{1.0, -0.0}
}

Definition at line 311 of file AMDGPULibCalls.cpp.

◆ tbl_exp

const TableEntry tbl_exp[]
static
Initial value:
= {
{1.0, 0.0},
{1.0, -0.0},
{MATH_E, 1.0}
}
#define MATH_E

Definition at line 319 of file AMDGPULibCalls.cpp.

◆ tbl_exp10

const TableEntry tbl_exp10[]
static
Initial value:
= {
{1.0, 0.0},
{1.0, -0.0},
{10.0, 1.0}
}

Definition at line 329 of file AMDGPULibCalls.cpp.

◆ tbl_exp2

const TableEntry tbl_exp2[]
static
Initial value:
= {
{1.0, 0.0},
{1.0, -0.0},
{2.0, 1.0}
}

Definition at line 324 of file AMDGPULibCalls.cpp.

◆ tbl_expm1

const TableEntry tbl_expm1[]
static
Initial value:
= {
{0.0, 0.0},
{-0.0, -0.0}
}

Definition at line 334 of file AMDGPULibCalls.cpp.

◆ tbl_log

const TableEntry tbl_log[]
static
Initial value:
= {
{0.0, 1.0},
{1.0, MATH_E}
}
#define MATH_E

Definition at line 338 of file AMDGPULibCalls.cpp.

◆ tbl_log10

const TableEntry tbl_log10[]
static
Initial value:
= {
{0.0, 1.0},
{1.0, 10.0}
}

Definition at line 346 of file AMDGPULibCalls.cpp.

◆ tbl_log2

const TableEntry tbl_log2[]
static
Initial value:
= {
{0.0, 1.0},
{1.0, 2.0}
}

Definition at line 342 of file AMDGPULibCalls.cpp.

◆ tbl_rsqrt

const TableEntry tbl_rsqrt[]
static
Initial value:
= {
{1.0, 1.0},
{1.0/MATH_SQRT2, 2.0}
}
#define MATH_SQRT2

Definition at line 350 of file AMDGPULibCalls.cpp.

◆ tbl_sin

const TableEntry tbl_sin[]
static
Initial value:
= {
{0.0, 0.0},
{-0.0, -0.0}
}

Definition at line 354 of file AMDGPULibCalls.cpp.

◆ tbl_sinh

const TableEntry tbl_sinh[]
static
Initial value:
= {
{0.0, 0.0},
{-0.0, -0.0}
}

Definition at line 358 of file AMDGPULibCalls.cpp.

◆ tbl_sinpi

const TableEntry tbl_sinpi[]
static
Initial value:
= {
{0.0, 0.0},
{-0.0, -0.0}
}

Definition at line 362 of file AMDGPULibCalls.cpp.

◆ tbl_sqrt

const TableEntry tbl_sqrt[]
static
Initial value:
= {
{0.0, 0.0},
{1.0, 1.0},
{MATH_SQRT2, 2.0}
}
#define MATH_SQRT2

Definition at line 366 of file AMDGPULibCalls.cpp.

◆ tbl_tan

const TableEntry tbl_tan[]
static
Initial value:
= {
{0.0, 0.0},
{-0.0, -0.0}
}

Definition at line 371 of file AMDGPULibCalls.cpp.

◆ tbl_tanh

const TableEntry tbl_tanh[]
static
Initial value:
= {
{0.0, 0.0},
{-0.0, -0.0}
}

Definition at line 375 of file AMDGPULibCalls.cpp.

◆ tbl_tanpi

const TableEntry tbl_tanpi[]
static
Initial value:
= {
{0.0, 0.0},
{-0.0, -0.0}
}

Definition at line 379 of file AMDGPULibCalls.cpp.

◆ tbl_tgamma

const TableEntry tbl_tgamma[]
static
Initial value:
= {
{1.0, 1.0},
{1.0, 2.0},
{2.0, 3.0},
{6.0, 4.0}
}

Definition at line 383 of file AMDGPULibCalls.cpp.

◆ UseNative

cl::list<std::string> UseNative("amdgpu-use-native", cl::desc("Comma separated list of functions to replace with native, or all"), cl::CommaSeparated, cl::ValueOptional, cl::Hidden)
static