[llvm] 8b3b04e - Make isValidImmForSVEVecImmAddrMode inline static rather than just static.
Eric Christopher via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 16 17:40:01 PDT 2020
Author: Eric Christopher
Date: 2020-03-16T17:39:01-07:00
New Revision: 8b3b04eb41647bf3166a09df2e1eb7964d525592
URL: https://github.com/llvm/llvm-project/commit/8b3b04eb41647bf3166a09df2e1eb7964d525592
DIFF: https://github.com/llvm/llvm-project/commit/8b3b04eb41647bf3166a09df2e1eb7964d525592.diff
LOG: Make isValidImmForSVEVecImmAddrMode inline static rather than just static.
Fixes -Werror builds.
Added:
Modified:
llvm/lib/Target/AArch64/MCTargetDesc/AArch64AddressingModes.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64AddressingModes.h b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64AddressingModes.h
index 3f631df252af..a3c534ea7580 100644
--- a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64AddressingModes.h
+++ b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64AddressingModes.h
@@ -839,7 +839,6 @@ inline static bool isAnyMOVWMovAlias(uint64_t Value, int RegWidth) {
return isAnyMOVZMovAlias(Value, RegWidth);
}
-
/// Check if the value of \p OffsetInBytes can be used as an immediate for
/// the gather load/prefetch and scatter store instructions with vector base and
/// immediate offset addressing mode:
@@ -847,8 +846,8 @@ inline static bool isAnyMOVWMovAlias(uint64_t Value, int RegWidth) {
/// [<Zn>.[S|D]{, #<imm>}]
///
/// where <imm> = sizeof(<T>) * k, for k = 0, 1, ..., 31.
-static bool isValidImmForSVEVecImmAddrMode(unsigned OffsetInBytes,
- unsigned ScalarSizeInBytes) {
+inline static bool isValidImmForSVEVecImmAddrMode(unsigned OffsetInBytes,
+ unsigned ScalarSizeInBytes) {
// The immediate is not a multiple of the scalar size.
if (OffsetInBytes % ScalarSizeInBytes)
return false;
More information about the llvm-commits
mailing list