#include "mlir/Target/LLVMIR/Dialect/VCIX/VCIXToLLVMIRTranslation.h"
#include "mlir/Dialect/LLVMIR/VCIXDialect.h"
#include "mlir/IR/BuiltinAttributes.h"
#include "mlir/IR/Operation.h"
#include "mlir/Target/LLVMIR/ModuleTranslation.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/IntrinsicsRISCV.h"
#include "llvm/Support/raw_ostream.h"
usingnamespacemlir;
usingnamespacemlir::LLVM;
createIntrinsicCall;
static llvm::Type *getXlenType(Attribute opcodeAttr,
LLVM::ModuleTranslation &moduleTranslation) { … }
static llvm::Value *createVL(llvm::IRBuilderBase &builder, llvm::Value *vl,
VectorType vtype, llvm::Type *xlen, Location loc,
LLVM::ModuleTranslation &moduleTranslation) { … }
namespace {
class VCIXDialectLLVMIRTranslationInterface
: public LLVMTranslationDialectInterface { … };
}
void mlir::registerVCIXDialectTranslation(DialectRegistry ®istry) { … }
void mlir::registerVCIXDialectTranslation(MLIRContext &context) { … }