[PATCH] D33349: [dfsan] Add explicit zero extensions for shadow parameters in function wrappers.

Simon Dardis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 19 02:24:30 PDT 2017


sdardis created this revision.

In the case where dfsan provides a custom wrapper for a function,
shadow parameters are added for each parameter of the function.
These parameters are i16s. For targets which do not consider this
a legal type, the lack of sign extension information would cause
LLVM to generate anyexts around their usage with phi variables
and calling convention logic.

Address this by refactoring portion of the wrapper generation and
introducing zero exts for each shadow parameter.


Repository:
  rL LLVM

https://reviews.llvm.org/D33349

Files:
  lib/Transforms/Instrumentation/DataFlowSanitizer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33349.99532.patch
Type: text/x-patch
Size: 4733 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170519/49fc2d8d/attachment.bin>


More information about the llvm-commits mailing list