diff options
author | drazi <fengxie83@gmail.com> | 2023-11-13 13:48:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-12 21:48:49 -0800 |
commit | 9a3d3c7093d3e834f2f414bafad41b921e38eec3 (patch) | |
tree | 2dadc56d5f680e9e32258bf94e6a0859354e9ba9 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | abeffc9fd6b0cd8f6f25f854e97cd73310c8a7e5 (diff) | |
download | llvm-9a3d3c7093d3e834f2f414bafad41b921e38eec3.zip llvm-9a3d3c7093d3e834f2f414bafad41b921e38eec3.tar.gz llvm-9a3d3c7093d3e834f2f414bafad41b921e38eec3.tar.bz2 |
generalize pass gpu-kernel-outlining for symbol op (#72074)
This PR generalize gpu-out-lining pass to take care of ops
`SymbolOpInterface` instead of just `func::FuncOp`.
Before this change, gpu-out-lining pass will skip `llvm.func`.
```mlir
module {
llvm.func @main() {
%c1 = arith.constant 1 : index
gpu.launch blocks(%arg0, %arg1, %arg2) in (%arg6 = %c1, %arg7 = %c1, %arg8 = %c1) threads(%arg3, %arg4, %arg5) in (%arg9 = %c1, %arg10 = %c1, %arg11 = %c1) {
gpu.terminator
}
llvm.return
}
}
```
After this change, gpu-out-lining pass can handle llvm.func as well.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions