[all-commits] [llvm/llvm-project] 85e865: [flang] Use `createOpWithBody` for section op, NFC...

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Thu Dec 7 05:41:46 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 85e865288e8b002e222849723be737d77201cb7f
      https://github.com/llvm/llvm-project/commit/85e865288e8b002e222849723be737d77201cb7f
  Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
  Date:   2023-12-07 (Thu, 07 Dec 2023)

  Changed paths:
    M flang/lib/Lower/OpenMP.cpp

  Log Message:
  -----------
  [flang] Use `createOpWithBody` for section op, NFC (#74659)

Replace explicit calls to
```
  op = builder.create<SectionOp>(...)
  createBodyOfOp<SectionOp>(op, ...)
```
with a single call to
```
  createOpWithBody<SectionOp>(...)
```

This is NFC, that's what the `createOpWithBody` function does.




More information about the All-commits mailing list