[llvm] r320079 - [X86] Make a couple helper lowering methods static.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 7 12:09:55 PST 2017
Author: ctopper
Date: Thu Dec 7 12:09:55 2017
New Revision: 320079
URL: http://llvm.org/viewvc/llvm-project?rev=320079&view=rev
Log:
[X86] Make a couple helper lowering methods static.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
llvm/trunk/lib/Target/X86/X86ISelLowering.h
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=320079&r1=320078&r2=320079&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Thu Dec 7 12:09:55 2017
@@ -14478,8 +14478,8 @@ static SDValue LowerEXTRACT_VECTOR_ELT_S
/// Extract one bit from mask vector, like v16i1 or v8i1.
/// AVX-512 feature.
-SDValue
-X86TargetLowering::ExtractBitFromMaskVector(SDValue Op, SelectionDAG &DAG) const {
+static SDValue ExtractBitFromMaskVector(SDValue Op, SelectionDAG &DAG,
+ const X86Subtarget &Subtarget) {
SDValue Vec = Op.getOperand(0);
SDLoc dl(Vec);
MVT VecVT = Vec.getSimpleValueType();
@@ -14532,7 +14532,7 @@ X86TargetLowering::LowerEXTRACT_VECTOR_E
SDValue Idx = Op.getOperand(1);
if (VecVT.getVectorElementType() == MVT::i1)
- return ExtractBitFromMaskVector(Op, DAG);
+ return ExtractBitFromMaskVector(Op, DAG, Subtarget);
if (!isa<ConstantSDNode>(Idx)) {
// Its more profitable to go through memory (1 cycles throughput)
@@ -14670,8 +14670,7 @@ X86TargetLowering::LowerEXTRACT_VECTOR_E
/// Insert one bit to mask vector, like v16i1 or v8i1.
/// AVX-512 feature.
-SDValue
-X86TargetLowering::InsertBitToMaskVector(SDValue Op, SelectionDAG &DAG) const {
+static SDValue InsertBitToMaskVector(SDValue Op, SelectionDAG &DAG) {
SDLoc dl(Op);
SDValue Vec = Op.getOperand(0);
SDValue Elt = Op.getOperand(1);
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.h?rev=320079&r1=320078&r2=320079&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.h (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.h Thu Dec 7 12:09:55 2017
@@ -1172,8 +1172,6 @@ namespace llvm {
SDValue LowerBUILD_VECTORvXi1(SDValue Op, SelectionDAG &DAG) const;
SDValue LowerVSELECT(SDValue Op, SelectionDAG &DAG) const;
SDValue LowerEXTRACT_VECTOR_ELT(SDValue Op, SelectionDAG &DAG) const;
- SDValue ExtractBitFromMaskVector(SDValue Op, SelectionDAG &DAG) const;
- SDValue InsertBitToMaskVector(SDValue Op, SelectionDAG &DAG) const;
SDValue LowerINSERT_VECTOR_ELT(SDValue Op, SelectionDAG &DAG) const;
unsigned getGlobalWrapperKind(const GlobalValue *GV = nullptr) const;
More information about the llvm-commits
mailing list