func MLIR Dialect Builder API

Builder Methods

func::CallIndirectOp

Creates a new func.call_indirect operation.

SmallVector<MlirOp>CallIndirect(TypeRangeresultTypes,MlirOp&callee,ArrayRef<MlirOp>callee_operands,/*optional*/::mlir::ArrayAttrarg_attrs={},/*optional*/::mlir::ArrayAttrres_attrs={});

func::ConstantOp

Creates a new func.constant operation.

MlirOpConstant(MlirBuilder&builder,TyperesultType,::llvm::StringRefvalue);

func::ReturnOp

Creates a new func.return operation.

This operation is a Region's Terminator. It can only be called in a RegionBuilder function callback when constructing the body of an op.

voidReturn(RegionBuilder&builder,ArrayRef<MlirOp>operands);

Skipped Operations

Unable to generate builder for the following operations:

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年12月05日 UTC.