[llvm] 1284ce9 - [NFC] Modify the comment to reflect the changes in decoder

via llvm-commits llvm-commits at lists.llvm.org
Mon May 9 19:31:58 PDT 2022


Author: Sheng
Date: 2022-05-10T10:31:45+08:00
New Revision: 1284ce917b5ab16a2ec4447e0f0500af96c39e64

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

LOG: [NFC] Modify the comment to reflect the changes in decoder

Added: 
    

Modified: 
    llvm/utils/TableGen/DecoderEmitter.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/utils/TableGen/DecoderEmitter.cpp b/llvm/utils/TableGen/DecoderEmitter.cpp
index 22bfc1f1a7492..ed01b347a18ce 100644
--- a/llvm/utils/TableGen/DecoderEmitter.cpp
+++ b/llvm/utils/TableGen/DecoderEmitter.cpp
@@ -2253,13 +2253,12 @@ static void emitFieldFromInstruction(formatted_raw_ostream &OS) {
      << "// InsnType must either be integral or an APInt-like object that "
         "must:\n"
      << "// * be default-constructible and copy-constructible\n"
-     << "// * be constructible from a uint64_t\n"
      << "// * be constructible from an APInt (this can be private)\n"
      << "// * Support insertBits(bits, startBit, numBits)\n"
      << "// * Support extractBitsAsZExtValue(numBits, startBit)\n"
-     << "// * be convertible to bool\n"
      << "// * Support the ~, &, ==, and != operators with other objects of "
         "the same type\n"
+     << "// * Support the != and bitwise & with uint64_t\n"
      << "// * Support put (<<) to raw_ostream&\n"
      << "template <typename InsnType>\n"
      << "#if defined(_MSC_VER) && !defined(__clang__)\n"


        


More information about the llvm-commits mailing list