[clang] 23bdca2 - [clang][NFC] Annotate `RISCVVEmitter.cpp` with `preferred_type`

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 11 04:42:00 PST 2024


Author: Vlad Serebrennikov
Date: 2024-02-11T15:41:49+03:00
New Revision: 23bdca2c6737f25f1d184f03021f61157bac6196

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

LOG: [clang][NFC] Annotate `RISCVVEmitter.cpp` with `preferred_type`

This helps debuggers to display values in bit-fields in a more helpful way.

Added: 
    

Modified: 
    clang/utils/TableGen/RISCVVEmitter.cpp

Removed: 
    


################################################################################
diff  --git a/clang/utils/TableGen/RISCVVEmitter.cpp b/clang/utils/TableGen/RISCVVEmitter.cpp
index 9f6ed39f013092..8513174c88bfc3 100644
--- a/clang/utils/TableGen/RISCVVEmitter.cpp
+++ b/clang/utils/TableGen/RISCVVEmitter.cpp
@@ -67,7 +67,9 @@ struct SemaRecord {
   bool HasMaskPolicy : 1;
   bool HasFRMRoundModeOp : 1;
   bool IsTuple : 1;
+  LLVM_PREFERRED_TYPE(PolicyScheme)
   uint8_t UnMaskedPolicyScheme : 2;
+  LLVM_PREFERRED_TYPE(PolicyScheme)
   uint8_t MaskedPolicyScheme : 2;
 };
 


        


More information about the cfe-commits mailing list