File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,10 @@ class PropertyValue {
80
80
81
81
PropertyValue (uint32_t Val) : Ty(UINT32), Val({Val}) {}
82
82
PropertyValue (const byte *Data, SizeTy DataBitSize);
83
+ template <typename T>
84
+ PropertyValue (const std::vector<T> &Data)
85
+ : PropertyValue(reinterpret_cast <const byte *>(Data.data()),
86
+ Data.size() * sizeof (T) * /* bits in one byte */ 8 ) {}
83
87
PropertyValue (const PropertyValue &P);
84
88
PropertyValue (PropertyValue &&P);
85
89
@@ -179,6 +183,8 @@ class PropertySetRegistry {
179
183
// Specific property category names used by tools.
180
184
static constexpr char SYCL_SPECIALIZATION_CONSTANTS[] =
181
185
" SYCL/specialization constants" ;
186
+ static constexpr char SYCL_COMPOSITE_SPECIALIZATION_CONSTANTS[] =
187
+ " SYCL/composite specialization constants" ;
182
188
static constexpr char SYCL_DEVICELIB_REQ_MASK[] = " SYCL/devicelib req mask" ;
183
189
static constexpr char SYCL_KERNEL_PARAM_OPT_INFO[] = " SYCL/kernel param opt" ;
184
190
Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ void PropertyValue::copy(const PropertyValue &P) {
197
197
constexpr char PropertySetRegistry::SYCL_SPECIALIZATION_CONSTANTS[];
198
198
constexpr char PropertySetRegistry::SYCL_DEVICELIB_REQ_MASK[];
199
199
constexpr char PropertySetRegistry::SYCL_KERNEL_PARAM_OPT_INFO[];
200
+ constexpr char PropertySetRegistry::SYCL_COMPOSITE_SPECIALIZATION_CONSTANTS[];
200
201
201
202
} // namespace util
202
203
} // namespace llvm
You can’t perform that action at this time.
0 commit comments