Introduce a "patchable-function" function attribute

Description

Introduce a "patchable-function" function attribute

Summary:
The "patchable-function" attribute can be used by an LLVM client to
influence LLVM's code generation in ways that makes the generated code
easily patchable at runtime (for instance, to redirect control).
Right now only one patchability scheme is supported,
"prologue-short-redirect", but this can be expanded in the future.

Reviewers: joker.eph, rnk, echristo, dberris

Subscribers: joker.eph, echristo, mcrosier, llvm-commits

Differential Revision: http://reviews.llvm.org/D19046

Details

Committed
sanjoyApr 18 2016, 10:24 PM
Differential Revision
D19046: Introduce a "patchable-function" function attribute
Parents
rL266714: LTO: Adapt to LLVM API changes in r266713
Branches
Unknown
Tags
Unknown