aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SparcV9
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-05-23 21:23:35 +0000
committerChris Lattner <sabre@nondot.org>2004-05-23 21:23:35 +0000
commit99c59e8e217cd08bc53f7a260dce6c7a66b583f9 (patch)
treee04ef5a1b13646f2e76d05677c5b97ceb75c9777 /lib/Target/SparcV9
parentdf04097f87485ef2c0036d1f42208aa6c4d7575c (diff)
downloadexternal_llvm-99c59e8e217cd08bc53f7a260dce6c7a66b583f9.zip
external_llvm-99c59e8e217cd08bc53f7a260dce6c7a66b583f9.tar.gz
external_llvm-99c59e8e217cd08bc53f7a260dce6c7a66b583f9.tar.bz2
Add support for accurate garbage collection to the LLVM code generators
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9')
-rw-r--r--lib/Target/SparcV9/SparcV9TargetMachine.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
index c5d815c..06efeb3 100644
--- a/lib/Target/SparcV9/SparcV9TargetMachine.cpp
+++ b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
@@ -125,6 +125,9 @@ SparcV9TargetMachine::SparcV9TargetMachine(IntrinsicLowering *il)
bool
SparcV9TargetMachine::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out)
{
+ // FIXME: Implement efficient support for garbage collection intrinsics.
+ PM.add(createLowerGCPass());
+
// Replace malloc and free instructions with library calls.
PM.add(createLowerAllocationsPass());
@@ -199,6 +202,9 @@ SparcV9TargetMachine::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out
/// generation for the UltraSparcV9.
///
void SparcV9JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
+ // FIXME: Implement efficient support for garbage collection intrinsics.
+ PM.add(createLowerGCPass());
+
// Replace malloc and free instructions with library calls.
PM.add(createLowerAllocationsPass());