[llvm] r320840 - [CodeGen] fix documentation comments; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 15 10:34:45 PST 2017
Author: spatel
Date: Fri Dec 15 10:34:45 2017
New Revision: 320840
URL: http://llvm.org/viewvc/llvm-project?rev=320840&view=rev
Log:
[CodeGen] fix documentation comments; NFC
Modified:
llvm/trunk/lib/CodeGen/IntrinsicLowering.cpp
Modified: llvm/trunk/lib/CodeGen/IntrinsicLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/IntrinsicLowering.cpp?rev=320840&r1=320839&r2=320840&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/IntrinsicLowering.cpp (original)
+++ llvm/trunk/lib/CodeGen/IntrinsicLowering.cpp Fri Dec 15 10:34:45 2017
@@ -57,10 +57,10 @@ static void EnsureFPIntrinsicsExist(Modu
}
}
-/// ReplaceCallWith - This function is used when we want to lower an intrinsic
-/// call to a call of an external function. This handles hard cases such as
-/// when there was already a prototype for the external function, and if that
-/// prototype doesn't match the arguments we expect to pass in.
+/// This function is used when we want to lower an intrinsic call to a call of
+/// an external function. This handles hard cases such as when there was already
+/// a prototype for the external function, but that prototype doesn't match the
+/// arguments we expect to pass in.
template <class ArgIt>
static CallInst *ReplaceCallWith(const char *NewFn, CallInst *CI,
ArgIt ArgBegin, ArgIt ArgEnd,
@@ -161,8 +161,7 @@ void IntrinsicLowering::AddPrototypes(Mo
}
}
-/// LowerBSWAP - Emit the code to lower bswap of V before the specified
-/// instruction IP.
+/// Emit the code to lower bswap of V before the specified instruction IP.
static Value *LowerBSWAP(LLVMContext &Context, Value *V, Instruction *IP) {
assert(V->getType()->isIntOrIntVectorTy() && "Can't bswap a non-integer type!");
@@ -257,8 +256,7 @@ static Value *LowerBSWAP(LLVMContext &Co
return V;
}
-/// LowerCTPOP - Emit the code to lower ctpop of V before the specified
-/// instruction IP.
+/// Emit the code to lower ctpop of V before the specified instruction IP.
static Value *LowerCTPOP(LLVMContext &Context, Value *V, Instruction *IP) {
assert(V->getType()->isIntegerTy() && "Can't ctpop a non-integer type!");
@@ -297,8 +295,7 @@ static Value *LowerCTPOP(LLVMContext &Co
return Count;
}
-/// LowerCTLZ - Emit the code to lower ctlz of V before the specified
-/// instruction IP.
+/// Emit the code to lower ctlz of V before the specified instruction IP.
static Value *LowerCTLZ(LLVMContext &Context, Value *V, Instruction *IP) {
IRBuilder<> Builder(IP);
More information about the llvm-commits
mailing list