[PATCH] D64128: [CodeGen] Generate llvm.ptrmask instead of inttoptr(and(ptrtoint, C)) if possible.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 3 03:58:20 PDT 2019


fhahn created this revision.
fhahn added reviewers: jfb, rsmith, rjmccall, efriedma, hfinkel.
Herald added subscribers: llvm-commits, dexonsmith, hiraditya.
Herald added projects: clang, LLVM.

I am not sure if this is the best way to do the matching and would
appreciate any pointers for improving it.

Also, I am not sure if any of the available targets limits the pointer
size, e.g. to something like 56 bit pointers.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D64128

Files:
  clang/lib/CodeGen/CGExprScalar.cpp
  clang/test/CodeGen/x86-ptrmask.c
  llvm/include/llvm/IR/DataLayout.h
  llvm/lib/IR/DataLayout.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64128.207751.patch
Type: text/x-patch
Size: 7261 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190703/12a0de05/attachment.bin>


More information about the llvm-commits mailing list