|
MLIR 24.0.0git
|
Namespaces | |
| namespace | impl |
Classes | |
| struct | NVVMCheckSMVersion |
| class | PtxBuilder |
| A class to build PTX assembly automatically. More... | |
| class | SerializeGPUModuleBase |
| Base class for all NVVM serializations from GPU modules into binary strings. More... | |
Typedefs | |
| using | IDArgPair |
| A pair type of LLVM's Intrinsic ID and args (which are llvm values). | |
Enumerations | |
| enum class | PTXRegisterMod { Read = 0 , Write = 2 , ReadWrite = 1 } |
| Register read/write modifier to build constraint string for PTX inline https://docs.nvidia.com/cuda/inline-ptx-assembly/index.html#parameters. More... | |
Functions | |
| void | registerConvertGpuToNVVMInterface (DialectRegistry ®istry) |
| Registers the ConvertToLLVMAttrInterface interface on the NVVM::NVVMTargetAttr attribute. | |
| llvm::raw_ostream & | operator<< (llvm::raw_ostream &os, PTXRegisterMod mod) |
| void | countPlaceholderNumbers (StringRef ptxCode, llvm::SmallDenseSet< unsigned > &seenRW, llvm::SmallDenseSet< unsigned > &seenW, llvm::SmallDenseSet< unsigned > &seenR, llvm::SmallVectorImpl< unsigned > &rwNums, llvm::SmallVectorImpl< unsigned > &wNums, llvm::SmallVectorImpl< unsigned > &rNums) |
| Count the number of placeholder variables such as {$r}, {$w}, {$rw} in the PTX code. | |
| bool | operator== (unsigned as, NVVMMemorySpace memSpace) |
| Utility functions to compare NVVMMemorySpace with unsigned values. | |
| bool | operator== (NVVMMemorySpace memSpace, unsigned as) |
| bool | operator!= (unsigned as, NVVMMemorySpace memSpace) |
| bool | operator!= (NVVMMemorySpace memSpace, unsigned as) |
| std::pair< mlir::Type, unsigned > | inferMMAType (mlir::NVVM::MMATypes type, mlir::NVVM::MMAFrag frag, int nRow, int nCol, mlir::MLIRContext *context) |
| Return the element type and number of elements associated with a wmma matrix of given chracteristics. | |
| std::unique_ptr<::mlir::Pass > | createNVVMOptimizeForTargetPass () |
| void | registerNVVMOptimizeForTargetPass () |
| void | registerNVVMOptimizeForTargetPassPass () |
| void | registerNVVMPasses () |
| void | registerNVVMTargetInterfaceExternalModels (DialectRegistry ®istry) |
| Registers the TargetAttrInterface for the #nvvm.target attribute in the given registry. | |
| void | registerNVVMTargetInterfaceExternalModels (MLIRContext &context) |
| Registers the TargetAttrInterface for the #nvvm.target attribute in the registry associated with the given context. | |
| StringRef | getCUDAToolkitPath () |
| Searches & returns the path CUDA toolkit path, the search order is: | |
| bool | isPtrInAddrSpace (mlir::Value ptr, NVVMMemorySpace targetAS) |
| Returns whether ptr is a pointer into the address space targetAS. | |
| bool | isPtrInSharedCTASpace (mlir::Value ptr) |
| Returns whether ptr is a pointer into the shared memory of the CTA. | |
Variables | |
| constexpr int | kSharedMemoryAlignmentBit = 128 |
| constexpr unsigned | notIntrinsic = llvm::Intrinsic::not_intrinsic |
| The ID of no intrinsic, used in the intrinsic tables of the ops. | |
| using mlir::NVVM::IDArgPair |
A pair type of LLVM's Intrinsic ID and args (which are llvm values).
This type is returned by the getIntrinsicIDAndArgs() methods.
Definition at line 35 of file NVVMIntrinsicLowering.h.
|
strong |
Register read/write modifier to build constraint string for PTX inline https://docs.nvidia.com/cuda/inline-ptx-assembly/index.html#parameters.
| Enumerator | |
|---|---|
| Read | Read register with no modifier. |
| Write | Write register with '=' modifier. |
| ReadWrite | ReadWrite register with '+' modifier. Note that, this is not natively supported by LLVM, the Interface does mapping |
Definition at line 27 of file BasicPtxBuilderInterface.h.
| void mlir::NVVM::countPlaceholderNumbers | ( | StringRef | ptxCode, |
| llvm::SmallDenseSet< unsigned > & | seenRW, | ||
| llvm::SmallDenseSet< unsigned > & | seenW, | ||
| llvm::SmallDenseSet< unsigned > & | seenR, | ||
| llvm::SmallVectorImpl< unsigned > & | rwNums, | ||
| llvm::SmallVectorImpl< unsigned > & | wNums, | ||
| llvm::SmallVectorImpl< unsigned > & | rNums ) |
Count the number of placeholder variables such as {$r}, {$w}, {$rw} in the PTX code.
Referenced by rewriteAsmPlaceholders().
| std::unique_ptr<::mlir::Pass > mlir::NVVM::createNVVMOptimizeForTargetPass | ( | ) |
We declare an explicit private instantiation because Pass classes should only be visible by the current library.
Definition at line 79 of file OptimizeForNVVM.cpp.
References result.
| StringRef mlir::NVVM::getCUDAToolkitPath | ( | ) |
Searches & returns the path CUDA toolkit path, the search order is:
Definition at line 89 of file Target.cpp.
References __DEFAULT_CUDATOOLKIT_PATH__.
Referenced by mlir::NVVM::SerializeGPUModuleBase::SerializeGPUModuleBase().
| std::pair< mlir::Type, unsigned > mlir::NVVM::inferMMAType | ( | mlir::NVVM::MMATypes | type, |
| mlir::NVVM::MMAFrag | frag, | ||
| int | nRow, | ||
| int | nCol, | ||
| mlir::MLIRContext * | context ) |
Return the element type and number of elements associated with a wmma matrix of given chracteristics.
This matches the logic in IntrinsicsNVVM.td WMMA_REGS structure.
Referenced by mlir::convertMMAToLLVMType(), and inferMMATypeFromMNK().
|
inline |
Returns whether ptr is a pointer into the address space targetAS.
Definition at line 29 of file NVVMOps.h.
Referenced by isPtrInGenericSpace(), isPtrInSharedClusterSpace(), and isPtrInSharedCTASpace().
|
inline |
Returns whether ptr is a pointer into the shared memory of the CTA.
Definition at line 35 of file NVVMOps.h.
References isPtrInAddrSpace().
Definition at line 39 of file NVVMAttributes.h.
Definition at line 36 of file NVVMAttributes.h.
|
inline |
Definition at line 38 of file BasicPtxBuilderInterface.h.
Definition at line 33 of file NVVMAttributes.h.
Utility functions to compare NVVMMemorySpace with unsigned values.
Definition at line 30 of file NVVMAttributes.h.
| void mlir::NVVM::registerConvertGpuToNVVMInterface | ( | DialectRegistry & | registry | ) |
Registers the ConvertToLLVMAttrInterface interface on the NVVM::NVVMTargetAttr attribute.
This interface populates the conversion target, LLVM type converter, and pattern set for converting GPU operations to NVVM.
Definition at line 746 of file LowerGpuOpsToNVVMOps.cpp.
References mlir::DialectRegistry::addExtension().
Referenced by mlir::registerAllExtensions().
|
inline |
|
inline |
|
inline |
Definition at line 115 of file Passes.h.
Referenced by mlir::registerAllPasses().
| void mlir::NVVM::registerNVVMTargetInterfaceExternalModels | ( | DialectRegistry & | registry | ) |
Registers the TargetAttrInterface for the #nvvm.target attribute in the given registry.
Definition at line 74 of file Target.cpp.
References mlir::DialectRegistry::addExtension().
Referenced by mlir::registerAllDialects(), and registerNVVMTargetInterfaceExternalModels().
| void mlir::NVVM::registerNVVMTargetInterfaceExternalModels | ( | MLIRContext & | context | ) |
Registers the TargetAttrInterface for the #nvvm.target attribute in the registry associated with the given context.
Definition at line 81 of file Target.cpp.
References mlir::MLIRContext::appendDialectRegistry(), and registerNVVMTargetInterfaceExternalModels().
|
constexpr |
Definition at line 27 of file NVVMAttributes.h.
Referenced by mlir::populateGpuToNVVMConversionPatterns().