[clang] 4bbae06 - [clang][NFC] Annotate `RISCVVIntrinsicUtils.h` with `preferred_type`

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


Author: Vlad Serebrennikov
Date: 2024-02-11T15:43:35+03:00
New Revision: 4bbae068d704752acbd7c5d8652c11b0954742be

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

LOG: [clang][NFC] Annotate `RISCVVIntrinsicUtils.h` with `preferred_type`

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

Added: 
    

Modified: 
    clang/include/clang/Support/RISCVVIntrinsicUtils.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Support/RISCVVIntrinsicUtils.h b/clang/include/clang/Support/RISCVVIntrinsicUtils.h
index 30bf36edb7bfc9..ef9d6c15724b68 100644
--- a/clang/include/clang/Support/RISCVVIntrinsicUtils.h
+++ b/clang/include/clang/Support/RISCVVIntrinsicUtils.h
@@ -554,7 +554,9 @@ struct RVVIntrinsicRecord {
   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