diff options
author | Sanjay Patel <spatel@rotateright.com> | 2017-12-15 18:34:45 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2017-12-15 18:34:45 +0000 |
commit | 76657f81ba23fe63a0b72d9193571aeb75df29b4 (patch) | |
tree | c5ca67fa4aee59bcd0c08529e948e18078bdbe26 /llvm/lib/CodeGen/IntrinsicLowering.cpp | |
parent | a9134e86f148e67015a13e0d1fcd51c486bd18e6 (diff) | |
download | bcm5719-llvm-76657f81ba23fe63a0b72d9193571aeb75df29b4.tar.gz bcm5719-llvm-76657f81ba23fe63a0b72d9193571aeb75df29b4.zip |
[CodeGen] fix documentation comments; NFC
llvm-svn: 320840
Diffstat (limited to 'llvm/lib/CodeGen/IntrinsicLowering.cpp')
-rw-r--r-- | llvm/lib/CodeGen/IntrinsicLowering.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/IntrinsicLowering.cpp b/llvm/lib/CodeGen/IntrinsicLowering.cpp index 65d9592e506..12777d5ed11 100644 --- a/llvm/lib/CodeGen/IntrinsicLowering.cpp +++ b/llvm/lib/CodeGen/IntrinsicLowering.cpp @@ -57,10 +57,10 @@ static void EnsureFPIntrinsicsExist(Module &M, Function &Fn, } } -/// 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(Module &M) { } } -/// 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 &Context, Value *V, Instruction *IP) { 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 &Context, Value *V, Instruction *IP) { 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); |