// // This file is distributed under the MIT License. See LICENSE.md for details. // #ifndef MLIR_CLIFT_EXPRESSION_HELPERS #define MLIR_CLIFT_EXPRESSION_HELPERS include "mlir/IR/PatternBase.td" def ValuesAreEqual : Constraint>; def ValuesAreNotEqual : Constraint>; def TypesAreEquivalent : Constraint>; def TypesAreNotEquivalent : Constraint>; def getPointeeType : NativeCodeCall<[{ clift::unwrapped_cast($0.getType()).getPointeeType() }]>; def makeInteger : NativeCodeCall<[{ $_builder.getIntegerAttr($_builder.getIntegerType(64), $0); }]>; def forceBooleanResult : NativeCodeCall<[{ clift::impl::forceBooleanResult($_builder, $0, $1) }]>; #endif