[clang] fd80304 - [clang][NFC] Annotate `CGCUDARuntime.h` with `preferred_type`
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 11 01:07:48 PST 2024
Author: Vlad Serebrennikov
Date: 2024-02-11T12:07:27+03:00
New Revision: fd80304763a41f86b877c91b750551d7e6bd852d
URL: https://github.com/llvm/llvm-project/commit/fd80304763a41f86b877c91b750551d7e6bd852d
DIFF: https://github.com/llvm/llvm-project/commit/fd80304763a41f86b877c91b750551d7e6bd852d.diff
LOG: [clang][NFC] Annotate `CGCUDARuntime.h` with `preferred_type`
This helps debuggers to display values in bit-fields in a more helpful way.
Added:
Modified:
clang/lib/CodeGen/CGCUDARuntime.h
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/CGCUDARuntime.h b/clang/lib/CodeGen/CGCUDARuntime.h
index c7af8f1cf0fe95..8030d632cc3d28 100644
--- a/clang/lib/CodeGen/CGCUDARuntime.h
+++ b/clang/lib/CodeGen/CGCUDARuntime.h
@@ -54,10 +54,15 @@ class CGCUDARuntime {
};
private:
+ LLVM_PREFERRED_TYPE(DeviceVarKind)
unsigned Kind : 2;
+ LLVM_PREFERRED_TYPE(bool)
unsigned Extern : 1;
+ LLVM_PREFERRED_TYPE(bool)
unsigned Constant : 1; // Constant variable.
+ LLVM_PREFERRED_TYPE(bool)
unsigned Managed : 1; // Managed variable.
+ LLVM_PREFERRED_TYPE(bool)
unsigned Normalized : 1; // Normalized texture.
int SurfTexType; // Type of surface/texutre.
More information about the cfe-commits
mailing list