MLIR 24.0.0git
NVVMIndexSRegOps.cpp File Reference
#include "mlir/Dialect/LLVMIR/NVVMIndexSRegOps.h"
#include "IR/NVVMOps.h"
#include "mlir/IR/Diagnostics.h"
#include "mlir/IR/Operation.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/IR/ConstantRange.h"
#include <optional>
#include "mlir/Dialect/LLVMIR/NVVMIndexSRegOps.cpp.inc"

Go to the source code of this file.

Macros

#define GET_OP_CLASSES

Functions

static void nvvmInferResultRanges (std::optional< LLVM::ConstantRangeAttr > range, Value result, ArrayRef<::mlir::ConstantIntRanges > argRanges, SetIntRangeFn setResultRanges)
 Infer the result ranges for the NVVM SpecialRangeableRegisterOp that might have ConstantRangeAttr.
static LogicalResult verifyConstantRangeAttr (Operation *op, std::optional< LLVM::ConstantRangeAttr > rangeAttr)
 Verify the range attribute satisfies LLVM ConstantRange constructor requirements for NVVM SpecialRangeableRegisterOp.

Macro Definition Documentation

◆ GET_OP_CLASSES

#define GET_OP_CLASSES

Definition at line 75 of file NVVMIndexSRegOps.cpp.

Function Documentation

◆ nvvmInferResultRanges()

void nvvmInferResultRanges ( std::optional< LLVM::ConstantRangeAttr > range,
Value result,
ArrayRef<::mlir::ConstantIntRanges > argRanges,
SetIntRangeFn setResultRanges )
static

Infer the result ranges for the NVVM SpecialRangeableRegisterOp that might have ConstantRangeAttr.

Definition at line 28 of file NVVMIndexSRegOps.cpp.

References mlir::IntegerValueRange::getMaxRange(), and result.

◆ verifyConstantRangeAttr()

LogicalResult verifyConstantRangeAttr ( Operation * op,
std::optional< LLVM::ConstantRangeAttr > rangeAttr )
static

Verify the range attribute satisfies LLVM ConstantRange constructor requirements for NVVM SpecialRangeableRegisterOp.

Definition at line 52 of file NVVMIndexSRegOps.cpp.

References mlir::Operation::emitOpError(), and success().