The index stored to the buffer is just an index into this named
metadata. It would more robust to produce a private constant table,
and use a constant expression to index into it.
Details
Details
Diff Detail
Diff Detail
Unit Tests
Unit Tests
Event Timeline
llvm/test/CodeGen/AMDGPU/printf-existing-format-strings.ll | ||
---|---|---|
52–53 | I guess this does not relate to the test case, is it just mentioned as a template ? |
llvm/test/CodeGen/AMDGPU/printf-existing-format-strings.ll | ||
---|---|---|
52–53 | if these are just inputs, probably it make sense to have assertions for output metadata as well ? |
llvm/lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp | ||
---|---|---|
170 | For some reason this indexing scheme starts at one, so this is off by one |
For some reason this indexing scheme starts at one, so this is off by one