#ifndef INFRT_BASE #define INFRT_BASE include "mlir/IR/OpBase.td" include "paddle/infrt/dialect/infrt/infrt_ops_base.td" def INFRT_Dialect : Dialect { let name = "Infrt"; let description = [{ The INFRT host dialect. }]; let cppNamespace = "::infrt::dialect"; } // Type definitions def StringType : Type()">, "!infrt.string type">, BuildableType<"$_builder.getType<::infrt::dt::StringType>()">; def TensorMapType : Type()">, "!infrt.tensor_map type">, BuildableType<"$_builder.getType<::infrt::dt::TensorMapType>()">; def BufferType : OpaqueType<"b", "buffer", "buffer">; class INFRT_createI32Attr : NativeCodeCall< "infrt::createI32Attr($_builder, $_loc, " # value # ")">; class INFRT_createSI32Attr : NativeCodeCall< "infrt::createSI32Attr($_builder, $_loc, " # value # ")">; class INFRT_createF32Attr : NativeCodeCall< "infrt::createF32Attr($_builder, $_loc, " # value # ")">; def INFRT_cvtValueToValueRange : NativeCodeCall< "infrt::cvtValueToValueRange($0)">; def INFRT_concatTwoValueRange : NativeCodeCall< "infrt::concatTwoValueRange($0, $1)">; #endif // INFRT_BASE