diff options
Diffstat (limited to 'contrib/llvm-project/clang/lib/CodeGen/CGCUDARuntime.h')
-rw-r--r-- | contrib/llvm-project/clang/lib/CodeGen/CGCUDARuntime.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/llvm-project/clang/lib/CodeGen/CGCUDARuntime.h b/contrib/llvm-project/clang/lib/CodeGen/CGCUDARuntime.h index 19e70a2022a5..ba3404ead368 100644 --- a/contrib/llvm-project/clang/lib/CodeGen/CGCUDARuntime.h +++ b/contrib/llvm-project/clang/lib/CodeGen/CGCUDARuntime.h @@ -54,16 +54,19 @@ public: unsigned Kind : 2; unsigned Extern : 1; unsigned Constant : 1; // Constant variable. + unsigned Managed : 1; // Managed variable. unsigned Normalized : 1; // Normalized texture. int SurfTexType; // Type of surface/texutre. public: - DeviceVarFlags(DeviceVarKind K, bool E, bool C, bool N, int T) - : Kind(K), Extern(E), Constant(C), Normalized(N), SurfTexType(T) {} + DeviceVarFlags(DeviceVarKind K, bool E, bool C, bool M, bool N, int T) + : Kind(K), Extern(E), Constant(C), Managed(M), Normalized(N), + SurfTexType(T) {} DeviceVarKind getKind() const { return static_cast<DeviceVarKind>(Kind); } bool isExtern() const { return Extern; } bool isConstant() const { return Constant; } + bool isManaged() const { return Managed; } bool isNormalized() const { return Normalized; } int getSurfTexType() const { return SurfTexType; } }; |