Commit cc3cc5e
authored
[flang][NFC] simplify dispatching of reduction runtime calls (#110479)
As part of t[he RFC to replace fir.complex usages by mlir
complex](https://discourse.llvm.org/t/rfc-flang-replace-usages-of-fir-complex-by-mlir-complex-type/82292),
this patch updates the type dispatch in Reduction.cpp to use macros to
avoid naming the types everywhere and to avoid typos when copy-pasting
the if/else chains.1 parent 257707b commit cc3cc5e
File tree
2 files changed
+158
-464
lines changed- flang
- include/flang/Optimizer/Support
- lib/Optimizer/Builder/Runtime
2 files changed
+158
-464
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
188 | 192 | | |
189 | 193 | | |
190 | 194 | | |
| |||
0 commit comments