aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/XCore/CMakeLists.txt
diff options
context:
space:
mode:
authorRichard Osborne <richard@xmos.com>2013-05-04 17:01:55 +0000
committerRichard Osborne <richard@xmos.com>2013-05-04 17:01:55 +0000
commit597432fbe53bda0069b0ad13e5ad57ae0ee7ee45 (patch)
tree3f7968411b3acf634e693a3b61ba4fe51943ead1 /lib/Target/XCore/CMakeLists.txt
parenteffc16bb4946e6de988933e810026aed12560855 (diff)
downloadexternal_llvm-597432fbe53bda0069b0ad13e5ad57ae0ee7ee45.zip
external_llvm-597432fbe53bda0069b0ad13e5ad57ae0ee7ee45.tar.gz
external_llvm-597432fbe53bda0069b0ad13e5ad57ae0ee7ee45.tar.bz2
[XCore] Move lowering of thread local storage to a separate pass.
Thread local storage is not supported by the XMOS linker so we handle thread local variables by lowering the variable to an array of n elements (where n is the number of hardware threads per core, currently 8 for all XMOS devices) indexed by the the current thread ID. Previously this lowering was spread across the XCoreISelLowering and the XCoreAsmPrinter classes. Moving this to a separate pass should be much cleaner. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181124 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore/CMakeLists.txt')
-rw-r--r--lib/Target/XCore/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/XCore/CMakeLists.txt b/lib/Target/XCore/CMakeLists.txt
index 099ad39..d5bfddc 100644
--- a/lib/Target/XCore/CMakeLists.txt
+++ b/lib/Target/XCore/CMakeLists.txt
@@ -15,6 +15,7 @@ add_llvm_target(XCoreCodeGen
XCoreInstrInfo.cpp
XCoreISelDAGToDAG.cpp
XCoreISelLowering.cpp
+ XCoreLowerThreadLocal.cpp
XCoreMachineFunctionInfo.cpp
XCoreMCInstLower.cpp
XCoreRegisterInfo.cpp