MLIR 22.0.0git
LLVMIRToNVVMTranslation.cpp File Reference
#include "mlir/Target/LLVMIR/Dialect/NVVM/LLVMIRToNVVMTranslation.h"
#include "mlir/Dialect/LLVMIR/NVVMDialect.h"
#include "mlir/Target/LLVMIR/ModuleImport.h"
#include "llvm/IR/ConstantRange.h"
#include "mlir/Dialect/LLVMIR/NVVMConvertibleLLVMIRIntrinsics.inc"
#include "mlir/Dialect/LLVMIR/NVVMFromLLVMIRConversions.inc"

Go to the source code of this file.

Functions

static bool isConvertibleIntrinsic (llvm::Intrinsic::ID id)
 Returns true if the LLVM IR intrinsic is convertible to an MLIR NVVM dialect intrinsic.
static ArrayRef< unsignedgetSupportedIntrinsicsImpl ()
 Returns the list of LLVM IR intrinsic identifiers that are convertible to MLIR NVVM dialect intrinsics.
static LogicalResult convertIntrinsicImpl (OpBuilder &odsBuilder, llvm::CallInst *inst, LLVM::ModuleImport &moduleImport)
 Converts the LLVM intrinsic to an MLIR NVVM dialect operation if a conversion exits.

Function Documentation

◆ convertIntrinsicImpl()

LogicalResult convertIntrinsicImpl ( OpBuilder & odsBuilder,
llvm::CallInst * inst,
LLVM::ModuleImport & moduleImport )
static

Converts the LLVM intrinsic to an MLIR NVVM dialect operation if a conversion exits.

Returns failure otherwise.

Definition at line 41 of file LLVMIRToNVVMTranslation.cpp.

References isConvertibleIntrinsic().

◆ getSupportedIntrinsicsImpl()

ArrayRef< unsigned > getSupportedIntrinsicsImpl ( )
static

Returns the list of LLVM IR intrinsic identifiers that are convertible to MLIR NVVM dialect intrinsics.

Definition at line 32 of file LLVMIRToNVVMTranslation.cpp.

◆ isConvertibleIntrinsic()

bool isConvertibleIntrinsic ( llvm::Intrinsic::ID id)
static

Returns true if the LLVM IR intrinsic is convertible to an MLIR NVVM dialect intrinsic.

Returns false otherwise.

Definition at line 23 of file LLVMIRToNVVMTranslation.cpp.

Referenced by convertIntrinsicImpl().