10 #define MLIR_IR_UNIT_H
13 #include "llvm/ADT/PointerUnion.h"
14 #include "llvm/Support/raw_ostream.h"
30 using PointerUnion::PointerUnion;
33 void print(raw_ostream &os,
45 template <
typename To>
47 :
public CastInfo<To, mlir::IRUnit::PointerUnion> {};
49 template <
typename To>
51 :
public CastInfo<To, const mlir::IRUnit::PointerUnion> {};
IRUnit is a union of the different types of IR objects that consistute the IR structure (other than T...
void print(raw_ostream &os, OpPrintingFlags flags=OpPrintingFlags().skipRegions().useLocalScope()) const
Print the IRUnit to the given stream.
Set of flags used to control the behavior of the various IR print methods (e.g.
The OpAsmOpInterface, see OpAsmInterface.td for more details.
Include the generated interface declarations.
raw_ostream & operator<<(raw_ostream &os, const AliasResult &result)