[llvm] c81f883 - [TableGen] Use isCodeGenOnly field of CodeGenInstruction. NFC (#194942)

via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 29 20:04:24 PDT 2026


Author: Craig Topper
Date: 2026-04-29T20:04:19-07:00
New Revision: c81f88379184eff6a7bf3b92bf9899d00f695db4

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

LOG: [TableGen] Use isCodeGenOnly field of CodeGenInstruction. NFC (#194942)

Added: 
    

Modified: 
    llvm/utils/TableGen/AsmMatcherEmitter.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/utils/TableGen/AsmMatcherEmitter.cpp b/llvm/utils/TableGen/AsmMatcherEmitter.cpp
index 964be3a0090b4..4c61d64ec215a 100644
--- a/llvm/utils/TableGen/AsmMatcherEmitter.cpp
+++ b/llvm/utils/TableGen/AsmMatcherEmitter.cpp
@@ -1585,7 +1585,7 @@ void AsmMatcherInfo::buildInfo() {
         continue;
 
       // Ignore "codegen only" instructions.
-      if (CGI->TheDef->getValueAsBit("isCodeGenOnly"))
+      if (CGI->isCodeGenOnly)
         continue;
 
       // Ignore instructions for 
diff erent instructions


        


More information about the llvm-commits mailing list