|
LLVM
7.0.0
|
Namespaces | |
| DPP | |
| EncValues | |
| HSAMD | |
| Hwreg | |
| IsaInfo | |
| PALMD | |
| SDWA | |
| SendMsg | |
| Swizzle | |
Classes | |
| struct | D16ImageDimIntrinsic |
| struct | ImageDimIntrinsicInfo |
| struct | MIMGBaseOpcodeInfo |
| struct | MIMGDimInfo |
| struct | MIMGInfo |
| struct | MIMGLZMappingInfo |
| struct | RsrcIntrinsic |
Variables | |
| const uint64_t | RSRC_DATA_FORMAT = 0xf00000000000LL |
| const uint64_t | RSRC_ELEMENT_SIZE_SHIFT = (32 + 19) |
| const uint64_t | RSRC_INDEX_STRIDE_SHIFT = (32 + 21) |
| const uint64_t | RSRC_TID_ENABLE = UINT64_C(1) << (32 + 23) |
| enum llvm::AMDGPU::Fixups |
| Enumerator | |
|---|---|
| fixup_si_sopp_br | 16-bit PC relative fixup for SOPP branch instructions. |
| LastTargetFixupKind | |
| NumTargetFixupKinds | |
Definition at line 17 of file AMDGPUFixupKinds.h.
Definition at line 111 of file SIDefines.h.
| Enumerator | |
|---|---|
| TF_LONG_BRANCH_FORWARD | |
| TF_LONG_BRANCH_BACKWARD | |
Definition at line 932 of file SIInstrInfo.h.
| unsigned llvm::AMDGPU::decodeExpcnt | ( | const IsaInfo::IsaVersion & | Version, |
| unsigned | Waitcnt | ||
| ) |
Waitcnt for given isa Version. Definition at line 557 of file AMDGPUBaseInfo.cpp.
Referenced by decodeWaitcnt(), encodeCnt(), and readsVCCZ().
| unsigned llvm::AMDGPU::decodeLgkmcnt | ( | const IsaInfo::IsaVersion & | Version, |
| unsigned | Waitcnt | ||
| ) |
Waitcnt for given isa Version. Definition at line 561 of file AMDGPUBaseInfo.cpp.
Referenced by decodeWaitcnt(), encodeCnt(), and readsVCCZ().
| unsigned llvm::AMDGPU::decodeVmcnt | ( | const IsaInfo::IsaVersion & | Version, |
| unsigned | Waitcnt | ||
| ) |
Waitcnt for given isa Version. Definition at line 545 of file AMDGPUBaseInfo.cpp.
References llvm::AMDGPU::IsaInfo::IsaVersion::Major.
Referenced by decodeWaitcnt(), encodeCnt(), and readsVCCZ().
| void llvm::AMDGPU::decodeWaitcnt | ( | const IsaInfo::IsaVersion & | Version, |
| unsigned | Waitcnt, | ||
| unsigned & | Vmcnt, | ||
| unsigned & | Expcnt, | ||
| unsigned & | Lgkmcnt | ||
| ) |
Decodes Vmcnt, Expcnt and Lgkmcnt from given Waitcnt for given isa Version, and writes decoded values into Vmcnt, Expcnt and Lgkmcnt respectively.
Vmcnt, Expcnt and Lgkmcnt are decoded as follows: Vmcnt = Waitcnt[3:0] (pre-gfx9 only) Vmcnt = Waitcnt[3:0] | Waitcnt[15:14] (gfx9+ only) Expcnt = Waitcnt[6:4] Lgkmcnt = Waitcnt[11:8]
Definition at line 565 of file AMDGPUBaseInfo.cpp.
References decodeExpcnt(), decodeLgkmcnt(), and decodeVmcnt().
Referenced by llvm::AMDGPUInstPrinter::printWaitFlag().
| unsigned llvm::AMDGPU::encodeExpcnt | ( | const IsaInfo::IsaVersion & | Version, |
| unsigned | Waitcnt, | ||
| unsigned | Expcnt | ||
| ) |
Waitcnt with encoded Expcnt for given isa Version. Definition at line 583 of file AMDGPUBaseInfo.cpp.
Referenced by encodeCnt(), and encodeWaitcnt().
| unsigned llvm::AMDGPU::encodeLgkmcnt | ( | const IsaInfo::IsaVersion & | Version, |
| unsigned | Waitcnt, | ||
| unsigned | Lgkmcnt | ||
| ) |
Waitcnt with encoded Lgkmcnt for given isa Version. Definition at line 588 of file AMDGPUBaseInfo.cpp.
Referenced by encodeCnt(), and encodeWaitcnt().
| unsigned llvm::AMDGPU::encodeVmcnt | ( | const IsaInfo::IsaVersion & | Version, |
| unsigned | Waitcnt, | ||
| unsigned | Vmcnt | ||
| ) |
Waitcnt with encoded Vmcnt for given isa Version. Definition at line 572 of file AMDGPUBaseInfo.cpp.
References llvm::AMDGPU::IsaInfo::IsaVersion::Major.
Referenced by encodeCnt(), and encodeWaitcnt().
| unsigned llvm::AMDGPU::encodeWaitcnt | ( | const IsaInfo::IsaVersion & | Version, |
| unsigned | Vmcnt, | ||
| unsigned | Expcnt, | ||
| unsigned | Lgkmcnt | ||
| ) |
Encodes Vmcnt, Expcnt and Lgkmcnt into Waitcnt for given isa Version.
Vmcnt, Expcnt and Lgkmcnt are encoded as follows: Waitcnt[3:0] = Vmcnt (pre-gfx9 only) Waitcnt[3:0] = Vmcnt[3:0] (gfx9+ only) Waitcnt[6:4] = Expcnt Waitcnt[11:8] = Lgkmcnt Waitcnt[15:14] = Vmcnt[5:4] (gfx9+ only)
Vmcnt, Expcnt and Lgkmcnt for given isa Version. Definition at line 593 of file AMDGPUBaseInfo.cpp.
References encodeExpcnt(), encodeLgkmcnt(), encodeVmcnt(), and getWaitcntBitMask().
Referenced by readsVCCZ().
| LLVM_READONLY int llvm::AMDGPU::getAddr64Inst | ( | uint16_t | Opcode | ) |
Referenced by llvm::SIInstrInfo::isLegalMUBUFImmOffset(), and llvm::SIInstrInfo::legalizeOperands().
Definition at line 957 of file AMDGPUBaseInfo.cpp.
References llvm::Module::getTargetTriple().
Referenced by llvm::AMDGPUAsmPrinter::AMDGPUAsmPrinter(), llvm::AMDGPUTargetLowering::AMDGPUTargetLowering(), llvm::AMDGPUTargetMachine::AMDGPUTargetMachine(), llvm::AMDGPU::HSAMD::MetadataStreamer::begin(), copyFeaturesToFunction(), llvm::createAMDGPUFunctionInliningPass(), llvm::GCNSubtarget::GCNSubtarget(), getAMDGPUAS(), llvm::AMDGPUTTIImpl::getUnrollingPreferences(), INITIALIZE_PASS(), and llvm::log2().
| AMDGPUAS llvm::AMDGPU::getAMDGPUAS | ( | const TargetMachine & | TM | ) |
Definition at line 953 of file AMDGPUBaseInfo.cpp.
References getAMDGPUAS(), and llvm::TargetMachine::getTargetTriple().
Definition at line 945 of file AMDGPUBaseInfo.cpp.
References AS, AMDGPUAS::FLAT_ADDRESS, AMDGPUAS::PRIVATE_ADDRESS, and AMDGPUAS::REGION_ADDRESS.
| LLVM_READONLY int llvm::AMDGPU::getAtomicNoRetOp | ( | uint16_t | Opcode | ) |
| LLVM_READONLY int llvm::AMDGPU::getAtomicRetOp | ( | uint16_t | Opcode | ) |
Referenced by llvm::SIInstrInfo::isLegalMUBUFImmOffset(), and isValidClauseInst().
| LLVM_READONLY int llvm::AMDGPU::getBasicFromSDWAOp | ( | uint16_t | Opcode | ) |
Referenced by llvm::SIInstrInfo::isLegalMUBUFImmOffset(), and llvm::SIInstrInfo::verifyInstruction().
| LLVM_READONLY int llvm::AMDGPU::getCommuteOrig | ( | uint16_t | Opcode | ) |
Referenced by llvm::SIInstrInfo::commuteOpcode(), and llvm::SIInstrInfo::isLegalMUBUFImmOffset().
| LLVM_READONLY int llvm::AMDGPU::getCommuteRev | ( | uint16_t | Opcode | ) |
Referenced by llvm::SIInstrInfo::commuteOpcode(), and llvm::SIInstrInfo::isLegalMUBUFImmOffset().
| amdhsa::kernel_descriptor_t llvm::AMDGPU::getDefaultAmdhsaKernelDescriptor | ( | ) |
Definition at line 444 of file AMDGPUBaseInfo.cpp.
References AMDHSA_BITS_SET, llvm::amdhsa::kernel_descriptor_t::compute_pgm_rsrc1, llvm::amdhsa::kernel_descriptor_t::compute_pgm_rsrc2, and llvm::amdhsa::FLOAT_DENORM_MODE_FLUSH_NONE.
Referenced by llvm::AMDGPUTargetAsmStreamer::EmitAmdhsaKernelDescriptor(), and getSpecialRegForName().
| unsigned llvm::AMDGPU::getExpcntBitMask | ( | const IsaInfo::IsaVersion & | Version | ) |
Version. Definition at line 525 of file AMDGPUBaseInfo.cpp.
Referenced by llvm::AMDGPUInstPrinter::printWaitFlag(), and readsVCCZ().
| const ImageDimIntrinsicInfo* llvm::AMDGPU::getImageDimIntrinsicInfo | ( | unsigned | Intr | ) |
Referenced by parseCachePolicy().
Definition at line 602 of file AMDGPUBaseInfo.cpp.
References getIntegerAttribute().
Referenced by llvm::SIMachineFunctionInfo::SIMachineFunctionInfo().
F's Name attribute.Default if attribute is not present.Default and emits error if requested value cannot be converted to integer. Definition at line 476 of file AMDGPUBaseInfo.cpp.
References llvm::LLVMContext::emitError(), llvm::StringRef::getAsInteger(), llvm::Function::getContext(), llvm::Function::getFnAttribute(), llvm::Attribute::getValueAsString(), llvm::Attribute::isStringAttribute(), and Result.
Referenced by llvm::AMDGPUSubtarget::getFlatWorkGroupSizes(), llvm::AMDGPUSubtarget::getImplicitArgNumBytes(), getInitialPSInputAddr(), llvm::GCNSubtarget::getMaxNumSGPRs(), and llvm::GCNSubtarget::getMaxNumVGPRs().
| std::pair< int, int > llvm::AMDGPU::getIntegerPairAttribute | ( | const Function & | F, |
| StringRef | Name, | ||
| std::pair< int, int > | Default, | ||
| bool | OnlyFirstRequired = false |
||
| ) |
F's Name attribute in "first[,second]" format ("second" is optional unless OnlyFirstRequired is false).Default if attribute is not present.Default and emits error if one of the requested values cannot be converted to integer, or OnlyFirstRequired is false and "second" value is not present. Definition at line 491 of file AMDGPUBaseInfo.cpp.
References llvm::LLVMContext::emitError(), llvm::Function::getContext(), llvm::Function::getFnAttribute(), llvm::Attribute::getValueAsString(), llvm::Attribute::isStringAttribute(), and llvm::StringRef::split().
Referenced by llvm::AMDGPUSubtarget::getFlatWorkGroupSizes(), and llvm::AMDGPUSubtarget::getWavesPerEU().
| unsigned llvm::AMDGPU::getLgkmcntBitMask | ( | const IsaInfo::IsaVersion & | Version | ) |
Version. Definition at line 529 of file AMDGPUBaseInfo.cpp.
Referenced by llvm::AMDGPUInstPrinter::printWaitFlag(), and readsVCCZ().
| LLVM_READONLY int llvm::AMDGPU::getMaskedMIMGOp | ( | unsigned | Opc, |
| unsigned | NewChannels | ||
| ) |
Definition at line 123 of file AMDGPUBaseInfo.cpp.
References llvm::AMDGPU::MIMGInfo::BaseOpcode, llvm::AMDGPU::MIMGInfo::MIMGEncoding, llvm::AMDGPU::MIMGInfo::Opcode, and llvm::AMDGPU::MIMGInfo::VAddrDwords.
Referenced by llvm::AMDGPUDisassembler::convertMIMGInst(), and SubIdx2Lane().
| LLVM_READONLY int llvm::AMDGPU::getMCOpcode | ( | uint16_t | Opcode, |
| unsigned | Gen | ||
| ) |
Definition at line 134 of file AMDGPUBaseInfo.cpp.
Referenced by llvm::SIInstrInfo::pseudoToMCOpcode().
| unsigned llvm::AMDGPU::getMCReg | ( | unsigned | Reg, |
| const MCSubtargetInfo & | STI | ||
| ) |
If Reg is a pseudo reg, return the correct hardware register given STI otherwise return Reg.
Definition at line 736 of file AMDGPUBaseInfo.cpp.
References llvm::Triple::getArch(), llvm::MCSubtargetInfo::getTargetTriple(), MAP_REG2REG, and llvm::Triple::r600.
Referenced by llvm::AMDGPUDisassembler::createRegOperand(), getVariantKind(), and isKernel().
| LLVM_READONLY const MIMGBaseOpcodeInfo* llvm::AMDGPU::getMIMGBaseOpcodeInfo | ( | unsigned | BaseOpcode | ) |
Referenced by parseCachePolicy().
| LLVM_READONLY const MIMGDimInfo* llvm::AMDGPU::getMIMGDimInfo | ( | unsigned | Dim | ) |
Referenced by parseCachePolicy().
| LLVM_READONLY const MIMGLZMappingInfo* llvm::AMDGPU::getMIMGLZMappingInfo | ( | unsigned | L | ) |
Referenced by parseCachePolicy().
| LLVM_READONLY int llvm::AMDGPU::getMIMGOpcode | ( | unsigned | BaseOpcode, |
| unsigned | MIMGEncoding, | ||
| unsigned | VDataDwords, | ||
| unsigned | VAddrDwords | ||
| ) |
Definition at line 116 of file AMDGPUBaseInfo.cpp.
References llvm::AMDGPU::MIMGInfo::Opcode.
Referenced by parseCachePolicy().
| LLVM_READONLY int llvm::AMDGPU::getMUBUFNoLdsInst | ( | uint16_t | Opcode | ) |
Referenced by encodeBitmaskPerm(), and llvm::SIInstrInfo::isLegalMUBUFImmOffset().
| LLVM_READONLY int16_t llvm::AMDGPU::getNamedOperandIdx | ( | uint16_t | Opcode, |
| uint16_t | NamedIdx | ||
| ) |
Referenced by addRegsToSet(), allOpsDefaultValue(), llvm::SIInstrInfo::areLoadsFromSameBasePtr(), canMoveInstsAcrossMemOp(), llvm::SIInstrInfo::commuteInstructionImpl(), llvm::AMDGPUDisassembler::convertMIMGInst(), llvm::AMDGPUDisassembler::convertSDWAInst(), llvm::SIInstrInfo::convertToThreeAddress(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::R600InstrInfo::expandPostRAPseudo(), llvm::SIInstrInfo::findCommutedOpIndices(), findSingleRegDef(), llvm::SIInstrInfo::FoldImmediate(), foldImmediates(), llvm::SIRegisterInfo::getFrameIndexInstrOffset(), llvm::SIInstrInfo::getInstSizeInBytes(), llvm::SIInstrInfo::getMemOpBaseRegImmOfs(), llvm::SIRegisterInfo::getMUBUFInstrOffset(), llvm::SIInstrInfo::getNamedImmOperand(), llvm::SIInstrInfo::getNamedOperand(), llvm::R600InstrInfo::getOperandIdx(), getSpecialRegForName(), llvm::SIInstrInfo::hasModifiers(), insertNamedMCOperand(), llvm::SIInstrInfo::isBufferSMRD(), isInlineConstantIfFolded(), isRegOrImmWithInputMods(), llvm::SIInstrInfo::legalizeOperands(), llvm::SIInstrInfo::legalizeOperandsVOP2(), llvm::SIInstrInfo::legalizeOperandsVOP3(), nodesHaveSameOperandValue(), llvm::AMDGPUInstPrinter::printRegOperand(), removeModOperands(), shrinkScalarCompare(), SubIdx2Lane(), tryAddToFoldList(), tryConstantFoldOp(), tryFoldInst(), updateOperand(), and llvm::SIInstrInfo::verifyInstruction().
|
inline |
Definition at line 394 of file AMDGPUBaseInfo.h.
References LLVM_READNONE, llvm_unreachable, OPERAND_REG_IMM_FP16, OPERAND_REG_IMM_FP32, OPERAND_REG_IMM_FP64, OPERAND_REG_IMM_INT16, OPERAND_REG_IMM_INT32, OPERAND_REG_IMM_INT64, OPERAND_REG_INLINE_C_FP16, OPERAND_REG_INLINE_C_FP32, OPERAND_REG_INLINE_C_FP64, OPERAND_REG_INLINE_C_INT16, OPERAND_REG_INLINE_C_INT32, OPERAND_REG_INLINE_C_INT64, OPERAND_REG_INLINE_C_V2FP16, OPERAND_REG_INLINE_C_V2INT16, and llvm::MCOperandInfo::OperandType.
Referenced by getOperandSize(), and getSpecialRegForName().
|
inline |
Definition at line 422 of file AMDGPUBaseInfo.h.
References Arg, getOperandSize(), getSMRDEncodedOffset(), isArgPassedInSGPR(), isInlinableLiteral16(), isInlinableLiteral32(), isInlinableLiteral64(), isInlinableLiteralV216(), isIntrinsicSourceOfDivergence(), isLegalSMRDImmOffset(), llvm::Literal, LLVM_READNONE, llvm::MCInstrDesc::OpInfo, and llvm::ARM_MB::ST.
Get the size in bits of a register from the register class RC.
Definition at line 789 of file AMDGPUBaseInfo.cpp.
References llvm_unreachable.
Referenced by addRegsToSet(), buildMUBUFOffsetLoadStore(), llvm::SIInstrInfo::canInsertSelect(), getRegBitWidth(), getRegOperandSize(), llvm::SIRegisterInfo::getRegSplitParts(), INITIALIZE_PASS(), isKernel(), isUseSafeToFold(), llvm::BitTracker::MachineEvaluator::MachineEvaluator(), and llvm::AMDGPUInstPrinter::printRegOperand().
| unsigned llvm::AMDGPU::getRegBitWidth | ( | const MCRegisterClass & | RC | ) |
Get the size in bits of a register from the register class RC.
Definition at line 819 of file AMDGPUBaseInfo.cpp.
References llvm::MCRegisterClass::getID(), and getRegBitWidth().
| unsigned llvm::AMDGPU::getRegOperandSize | ( | const MCRegisterInfo * | MRI, |
| const MCInstrDesc & | Desc, | ||
| unsigned | OpNo | ||
| ) |
Get size of register operand.
Definition at line 823 of file AMDGPUBaseInfo.cpp.
References assert(), getRegBitWidth(), llvm::MCRegisterInfo::getRegClass(), llvm::MCInstrDesc::NumOperands, llvm::MCInstrDesc::OpInfo, and llvm::MCOperandInfo::RegClass.
Referenced by getSpecialRegForName(), and isKernel().
| LLVM_READONLY int llvm::AMDGPU::getSDWAOp | ( | uint16_t | Opcode | ) |
Referenced by findSingleRegDef(), and llvm::SIInstrInfo::isLegalMUBUFImmOffset().
| int64_t llvm::AMDGPU::getSMRDEncodedOffset | ( | const MCSubtargetInfo & | ST, |
| int64_t | ByteOffset | ||
| ) |
ByteOffset in the SMRD offset field. Definition at line 926 of file AMDGPUBaseInfo.cpp.
References isGCN3Encoding().
Referenced by canMoveInstsAcrossMemOp(), getOperandSize(), getSmrdOpcode(), isLegalSMRDImmOffset(), and isStackPtrRelative().
| LLVM_READONLY int llvm::AMDGPU::getSOPKOp | ( | uint16_t | Opcode | ) |
Referenced by llvm::SIInstrInfo::isLegalMUBUFImmOffset(), and shrinkScalarCompare().
| unsigned llvm::AMDGPU::getVmcntBitMask | ( | const IsaInfo::IsaVersion & | Version | ) |
Version. Definition at line 516 of file AMDGPUBaseInfo.cpp.
References llvm::AMDGPU::IsaInfo::IsaVersion::Major.
Referenced by llvm::AMDGPUInstPrinter::printWaitFlag(), and readsVCCZ().
| LLVM_READONLY int llvm::AMDGPU::getVOPe32 | ( | uint16_t | Opcode | ) |
| LLVM_READONLY int llvm::AMDGPU::getVOPe64 | ( | uint16_t | Opcode | ) |
Referenced by llvm::SIInstrInfo::isLegalMUBUFImmOffset().
| unsigned llvm::AMDGPU::getWaitcntBitMask | ( | const IsaInfo::IsaVersion & | Version | ) |
Version. Definition at line 533 of file AMDGPUBaseInfo.cpp.
References llvm::AMDGPU::IsaInfo::IsaVersion::Major.
Referenced by encodeCnt(), and encodeWaitcnt().
| bool llvm::AMDGPU::hasMIMG_R128 | ( | const MCSubtargetInfo & | STI | ) |
Definition at line 646 of file AMDGPUBaseInfo.cpp.
References llvm::MCSubtargetInfo::getFeatureBits().
Referenced by getSpecialRegForName(), and isKernel().
| bool llvm::AMDGPU::hasPackedD16 | ( | const MCSubtargetInfo & | STI | ) |
Definition at line 650 of file AMDGPUBaseInfo.cpp.
References llvm::MCSubtargetInfo::getFeatureBits().
Referenced by llvm::AMDGPUDisassembler::convertMIMGInst(), getSpecialRegForName(), and isKernel().
| bool llvm::AMDGPU::hasXNACK | ( | const MCSubtargetInfo & | STI | ) |
Definition at line 642 of file AMDGPUBaseInfo.cpp.
References llvm::MCSubtargetInfo::getFeatureBits().
Referenced by llvm::AMDGPUTargetELFStreamer::AMDGPUTargetELFStreamer(), llvm::AMDGPUTargetAsmStreamer::EmitAmdhsaKernelDescriptor(), llvm::AMDGPUAsmPrinter::EmitFunctionBodyEnd(), getSpecialRegForName(), isKernel(), and llvm::AMDGPU::IsaInfo::streamIsaVersion().
| void llvm::AMDGPU::initDefaultAMDKernelCodeT | ( | amd_kernel_code_t & | Header, |
| const FeatureBitset & | Features | ||
| ) |
Definition at line 417 of file AMDGPUBaseInfo.cpp.
References amd_kernel_code_s::amd_kernel_code_version_major, amd_kernel_code_s::amd_kernel_code_version_minor, amd_kernel_code_s::amd_machine_kind, amd_kernel_code_s::amd_machine_version_major, amd_kernel_code_s::amd_machine_version_minor, amd_kernel_code_s::amd_machine_version_stepping, amd_kernel_code_s::call_convention, llvm::AMDGPU::IsaInfo::getIsaVersion(), amd_kernel_code_s::group_segment_alignment, amd_kernel_code_s::kernarg_segment_alignment, amd_kernel_code_s::kernel_code_entry_byte_offset, llvm::AMDGPU::IsaInfo::IsaVersion::Major, llvm::AMDGPU::IsaInfo::IsaVersion::Minor, amd_kernel_code_s::private_segment_alignment, llvm::AMDGPU::IsaInfo::IsaVersion::Stepping, and amd_kernel_code_s::wavefront_size.
Referenced by getElementByteSizeValue().
Definition at line 900 of file AMDGPUBaseInfo.cpp.
References llvm::CallingConv::AMDGPU_CS, llvm::CallingConv::AMDGPU_ES, llvm::CallingConv::AMDGPU_GS, llvm::CallingConv::AMDGPU_HS, llvm::CallingConv::AMDGPU_KERNEL, llvm::CallingConv::AMDGPU_LS, llvm::CallingConv::AMDGPU_PS, llvm::CallingConv::AMDGPU_VS, F(), llvm::Argument::getArgNo(), llvm::Function::getAttributes(), llvm::Function::getCallingConv(), llvm::Argument::getParent(), llvm::AttributeList::hasParamAttribute(), and llvm::CallingConv::SPIR_KERNEL.
Referenced by getOperandSize(), and llvm::AMDGPUInstrInfo::isUniformMMO().
| bool llvm::AMDGPU::isCI | ( | const MCSubtargetInfo & | STI | ) |
Definition at line 658 of file AMDGPUBaseInfo.cpp.
References llvm::MCSubtargetInfo::getFeatureBits().
Referenced by encodeCnt(), getSpecialRegForName(), isKernel(), llvm::AMDGPUInstPrinter::printHwreg(), and llvm::AMDGPUInstPrinter::printRegOperand().
| LLVM_READNONE bool llvm::AMDGPU::isCompute | ( | CallingConv::ID | cc | ) |
Definition at line 621 of file AMDGPUBaseInfo.cpp.
References llvm::CallingConv::AMDGPU_CS, and isShader().
Referenced by llvm::SIFrameLowering::emitEntryFunctionPrologue(), llvm::GCNSubtarget::enableIEEEBit(), llvm::R600AsmPrinter::getPassName(), getRsrcReg(), llvm::R600InstrInfo::usesTextureCache(), and llvm::R600InstrInfo::usesVertexCache().
| LLVM_READNONE bool llvm::AMDGPU::isEntryFunctionCC | ( | CallingConv::ID | CC | ) |
Definition at line 625 of file AMDGPUBaseInfo.cpp.
References llvm::CallingConv::AMDGPU_CS, llvm::CallingConv::AMDGPU_ES, llvm::CallingConv::AMDGPU_GS, llvm::CallingConv::AMDGPU_HS, llvm::CallingConv::AMDGPU_KERNEL, llvm::CallingConv::AMDGPU_LS, llvm::CallingConv::AMDGPU_PS, llvm::CallingConv::AMDGPU_VS, and llvm::CallingConv::SPIR_KERNEL.
Referenced by llvm::SITargetLowering::CanLowerReturn(), copyFeaturesToFunction(), INITIALIZE_PASS(), llvm::SITargetLowering::isSDNodeSourceOfDivergence(), llvm::SITargetLowering::LowerFormalArguments(), llvm::SITargetLowering::mayBeEmittedAsTailCall(), and mustPreserveGV().
| bool llvm::AMDGPU::isGCN3Encoding | ( | const MCSubtargetInfo & | STI | ) |
Definition at line 670 of file AMDGPUBaseInfo.cpp.
References llvm::MCSubtargetInfo::getFeatureBits().
Referenced by getSMRDEncodedOffset(), and isLegalSMRDImmOffset().
| bool llvm::AMDGPU::isGFX9 | ( | const MCSubtargetInfo & | STI | ) |
Definition at line 666 of file AMDGPUBaseInfo.cpp.
References llvm::MCSubtargetInfo::getFeatureBits().
Referenced by isKernel().
| bool llvm::AMDGPU::isGlobalSegment | ( | const GlobalValue * | GV | ) |
Definition at line 463 of file AMDGPUBaseInfo.cpp.
References llvm::PointerType::getAddressSpace(), llvm::GlobalValue::getType(), and AMDGPUAS::GLOBAL_ADDRESS.
| bool llvm::AMDGPU::isGroupSegment | ( | const GlobalValue * | GV | ) |
Definition at line 459 of file AMDGPUBaseInfo.cpp.
References llvm::PointerType::getAddressSpace(), llvm::GlobalValue::getType(), and AMDGPUAS::LOCAL_ADDRESS.
Referenced by llvm::AMDGPUAsmPrinter::EmitGlobalVariable().
| LLVM_READNONE bool llvm::AMDGPU::isInlinableLiteral16 | ( | int16_t | Literal, |
| bool | HasInv2Pi | ||
| ) |
Definition at line 873 of file AMDGPUBaseInfo.cpp.
Referenced by getOperandSize(), getSpecialRegForName(), isInlinableLiteralV216(), and llvm::SIInstrInfo::isInlineConstant().
| LLVM_READNONE bool llvm::AMDGPU::isInlinableLiteral32 | ( | int32_t | Literal, |
| bool | HasInv2Pi | ||
| ) |
Definition at line 847 of file AMDGPUBaseInfo.cpp.
References llvm::FloatToBits().
Referenced by llvm::SIRegisterInfo::eliminateFrameIndex(), getOperandSize(), getSpecialRegForName(), and llvm::SIInstrInfo::isInlineConstant().
| LLVM_READNONE bool llvm::AMDGPU::isInlinableLiteral64 | ( | int64_t | Literal, |
| bool | HasInv2Pi | ||
| ) |
Is this literal inlinable.
Definition at line 830 of file AMDGPUBaseInfo.cpp.
References llvm::DoubleToBits().
Referenced by getOperandSize(), getSpecialRegForName(), and llvm::SIInstrInfo::isInlineConstant().
| LLVM_READNONE bool llvm::AMDGPU::isInlinableLiteralV216 | ( | int32_t | Literal, |
| bool | HasInv2Pi | ||
| ) |
Definition at line 892 of file AMDGPUBaseInfo.cpp.
References assert(), and isInlinableLiteral16().
Referenced by getOperandSize(), getSpecialRegForName(), and llvm::SIInstrInfo::isInlineConstant().
Definition at line 973 of file AMDGPUBaseInfo.cpp.
Referenced by getOperandSize(), llvm::SITargetLowering::isSDNodeSourceOfDivergence(), and llvm::GCNTTIImpl::isSourceOfDivergence().
|
inline |
Definition at line 341 of file AMDGPUBaseInfo.h.
References llvm::CallingConv::AMDGPU_KERNEL, getMCReg(), getRegBitWidth(), getRegOperandSize(), hasMIMG_R128(), hasPackedD16(), hasXNACK(), isCI(), isGFX9(), isRegIntersect(), isSGPR(), isSI(), isSISrcFPOperand(), isSISrcInlinableOperand(), isSISrcOperand(), isVI(), LLVM_READNONE, mc2PseudoReg(), MRI, Reg, llvm::CallingConv::SPIR_KERNEL, and TRI.
Referenced by llvm::SITargetLowering::LowerFormalArguments(), and llvm::SITargetLowering::LowerReturn().
| bool llvm::AMDGPU::isLegalSMRDImmOffset | ( | const MCSubtargetInfo & | ST, |
| int64_t | ByteOffset | ||
| ) |
ByteOffset should be the offset in bytes and not the encoded offset. Definition at line 932 of file AMDGPUBaseInfo.cpp.
References getSMRDEncodedOffset(), isGCN3Encoding(), and llvm::isUInt< 8 >().
Referenced by getOperandSize(), getSmrdOpcode(), and isStackPtrRelative().
| bool llvm::AMDGPU::isReadOnlySegment | ( | const GlobalValue * | GV | ) |
Definition at line 467 of file AMDGPUBaseInfo.cpp.
References AMDGPUAS::CONSTANT_ADDRESS, AMDGPUAS::CONSTANT_ADDRESS_32BIT, llvm::PointerType::getAddressSpace(), and llvm::GlobalValue::getType().
Referenced by llvm::AMDGPUTargetObjectFile::SelectSectionForGlobal().
| bool llvm::AMDGPU::isRegIntersect | ( | unsigned | Reg0, |
| unsigned | Reg1, | ||
| const MCRegisterInfo * | TRI | ||
| ) |
Is there any intersection between registers.
Definition at line 681 of file AMDGPUBaseInfo.cpp.
Referenced by getSpecialRegForName(), and isKernel().
| bool llvm::AMDGPU::isSGPR | ( | unsigned | Reg, |
| const MCRegisterInfo * | TRI | ||
| ) |
Is Reg - scalar register.
Definition at line 674 of file AMDGPUBaseInfo.cpp.
References llvm::MCRegisterClass::contains(), llvm::MCRegisterInfo::getRegClass(), and llvm::MCRegisterInfo::getSubReg().
Referenced by getLit64Encoding(), getSpecialRegForName(), and isKernel().
| LLVM_READNONE bool llvm::AMDGPU::isShader | ( | CallingConv::ID | cc | ) |
Definition at line 606 of file AMDGPUBaseInfo.cpp.
References llvm::CallingConv::AMDGPU_CS, llvm::CallingConv::AMDGPU_ES, llvm::CallingConv::AMDGPU_GS, llvm::CallingConv::AMDGPU_HS, llvm::CallingConv::AMDGPU_LS, llvm::CallingConv::AMDGPU_PS, and llvm::CallingConv::AMDGPU_VS.
Referenced by llvm::SIInstrInfo::calculateLDSSpillAddress(), isCompute(), llvm::GCNSubtarget::isMesaGfxShader(), llvm::AMDGPUSubtarget::isMesaKernel(), llvm::GCNSubtarget::isVGPRSpillingEnabled(), llvm::SIInstrInfo::legalizeOperands(), llvm::SITargetLowering::LowerCall(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), and llvm::SITargetLowering::LowerReturn().
| bool llvm::AMDGPU::isSI | ( | const MCSubtargetInfo & | STI | ) |
Definition at line 654 of file AMDGPUBaseInfo.cpp.
References llvm::MCSubtargetInfo::getFeatureBits().
Referenced by encodeCnt(), getSpecialRegForName(), isKernel(), llvm::AMDGPUInstPrinter::printHwreg(), and llvm::AMDGPUInstPrinter::printRegOperand().
| bool llvm::AMDGPU::isSISrcFPOperand | ( | const MCInstrDesc & | Desc, |
| unsigned | OpNo | ||
| ) |
Is this floating-point operand?
Definition at line 763 of file AMDGPUBaseInfo.cpp.
References assert(), llvm::MCInstrDesc::NumOperands, OPERAND_REG_IMM_FP16, OPERAND_REG_IMM_FP32, OPERAND_REG_IMM_FP64, OPERAND_REG_INLINE_C_FP16, OPERAND_REG_INLINE_C_FP32, OPERAND_REG_INLINE_C_FP64, OPERAND_REG_INLINE_C_V2FP16, llvm::MCOperandInfo::OperandType, and llvm::MCInstrDesc::OpInfo.
Referenced by isKernel().
| bool llvm::AMDGPU::isSISrcInlinableOperand | ( | const MCInstrDesc & | Desc, |
| unsigned | OpNo | ||
| ) |
Does this opearnd support only inlinable literals?
Definition at line 780 of file AMDGPUBaseInfo.cpp.
References assert(), llvm::MCInstrDesc::NumOperands, OPERAND_REG_INLINE_C_FIRST, OPERAND_REG_INLINE_C_LAST, llvm::MCOperandInfo::OperandType, and llvm::MCInstrDesc::OpInfo.
Referenced by isKernel().
| bool llvm::AMDGPU::isSISrcOperand | ( | const MCInstrDesc & | Desc, |
| unsigned | OpNo | ||
| ) |
Can this operand also contain immediate values?
Definition at line 756 of file AMDGPUBaseInfo.cpp.
References assert(), llvm::MCInstrDesc::NumOperands, OPERAND_SRC_FIRST, OPERAND_SRC_LAST, llvm::MCOperandInfo::OperandType, and llvm::MCInstrDesc::OpInfo.
Referenced by getLit64Encoding(), getSpecialRegForName(), isKernel(), and needsPCRel().
| bool llvm::AMDGPU::isVI | ( | const MCSubtargetInfo & | STI | ) |
Definition at line 662 of file AMDGPUBaseInfo.cpp.
References llvm::MCSubtargetInfo::getFeatureBits().
Referenced by encodeCnt(), isKernel(), isRegOrImmWithInputMods(), and llvm::AMDGPUInstPrinter::printHwreg().
| bool llvm::AMDGPU::laneDominates | ( | MachineBasicBlock * | A, |
| MachineBasicBlock * | B | ||
| ) |
Definition at line 52 of file AMDGPULaneDominator.cpp.
References llvm::SmallVectorTemplateCommon< T >::back(), llvm::SmallVectorBase::empty(), llvm::detail::DenseSetImpl< ValueT, DenseMap< ValueT, detail::DenseSetEmpty, ValueInfoT, detail::DenseSetPair< ValueT > >, ValueInfoT >::insert(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::pop_back(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), and llvm::MachineBasicBlock::successors().
Referenced by llvm::createSILowerI1CopiesPass().
| const D16ImageDimIntrinsic* llvm::AMDGPU::lookupD16ImageDimIntrinsic | ( | unsigned | Intr | ) |
| const RsrcIntrinsic* llvm::AMDGPU::lookupRsrcIntrinsic | ( | unsigned | Intr | ) |
Referenced by llvm::SITargetLowering::getTgtMemIntrinsic().
| LLVM_READNONE unsigned llvm::AMDGPU::mc2PseudoReg | ( | unsigned | Reg | ) |
Convert hardware register Reg to a pseudo register.
Definition at line 748 of file AMDGPUBaseInfo.cpp.
References MAP_REG2REG.
Referenced by getLit64Encoding(), getSpecialRegForName(), and isKernel().
TT, false otherwise. Definition at line 472 of file AMDGPUBaseInfo.cpp.
References llvm::Triple::AMDHSA, and llvm::Triple::getOS().
Referenced by findUser(), and llvm::AMDGPUTargetObjectFile::SelectSectionForGlobal().
| const uint64_t llvm::AMDGPU::RSRC_DATA_FORMAT = 0xf00000000000LL |
Definition at line 926 of file SIInstrInfo.h.
Referenced by llvm::SIInstrInfo::getDefaultRsrcDataFormat(), and llvm::SIInstrInfo::getScratchRsrcWords23().
| const uint64_t llvm::AMDGPU::RSRC_ELEMENT_SIZE_SHIFT = (32 + 19) |
Definition at line 927 of file SIInstrInfo.h.
Referenced by llvm::SIInstrInfo::getScratchRsrcWords23().
| const uint64_t llvm::AMDGPU::RSRC_INDEX_STRIDE_SHIFT = (32 + 21) |
Definition at line 928 of file SIInstrInfo.h.
Referenced by llvm::SIInstrInfo::getScratchRsrcWords23().
| const uint64_t llvm::AMDGPU::RSRC_TID_ENABLE = UINT64_C(1) << (32 + 23) |
Definition at line 929 of file SIInstrInfo.h.
Referenced by llvm::SIInstrInfo::getScratchRsrcWords23().
1.8.13