Add XCore support for ATOMIC_FENCE.
authorRobert Lytton <robert@xmos.com>
Tue, 12 Nov 2013 10:11:26 +0000 (10:11 +0000)
committerRobert Lytton <robert@xmos.com>
Tue, 12 Nov 2013 10:11:26 +0000 (10:11 +0000)
commit32e8528c3368d5e0986cb265b436799cc490ea0c
treedb91eca62ea74e7333238360b8342865d89ce151
parentc17ea93ed516d5c7d03a8d5c7fc470a0f254b58a
Add XCore support for ATOMIC_FENCE.

ATOMIC_FENCE is lowered to a compiler barrier which is codegen only. There
is no need to emit an instructions since the XCore provides sequential
consistency.

Original patch by Richard Osborne

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194464 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/XCore/XCoreISelLowering.cpp
lib/Target/XCore/XCoreISelLowering.h
lib/Target/XCore/XCoreInstrInfo.td
test/CodeGen/XCore/atomic.ll [new file with mode: 0644]