#include "mlir/Dialect/UB/IR/UBOps.h"
#include "mlir/Conversion/ConvertToLLVM/ToLLVMInterface.h"
#include "mlir/Transforms/InliningUtils.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/DialectImplementation.h"
#include "llvm/ADT/TypeSwitch.h"
#include "mlir/Dialect/UB/IR/UBOpsDialect.cpp.inc"
usingnamespacemlir;
usingnamespacemlir::ub;
namespace {
struct UBInlinerInterface : public DialectInlinerInterface { … };
}
void UBDialect::initialize() { … }
Operation *UBDialect::materializeConstant(OpBuilder &builder, Attribute value,
Type type, Location loc) { … }
OpFoldResult PoisonOp::fold(FoldAdaptor ) { … }
#include "mlir/Dialect/UB/IR/UBOpsInterfaces.cpp.inc"
#define GET_ATTRDEF_CLASSES
#include "mlir/Dialect/UB/IR/UBOpsAttributes.cpp.inc"
#define GET_OP_CLASSES
#include "mlir/Dialect/UB/IR/UBOps.cpp.inc"