#ifndef PHI_BASE #define PHI_BASE include "mlir/IR/OpBase.td" include "paddle/infrt/dialect/infrt_base.td" def PHI_Dialect : Dialect { let name = "phi"; let description = [{ The PHI host dialect. }]; let cppNamespace = "::infrt::phi"; let useDefaultTypePrinterParser = 1; } def PhiOpTrait : NativeOpTrait<"PhiOpTrait">; class PHI_Type traits = []> : TypeDef {} def Allocator : PHI_Type<"Allocator"> { let mnemonic = "allocator"; let parameters = (ins TargetParam:$target ); let assemblyFormat = "`<` $target `>`"; } def Context : PHI_Type<"Context"> { let mnemonic = "context"; let parameters = (ins TargetParam:$target ); let assemblyFormat = "`<` $target `>`"; } #endif