forked from eden-emu/eden
		
	General: Tidy up clang-format warnings part 2
This commit is contained in:
		
							parent
							
								
									312c3a7327
								
							
						
					
					
						commit
						78ddcbe3ba
					
				
					 18 changed files with 129 additions and 119 deletions
				
			
		|  | @ -187,24 +187,26 @@ std::optional<std::pair<BufferInfo, u64>> TrackLDC(const CFGRebuildState& state, | |||
| 
 | ||||
| std::optional<u64> TrackSHLRegister(const CFGRebuildState& state, u32& pos, | ||||
|                                     u64 ldc_tracked_register) { | ||||
|     return TrackInstruction<u64>(state, pos, | ||||
|                                  [ldc_tracked_register](auto instr, const auto& opcode) { | ||||
|                                      return opcode.GetId() == OpCode::Id::SHL_IMM && | ||||
|                                             instr.gpr0.Value() == ldc_tracked_register; | ||||
|                                  }, | ||||
|                                  [](auto instr, const auto&) { return instr.gpr8.Value(); }); | ||||
|     return TrackInstruction<u64>( | ||||
|         state, pos, | ||||
|         [ldc_tracked_register](auto instr, const auto& opcode) { | ||||
|             return opcode.GetId() == OpCode::Id::SHL_IMM && | ||||
|                    instr.gpr0.Value() == ldc_tracked_register; | ||||
|         }, | ||||
|         [](auto instr, const auto&) { return instr.gpr8.Value(); }); | ||||
| } | ||||
| 
 | ||||
| std::optional<u32> TrackIMNMXValue(const CFGRebuildState& state, u32& pos, | ||||
|                                    u64 shl_tracked_register) { | ||||
|     return TrackInstruction<u32>(state, pos, | ||||
|                                  [shl_tracked_register](auto instr, const auto& opcode) { | ||||
|                                      return opcode.GetId() == OpCode::Id::IMNMX_IMM && | ||||
|                                             instr.gpr0.Value() == shl_tracked_register; | ||||
|                                  }, | ||||
|                                  [](auto instr, const auto&) { | ||||
|                                      return static_cast<u32>(instr.alu.GetSignedImm20_20() + 1); | ||||
|                                  }); | ||||
|     return TrackInstruction<u32>( | ||||
|         state, pos, | ||||
|         [shl_tracked_register](auto instr, const auto& opcode) { | ||||
|             return opcode.GetId() == OpCode::Id::IMNMX_IMM && | ||||
|                    instr.gpr0.Value() == shl_tracked_register; | ||||
|         }, | ||||
|         [](auto instr, const auto&) { | ||||
|             return static_cast<u32>(instr.alu.GetSignedImm20_20() + 1); | ||||
|         }); | ||||
| } | ||||
| 
 | ||||
| std::optional<BranchIndirectInfo> TrackBranchIndirectInfo(const CFGRebuildState& state, u32 pos) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lioncash
						Lioncash