[llvm] a721b6b - [IR] fix spelling/formatting; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 28 11:21:32 PST 2023


Author: Sanjay Patel
Date: 2023-02-28T14:21:13-05:00
New Revision: a721b6b17902439e6974209119ad5f6830ed5e4c

URL: https://github.com/llvm/llvm-project/commit/a721b6b17902439e6974209119ad5f6830ed5e4c
DIFF: https://github.com/llvm/llvm-project/commit/a721b6b17902439e6974209119ad5f6830ed5e4c.diff

LOG: [IR] fix spelling/formatting; NFC

Even within this file, the usual spelling is 'Opcode',
so make it consistent.

Added: 
    

Modified: 
    llvm/include/llvm/IR/Instruction.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/Instruction.h b/llvm/include/llvm/IR/Instruction.h
index be25ad954e75a..03873eb4094cc 100644
--- a/llvm/include/llvm/IR/Instruction.h
+++ b/llvm/include/llvm/IR/Instruction.h
@@ -183,10 +183,10 @@ class Instruction : public User,
   /// its operands.
   bool isOnlyUserOfAnyOperand();
 
-  static const char* getOpcodeName(unsigned OpCode);
+  static const char *getOpcodeName(unsigned Opcode);
 
-  static inline bool isTerminator(unsigned OpCode) {
-    return OpCode >= TermOpsBegin && OpCode < TermOpsEnd;
+  static inline bool isTerminator(unsigned Opcode) {
+    return Opcode >= TermOpsBegin && Opcode < TermOpsEnd;
   }
 
   static inline bool isUnaryOp(unsigned Opcode) {
@@ -225,19 +225,19 @@ class Instruction : public User,
     return isBitwiseLogicOp(getOpcode());
   }
 
-  /// Determine if the OpCode is one of the CastInst instructions.
-  static inline bool isCast(unsigned OpCode) {
-    return OpCode >= CastOpsBegin && OpCode < CastOpsEnd;
+  /// Determine if the Opcode is one of the CastInst instructions.
+  static inline bool isCast(unsigned Opcode) {
+    return Opcode >= CastOpsBegin && Opcode < CastOpsEnd;
   }
 
-  /// Determine if the OpCode is one of the FuncletPadInst instructions.
-  static inline bool isFuncletPad(unsigned OpCode) {
-    return OpCode >= FuncletPadOpsBegin && OpCode < FuncletPadOpsEnd;
+  /// Determine if the Opcode is one of the FuncletPadInst instructions.
+  static inline bool isFuncletPad(unsigned Opcode) {
+    return Opcode >= FuncletPadOpsBegin && Opcode < FuncletPadOpsEnd;
   }
 
-  /// Returns true if the OpCode is a terminator related to exception handling.
-  static inline bool isExceptionalTerminator(unsigned OpCode) {
-    switch (OpCode) {
+  /// Returns true if the Opcode is a terminator related to exception handling.
+  static inline bool isExceptionalTerminator(unsigned Opcode) {
+    switch (Opcode) {
     case Instruction::CatchSwitch:
     case Instruction::CatchRet:
     case Instruction::CleanupRet:


        


More information about the llvm-commits mailing list