This change enables parseAbsoluteExpression for amd_kernel_code_t field initializers.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Target/AMDGPU/Utils/AMDKernelCodeTUtils.cpp | ||
---|---|---|
105–107 | Rename function to express new semantics. |
Comment Actions
Renamed expectEqualInt to expectAbsExpression.
After running lit tests on linux it turned out that parseAbsExpression eats terminating EndOfStatement token, so I disabled this check for now. Later I'm going to split amd_kernel_code_t directive to a sequence of directives so that field definitions could be interleaved with conditional directives.
Comment Actions
Well, new semantics is not just "expect" but "parse" as well.
I would recommend renaming the function some day...
Rename function to express new semantics.