9#ifndef LLVM_CLANG_CIR_DIALECT_BUILDER_CIRBASEBUILDER_H
10#define LLVM_CLANG_CIR_DIALECT_BUILDER_CIRBASEBUILDER_H
14#include "mlir/IR/Builders.h"
15#include "mlir/IR/BuiltinTypes.h"
16#include "mlir/IR/Types.h"
24 :
mlir::OpBuilder(&mlirContext) {}
27 return cir::PointerType::get(getContext(), ty);
35 auto valueAttr = mlir::IntegerAttr::get(
36 mlir::IntegerType::get(type.getContext(), 64), value);
37 return cir::ConstPtrAttr::get(
38 getContext(), mlir::cast<cir::PointerType>(type), valueAttr);
cir::PointerType getPointerTo(mlir::Type ty)
CIRBaseBuilderTy(mlir::MLIRContext &mlirContext)
mlir::TypedAttr getConstPtrAttr(mlir::Type type, int64_t value)
cir::PointerType getVoidPtrTy()