mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-04 05:17:07 +00:00 
			
		
		
		
	JIT should print LLVM each function before selecting instructions for it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18803 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		@@ -137,6 +137,10 @@ void SparcV8JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
 | 
			
		||||
  // FIXME: implement the select instruction in the instruction selector.
 | 
			
		||||
  PM.add(createLowerSelectPass());
 | 
			
		||||
  
 | 
			
		||||
  // Print LLVM code input to instruction selector:
 | 
			
		||||
  if (PrintMachineCode)
 | 
			
		||||
    PM.add(new PrintFunctionPass());
 | 
			
		||||
  
 | 
			
		||||
  PM.add(createSparcV8SimpleInstructionSelector(TM));
 | 
			
		||||
 | 
			
		||||
  // Print machine instructions as they were initially generated.
 | 
			
		||||
 
 | 
			
		||||
@@ -137,6 +137,10 @@ void SparcV8JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
 | 
			
		||||
  // FIXME: implement the select instruction in the instruction selector.
 | 
			
		||||
  PM.add(createLowerSelectPass());
 | 
			
		||||
  
 | 
			
		||||
  // Print LLVM code input to instruction selector:
 | 
			
		||||
  if (PrintMachineCode)
 | 
			
		||||
    PM.add(new PrintFunctionPass());
 | 
			
		||||
  
 | 
			
		||||
  PM.add(createSparcV8SimpleInstructionSelector(TM));
 | 
			
		||||
 | 
			
		||||
  // Print machine instructions as they were initially generated.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user