[clang] [llvm] [OpenMP]Initial parsing/sema support for target_device selector set (PR #118471)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 17 06:02:29 PST 2024
================
@@ -174,6 +177,8 @@ struct OMPContext {
BitVector ActiveTraits = BitVector(unsigned(TraitProperty::Last) + 1);
SmallVector<TraitProperty, 8> ConstructTraits;
+ static int DeviceNum;
+ static StringRef DeviceNumID;
----------------
Ritanya-B-Bharadwaj wrote:
I used static to ensure that all instances of OMPContext share the same value. Any other suggestions?
https://github.com/llvm/llvm-project/pull/118471
More information about the cfe-commits
mailing list