When writeValueAsMetadata for GlobalVariable and Function, write TypedPointerType for ValueType and FunctionType.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp | ||
---|---|---|
1362 | This should also query the address space |
llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp | ||
---|---|---|
1362 | Fixed. |
LGTM with a comment about the test
llvm/test/tools/dxil-dis/opaque-value_as_metadata.ll | ||
---|---|---|
28 | Is it worth trying to anchor this to the dx metadata (ie, capture the "!8" from "!dx.entryPoints" rather than using the regex...)? I think that'd make what the test is doing a little clearer, but I guess this will be reliable enough as is based on looking for @CBV/@main, so it's probably not a big deal if that's more complicated than it's worth. Aside, the regex should be {{[0-9]+}} just in cast this ends up being !10 |
llvm/test/tools/dxil-dis/opaque-value_as_metadata.ll | ||
---|---|---|
28 | Thanks for review. |
This should also query the address space