clang 23.0.0git
cir::direct::CIRDialectLLVMIRTranslationInterface Class Reference

Implementation of the dialect interface that converts CIR attributes to LLVM IR metadata. More...

Inheritance diagram for cir::direct::CIRDialectLLVMIRTranslationInterface:
[legend]

Public Member Functions

mlir::LogicalResult convertOperation (mlir::Operation *op, llvm::IRBuilderBase &builder, mlir::LLVM::ModuleTranslation &moduleTranslation) const final
 Translates the given operation to LLVM IR using the provided IR builder and saving the state in moduleTranslation.
virtual mlir::LogicalResult amendOperation (mlir::Operation *op, llvm::ArrayRef< llvm::Instruction * > instructions, mlir::NamedAttribute attribute, mlir::LLVM::ModuleTranslation &moduleTranslation) const override
 Any named attribute in the CIR dialect, i.e, with name started with "cir.", will be handled here.

Detailed Description

Implementation of the dialect interface that converts CIR attributes to LLVM IR metadata.

Definition at line 30 of file LowerToLLVMIR.cpp.

Member Function Documentation

◆ amendOperation()

virtual mlir::LogicalResult cir::direct::CIRDialectLLVMIRTranslationInterface::amendOperation ( mlir::Operation * op,
llvm::ArrayRef< llvm::Instruction * > instructions,
mlir::NamedAttribute attribute,
mlir::LLVM::ModuleTranslation & moduleTranslation ) const
inlineoverridevirtual

Any named attribute in the CIR dialect, i.e, with name started with "cir.", will be handled here.

Definition at line 51 of file LowerToLLVMIR.cpp.

◆ convertOperation()

mlir::LogicalResult cir::direct::CIRDialectLLVMIRTranslationInterface::convertOperation ( mlir::Operation * op,
llvm::IRBuilderBase & builder,
mlir::LLVM::ModuleTranslation & moduleTranslation ) const
inlinefinal

Translates the given operation to LLVM IR using the provided IR builder and saving the state in moduleTranslation.

Definition at line 37 of file LowerToLLVMIR.cpp.


The documentation for this class was generated from the following file: