|
clang 24.0.0git
|
#include "CIRGenFunction.h"#include "mlir/IR/Value.h"#include "clang/Basic/TargetBuiltins.h"#include "clang/CIR/Dialect/IR/CIRDialect.h"#include "llvm/IR/Intrinsics.h"#include "llvm/IR/IntrinsicsNVPTX.h"#include "llvm/Support/NVPTXAddrSpace.h"#include <algorithm>Go to the source code of this file.
Classes | |
| struct | NVPTXMmaLdstInfo |
Macros | |
| #define | MMA_INTR(geom_op_type, layout) |
| #define | MMA_LDST(n, geom_op_type) |
Functions | |
| static mlir::Value | makeLdu (CIRGenFunction &cgf, const CallExpr *expr, llvm::StringRef intrinsicName) |
| static mlir::Value | makeLdg (CIRGenFunction &cgf, const CallExpr *expr) |
| static mlir::Value | emitUnaryNVVMIntrinsic (CIRGenFunction &cgf, const CallExpr *expr, llvm::StringRef intrinsicName) |
| Emit a CIR LLVMIntrinsicCallOp for a unary NVVM intrinsic. | |
| static mlir::Value | emitNVVMFPArith (CIRGenFunction &cgf, const CallExpr *expr, llvm::StringRef intrinsicName, llvm::APFloat::roundingMode rm) |
| Emit a CIR LLVMIntrinsicCallOp for an NVVM fadd/fmul intrinsic, which takes the rounding mode as a trailing operand. | |
| static mlir::Value | emitNVVMFMA (CIRGenFunction &cgf, const CallExpr *expr, llvm::StringRef intrinsicName, llvm::APFloat::roundingMode rm) |
| Emit a CIR LLVMIntrinsicCallOp for an NVVM fma intrinsic, which takes the rounding mode as a trailing operand. | |
| static mlir::Value | emitBar0Reduction (CIRGenFunction &cgf, const CallExpr *expr, llvm::StringRef intrinsicName, bool returnsPred) |
| static mlir::Value | makeScopedAtomicRMW (CIRGenFunction &cgf, const CallExpr *expr, cir::AtomicFetchKind kind, cir::SyncScopeKind scope) |
| static mlir::Value | makeScopedAtomicXchg (CIRGenFunction &cgf, const CallExpr *expr, cir::SyncScopeKind scope) |
| static NVPTXMmaLdstInfo | getNVPTXMmaLdstInfo (unsigned BuiltinID) |
| static void | storeWMMAFragment (CIRGenBuilderTy &builder, mlir::Location loc, mlir::Value result, Address dst, unsigned numRegisters) |
| static std::optional< mlir::Value > | emitWMMALoad (CIRGenFunction &cgf, const CallExpr *expr, unsigned builtinId) |
| #define MMA_INTR | ( | geom_op_type, | |
| layout ) |
Definition at line 166 of file CIRGenBuiltinNVPTX.cpp.
Referenced by getNVPTXMmaLdstInfo().
| #define MMA_LDST | ( | n, | |
| geom_op_type ) |
|
static |
Definition at line 110 of file CIRGenBuiltinNVPTX.cpp.
References cir::CIRBaseBuilderTy::createBoolToInt(), cir::CIRBaseBuilderTy::createCompare(), clang::CIRGen::CIRGenBuilderTy::emitIntrinsicCallOp(), clang::CIRGen::CIRGenFunction::emitScalarExpr(), clang::ast_matchers::expr, cir::CIRBaseBuilderTy::getBoolTy(), clang::CIRGen::CIRGenFunction::getBuilder(), clang::CIRGen::CIRGenFunction::getLoc(), cir::CIRBaseBuilderTy::getNullValue(), and clang::CIRGen::CIRGenBuilderTy::getSInt32Ty().
Referenced by clang::CIRGen::CIRGenFunction::emitNVPTXBuiltinExpr().
|
static |
Emit a CIR LLVMIntrinsicCallOp for an NVVM fma intrinsic, which takes the rounding mode as a trailing operand.
Definition at line 94 of file CIRGenBuiltinNVPTX.cpp.
References clang::CIRGen::CIRGenFunction::emitScalarExpr(), clang::ast_matchers::expr, clang::CIRGen::CIRGenFunction::getBuilder(), and clang::CIRGen::CIRGenFunction::getLoc().
Referenced by clang::CIRGen::CIRGenFunction::emitNVPTXBuiltinExpr().
|
static |
Emit a CIR LLVMIntrinsicCallOp for an NVVM fadd/fmul intrinsic, which takes the rounding mode as a trailing operand.
Definition at line 77 of file CIRGenBuiltinNVPTX.cpp.
References clang::CIRGen::CIRGenFunction::emitScalarExpr(), clang::ast_matchers::expr, clang::CIRGen::CIRGenFunction::getBuilder(), and clang::CIRGen::CIRGenFunction::getLoc().
Referenced by clang::CIRGen::CIRGenFunction::emitNVPTXBuiltinExpr().
|
static |
Emit a CIR LLVMIntrinsicCallOp for a unary NVVM intrinsic.
The result type is inferred from the single argument.
Definition at line 64 of file CIRGenBuiltinNVPTX.cpp.
References clang::CIRGen::CIRGenFunction::emitScalarExpr(), clang::ast_matchers::expr, clang::CIRGen::CIRGenFunction::getBuilder(), and clang::CIRGen::CIRGenFunction::getLoc().
Referenced by clang::CIRGen::CIRGenFunction::emitNVPTXBuiltinExpr().
|
static |
Definition at line 306 of file CIRGenBuiltinNVPTX.cpp.
References clang::CIRGen::CIRGenFunction::emitPointerWithAlignment(), clang::CIRGen::CIRGenFunction::emitScalarExpr(), clang::ast_matchers::expr, clang::CIRGen::CIRGenFunction::getBuilder(), clang::CIRGen::CIRGenFunction::getContext(), clang::CIRGen::CIRGenFunction::getIntrinsicType(), clang::CIRGen::CIRGenFunction::getLoc(), getNVPTXMmaLdstInfo(), and storeWMMAFragment().
Referenced by clang::CIRGen::CIRGenFunction::emitNVPTXBuiltinExpr().
|
static |
Definition at line 171 of file CIRGenBuiltinNVPTX.cpp.
References MMA_INTR, and MMA_LDST.
Referenced by clang::CodeGen::CodeGenFunction::EmitNVPTXBuiltinExpr(), and emitWMMALoad().
|
static |
Definition at line 43 of file CIRGenBuiltinNVPTX.cpp.
References clang::CIRGen::CIRGenFunction::convertTypeForMem(), clang::CIRGen::CIRGenFunction::emitPointerWithAlignment(), clang::ast_matchers::expr, clang::CIRGen::Address::getAlignment(), clang::CIRGen::CIRGenFunction::getBuilder(), clang::CIRGen::CIRGenFunction::getLoc(), clang::Type::getPointeeType(), and clang::CIRGen::Address::getPointer().
Referenced by clang::CIRGen::CIRGenFunction::emitNVPTXBuiltinExpr().
|
static |
Definition at line 27 of file CIRGenBuiltinNVPTX.cpp.
References clang::CIRGen::CIRGenFunction::convertTypeForMem(), clang::CIRGen::CIRGenFunction::emitPointerWithAlignment(), clang::ast_matchers::expr, clang::CIRGen::Address::getAlignment(), clang::CIRGen::CIRGenFunction::getBuilder(), clang::CIRGen::CIRGenFunction::getLoc(), and clang::Type::getPointeeType().
Referenced by clang::CIRGen::CIRGenFunction::emitNVPTXBuiltinExpr().
|
static |
Definition at line 127 of file CIRGenBuiltinNVPTX.cpp.
References clang::CIRGen::CIRGenFunction::emitPointerWithAlignment(), clang::CIRGen::Address::emitRawPointer(), clang::CIRGen::CIRGenFunction::emitScalarExpr(), clang::ast_matchers::expr, clang::CIRGen::Address::getAlignment(), clang::CIRGen::CIRGenFunction::getBuilder(), clang::CIRGen::CIRGenFunction::getLoc(), clang::CharUnits::getQuantity(), and kind.
Referenced by clang::CIRGen::CIRGenFunction::emitNVPTXBuiltinExpr().
|
static |
Definition at line 143 of file CIRGenBuiltinNVPTX.cpp.
References clang::CIRGen::CIRGenFunction::emitPointerWithAlignment(), clang::CIRGen::Address::emitRawPointer(), clang::CIRGen::CIRGenFunction::emitScalarExpr(), clang::ast_matchers::expr, clang::CIRGen::Address::getAlignment(), clang::CIRGen::CIRGenFunction::getBuilder(), clang::CIRGen::CIRGenFunction::getLoc(), and clang::CharUnits::getQuantity().
Referenced by clang::CIRGen::CIRGenFunction::emitNVPTXBuiltinExpr().
|
static |
Definition at line 285 of file CIRGenBuiltinNVPTX.cpp.
References cir::CIRBaseBuilderTy::createBitcast(), cir::CIRBaseBuilderTy::createPtrStride(), clang::CIRGen::CIRGenBuilderTy::createStore(), clang::CIRGen::Address::emitRawPointer(), clang::CharUnits::fromQuantity(), clang::CIRGen::Address::getAlignment(), clang::CIRGen::Address::getElementType(), clang::CIRGen::CIRGenBuilderTy::getSInt32(), and clang::CIRGen::Address::withAlignment().
Referenced by emitWMMALoad().