[PATCH] D107753: [IRBuilder][NFC] Clarify docs on fadd/fmul reductions
Fraser Cormack via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 10 02:48:24 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGaef39925214c: [IRBuilder][NFC] Clarify docs on fadd/fmul reductions (authored by frasercrmck).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107753/new/
https://reviews.llvm.org/D107753
Files:
llvm/include/llvm/IR/IRBuilder.h
Index: llvm/include/llvm/IR/IRBuilder.h
===================================================================
--- llvm/include/llvm/IR/IRBuilder.h
+++ llvm/include/llvm/IR/IRBuilder.h
@@ -697,12 +697,16 @@
MDNode *TBAAStructTag = nullptr, MDNode *ScopeTag = nullptr,
MDNode *NoAliasTag = nullptr);
- /// Create a vector fadd reduction intrinsic of the source vector.
- /// The first parameter is a scalar accumulator value for ordered reductions.
+ /// Create a sequential vector fadd reduction intrinsic of the source vector.
+ /// The first parameter is a scalar accumulator value. An unordered reduction
+ /// can be created by adding the reassoc fast-math flag to the resulting
+ /// sequential reduction.
CallInst *CreateFAddReduce(Value *Acc, Value *Src);
- /// Create a vector fmul reduction intrinsic of the source vector.
- /// The first parameter is a scalar accumulator value for ordered reductions.
+ /// Create a sequential vector fmul reduction intrinsic of the source vector.
+ /// The first parameter is a scalar accumulator value. An unordered reduction
+ /// can be created by adding the reassoc fast-math flag to the resulting
+ /// sequential reduction.
CallInst *CreateFMulReduce(Value *Acc, Value *Src);
/// Create a vector int add reduction intrinsic of the source vector.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107753.365400.patch
Type: text/x-patch
Size: 1335 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210810/66fa0bf9/attachment.bin>
More information about the llvm-commits
mailing list