add_subdirectory(EDSC)
add_subdirectory(FxpMathOps)
+add_subdirectory(GPU)
add_subdirectory(Linalg)
add_subdirectory(LLVMIR)
add_subdirectory(Quantization)
--- /dev/null
+set(LLVM_TARGET_DEFINITIONS GPUOps.td)
+mlir_tablegen(GPUOps.h.inc -gen-op-decls)
+mlir_tablegen(GPUOps.cpp.inc -gen-op-defs)
+add_public_tablegen_target(MLIRGPUOpsIncGen)
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/GPU
)
-add_dependencies(MLIRGPU MLIRIR LLVMSupport)
+add_dependencies(MLIRGPU MLIRGPUOpsIncGen MLIRIR LLVMSupport)
target_link_libraries(MLIRGPU MLIRIR LLVMSupport)
llvm::cl::init(false), llvm::cl::Hidden);
namespace {
+/// A special index constant used for non-kind attribute aliases.
+static constexpr int kNonAttrKindAlias = -1;
+
class ModuleState {
- /// A special index constant used for non-kind attribute aliases.
- static constexpr int kNonAttrKindAlias = -1;
public:
/// This is the current context if it is knowable, otherwise this is null.