[PATCH] Materialize the jump address within the patchpoint noop slide using a scratch register.

Juergen Ributzka juergen at ributzka.de
Wed Oct 30 23:01:45 PDT 2013


Hi atrick, lhames,

This patch moves the jump address materialization inside the noop slide. This enables
patching of the materialization itself or its complete removal. This patch also adds
the ability to define scratch registers that can be used safely by the code called
from the patchpoint intrinsic. At least one scratch register is required, because that
one is used for the materialization of the jump address. This patch depends on D2009.

http://llvm-reviews.chandlerc.com/D2074

Files:
  include/llvm/Target/TargetLowering.h
  lib/CodeGen/SelectionDAG/InstrEmitter.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  lib/Target/X86/X86ISelLowering.cpp
  lib/Target/X86/X86ISelLowering.h
  lib/Target/X86/X86MCInstLower.cpp
  test/CodeGen/X86/anyregcc.ll
  test/CodeGen/X86/patchpoint.ll
  test/CodeGen/X86/stackmap.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2074.1.patch
Type: text/x-patch
Size: 15682 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131030/3341d4a6/attachment.bin>


More information about the llvm-commits mailing list