|
40 | 40 | #include "llvm/Support/Debug.h"
|
41 | 41 | #include "llvm/Support/raw_ostream.h"
|
42 | 42 |
|
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" |
45 | 47 |
|
46 | 48 | static bool DEBUG_FUNCTION = false;
|
47 | 49 | static bool BREAKPOINT_FUNCTION = false;
|
@@ -4827,9 +4829,9 @@ MLIRASTConsumer::GetOrCreateMLIRFunction(const FunctionDecl *FD,
|
4827 | 4829 | NamedAttrList attrs(function->getAttrDictionary());
|
4828 | 4830 | attrs.set("llvm.linkage",
|
4829 | 4831 | 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 | + //} |
4833 | 4835 | function->setAttrs(attrs.getDictionary(builder.getContext()));
|
4834 | 4836 |
|
4835 | 4837 | functions[name] = function;
|
@@ -5057,7 +5059,7 @@ bool MLIRASTConsumer::HandleTopLevelDecl(DeclGroupRef dg) {
|
5057 | 5059 |
|
5058 | 5060 | if ((emitIfFound.count("*") && name != "fpclassify" && !fd->isStatic() &&
|
5059 | 5061 | externLinkage) ||
|
5060 |
| - emitIfFound.count(name) || fd->hasAttr<SYCLHalideAttr>()) { |
| 5062 | + emitIfFound.count(name) /*|| fd->hasAttr<SYCLHalideAttr>()*/) { |
5061 | 5063 | functionsToEmit.push_back(fd);
|
5062 | 5064 | } else {
|
5063 | 5065 | }
|
|
0 commit comments