mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
a2be1b476a
* 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.
30 lines
730 B
TableGen
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
|