[PATCH] [CodeGen] Introduce a FAULTING_LOAD_OP pseudo-op.

Sanjoy Das sanjoy at playingwithpointers.com
Tue Jun 2 14:34:41 PDT 2015


Hi atrick, rnk, reames, pgavlin, AndyAyers,

This instruction encodes a loading operation that may fault, and a label
to branch to if the load page-faults.  The locations of potentially
faulting loads and their "handler" destinations are recorded in a
FaultMap section, meant to be consumed by LLVM's clients.

Nothing generates FAULTING_LOAD_OP instructions yet, but they will be
used in a future change.

The documentation (FaultMaps.rst) needs improvement and I will update
this diff with a more expanded version shortly.

Depends on D10196

http://reviews.llvm.org/D10197

Files:
  docs/FaultMaps.rst
  include/llvm/CodeGen/FaultMaps.h
  include/llvm/MC/MCObjectFileInfo.h
  include/llvm/Target/Target.td
  include/llvm/Target/TargetOpcodes.h
  lib/CodeGen/CMakeLists.txt
  lib/CodeGen/FaultMaps.cpp
  lib/MC/MCObjectFileInfo.cpp
  lib/Target/X86/X86AsmPrinter.cpp
  lib/Target/X86/X86AsmPrinter.h
  lib/Target/X86/X86MCInstLower.cpp
  utils/TableGen/CodeGenTarget.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10197.27006.patch
Type: text/x-patch
Size: 15590 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150602/ef19a3d4/attachment.bin>


More information about the llvm-commits mailing list