This repository was archived by the owner on Feb 5, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ namespace AMDGPU {
41
41
namespace RuntimeMD {
42
42
43
43
// Version and revision of runtime metadata
44
- const unsigned char MDVersion = 2 ;
45
- const unsigned char MDRevision = 0 ;
44
+ const uint32_t MDVersion = 2 ;
45
+ const uint32_t MDRevision = 0 ;
46
46
47
47
// Name of keys for runtime metadata.
48
48
namespace KeyName {
@@ -157,7 +157,7 @@ namespace RuntimeMD {
157
157
struct Metadata {
158
158
std::string Name;
159
159
std::string Language;
160
- std::vector<uint8_t > LanguageVersion;
160
+ std::vector<uint32_t > LanguageVersion;
161
161
std::vector<uint32_t > ReqdWorkGroupSize;
162
162
std::vector<uint32_t > WorkGroupSizeHint;
163
163
std::string VecTypeHint;
@@ -171,7 +171,7 @@ namespace RuntimeMD {
171
171
namespace Program {
172
172
// In-memory representation of program information.
173
173
struct Metadata {
174
- std::vector<uint8_t > MDVersionSeq;
174
+ std::vector<uint32_t > MDVersionSeq;
175
175
std::vector<std::string> PrintfInfo;
176
176
std::vector<Kernel::Metadata> Kernels;
177
177
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ static cl::opt<bool>
38
38
CheckRuntimeMDParser (" amdgpu-check-rtmd-parser" , cl::Hidden,
39
39
cl::desc (" Check AMDGPU runtime metadata YAML parser" ));
40
40
41
- LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR (uint8_t )
42
41
LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR (uint32_t )
43
42
LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(std::string)
44
43
LLVM_YAML_IS_SEQUENCE_VECTOR(Kernel::Metadata)
@@ -266,9 +265,9 @@ static Kernel::Metadata getRuntimeMDForKernel(const Function &F) {
266
265
auto Node = MD->getOperand (0 );
267
266
if (Node->getNumOperands () > 1 ) {
268
267
Kernel.Language = " OpenCL C" ;
269
- uint16_t Major = mdconst::extract<ConstantInt>(Node->getOperand (0 ))
268
+ uint32_t Major = mdconst::extract<ConstantInt>(Node->getOperand (0 ))
270
269
->getZExtValue ();
271
- uint16_t Minor = mdconst::extract<ConstantInt>(Node->getOperand (1 ))
270
+ uint32_t Minor = mdconst::extract<ConstantInt>(Node->getOperand (1 ))
272
271
->getZExtValue ();
273
272
Kernel.LanguageVersion .push_back (Major);
274
273
Kernel.LanguageVersion .push_back (Minor);
You can’t perform that action at this time.
0 commit comments