summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Analysis/CGSCCPassManagerTest.cpp
diff options
context:
space:
mode:
authorAlex Bradbury <asb@lowrisc.org>2018-09-19 14:51:42 +0000
committerAlex Bradbury <asb@lowrisc.org>2018-09-19 14:51:42 +0000
commit79518b02cd3ef91a9fb5ddae381e826e80cae582 (patch)
tree57897012b6770236cb7b5981f3991538b2b4eb7f /llvm/unittests/Analysis/CGSCCPassManagerTest.cpp
parent023dfa5716326449662059516ddff2ed459526a1 (diff)
downloadbcm5719-llvm-79518b02cd3ef91a9fb5ddae381e826e80cae582.tar.gz
bcm5719-llvm-79518b02cd3ef91a9fb5ddae381e826e80cae582.zip
[AtomicExpandPass]: Add a hook for custom cmpxchg expansion in IR
This involves changing the shouldExpandAtomicCmpXchgInIR interface, but I have updated the in-tree backends using this hook (ARM, AArch64, Hexagon) so they will see no functional change. Previously this hook returned bool, but it now returns AtomicExpansionKind. This hook allows targets to select how a given cmpxchg is to be expanded. D48131 uses this to expand part-word cmpxchg to a target-specific intrinsic. See my associated RFC for more info on the motivation for this change <http://lists.llvm.org/pipermail/llvm-dev/2018-June/123993.html>. Differential Revision: https://reviews.llvm.org/D48130 llvm-svn: 342550
Diffstat (limited to 'llvm/unittests/Analysis/CGSCCPassManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud