This is for addrspacecasts to ms ptr32 and ptr64 pointers that
occur in global variables. It adds an X86 override for
AsmPrinter::emitGlobalConstant that deals with zext to 64-bit pointers
and trunc when casting to 32-bit pointers.
Details
- Reviewers
rnk arsenm craig.topper pengfei
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/X86/X86AsmPrinter.cpp | ||
---|---|---|
145 | Would it be easier to just add a new callback to handle addrspacecast instead of having to reproduce some of the generic logic and call into the default implementation |
llvm/lib/Target/X86/X86AsmPrinter.cpp | ||
---|---|---|
138 | What would the sign-extended form look like? Is it much harder to add? I thought I remember you have both signed and zero extended in other places? (I'm biased since OpenVMS wants sign-extended behavior) |
clang-format: please reformat the code