Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Commit 57ebdf1

Browse files
joker-ephtensorflower-gardener
authored andcommitted
Document that non-IR units are passed by non-const reference instead of pointer in general
PiperOrigin-RevId: 266583029
1 parent c571417 commit 57ebdf1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

g3doc/DeveloperGuide.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ methods).
66

77
## Style guide
88

9-
MLIR follows the [LLVM style](https://llvm.org/docs/CodingStandards.html) guide
10-
except:
9+
MLIR follows the [LLVM style](https://llvm.org/docs/CodingStandards.html) guide.
10+
We also adhere to the following, that deviates from, or isn't specified in the
11+
LLVM style guide:
1112

1213
* Adopts [camelBack](https://llvm.org/docs/Proposals/VariableNames.html);
14+
* Except for IR units (Region, Block, and Operation), non-nullable output
15+
argument are passed by non-const reference in general.
1316

1417
## Pass name and other command line options
1518

0 commit comments

Comments
 (0)