<div dir="ltr">Any idea why this function exists? Usually users would be expected to use dump functions, not op<<, yeah?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 3, 2022 at 6:59 PM via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Author: Weverything<br>
Date: 2022-05-03T18:51:23-07:00<br>
New Revision: 5afd20806d4e28e5d8a8f968f199a663021bbb5b<br>
<br>
URL: <a href="https://github.com/llvm/llvm-project/commit/5afd20806d4e28e5d8a8f968f199a663021bbb5b" rel="noreferrer" target="_blank">https://github.com/llvm/llvm-project/commit/5afd20806d4e28e5d8a8f968f199a663021bbb5b</a><br>
DIFF: <a href="https://github.com/llvm/llvm-project/commit/5afd20806d4e28e5d8a8f968f199a663021bbb5b.diff" rel="noreferrer" target="_blank">https://github.com/llvm/llvm-project/commit/5afd20806d4e28e5d8a8f968f199a663021bbb5b.diff</a><br>
<br>
LOG: [riscv] Mark function as used to avoid unused warning.<br>
<br>
Added: <br>
<br>
<br>
Modified: <br>
llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp<br>
<br>
Removed: <br>
<br>
<br>
<br>
################################################################################<br>
diff --git a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp<br>
index fa43dae022e89..f08dbeeb8d019 100644<br>
--- a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp<br>
+++ b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp<br>
@@ -420,6 +420,7 @@ class VSETVLIInfo {<br>
};<br>
<br>
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)<br>
+LLVM_ATTRIBUTE_USED<br>
inline raw_ostream &operator<<(raw_ostream &OS, const VSETVLIInfo &V) {<br>
V.print(OS);<br>
return OS;<br>
<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div>