[all-commits] [llvm/llvm-project] 8b59c2: Extend or truncate __ptr32/__ptr64 pointers when d...
Amy Huang via All-commits
all-commits at lists.llvm.org
Fri Jun 26 13:45:14 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 8b59c26bf347be5d96487c89849c0c1108bb3c42
https://github.com/llvm/llvm-project/commit/8b59c26bf347be5d96487c89849c0c1108bb3c42
Author: Amy Huang <akhuang at google.com>
Date: 2020-06-26 (Fri, 26 Jun 2020)
Changed paths:
M llvm/lib/Target/X86/X86ISelLowering.cpp
M llvm/test/CodeGen/X86/mixed-ptr-sizes-i686.ll
M llvm/test/CodeGen/X86/mixed-ptr-sizes.ll
Log Message:
-----------
Extend or truncate __ptr32/__ptr64 pointers when dereferenced.
Summary:
A while ago I implemented the functionality to lower Microsoft __ptr32
and __ptr64 pointers, which are stored as 32-bit and 64-bit pointer
and are extended/truncated to the appropriate pointer size when
dereferenced.
This patch adds an addrspacecast to cast from the __ptr32/__ptr64
pointer to a default address space when dereferencing.
Bug: https://bugs.llvm.org/show_bug.cgi?id=42359
Reviewers: hans, arsenm, RKSimon
Subscribers: wdng, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D81517
More information about the All-commits
mailing list