Issue 117761
Summary [DirectX] Avoid marking DXIL ops as internal in DXILFinalizeLinkage
Labels backend:DirectX
Assignees
Reporter bogner
    Currently, we're ending up with the DXIL ops we declare and use as being internal, like so:
```llvm
declare internal %dx.types.ResRet.f32 @dx.op.bufferLoad.f32(i32, %dx.types.Handle, i32, i32)
```

This fails validation and is generally incorrect.

There are two ways to fix this:
1. Run DXILFinalizeLinkage earlier so that it doesn't internalize these symbols
2. Teach DXILFinalizeLinkage to ignore these symbols

Option (1) is trivial to do and is sufficient, but (2) shouldn't really be much harder. The decision is mostly a matter of deciding what we think is more "correct".
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to