Skip to content

Commit

Permalink
add a promise delcaration
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianmcg committed Aug 5, 2024
1 parent 601ee8d commit db2bb6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
//===----------------------------------------------------------------------===//

#include "mlir/Dialect/OpenMP/OpenMPDialect.h"
#include "mlir/Conversion/ConvertToLLVM/ToLLVMInterface.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/Dialect/LLVMIR/LLVMTypes.h"
#include "mlir/Dialect/OpenACCMPCommon/Interfaces/AtomicInterfaces.h"
Expand Down Expand Up @@ -83,6 +84,8 @@ void OpenMPDialect::initialize() {
#include "mlir/Dialect/OpenMP/OpenMPOpsTypes.cpp.inc"
>();

declarePromisedInterface<ConvertToLLVMPatternInterface, OpenMPDialect>();

MemRefType::attachInterface<MemRefPointerLikeModel>(*getContext());
LLVM::LLVMPointerType::attachInterface<LLVMPointerPointerLikeModel>(
*getContext());
Expand Down

0 comments on commit db2bb6a

Please sign in to comment.