Skip to content

Commit 0a1b437

Browse files
whitneywhtsangetiotto
authored andcommitted
Update polygeist for llvm commit 221f9c8 (part 2)
Signed-off-by: Tsang, Whitney <[email protected]>
1 parent 6d58145 commit 0a1b437

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

polygeist/tools/cgeist/Lib/clang-mlir.cc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@
4040
#include "llvm/Support/Debug.h"
4141
#include "llvm/Support/raw_ostream.h"
4242

43-
#include <SYCL/SYCLOps.h>
44-
#include <SYCL/SYCLTypes.h>
43+
#define GET_OP_CLASSES
44+
#include "SYCL/SYCLOps.h.inc"
45+
#include "SYCL/SYCLOpsDialect.h.inc"
46+
#include "SYCL/SYCLOpsTypes.h"
4547

4648
static bool DEBUG_FUNCTION = false;
4749
static bool BREAKPOINT_FUNCTION = false;
@@ -4827,9 +4829,9 @@ MLIRASTConsumer::GetOrCreateMLIRFunction(const FunctionDecl *FD,
48274829
NamedAttrList attrs(function->getAttrDictionary());
48284830
attrs.set("llvm.linkage",
48294831
mlir::LLVM::LinkageAttr::get(builder.getContext(), lnk));
4830-
if (FD->hasAttr<SYCLHalideAttr>() && FD->hasAttr<SYCLKernelAttr>()) {
4831-
attrs.set("SYCLKernel", mlir::StringAttr::get(builder.getContext(), name));
4832-
}
4832+
//if (FD->hasAttr<SYCLHalideAttr>() && FD->hasAttr<SYCLKernelAttr>()) {
4833+
// attrs.set("SYCLKernel", mlir::StringAttr::get(builder.getContext(), name));
4834+
//}
48334835
function->setAttrs(attrs.getDictionary(builder.getContext()));
48344836

48354837
functions[name] = function;
@@ -5057,7 +5059,7 @@ bool MLIRASTConsumer::HandleTopLevelDecl(DeclGroupRef dg) {
50575059

50585060
if ((emitIfFound.count("*") && name != "fpclassify" && !fd->isStatic() &&
50595061
externLinkage) ||
5060-
emitIfFound.count(name) || fd->hasAttr<SYCLHalideAttr>()) {
5062+
emitIfFound.count(name) /*|| fd->hasAttr<SYCLHalideAttr>()*/) {
50615063
functionsToEmit.push_back(fd);
50625064
} else {
50635065
}

polygeist/tools/cgeist/driver.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
#include "mlir/Dialect/SCF/Transforms/Passes.h"
3535
#include "mlir/Dialect/SCF/IR/SCF.h"
3636

37-
#include "SYCL/SYCLOps.h"
38-
#include "SYCL/SYCLTypes.h"
37+
#include "SYCL/SYCLOps.h.inc"
38+
#include "SYCL/SYCLOpsTypes.h.inc"
3939

4040
#include "mlir/IR/BuiltinTypes.h"
4141
#include "mlir/IR/MLIRContext.h"

0 commit comments

Comments
 (0)