|
LLVM
7.0.0
|
Classes | |
| struct | IsaVersion |
| Instruction set architecture version. More... | |
Enumerations | |
| enum | { FIXED_NUM_SGPRS_FOR_INIT_BUG = 96, TRAP_NUM_SGPRS = 16 } |
| anonymous enum |
| Enumerator | |
|---|---|
| FIXED_NUM_SGPRS_FOR_INIT_BUG | |
| TRAP_NUM_SGPRS | |
Definition at line 50 of file AMDGPUBaseInfo.h.
| unsigned llvm::AMDGPU::IsaInfo::getAddressableNumSGPRs | ( | const FeatureBitset & | Features | ) |
Features. Definition at line 302 of file AMDGPUBaseInfo.cpp.
References FIXED_NUM_SGPRS_FOR_INIT_BUG, getIsaVersion(), llvm::AMDGPU::IsaInfo::IsaVersion::Major, and llvm::IndexedInstrProf::Version.
Referenced by llvm::GCNSubtarget::getAddressableNumSGPRs(), getMaxNumSGPRs(), getMinNumSGPRs(), and getSpecialRegForName().
| unsigned llvm::AMDGPU::IsaInfo::getAddressableNumVGPRs | ( | const FeatureBitset & | Features | ) |
Features. Definition at line 385 of file AMDGPUBaseInfo.cpp.
References getTotalNumVGPRs().
Referenced by llvm::GCNSubtarget::getAddressableNumVGPRs(), getMaxNumVGPRs(), and getMinNumVGPRs().
| unsigned llvm::AMDGPU::IsaInfo::getEUsPerCU | ( | const FeatureBitset & | Features | ) |
Features. Definition at line 231 of file AMDGPUBaseInfo.cpp.
Referenced by llvm::GCNSubtarget::getEUsPerCU(), getMaxWavesPerCU(), and getMaxWavesPerEU().
| IsaVersion llvm::AMDGPU::IsaInfo::getIsaVersion | ( | const FeatureBitset & | Features | ) |
Features. Definition at line 140 of file AMDGPUBaseInfo.cpp.
Referenced by llvm::AMDGPUTargetAsmStreamer::EmitAmdhsaKernelDescriptor(), llvm::AMDGPUAsmPrinter::EmitStartOfAsmFile(), encodeCnt(), getAddressableNumSGPRs(), getMaxNumSGPRs(), getNumExtraSGPRs(), getSGPRAllocGranule(), getSpecialRegForName(), getTotalNumSGPRs(), llvm::AMDGPU::initDefaultAMDKernelCodeT(), llvm::AMDGPUInstPrinter::printWaitFlag(), readsVCCZ(), and streamIsaVersion().
| unsigned llvm::AMDGPU::IsaInfo::getLocalMemorySize | ( | const FeatureBitset & | Features | ) |
Features. Definition at line 222 of file AMDGPUBaseInfo.cpp.
| unsigned llvm::AMDGPU::IsaInfo::getMaxFlatWorkGroupSize | ( | const FeatureBitset & | Features | ) |
Features. Definition at line 274 of file AMDGPUBaseInfo.cpp.
Referenced by llvm::AMDGPUSubtarget::getMaxFlatWorkGroupSize().
| unsigned llvm::AMDGPU::IsaInfo::getMaxNumSGPRs | ( | const FeatureBitset & | Features, |
| unsigned | WavesPerEU, | ||
| bool | Addressable | ||
| ) |
Features. Definition at line 325 of file AMDGPUBaseInfo.cpp.
References llvm::alignDown(), assert(), getAddressableNumSGPRs(), getIsaVersion(), getSGPRAllocGranule(), getTotalNumSGPRs(), llvm::AMDGPU::IsaInfo::IsaVersion::Major, TRAP_NUM_SGPRS, and llvm::IndexedInstrProf::Version.
Referenced by llvm::GCNSubtarget::getMaxNumSGPRs().
| unsigned llvm::AMDGPU::IsaInfo::getMaxNumVGPRs | ( | const FeatureBitset & | Features, |
| unsigned | WavesPerEU | ||
| ) |
Features. Definition at line 400 of file AMDGPUBaseInfo.cpp.
References llvm::alignDown(), assert(), getAddressableNumVGPRs(), getTotalNumVGPRs(), and getVGPRAllocGranule().
Referenced by llvm::GCNSubtarget::getMaxNumVGPRs().
| unsigned llvm::AMDGPU::IsaInfo::getMaxWavesPerCU | ( | const FeatureBitset & | Features | ) |
Features without any kind of limitation. Definition at line 246 of file AMDGPUBaseInfo.cpp.
References getEUsPerCU(), and getMaxWavesPerEU().
Referenced by llvm::GCNSubtarget::getMaxWavesPerCU().
| unsigned llvm::AMDGPU::IsaInfo::getMaxWavesPerCU | ( | const FeatureBitset & | Features, |
| unsigned | FlatWorkGroupSize | ||
| ) |
Features and limited by given FlatWorkGroupSize. Definition at line 250 of file AMDGPUBaseInfo.cpp.
References getWavesPerWorkGroup().
Referenced by getMaxWavesPerEU().
| unsigned llvm::AMDGPU::IsaInfo::getMaxWavesPerEU | ( | ) |
Features without any kind of limitation. Definition at line 259 of file AMDGPUBaseInfo.cpp.
Referenced by llvm::AMDGPUSubtarget::getMaxWavesPerEU(), and llvm::GCNSubtarget::getMaxWavesPerEU().
| unsigned llvm::AMDGPU::IsaInfo::getMaxWavesPerEU | ( | const FeatureBitset & | Features, |
| unsigned | FlatWorkGroupSize | ||
| ) |
Features and limited by given FlatWorkGroupSize. Definition at line 264 of file AMDGPUBaseInfo.cpp.
References llvm::alignTo(), getEUsPerCU(), and getMaxWavesPerCU().
Referenced by getMaxWavesPerCU(), getMinNumSGPRs(), and getMinNumVGPRs().
| unsigned llvm::AMDGPU::IsaInfo::getMaxWorkGroupsPerCU | ( | const FeatureBitset & | Features, |
| unsigned | FlatWorkGroupSize | ||
| ) |
Features and limited by given FlatWorkGroupSize. Definition at line 235 of file AMDGPUBaseInfo.cpp.
References getWavesPerWorkGroup(), and N.
Referenced by llvm::AMDGPUSubtarget::getMaxWorkGroupsPerCU().
| unsigned llvm::AMDGPU::IsaInfo::getMinFlatWorkGroupSize | ( | const FeatureBitset & | Features | ) |
Features. Definition at line 270 of file AMDGPUBaseInfo.cpp.
Referenced by llvm::AMDGPUSubtarget::getMinFlatWorkGroupSize().
| unsigned llvm::AMDGPU::IsaInfo::getMinNumSGPRs | ( | const FeatureBitset & | Features, |
| unsigned | WavesPerEU | ||
| ) |
Features. Definition at line 312 of file AMDGPUBaseInfo.cpp.
References llvm::alignDown(), assert(), getAddressableNumSGPRs(), getMaxWavesPerEU(), getSGPRAllocGranule(), getTotalNumSGPRs(), and TRAP_NUM_SGPRS.
Referenced by llvm::GCNSubtarget::getMaxNumSGPRs(), and llvm::GCNSubtarget::getMinNumSGPRs().
| unsigned llvm::AMDGPU::IsaInfo::getMinNumVGPRs | ( | const FeatureBitset & | Features, |
| unsigned | WavesPerEU | ||
| ) |
Features. Definition at line 389 of file AMDGPUBaseInfo.cpp.
References llvm::alignDown(), assert(), getAddressableNumVGPRs(), getMaxWavesPerEU(), getTotalNumVGPRs(), and getVGPRAllocGranule().
Referenced by llvm::GCNSubtarget::getMaxNumVGPRs(), and llvm::GCNSubtarget::getMinNumVGPRs().
| unsigned llvm::AMDGPU::IsaInfo::getMinWavesPerEU | ( | const FeatureBitset & | Features | ) |
Features. Definition at line 255 of file AMDGPUBaseInfo.cpp.
Referenced by llvm::AMDGPUSubtarget::getMinWavesPerEU().
| unsigned llvm::AMDGPU::IsaInfo::getNumExtraSGPRs | ( | const FeatureBitset & | Features, |
| bool | VCCUsed, | ||
| bool | FlatScrUsed, | ||
| bool | XNACKUsed | ||
| ) |
Features when the given special registers are used. Definition at line 340 of file AMDGPUBaseInfo.cpp.
References getIsaVersion(), llvm::AMDGPU::IsaInfo::IsaVersion::Major, and llvm::IndexedInstrProf::Version.
Referenced by llvm::AMDGPUAsmPrinter::EmitFunctionBodyEnd(), getSpecialRegForName(), and hasAnyNonFlatUseOfReg().
| unsigned llvm::AMDGPU::IsaInfo::getNumExtraSGPRs | ( | const FeatureBitset & | Features, |
| bool | VCCUsed, | ||
| bool | FlatScrUsed | ||
| ) |
Features when the given special registers are used. XNACK is inferred from Features. Definition at line 361 of file AMDGPUBaseInfo.cpp.
| unsigned llvm::AMDGPU::IsaInfo::getNumSGPRBlocks | ( | const FeatureBitset & | Features, |
| unsigned | NumSGPRs | ||
| ) |
Features when NumSGPRs are used. NumSGPRs should already include any special register counts. Definition at line 367 of file AMDGPUBaseInfo.cpp.
References llvm::alignTo(), getSGPREncodingGranule(), and llvm::max().
Referenced by getSpecialRegForName(), and hasAnyNonFlatUseOfReg().
| unsigned llvm::AMDGPU::IsaInfo::getNumVGPRBlocks | ( | const FeatureBitset & | Features, |
| unsigned | NumSGPRs | ||
| ) |
Features when NumVGPRs are used. Definition at line 409 of file AMDGPUBaseInfo.cpp.
References llvm::alignTo(), getVGPREncodingGranule(), and llvm::max().
Referenced by getSpecialRegForName(), and hasAnyNonFlatUseOfReg().
| unsigned llvm::AMDGPU::IsaInfo::getSGPRAllocGranule | ( | const FeatureBitset & | Features | ) |
Features. Definition at line 284 of file AMDGPUBaseInfo.cpp.
References getIsaVersion(), llvm::AMDGPU::IsaInfo::IsaVersion::Major, and llvm::IndexedInstrProf::Version.
Referenced by getMaxNumSGPRs(), getMinNumSGPRs(), and llvm::GCNSubtarget::getSGPRAllocGranule().
| unsigned llvm::AMDGPU::IsaInfo::getSGPREncodingGranule | ( | const FeatureBitset & | Features | ) |
Features. Definition at line 291 of file AMDGPUBaseInfo.cpp.
Referenced by getNumSGPRBlocks(), and llvm::GCNSubtarget::getSGPREncodingGranule().
| unsigned llvm::AMDGPU::IsaInfo::getTotalNumSGPRs | ( | const FeatureBitset & | Features | ) |
Features. Definition at line 295 of file AMDGPUBaseInfo.cpp.
References getIsaVersion(), llvm::AMDGPU::IsaInfo::IsaVersion::Major, and llvm::IndexedInstrProf::Version.
Referenced by getMaxNumSGPRs(), getMinNumSGPRs(), llvm::GCNSubtarget::getTotalNumSGPRs(), and hasAnyNonFlatUseOfReg().
| unsigned llvm::AMDGPU::IsaInfo::getTotalNumVGPRs | ( | const FeatureBitset & | Features | ) |
Features. Definition at line 381 of file AMDGPUBaseInfo.cpp.
Referenced by getAddressableNumVGPRs(), getMaxNumVGPRs(), getMinNumVGPRs(), and llvm::GCNSubtarget::getTotalNumVGPRs().
| unsigned llvm::AMDGPU::IsaInfo::getVGPRAllocGranule | ( | const FeatureBitset & | Features | ) |
Features. Definition at line 373 of file AMDGPUBaseInfo.cpp.
Referenced by getMaxNumVGPRs(), getMinNumVGPRs(), llvm::GCNSubtarget::getVGPRAllocGranule(), and getVGPREncodingGranule().
| unsigned llvm::AMDGPU::IsaInfo::getVGPREncodingGranule | ( | const FeatureBitset & | Features | ) |
Features. Definition at line 377 of file AMDGPUBaseInfo.cpp.
References getVGPRAllocGranule().
Referenced by getNumVGPRBlocks(), and llvm::GCNSubtarget::getVGPREncodingGranule().
| unsigned llvm::AMDGPU::IsaInfo::getWavefrontSize | ( | const FeatureBitset & | Features | ) |
Features. Definition at line 213 of file AMDGPUBaseInfo.cpp.
Referenced by getWavesPerWorkGroup().
| unsigned llvm::AMDGPU::IsaInfo::getWavesPerWorkGroup | ( | const FeatureBitset & | Features, |
| unsigned | FlatWorkGroupSize | ||
| ) |
Features and limited by given FlatWorkGroupSize. Definition at line 278 of file AMDGPUBaseInfo.cpp.
References llvm::alignTo(), and getWavefrontSize().
Referenced by getMaxWavesPerCU(), getMaxWorkGroupsPerCU(), and llvm::GCNSubtarget::getWavesPerWorkGroup().
| bool llvm::AMDGPU::IsaInfo::hasCodeObjectV3 | ( | const MCSubtargetInfo * | STI | ) |
STI supports code object version 3, false otherwise. Definition at line 209 of file AMDGPUBaseInfo.cpp.
References llvm::MCSubtargetInfo::getFeatureBits().
Referenced by llvm::AMDGPUAsmPrinter::EmitEndOfAsmFile(), llvm::AMDGPUAsmPrinter::EmitFunctionBodyEnd(), llvm::AMDGPUAsmPrinter::EmitFunctionBodyStart(), llvm::AMDGPUAsmPrinter::EmitFunctionEntryLabel(), llvm::AMDGPUAsmPrinter::EmitStartOfAsmFile(), and getSpecialRegForName().
| void llvm::AMDGPU::IsaInfo::streamIsaVersion | ( | const MCSubtargetInfo * | STI, |
| raw_ostream & | Stream | ||
| ) |
Streams isa version string for given subtarget STI into Stream.
Definition at line 190 of file AMDGPUBaseInfo.cpp.
References llvm::raw_ostream::flush(), llvm::MCSubtargetInfo::getFeatureBits(), getIsaVersion(), llvm::MCSubtargetInfo::getTargetTriple(), and llvm::AMDGPU::hasXNACK().
Referenced by llvm::AMDGPUAsmPrinter::EmitEndOfAsmFile(), and getSpecialRegForName().
1.8.13