Jlm
Classes | Functions
jlm::mlir Namespace Reference

Classes

class  JlmToMlirConverter
 
class  MlirToJlmConverter
 

Functions

::mlir::ArrayAttr memoryNodeIndicesToArrayAttr (::mlir::MLIRContext *context, const std::vector< llvm::MemoryNodeId > &memoryNodeIndices)
 
static std::vector< llvm::MemoryNodeIdarrayAttrToMemoryNodeIds (::mlir::ArrayAttr arrayAttr)
 
const util::BijectiveMap<::mlir::arith::CmpFPredicate, llvm::fpcmp > & GetFpCmpPredicateMap ()
 

Function Documentation

◆ arrayAttrToMemoryNodeIds()

static std::vector<llvm::MemoryNodeId> jlm::mlir::arrayAttrToMemoryNodeIds ( ::mlir::ArrayAttr  arrayAttr)
static

Definition at line 404 of file MlirToJlmConverter.cpp.

◆ GetFpCmpPredicateMap()

const util::BijectiveMap<::mlir::arith::CmpFPredicate, llvm::fpcmp > & jlm::mlir::GetFpCmpPredicateMap ( )

Get a bijective mapping between MLIR floating-point comparison predicates and JLM fpcmp values.

Returns
A reference to the static mapping between MLIR CmpFPredicate and JLM fpcmp

Definition at line 13 of file MLIRConverterCommon.cpp.

◆ memoryNodeIndicesToArrayAttr()

::mlir::ArrayAttr jlm::mlir::memoryNodeIndicesToArrayAttr ( ::mlir::MLIRContext *  context,
const std::vector< llvm::MemoryNodeId > &  memoryNodeIndices 
)
static

Converts a list of memory node ids into an ArrayAttr, containing one IntegerAttr for each memory node id.

Parameters
contextthe MLIR context
memoryNodeIndicesthe list of indices to convert into an ArrayAttr
Returns
the created ArrayAttr

Definition at line 407 of file JlmToMlirConverter.cpp.