23struct X86IntrinsicOpConversion
28 matchAndRewrite(x86vector::X86IntrinsicOp op, ArrayRef<Value> operands,
29 ConversionPatternRewriter &rewriter)
const override {
30 const LLVMTypeConverter &typeConverter = *getTypeConverter();
32 op, rewriter.getStringAttr(op.getIntrinsicName()),
33 op.getIntrinsicOperands(operands, typeConverter, rewriter),
34 typeConverter, rewriter);
43 patterns.add<X86IntrinsicOpConversion>(converter);
48 target.addIllegalDialect<X86VectorDialect>();
Utility class for operation conversions targeting the LLVM dialect that allows for matching and rewri...
ConvertOpInterfaceToLLVMPattern(const LLVMTypeConverter &typeConverter, PatternBenefit benefit=1)
Derived class that automatically populates legalization information for different LLVM ops.
Conversion from types to the LLVM IR dialect.
LogicalResult intrinsicRewrite(Operation *op, StringRef intrinsic, ValueRange operands, const LLVMTypeConverter &typeConverter, RewriterBase &rewriter)
Replaces the given operation "op" with a call to an LLVM intrinsic with the specified name "intrinsic...
Include the generated interface declarations.
void populateX86VectorLegalizeForLLVMExportPatterns(const LLVMTypeConverter &converter, RewritePatternSet &patterns)
Collect a set of patterns to lower X86Vector ops to ops that map to LLVM intrinsics.
const FrozenRewritePatternSet & patterns
void configureX86VectorLegalizeForExportTarget(LLVMConversionTarget &target)
Configure the target to support lowering X86Vector ops to ops that map to LLVM intrinsics.