aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Auberer <marc.auberer@chillibits.com>2024-03-28 12:42:02 +0100
committerGitHub <noreply@github.com>2024-03-28 12:42:02 +0100
commita495cfbf7d544ed2624e8a54f14129fa7824eee4 (patch)
tree49319f1e92dd7578f1ea5dfd87d954b9a2d21fa5
parentc9db031c48852af491747dab86ef6f19195eb20d (diff)
downloadllvm-a495cfbf7d544ed2624e8a54f14129fa7824eee4.zip
llvm-a495cfbf7d544ed2624e8a54f14129fa7824eee4.tar.gz
llvm-a495cfbf7d544ed2624e8a54f14129fa7824eee4.tar.bz2
[IR][NFC] Cleanup CmpInst signatures / code docs (#86441)
Change param names to recommended upper case format for static methods in CmpInst for consistency Implement suggestion from @dtcxzyw. cc @dtcxzyw @tschuett
-rw-r--r--llvm/include/llvm/IR/InstrTypes.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/include/llvm/IR/InstrTypes.h b/llvm/include/llvm/IR/InstrTypes.h
index 3a30e93..e4e5fa1 100644
--- a/llvm/include/llvm/IR/InstrTypes.h
+++ b/llvm/include/llvm/IR/InstrTypes.h
@@ -1032,7 +1032,7 @@ public:
/// the two operands. Insert the instruction into a BasicBlock right before
/// the specified instruction.
/// Create a CmpInst
- static CmpInst *Create(OtherOps Op, Predicate predicate, Value *S1, Value *S2,
+ static CmpInst *Create(OtherOps Op, Predicate Pred, Value *S1, Value *S2,
const Twine &Name, BasicBlock::iterator InsertBefore);
/// Construct a compare instruction, given the opcode, the predicate and
@@ -1040,23 +1040,23 @@ public:
/// instruction into a BasicBlock right before the specified instruction.
/// The specified Instruction is allowed to be a dereferenced end iterator.
/// Create a CmpInst
- static CmpInst *Create(OtherOps Op,
- Predicate predicate, Value *S1,
- Value *S2, const Twine &Name = "",
+ static CmpInst *Create(OtherOps Op, Predicate Pred, Value *S1, Value *S2,
+ const Twine &Name = "",
Instruction *InsertBefore = nullptr);
/// Construct a compare instruction, given the opcode, the predicate and the
/// two operands. Also automatically insert this instruction to the end of
/// the BasicBlock specified.
/// Create a CmpInst
- static CmpInst *Create(OtherOps Op, Predicate predicate, Value *S1,
- Value *S2, const Twine &Name, BasicBlock *InsertAtEnd);
+ static CmpInst *Create(OtherOps Op, Predicate Pred, Value *S1, Value *S2,
+ const Twine &Name, BasicBlock *InsertAtEnd);
/// Construct a compare instruction, given the opcode, the predicate,
/// the two operands and the instruction to copy the flags from. Optionally
/// (if InstBefore is specified) insert the instruction into a BasicBlock
/// right before the specified instruction. The specified Instruction is
- /// allowed to be a dereferenced end iterator. Create a CmpInst
+ /// allowed to be a dereferenced end iterator.
+ /// Create a CmpInst
static CmpInst *CreateWithCopiedFlags(OtherOps Op, Predicate Pred, Value *S1,
Value *S2,
const Instruction *FlagsSource,