jak-project/decompiler/analysis/stack_spill.h
Tyler Wilding 60db0e5ef9
deps: update fmt to latest version (#3403)
This updates `fmt` to the latest version and moves to just being a copy
of their repo to make updating easier (no editing their cmake / figuring
out which files to minimally include).

The motivation for this is now that we switched to C++ 20, there were a
ton of deprecated function usages that is going away in future compiler
versions. This gets rid of all those warnings.
2024-03-05 22:11:52 -05:00

20 lines
541 B
C++

#pragma once
#include <string>
#include <unordered_map>
#include <vector>
#include "common/util/Range.h"
#include "decompiler/Disasm/Instruction.h"
#include "decompiler/util/StackSpillMap.h"
namespace decompiler {
/*!
* Given the instructions for a function, build a StackSpillMap containing all memory used to
* spill register variables. The range should be the non-prologue/non-epilogue instruction range.
*/
StackSpillMap build_spill_map(const std::vector<Instruction>& instructions, Range<int> range);
} // namespace decompiler