HomePhabricator

[SelectionDAG] Refactor lowering of atomic memory intrinsics.

Authored by dneilson on Apr 23 2018, 8:40 AM.

Description

[SelectionDAG] Refactor lowering of atomic memory intrinsics.

Summary:
This just refactors the lowering of the atomic memory intrinsics to more
closely match the code patterns used in the lowering of the non-atomic
memory intrinsics. Specifically, we encapsulate the lowering in
SelectionDAG::getAtomicMem*() functions rather than embedding
the code directly in the SelectionDAGBuilder code.

llvm-svn: 330603

Details

Committed
dneilsonApr 23 2018, 8:40 AM
Parents
rG2dee02ea8789: [clangd] Fix Context::derive to actually call the right method.
Branches
Unknown
Tags
Unknown