MLIR  19.0.0git
Functions
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/IntrinsicsNVPTX.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. More...
 
static ArrayRef< unsigned > getSupportedIntrinsicsImpl ()
 Returns the list of LLVM IR intrinsic identifiers that are convertible to MLIR NVVM dialect intrinsics. More...
 
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. More...
 

Function Documentation

◆ convertIntrinsicImpl()

static 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 42 of file LLVMIRToNVVMTranslation.cpp.

References mlir::failure(), and isConvertibleIntrinsic().

◆ getSupportedIntrinsicsImpl()

static ArrayRef<unsigned> getSupportedIntrinsicsImpl ( )
static

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

Definition at line 33 of file LLVMIRToNVVMTranslation.cpp.

◆ isConvertibleIntrinsic()

static 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 24 of file LLVMIRToNVVMTranslation.cpp.

Referenced by convertIntrinsicImpl().