This patch introduces the acc.shutdown operation that represents an OpenACC shutdown directive.
Clauses are derived from the spec 2.14.2
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp | ||
---|---|---|
649 | You can return the error directly. Also, you can use emitOpError to prefix the message with the op name. |
mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp | ||
---|---|---|
648 | I added one since it will be shared with at least acc.init |
mlir/test/Dialect/OpenACC/invalid.mlir | ||
---|---|---|
1 | I was plaining on using a dummy op and I now switched the scf.if with a dummy so now it is needed. |
mlir/test/Dialect/OpenACC/invalid.mlir | ||
---|---|---|
1 | Can we use a test op and avoid unregistered-dialect? |
mlir/test/Dialect/OpenACC/invalid.mlir | ||
---|---|---|
1 | Sure. Are there test op that we can use directly? |
mlir/test/Dialect/OpenACC/invalid.mlir | ||
---|---|---|
1 | You can looking the op definitions for the test dialect, but it also accept any unregistered op directly. "test.openacc_dummy_op"() : () -> () |
mlir/test/Dialect/OpenACC/invalid.mlir | ||
---|---|---|
1 | Ok, I'll send a patch today which will also remove the -allow-unregistered-dialect in the mlir/test/Dialect/OpenACC/ops.mlir tests. | |
1 | @mehdi_amini Done in D88587 |
Would it be good to add an isComputeOperation function?