Skip to content

Commit

Permalink
[clang][NFC] Annotate CGCUDARuntime.h with preferred_type
Browse files Browse the repository at this point in the history
This helps debuggers to display values in bit-fields in a more helpful way.
  • Loading branch information
Endilll committed Feb 11, 2024
1 parent ba0d351 commit fd80304
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clang/lib/CodeGen/CGCUDARuntime.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit fd80304

Please sign in to comment.