Files
revng-revng/include/revng/Clift/CliftOpInterfacesExpr.td
Lauri Vasama a2be1b476a Split up Clift CastOp
* DecayOp - array or function to pointer decay. Not shown in C.
* BitCastOp - bit-preserving conversion. Emitted as bit_cast if
  necessary.
* ExtendOp - zero- or sign-extending conversion from any integer type to
  any wider integer type.
* TruncateOp - truncating conversion from any integer type to any
  narrower integer type.
* PtrResizeOp - resizes a pointer without changing its pointee type.
2026-04-08 12:11:54 +03:00

30 lines
730 B
TableGen

//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
#ifndef MLIR_CLIFT_OP_INTERFACES_EXPR
#define MLIR_CLIFT_OP_INTERFACES_EXPR
include "revng/Clift/CliftOpInterfacesBasic.td"
def Clift_CastOpInterface : Clift_OpInterface<"CastOpInterface",
[Clift_ExpressionOpInterface]> {
let description = [{
Common interface for cast expressions.
}];
let methods = [
InterfaceMethod<
/*desc=*/"Returns the unique operand of this cast expression.",
"mlir::Value", "getValue", (ins)
>,
InterfaceMethod<
/*desc=*/"Returns the result of this cast expression.",
"mlir::Value", "getResult", (ins)
>,
];
}
#endif