[PATCH] D96152: [flang][NFC] Update comments.
Eric Schweitz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 5 10:55:28 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGea3574561020: [flang][NFC] Update comments. (authored by schweitz).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96152/new/
https://reviews.llvm.org/D96152
Files:
flang/include/flang/Optimizer/Dialect/FIRType.h
Index: flang/include/flang/Optimizer/Dialect/FIRType.h
===================================================================
--- flang/include/flang/Optimizer/Dialect/FIRType.h
+++ flang/include/flang/Optimizer/Dialect/FIRType.h
@@ -5,6 +5,10 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
+//
+// Coding style: https://mlir.llvm.org/getting_started/DeveloperGuide/
+//
+//===----------------------------------------------------------------------===//
#ifndef OPTIMIZER_DIALECT_FIRTYPE_H
#define OPTIMIZER_DIALECT_FIRTYPE_H
@@ -67,7 +71,9 @@
/// Is `t` a FIR dialect type that implies a memory (de)reference?
bool isa_ref_type(mlir::Type t);
-/// Is `t` a type that is always trivially pass-by-reference?
+/// Is `t` a type that is always trivially pass-by-reference? Specifically, this
+/// is testing if `t` is a ReferenceType or any box type. Compare this to
+/// conformsWithPassByRef(), which includes pointers and allocatables.
bool isa_passbyref_type(mlir::Type t);
/// Is `t` a boxed type?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96152.321828.patch
Type: text/x-patch
Size: 1110 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210205/2a22bb1e/attachment.bin>
More information about the llvm-commits
mailing list