[llvm] r362799 - [NFC] Don't export helpers of ConstantFoldCall
Joerg Sonnenberger via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 7 06:28:52 PDT 2019
Author: joerg
Date: Fri Jun 7 06:28:52 2019
New Revision: 362799
URL: http://llvm.org/viewvc/llvm-project?rev=362799&view=rev
Log:
[NFC] Don't export helpers of ConstantFoldCall
Modified:
llvm/trunk/lib/Analysis/ConstantFolding.cpp
Modified: llvm/trunk/lib/Analysis/ConstantFolding.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ConstantFolding.cpp?rev=362799&r1=362798&r2=362799&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ConstantFolding.cpp (original)
+++ llvm/trunk/lib/Analysis/ConstantFolding.cpp Fri Jun 7 06:28:52 2019
@@ -1647,10 +1647,11 @@ static bool getConstIntOrUndef(Value *Op
return false;
}
-Constant *ConstantFoldScalarCall(StringRef Name, unsigned IntrinsicID, Type *Ty,
- ArrayRef<Constant *> Operands,
- const TargetLibraryInfo *TLI,
- const CallBase *Call) {
+static Constant *ConstantFoldScalarCall(StringRef Name, unsigned IntrinsicID,
+ Type *Ty,
+ ArrayRef<Constant *> Operands,
+ const TargetLibraryInfo *TLI,
+ const CallBase *Call) {
if (Operands.size() == 1) {
if (IntrinsicID == Intrinsic::is_constant) {
// We know we have a "Constant" argument. But we want to only
@@ -2219,11 +2220,12 @@ Constant *ConstantFoldScalarCall(StringR
return nullptr;
}
-Constant *ConstantFoldVectorCall(StringRef Name, unsigned IntrinsicID,
- VectorType *VTy, ArrayRef<Constant *> Operands,
- const DataLayout &DL,
- const TargetLibraryInfo *TLI,
- const CallBase *Call) {
+static Constant *ConstantFoldVectorCall(StringRef Name, unsigned IntrinsicID,
+ VectorType *VTy,
+ ArrayRef<Constant *> Operands,
+ const DataLayout &DL,
+ const TargetLibraryInfo *TLI,
+ const CallBase *Call) {
SmallVector<Constant *, 4> Result(VTy->getNumElements());
SmallVector<Constant *, 4> Lane(Operands.size());
Type *Ty = VTy->getElementType();
More information about the llvm-commits
mailing list