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

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

#include "AMDGPU.h"
#include "AMDGPULibFunc.h"
#include "AMDGPUSubtarget.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/Intrinsics.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/MathExtras.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetMachine.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   numbers::pi
 
#define MATH_E   numbers::e
 
#define MATH_SQRT2   numbers::sqrt2
 
#define MATH_SQRT1_2   numbers::inv_sqrt2
 

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 FunctionCallee Callee
 
amdgpu Simplify well known AMD library false FunctionCallee ValueArg
 
amdgpu Simplify well known AMD library false FunctionCallee 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 14 of file AMDGPULibCalls.cpp.

◆ MATH_E

#define MATH_E   numbers::e

Definition at line 53 of file AMDGPULibCalls.cpp.

◆ MATH_PI

#define MATH_PI   numbers::pi

Definition at line 52 of file AMDGPULibCalls.cpp.

◆ MATH_SQRT1_2

#define MATH_SQRT1_2   numbers::inv_sqrt2

Definition at line 55 of file AMDGPULibCalls.cpp.

◆ MATH_SQRT2

#define MATH_SQRT2   numbers::sqrt2

Definition at line 54 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 FunctionCallee Value* Arg

Definition at line 223 of file AMDGPULibCalls.cpp.

Referenced by llvm::AAEvaluator::AAEvaluator(), llvm::AAResults::AAResults(), llvm::opt::Option::accept(), llvm::AliasSetTracker::add(), AddAliasScopeMetadata(), AddAlignmentAssumptions(), addArgumentReturnedAttrs(), llvm::AnalysisUsage::addUsedIfAvailable(), addVCallToSet(), llvm::SITargetLowering::allocateSpecialInputVGPRs(), alwaysAvailable(), llvm::analyzeArguments(), llvm::CCState::AnalyzeArgumentsSecondPass(), llvm::AMDGPUTargetLowering::analyzeFormalArgumentsCompute(), AnalyzeReturnValues(), 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(), llvm::computeExpressionSize(), computeKnownBitsFromAssume(), llvm::computeLTOCacheKey(), ComputePostOrders(), llvm::DwarfUnit::constructSubprogramArguments(), convertArgumentInfo(), llvm::createAMDGPUPrintfRuntimeBinding(), createCallInst(), createCast(), llvm::createDeadArgHackingPass(), llvm::AMDGPUTargetLowering::CreateLiveInRegisterRaw(), llvm::createObjCARCOptPass(), createPowWithIntegerExponent(), llvm::objcarc::Depends(), despeculateCountZeros(), llvm::dlltoolDriverMain(), doList(), llvm::DominatorTreeBase< BasicBlock, IsPostDom >::DominatorTreeBase(), eliminateSwiftError(), llvm::remarks::BitstreamRemarkSerializerHelper::emitRemarkBlock(), llvm::LazyValueInfo::enableDT(), EnsureStackAlignment(), findArgumentCopyElisionCandidates(), FindPredecessorRetainWithSafePath(), FindSingleUseIdentifiedObject(), FixedPointIntrinsicToOpcode(), llvm::VarDefInit::Fold(), llvm::FoldingSet< llvm::DIEAbbrev >::FoldingSet(), llvm::FoldingSetBase::FoldingSetBase(), llvm::FoldingSetImpl< llvm::DIEAbbrev >::FoldingSetImpl(), ForeachDagApply(), llvm::PPCTargetLowering::functionArgumentNeedsConsecutiveRegisters(), llvm::GlobalsAAResult::FunctionInfo::FunctionInfo(), genericValueTraversal(), llvm::DagInit::get(), llvm::DILocalVariable::getArg(), llvm::remarks::Remark::getArgsAsMsg(), llvm::IRPosition::getAssociatedArgument(), llvm::VarDefInit::getAsString(), llvm::IRPosition::getAttrs(), getComparePred(), llvm::CoroSuspendInst::getCoroSave(), llvm::IRPosition::getCtxI(), 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(), llvm::X86TargetLowering::getNegatedExpression(), getNextIntArgReg(), getOffsetFromIndices(), llvm::AMDGPU::getOperandSize(), getOutputPath(), getParentPad(), llvm::SIMachineFunctionInfo::getPreloadedReg(), llvm::CoroIdInst::getPromise(), llvm::Pass::getResolver(), getRetComponentType(), GetRMWLibcall(), getSearchPaths(), llvm::ARM_AM::getSOImmVal(), getSuccPad(), llvm::ARCTargetLowering::getTargetNodeName(), llvm::CallLowering::getTLI(), getUnderlyingArgRegs(), getUniformBase(), llvm::GlobalsAAResult::GlobalsAAResult(), llvm::GPUDivergenceAnalysis::GPUDivergenceAnalysis(), HandleByValArgument(), handlePhiDef(), hasAnyNonFlatUseOfReg(), llvm::CallSiteBase< Function, BasicBlock, Value, User, Use, Instruction, CallInst, InvokeInst, CallBrInst, User::op_iterator >::hasArgument(), llvm::CallBase::hasArgument(), llvm::ARMTargetLowering::hasStandaloneRem(), llvm::HexagonEvaluator::HexagonEvaluator(), llvm::Attributor::identifyDefaultAbstractAttributes(), INITIALIZE_PASS(), initSlots2Values(), llvm::yaml::CustomMappingTraits< std::map< std::vector< uint64_t >, WholeProgramDevirtResolution::ByArg > >::inputOne(), insertIfNamed(), insertParsePoints(), insertSinCosCall(), insertSpills(), llvm::SIInstrInfo::insertWaitStates(), instrumentMaskedLoadOrStore(), llvm::remarks::StringTable::internalize(), llvm::PreservedAnalyses::intersect(), isBLACompatibleAddress(), isDynamicConstant(), llvm::DenseMapInfo< VTableSlotSummary >::isEqual(), isIntExtFree(), isKnownNonNullFromDominatingCondition(), isMulPowOf2(), llvm::detail::IEEEFloat::isNegZero(), isOrdered(), llvm::DILocalVariable::isParameter(), llvm::objcarc::IsPotentialRetainableObjPtr(), isPrefixedOrGrouping(), isReassociableOp(), llvm::APInt::isSameValue(), isSDKVersionToken(), isSExtLoad(), isSortedByValueNo(), llvm::NVPTXTTIImpl::isSourceOfDivergence(), isSupportedType(), llvm::Value::isSwiftError(), isSwiftError(), llvm::SITargetLowering::isTypeDesirableForOp(), llvm::AMDGPUInstrInfo::isUniformMMO(), llvm::LazyValueInfo::LazyValueInfo(), llvm::AMDGPULegalizerInfo::legalizeImplicitArgPtr(), llvm::AMDGPULegalizerInfo::legalizePreloadedArgIntrin(), LLVMGetNextParam(), LLVMGetPreviousParam(), LLVMSetParamAlignment(), LookupNearestOption(), llvm::LoopInfoBase< BasicBlock, Loop >::LoopInfoBase(), llvm::ARMCallLowering::lowerCall(), llvm::MipsCallLowering::lowerCall(), llvm::HexagonTargetLowering::LowerCall(), llvm::SITargetLowering::LowerCall(), llvm::CallLowering::lowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), LowerCallResult(), llvm::FastISel::lowerCallTo(), llvm::X86CallLowering::lowerFormalArguments(), llvm::ARMCallLowering::lowerFormalArguments(), llvm::AArch64CallLowering::lowerFormalArguments(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::MipsCallLowering::lowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::AMDGPUCallLowering::lowerFormalArgumentsKernel(), LowerInterruptReturn(), llvm::BPFTargetLowering::LowerOperation(), llvm::ARMCallLowering::lowerReturn(), llvm::SITargetLowering::LowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), lowerStatepointMetaArgs(), LowerVectorINT_TO_FP(), makeStatepointExplicitImpl(), llvm::coro::LowererBase::makeSubFnCall(), markTails(), llvm::opt::Option::matches(), 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(), AbstractManglingParser< ManglingParser< Alloc >, Alloc >::parseEncoding(), ParseFunctionArgs(), llvm::parseFunctionArgs(), llvm::GCNTargetMachine::parseMachineFunctionInfo(), 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 >::parser(), llvm::cl::parser< unsigned long long >::parser(), llvm::cl::parser< double >::parser(), llvm::cl::parser< float >::parser(), llvm::remarks::BitstreamRemarkParser::parseRemark(), llvm::remarks::YAMLRemarkParser::parseRemark(), AbstractManglingParser< ManglingParser< Alloc >, Alloc >::parseTemplateArg(), AbstractManglingParser< ManglingParser< Alloc >, Alloc >::parseTemplateArgs(), llvm::R600TargetLowering::PerformDAGCombine(), llvm::AMDGPUAAResult::pointsToConstantMemory(), populateExternalRelations(), PrepareCall(), llvm::LegacyDivergenceAnalysis::print(), processDbgDeclares(), ProfileDagInit(), llvm::promoteCall(), PropagateConstantsIntoArguments(), PushArgMD(), regionReader(), llvm::R600TargetLowering::ReplaceNodeResults(), replaceSwiftErrorOps(), llvm::VarDefInit::resolveReferences(), llvm::DagInit::resolveReferences(), llvm::LoopAnalysisManagerFunctionProxy::Result<>::Result(), llvm::InnerAnalysisManagerProxy< AnalysisManagerT, IRUnitT, ExtraArgTs >::Result::Result(), llvm::APIntOps::RoundFloatToAPInt(), 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(), llvm::SimplifyCall(), simplifyInvariantGroupIntrinsic(), simplifyX86movmsk(), llvm::DISubprogram::splitFlags(), StackMallocSizeClass(), StoreTailCallArgumentsToStackSlot(), toRemarkLocation(), truncateToSize(), tryToElideArgumentCopy(), unpackF64OnRV32DSoftABI(), llvm::updateIndexWPDForExports(), llvm::UpgradeARCRuntime(), llvm::IRPosition::value(), llvm::LoopVectorizeHints::vectorizeAnalysisPassName(), llvm::ObjectSizeOffsetVisitor::visitCallSite(), and llvm::codeview::TypeDumpVisitor::visitMemberEnd().

◆ Callee

amdgpu Simplify well known AMD library false FunctionCallee Callee

Definition at line 223 of file AMDGPULibCalls.cpp.

Referenced by llvm::AArch64TTIImpl::AArch64TTIImpl(), llvm::AbstractCallSite::AbstractCallSite(), addEdge(), addNoRecurseAttrs(), addStackMapLiveVars(), allCallersPassValidPointerForArgument(), llvm::analyzeArguments(), analyzeLoopUnrollCost(), AnalyzeReturnValues(), annotateAnyAllocSite(), annotateNonNullAndDereferenceable(), areFunctionArgsABICompatible(), llvm::ARMTTIImpl::ARMTTIImpl(), llvm::AVRDAGToDAGISel::select< AVRISD::CALL >(), CalculateTailCallSPDiff(), callingConvSupported(), CC_Lanai32_VarArg(), llvm::ARMTargetLowering::CCAssignFnForReturn(), computeBytesPoppedByCalleeForSRet(), computeFunctionSummary(), llvm::createAlwaysInlinerLegacyPass(), llvm::createAMDGPUFunctionInliningPass(), createPowWithIntegerExponent(), DeleteBasicBlock(), doCallSiteSplitting(), emitBinaryFloatFnCallHelper(), emitDirectiveRelocJalr(), EmitHiLo(), llvm::MipsSETargetLowering::EmitInstrWithCustomInserter(), emitLibCall(), emitSignedInt64(), emitUnaryFloatFnCallHelper(), llvm::Evaluator::EvaluateBlock(), llvm::sampleprof::FunctionSamples::findInlinedFunctions(), findUses(), FixedPointIntrinsicToOpcode(), llvm::PPCTargetLowering::functionArgumentNeedsConsecutiveRegisters(), llvm::FunctionCallee::FunctionCallee(), llvm::StackSafetyInfo::FunctionInfo::FunctionInfo(), llvm::MipsTargetLowering::getAddrGPRel(), getAllocationData(), getAllocationSize(), getCalledFunction(), llvm::FunctionCallee::getCallee(), getComparePred(), llvm::XCoreTargetLowering::getExceptionSelectorRegister(), llvm::getFunctionName(), llvm::X86TargetLowering::getMaxSupportedInterleaveFactor(), getMemCmpLoad(), getMOVL(), getOffsetFromIndices(), llvm::AArch64InstrInfo::getOutliningType(), llvm::NVPTXTargetLowering::getPrototype(), llvm::MSP430TargetLowering::getScalarShiftAmountTy(), getSignature(), llvm::ARCTargetLowering::getTargetNodeName(), llvm::GCNTTIImpl::getVectorSplitCost(), hasAnyNonFlatUseOfReg(), hasProfileData(), llvm::ARMTargetLowering::hasStandaloneRem(), INITIALIZE_PASS(), InlineCallIfPossible(), insertSinCosCall(), InstrBreaksNoFree(), InstrBreaksNonThrowing(), llvm::NVPTXTargetLowering::isCheapToSpeculateCtlz(), llvm::CodeExtractor::isEligible(), isEmptyFunction(), llvm::isFreeCall(), IsInterestingCmp(), isReturnNonNull(), llvm::isSafeToSpeculativelyExecute(), llvm::MipsSETargetLowering::isShuffleMaskLegal(), isUnconditionalBranch(), isWrapperOnlyCall(), llvm::HexagonTargetLowering::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(), markAliveBlocks(), MarkBlocksLiveIn(), MatchingStackOffset(), mayTailCallThisCC(), llvm::FunctionCallee::operator bool(), llvm::pdb::operator<<(), AbstractManglingParser< ManglingParser< Alloc >, Alloc >::parseExpr(), parseTypeIdSummaryRecord(), llvm::CallGraphNode::removeCallEdge(), llvm::InlineFunctionInfo::reset(), llvm::AAEvaluator::run(), llvm::InlinerPass::run(), runImpl(), llvm::FastISel::selectStackmap(), shouldInline(), shouldKeepInEntry(), llvm::SimplifyCall(), simplifySuspendPoint(), llvm::SubsumingPositionIterator::SubsumingPositionIterator(), llvm::AArch64TargetLowering::supportSwiftError(), unpackF64OnRV32DSoftABI(), llvm::coro::updateCallGraph(), UpdateCallGraphAfterInlining(), llvm::SelectionDAGBuilder::visitBitTestCase(), llvm::sampleprof::SampleProfileWriterBinary::writeBody(), and llvm::X86TTIImpl::X86TTIImpl().

◆ calls

amdgpu Simplify well known AMD library calls

Definition at line 215 of file AMDGPULibCalls.cpp.

◆ EnablePreLink

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

◆ false

amdgpu Simplify well known AMD library false

Definition at line 215 of file AMDGPULibCalls.cpp.

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

◆ Name

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

Definition at line 224 of file AMDGPULibCalls.cpp.

Referenced by llvm::AccelTable< llvm::DWARF5AccelTableData >::AccelTable(), AddAliasScopeMetadata(), llvm::ExecutionEngine::addGlobalMapping(), llvm::DwarfUnit::addLoclistsBase(), llvm::ModuleSymbolTable::addModule(), llvm::LTOCodeGenerator::addMustPreserveSymbol(), llvm::AccelTable< llvm::DWARF5AccelTableData >::addName(), addNegOperand(), llvm::SetTheory::addOperator(), llvm::InstrProfWriter::addRecord(), llvm::DIEHash::addSLEB128(), llvm::MachO::InterfaceFile::addSymbol(), adjustFixupValue(), allOpsDefaultValue(), llvm::AMDGPUInstPrinter::AMDGPUInstPrinter(), llvm::AMDGPUMangledLibFunc::AMDGPUMangledLibFunc(), llvm::AMDGPUUnmangledLibFunc::AMDGPUUnmangledLibFunc(), llvm::Annotations::Annotations(), 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::canConstantFoldCallTo(), canThrow(), checkParametrizedPassName(), llvm::object::TapiFile::classof(), llvm::AVRMCExpr::classof(), llvm::AMDGPUMangledLibFunc::classof(), llvm::yaml::AliasNode::classof(), llvm::MachineOperand::clearParent(), llvm::Annotations::code(), collectFunctionUsers(), llvm::AMDGPU::Waitcnt::combined(), llvm::BTFTypeFunc::completeType(), llvm::BTFKindVar::completeType(), llvm::BTFKindDataSec::completeType(), llvm::ComputeASanStackFrameDescription(), computeIndexValue(), llvm::RuntimeDyldImpl::computeTotalAllocSize(), llvm::ConstantFoldCall(), llvm::DwarfUnit::constructContainingTypeDIEs(), llvm::DwarfCompileUnit::constructImportedEntityDIE(), llvm::DwarfUnit::constructTypeDIE(), CopyStringRef(), llvm::coverage::CoverageFilenamesSectionWriter::CoverageFilenamesSectionWriter(), llvm::symbolize::SymbolizableObjectFile::create(), llvm::GlobalAlias::create(), llvm::BasicBlock::Create(), llvm::UnaryOperator::Create(), llvm::BinaryOperator::Create(), llvm::MCSymbolRefExpr::create(), llvm::InstrProfSymtab::create(), llvm::CallInst::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(), llvm::IRBuilder< TargetFolder >::CreateCallBr(), 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::IRBuilder< TargetFolder >::CreateConstrainedFPBinOp(), llvm::IRBuilder< TargetFolder >::CreateConstrainedFPCast(), 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 >::CreateFNegFMF(), 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::createMemLibcall(), 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(), createPowWithIntegerExponent(), 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 >::CreateUnOp(), llvm::IRBuilder< TargetFolder >::CreateUnreachable(), llvm::createX86RetpolineThunksPass(), llvm::IRBuilder< TargetFolder >::CreateZExtOrBitCast(), llvm::MachineFunction::deallocateOperandArray(), llvm::coro::declaresIntrinsics(), llvm::DWARFContext::defaultErrorHandler(), llvm::FileCheckPatternContext::defineCmdlineVariables(), llvm::orc::MaterializationResponsibility::delegate(), deleteDeadInstruction(), llvm::Value::deleteValue(), llvm::symbolize::LLVMSymbolizer::DemangleName(), llvm::yaml::MappingTraits< T >::NormalizedTBD::denormalize(), llvm::AsmPrinter::doFinalization(), llvm::FunctionImportGlobalProcessing::doImportAsDefinition(), llvm::DominatorTree::DominatorTree(), llvm::GlobalValue::dropLLVMManglingEscape(), llvm::DWARFTypeUnit::dump(), llvm::MachO::Symbol::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(), emitBinaryFloatFnCallHelper(), llvm::RuntimeDyldImpl::emitCommonSymbols(), emitDebugLabelComment(), emitDebugValueComment(), llvm::WebAssemblyAsmPrinter::EmitEndOfAsmFile(), llvm::AsmPrinter::emitGlobalGOTEquivs(), llvm::Mips16TargetLowering::EmitInstrWithCustomInserter(), llvm::WebAssemblyAsmPrinter::EmitProducerInfo(), llvm::MCDwarfLineStr::emitRef(), llvm::RuntimeDyldImpl::emitSection(), emitSignedInt64(), llvm::WebAssemblyAsmPrinter::EmitTargetFeatures(), 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::RuntimeDyldMachOI386::finalizeSection(), llvm::RuntimeDyldMachOARM::finalizeSection(), llvm::pdb::PDBSymbol::findAllChildren(), findBasePointer(), llvm::Mips16HardFloatInfo::findFuncSignature(), llvm::sampleprof::FunctionSamples::findInlinedFunctions(), llvm::MCJIT::findModuleForSymbol(), llvm::findOptionMDForLoop(), llvm::jitlink::LinkGraph::findSectionByName(), llvm::orc::LambdaResolver< DylibLookupFtorT, ExternalLookupFtorT >::findSymbol(), llvm::jitlink::MachOLinkGraphBuilder::findSymbolByAddress(), llvm::orc::LambdaResolver< DylibLookupFtorT, ExternalLookupFtorT >::findSymbolInLogicalDylib(), llvm::AMDGPUTargetELFStreamer::finish(), 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::MachO::getArchitectureFromName(), llvm::Triple::getArchTypeForLLVMName(), getArrayElements(), llvm::LTOModule::getAsmUndefinedRefs(), llvm::Attribute::getAsString(), NameType::getBaseName(), llvm::GlobalIndirectSymbol::getBaseObject(), getCOFFStaticStructorSection(), getComparePred(), llvm::MSP430MCInstLower::GetConstantPoolIndexSymbol(), llvm::LanaiMCInstLower::GetConstantPoolIndexSymbol(), llvm::BasicBlock::getContext(), llvm::LLParser::getContext(), llvm::getCopyDeclaration(), llvm::FileCheckPattern::getCount(), llvm::ARMAsmPrinter::GetCPISymbol(), llvm::ExecutionEngine::getDataLayout(), llvm::pdb::DIARawSymbol::getDiaSymbol(), llvm::orc::JITDylib::getExecutionSession(), llvm::TargetLoweringObjectFileCOFF::getExplicitSectionGlobal(), llvm::TargetLoweringObjectFileWasm::getExplicitSectionGlobal(), llvm::pdb::DbiModuleList::getFileName(), llvm::MipsAsmBackend::getFixupKind(), getFixupKindLog2Size(), getFixupKindNumBytes(), getFixupKindSize(), 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(), 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::orc::ExecutionSession::getJITDylibByName(), llvm::MachineFunction::getJTISymbol(), llvm::MSP430MCInstLower::GetJumpTableSymbol(), llvm::LanaiMCInstLower::GetJumpTableSymbol(), llvm::AVRMCExpr::getKindByName(), llvm::getLibcallSignature(), llvm::object::MachOObjectFile::getLibraryShortNameByIndex(), llvm::MCContext::getMachOSection(), llvm::DwarfCompileUnit::getMacroLabelBegin(), llvm::object::Archive::Child::getMemoryBufferRef(), getModifierVariantKind(), llvm::symbolize::SymbolizableObjectFile::getModulePreferredBase(), llvm::pdb::PDBFile::getMsfBuffer(), getName(), llvm::Comdat::getName(), llvm::object::ArchiveMemberHeader::getName(), llvm::MachinePassRegistryNode< FunctionPassCtor >::getName(), llvm::object::XCOFFSectionHeader32::getName(), llvm::MachO::Symbol::getName(), llvm::object::XCOFFSectionHeader64::getName(), llvm::orc::IRMaterializationUnit::getName(), llvm::SectionEntry::getName(), llvm::GCStrategy::getName(), llvm::FileCheckNumericVariable::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::orc::rpc::RPCTypeName< std::vector< T > >::getName(), llvm::irsymtab::Symbol::getName(), llvm::orc::rpc::RPCTypeName< std::set< T > >::getName(), llvm::BTFKindDataSec::getName(), llvm::orc::rpc::RPCTypeName< std::map< K, V > >::getName(), llvm::DependenceGraphInfo< NodeType >::getName(), llvm::codeview::MemberFuncIdRecord::getName(), llvm::DWARFDie::getName(), llvm::GCOVFunction::getName(), llvm::Target::getName(), llvm::MCRegisterInfo::getName(), llvm::jitlink::Symbol::getName(), llvm::orc::ReExportsMaterializationUnit::getName(), llvm::codeview::NestedTypeRecord::getName(), NameType::getName(), llvm::VPBlockBase::getName(), llvm::codeview::ArrayRecord::getName(), llvm::AMDGPUUnmangledLibFunc::getName(), llvm::codeview::TagRecord::getName(), llvm::sampleprof::FunctionSamples::getName(), llvm::yaml::AliasNode::getName(), llvm::LazyCallGraph::SCC::getName(), llvm::jitlink::Section::getName(), llvm::ReadyQueue::getName(), llvm::codeview::TypeServer2Record::getName(), llvm::codeview::FuncIdRecord::getName(), llvm::LazyCallGraph::RefSCC::getName(), llvm::jitlink::LinkGraph::getName(), llvm::codeview::OneMethodRecord::getName(), llvm::codeview::OverloadedMethodRecord::getName(), FunctionEncoding::getName(), llvm::codeview::DataMemberRecord::getName(), llvm::codeview::StaticDataMemberRecord::getName(), llvm::codeview::EnumeratorRecord::getName(), llvm::VPlan::getName(), llvm::NamedMDNode::getName(), llvm::Record::getName(), llvm::RecordVal::getNameInit(), llvm::Record::getNameInit(), llvm::sampleprof::FunctionSamples::getNameInModule(), llvm::object::ResourceEntryRef::getNameString(), llvm::Mangler::getNameWithPrefix(), getNameWithPrefixImpl(), llvm::jitlink::Section::getNextBlockOrdinal(), llvm::ScheduleDAGMI::getNextClusterSucc(), getNMDOps(), llvm::MCAsmInfo::getNonexecutableStackSection(), llvm::CallBase::getOperandBundle(), llvm::SDNode::getOperationName(), getOptionHelpName(), llvm::DwarfCompileUnit::getOrCreateCommonBlock(), 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(), getRegisterName(), getRelaxedOpcode(), llvm::object::ELFFile< ELFT >::getRelocationTypeName(), llvm::sampleprof::getRepInFormat(), llvm::MCSectionXCOFF::getSectionName(), llvm::object::COFFObjectFile::getSectionName(), llvm::DIBasicType::getSignedness(), llvm::DIVariable::getSizeInBits(), llvm::object::ArchiveMemberHeader::getSizeOf(), llvm::pdb::DbiStreamBuilder::getSourceFileNameIndex(), getStaticStructorSection(), llvm::orc::remote::OrcRemoteTargetClient::getSymbolAddress(), llvm::object::ELFObjectFile< ELFT >::getSymbolFlags(), GetSymbolFromOperand(), llvm::object::ELFObjectFile< ELFT >::getSymbolName(), llvm::orc::MaterializationResponsibility::getSymbols(), llvm::object::COFFObjectFile::getSymbolTableEntrySize(), getTLSGetOffset(), llvm::MachineRegisterInfo::getType(), llvm::getTypeName(), llvm::codeview::LazyRandomTypeCollection::getTypeName(), getTypeSize(), llvm::AMDGPUMangledLibFunc::getUnmangledName(), getVarName(), llvm::NVPTXAsmPrinter::getVirtualRegisterName(), llvm::GlobalsMetadata::GlobalsMetadata(), llvm::DWARFVerifier::handleDebugLine(), llvm::DwarfUnit::hasContent(), llvm::Value::hasName(), llvm::coverage::InstantiationGroup::hasName(), llvm::ARMAsmBackend::hasNOP(), hasVectorBeenPadded(), llvm::FunctionImporter::importFunctions(), incrementLoc(), inferDSOLocal(), llvm::SSAUpdater::Initialize(), INITIALIZE_PASS(), llvm::MIRParserImpl::initializeFrameInfo(), llvm::MCObjectFileInfo::InitMCObjectFileInfo(), initSlots2Values(), llvm::MCInst::insert(), llvm::IRBuilder< TargetFolder >::Insert(), insertSinCosCall(), instrumentMaskedLoadOrStore(), llvm::jitlink::MachOLinkGraphBuilder::isAltEntry(), llvm::AsmPrinter::isBlockOnlyReachableByFallthrough(), isCGSCCPassName(), llvm::orc::AsynchronousSymbolQuery::isComplete(), llvm::DIExpression::isConstant(), llvm::IsCPSRDead< MCInst >(), llvm::ItaniumPartialDemangler::isCtorOrDtor(), llvm::DenseMapInfo< VTableSlotSummary >::isEqual(), isFuncOrArgAttr(), isFunctionPassName(), isImplicitOperandIn(), isInPartition(), isInSymtab(), llvm::Function::isIntrinsic(), isKnownTypeIdMember(), isLoopPassName(), llvm::TargetTransformInfoImplBase::isLoweredToCall(), isModulePassName(), llvm::objcarc::IsObjCIdentifiedObject(), isObjectStart(), isOperator(), llvm::MCObjectFileInfo::isPositionIndependent(), isPrefixedOrGrouping(), llvm::Record::isSubClassOf(), isValidEncoding(), isVariableIndexable(), isWeak(), llvm::MachObjectWriter::isX86_64(), llvm::orc::JITDylib::legacyLookup(), llvm::LinkingSymbolResolver::LinkingSymbolResolver(), llvm::llvm_is_multithreaded(), LLVMAddAlias(), LLVMBuildLoad(), LLVMDIBuilderCreateAutoVariable(), LLVMDIBuilderCreateBasicType(), LLVMDIBuilderCreateBitFieldMemberType(), LLVMDIBuilderCreateClassType(), LLVMDIBuilderCreateEnumerationType(), LLVMDIBuilderCreateEnumerator(), LLVMDIBuilderCreateForwardDecl(), LLVMDIBuilderCreateFunction(), LLVMDIBuilderCreateGlobalVariableExpression(), LLVMDIBuilderCreateImportedDeclaration(), LLVMDIBuilderCreateMacro(), LLVMDIBuilderCreateMemberType(), LLVMDIBuilderCreateObjCIVar(), LLVMDIBuilderCreateObjCProperty(), LLVMDIBuilderCreateParameterVariable(), LLVMDIBuilderCreatePointerType(), LLVMDIBuilderCreateReplaceableCompositeType(), LLVMDIBuilderCreateStaticMemberType(), LLVMDIBuilderCreateStructType(), LLVMDIBuilderCreateTempGlobalVariableFwdDecl(), LLVMDIBuilderCreateTypedef(), LLVMDIBuilderCreateUnionType(), LLVMDIBuilderCreateUnspecifiedType(), LLVMDIFileGetFilename(), LLVMGetOrInsertNamedMetadata(), LLVMGetTargetFromName(), LLVMLookupIntrinsicID(), llvm::object::ResourceSectionRef::load(), llvm::orc::JITDylib::lookupFlags(), 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(), llvm::yaml::MappingTraits< std::unique_ptr< ELFYAML::Section > >::mapping(), maybeSetDSOLocal(), llvm::WebAssembly::mayThrow(), llvm::BranchFolder::MBFIWrapper::MBFIWrapper(), MCAttrForString(), llvm::MCDisassembler::MCDisassembler(), llvm::MCLOHNameToId(), llvm::MCSymbol::MCSymbol(), llvm::MDBuilder::MDBuilder(), llvm::sampleprof::FunctionSamples::merge(), llvm::MipsAsmBackend::MipsAsmBackend(), llvm::orc::ObjectLinkingLayerJITLinkContext::modifyPassConfig(), 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::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::InstrProfWriter::overlapRecord(), llvm::DWARFDebugLine::LineTable::parse(), llvm::PassBuilder::parseAAPipeline(), AbstractManglingParser< ManglingParser< Alloc >, Alloc >::parseClassEnumType(), AbstractManglingParser< ManglingParser< Alloc >, Alloc >::parseEncoding(), llvm::AMDGPUMangledLibFunc::parseFuncName(), parseHexOcta(), parseImmediate(), parseOptionalLinkageAux(), llvm::MCTargetAsmParser::parsePrimaryExpr(), parseSectionFlags(), AbstractManglingParser< ManglingParser< Alloc >, Alloc >::parseSourceName(), AbstractManglingParser< ManglingParser< Alloc >, Alloc >::parseSpecialName(), llvm::ms_demangle::Demangler::parseTagUniqueName(), AbstractManglingParser< ManglingParser< Alloc >, Alloc >::parseTemplateParamDecl(), 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(), 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::GCOVFunction::readGCDA(), llvm::GCOVFunction::readGCNO(), llvm::sampleprof::SampleProfileReaderBinary::readNameTable(), llvm::sampleprof::SampleProfileReaderGCC::readOneFunctionProfile(), llvm::readPGOFuncNameStrings(), llvm::object::readStringOrId(), llvm::Function::recalculateIntrinsicID(), RefineErrorLoc(), llvm::PassBuilder::registerParseTopLevelPipelineCallback(), llvm::TargetRegistry::RegisterTarget(), llvm::LoopInfoWrapperPass::releaseMemory(), llvm::Intrinsic::remangleIntrinsicFunction(), llvm::orc::RemoteObjectServerLayer< BaseLayerT, RPCEndpoint >::RemoteObjectServerLayer(), llvm::jitlink::LinkGraph::removeBlock(), llvm::orc::JITDylib::removeGenerator(), 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::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(), llvm::TargetLoweringObjectFileXCOFF::SelectSectionForGlobal(), selectWasmSectionForGlobal(), llvm::TargetLibraryInfoImpl::setAvailableWithName(), llvm::MachinePassRegistry< FunctionPassCtor >::setDefault(), llvm::OverlapStats::setFuncInfo(), 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::jitlink::Symbol::setScope(), llvm::Module::setSourceFileName(), llvm::MIRParserImpl::setupRegisterInfo(), llvm::MCContext::setUseNamesOnTempLabels(), shouldAlwaysEmitCompleteClassType(), shouldBeSls(), shouldEmitUdt(), llvm::HexagonTargetObjectFile::shouldPutJumpTableInFunctionSection(), smallData(), splitAround(), llvm::SplitBlock(), llvm::DISubprogram::splitFlags(), llvm::Function::stealArgumentListFrom(), llvm::stripNonLineTableDebugInfo(), synthesizeNamedIdentifier(), synthesizeVariable(), llvm::TargetMachine::targetSchedulesPostRAScheduling(), llvm::timeTraceProfilerEnabled(), toString(), llvm::AArch64ExternalSymbolizer::tryAddingSymbolicOperand(), llvm::MCExternalSymbolizer::tryAddingSymbolicOperand(), llvm::orc::DynamicLibrarySearchGenerator::tryToGenerate(), llvm::orc::StaticLibraryDefinitionGenerator::tryToGenerate(), llvm::pdb::TpiStream::typeCollection(), unifyReturnBlockSet(), unpackLoadToAggregate(), llvm::DIEHash::update(), llvm::ExecutionEngine::updateGlobalMapping(), llvm::updateIndexWPDForExports(), upgradeDLLImportExportLinkage(), llvm::UpgradeIntrinsicCall(), UpgradeIntrinsicFunction1(), llvm::AMDGPULibCalls::useNative(), llvm::MachO::InterfaceFile::uuids(), llvm::LoopVectorizeHints::vectorizeAnalysisPassName(), verifyAddrSpace(), llvm::sroa::AllocaSliceRewriter::visit(), llvm::codeview::TypeRecordMapping::visitMemberEnd(), llvm::WriteGraph(), llvm::LTOCodeGenerator::writeMergedModules(), llvm::sampleprof::SampleProfileWriterExtBinary::writeSample(), llvm::sampleprof::SampleProfileWriterCompactBinary::writeSample(), 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 215 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 249 of file AMDGPULibCalls.cpp.

◆ tbl_acosh

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

Definition at line 255 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 258 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 264 of file AMDGPULibCalls.cpp.

◆ tbl_asinh

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

Definition at line 270 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 274 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 280 of file AMDGPULibCalls.cpp.

◆ tbl_atanh

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

Definition at line 286 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 290 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 296 of file AMDGPULibCalls.cpp.

◆ tbl_cos

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

Definition at line 302 of file AMDGPULibCalls.cpp.

◆ tbl_cosh

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

Definition at line 306 of file AMDGPULibCalls.cpp.

◆ tbl_cospi

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

Definition at line 310 of file AMDGPULibCalls.cpp.

◆ tbl_erf

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

Definition at line 318 of file AMDGPULibCalls.cpp.

◆ tbl_erfc

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

Definition at line 314 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 322 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 332 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 327 of file AMDGPULibCalls.cpp.

◆ tbl_expm1

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

Definition at line 337 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 341 of file AMDGPULibCalls.cpp.

◆ tbl_log10

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

Definition at line 349 of file AMDGPULibCalls.cpp.

◆ tbl_log2

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

Definition at line 345 of file AMDGPULibCalls.cpp.

◆ tbl_rsqrt

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

Definition at line 353 of file AMDGPULibCalls.cpp.

◆ tbl_sin

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

Definition at line 357 of file AMDGPULibCalls.cpp.

◆ tbl_sinh

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

Definition at line 361 of file AMDGPULibCalls.cpp.

◆ tbl_sinpi

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

Definition at line 365 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 369 of file AMDGPULibCalls.cpp.

◆ tbl_tan

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

Definition at line 374 of file AMDGPULibCalls.cpp.

◆ tbl_tanh

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

Definition at line 378 of file AMDGPULibCalls.cpp.

◆ tbl_tanpi

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

Definition at line 382 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 386 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