Skip to content

Commit a495cfb

Browse files
authored
[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
1 parent c9db031 commit a495cfb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

llvm/include/llvm/IR/InstrTypes.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,31 +1032,31 @@ class CmpInst : public Instruction {
10321032
/// the two operands. Insert the instruction into a BasicBlock right before
10331033
/// the specified instruction.
10341034
/// Create a CmpInst
1035-
static CmpInst *Create(OtherOps Op, Predicate predicate, Value *S1, Value *S2,
1035+
static CmpInst *Create(OtherOps Op, Predicate Pred, Value *S1, Value *S2,
10361036
const Twine &Name, BasicBlock::iterator InsertBefore);
10371037

10381038
/// Construct a compare instruction, given the opcode, the predicate and
10391039
/// the two operands. Optionally (if InstBefore is specified) insert the
10401040
/// instruction into a BasicBlock right before the specified instruction.
10411041
/// The specified Instruction is allowed to be a dereferenced end iterator.
10421042
/// Create a CmpInst
1043-
static CmpInst *Create(OtherOps Op,
1044-
Predicate predicate, Value *S1,
1045-
Value *S2, const Twine &Name = "",
1043+
static CmpInst *Create(OtherOps Op, Predicate Pred, Value *S1, Value *S2,
1044+
const Twine &Name = "",
10461045
Instruction *InsertBefore = nullptr);
10471046

10481047
/// Construct a compare instruction, given the opcode, the predicate and the
10491048
/// two operands. Also automatically insert this instruction to the end of
10501049
/// the BasicBlock specified.
10511050
/// Create a CmpInst
1052-
static CmpInst *Create(OtherOps Op, Predicate predicate, Value *S1,
1053-
Value *S2, const Twine &Name, BasicBlock *InsertAtEnd);
1051+
static CmpInst *Create(OtherOps Op, Predicate Pred, Value *S1, Value *S2,
1052+
const Twine &Name, BasicBlock *InsertAtEnd);
10541053

10551054
/// Construct a compare instruction, given the opcode, the predicate,
10561055
/// the two operands and the instruction to copy the flags from. Optionally
10571056
/// (if InstBefore is specified) insert the instruction into a BasicBlock
10581057
/// right before the specified instruction. The specified Instruction is
1059-
/// allowed to be a dereferenced end iterator. Create a CmpInst
1058+
/// allowed to be a dereferenced end iterator.
1059+
/// Create a CmpInst
10601060
static CmpInst *CreateWithCopiedFlags(OtherOps Op, Predicate Pred, Value *S1,
10611061
Value *S2,
10621062
const Instruction *FlagsSource,

0 commit comments

Comments
 (0)