MLIR 24.0.0git
NVVMOps.h
Go to the documentation of this file.
1//===- NVVMOps.h - NVVM operation implementation helpers -------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef MLIR_LIB_DIALECT_LLVMIR_IR_NVVMOPS_H
10#define MLIR_LIB_DIALECT_LLVMIR_IR_NVVMOPS_H
11
13
14#include <optional>
15
16namespace mlir::NVVM {
17
18mlir::ParseResult parseCTAGroup(mlir::OpAsmParser &parser,
19 mlir::NVVM::CTAGroupKindAttr &groupAttr);
21 mlir::NVVM::CTAGroupKindAttr groupAttr);
22
23void nvvmInferResultRanges(std::optional<mlir::LLVM::ConstantRangeAttr> range,
26 mlir::SetIntRangeFn setResultRanges);
27mlir::LogicalResult
29 std::optional<mlir::LLVM::ConstantRangeAttr> rangeAttr);
30
31} // namespace mlir::NVVM
32
33#endif // MLIR_LIB_DIALECT_LLVMIR_IR_NVVMOPS_H
The OpAsmParser has methods for interacting with the asm parser: parsing things from it,...
This is a pure-virtual base class that exposes the asmprinter hooks necessary to implement a custom p...
Operation is the basic unit of execution within MLIR.
Definition Operation.h:87
This class represents an instance of an SSA value in the MLIR system, representing a computable value...
Definition Value.h:96
mlir::ParseResult parseCTAGroup(mlir::OpAsmParser &parser, mlir::NVVM::CTAGroupKindAttr &groupAttr)
void nvvmInferResultRanges(std::optional< mlir::LLVM::ConstantRangeAttr > range, mlir::Value result, mlir::ArrayRef< mlir::ConstantIntRanges > argRanges, mlir::SetIntRangeFn setResultRanges)
mlir::LogicalResult verifyConstantRangeAttr(mlir::Operation *op, std::optional< mlir::LLVM::ConstantRangeAttr > rangeAttr)
void printCTAGroup(mlir::OpAsmPrinter &printer, mlir::Operation *, mlir::NVVM::CTAGroupKindAttr groupAttr)
llvm::function_ref< void(Value, const ConstantIntRanges &)> SetIntRangeFn
The type of the setResultRanges callback provided to ops implementing InferIntRangeInterface.