mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-04 05:17:07 +00:00 
			
		
		
		
	script. This is in preparation for changes to lots of include lines. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229088 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
//===-- ErlangGC.cpp - Erlang/OTP GC strategy -------------------*- C++ -*-===//
 | 
						|
//
 | 
						|
//                     The LLVM Compiler Infrastructure
 | 
						|
//
 | 
						|
// This file is distributed under the University of Illinois Open Source
 | 
						|
// License. See LICENSE.TXT for details.
 | 
						|
//
 | 
						|
//===----------------------------------------------------------------------===//
 | 
						|
//
 | 
						|
// This file implements the Erlang/OTP runtime-compatible garbage collector
 | 
						|
// (e.g. defines safe points, root initialization etc.)
 | 
						|
//
 | 
						|
// The frametable emitter is in ErlangGCPrinter.cpp.
 | 
						|
//
 | 
						|
//===----------------------------------------------------------------------===//
 | 
						|
 | 
						|
#include "llvm/CodeGen/GCs.h"
 | 
						|
#include "llvm/CodeGen/GCStrategy.h"
 | 
						|
#include "llvm/CodeGen/MachineInstrBuilder.h"
 | 
						|
#include "llvm/MC/MCContext.h"
 | 
						|
#include "llvm/MC/MCSymbol.h"
 | 
						|
#include "llvm/Target/TargetInstrInfo.h"
 | 
						|
#include "llvm/Target/TargetMachine.h"
 | 
						|
#include "llvm/Target/TargetSubtargetInfo.h"
 | 
						|
 | 
						|
using namespace llvm;
 | 
						|
 | 
						|
namespace {
 | 
						|
 | 
						|
class ErlangGC : public GCStrategy {
 | 
						|
public:
 | 
						|
  ErlangGC();
 | 
						|
};
 | 
						|
}
 | 
						|
 | 
						|
static GCRegistry::Add<ErlangGC> X("erlang",
 | 
						|
                                   "erlang-compatible garbage collector");
 | 
						|
 | 
						|
void llvm::linkErlangGC() {}
 | 
						|
 | 
						|
ErlangGC::ErlangGC() {
 | 
						|
  InitRoots = false;
 | 
						|
  NeededSafePoints = 1 << GC::PostCall;
 | 
						|
  UsesMetadata = true;
 | 
						|
  CustomRoots = false;
 | 
						|
}
 |