Add micro architecture data.

This commit is contained in:
Bartosz Taudul 2020-04-26 22:25:15 +02:00
parent 9488ee0f9e
commit 800f740fd5
4 changed files with 90859 additions and 0 deletions

View File

@ -117,6 +117,7 @@
<ClCompile Include="..\..\..\server\TracyColor.cpp" />
<ClCompile Include="..\..\..\server\TracyFilesystem.cpp" />
<ClCompile Include="..\..\..\server\TracyMemory.cpp" />
<ClCompile Include="..\..\..\server\TracyMicroArchitecture.cpp" />
<ClCompile Include="..\..\..\server\TracyMmap.cpp" />
<ClCompile Include="..\..\..\server\TracyPrint.cpp" />
<ClCompile Include="..\..\..\server\TracySourceView.cpp" />
@ -197,6 +198,7 @@
<ClInclude Include="..\..\..\server\TracyFileWrite.hpp" />
<ClInclude Include="..\..\..\server\TracyImGui.hpp" />
<ClInclude Include="..\..\..\server\TracyMemory.hpp" />
<ClInclude Include="..\..\..\server\TracyMicroArchitecture.hpp" />
<ClInclude Include="..\..\..\server\TracyMmap.hpp" />
<ClInclude Include="..\..\..\server\TracyPopcnt.hpp" />
<ClInclude Include="..\..\..\server\TracyPrint.hpp" />

View File

@ -198,6 +198,9 @@
<ClCompile Include="..\..\..\server\TracyFilesystem.cpp">
<Filter>server</Filter>
</ClCompile>
<ClCompile Include="..\..\..\server\TracyMicroArchitecture.cpp">
<Filter>server</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\common\tracy_lz4.hpp">
@ -485,6 +488,9 @@
<ClInclude Include="..\..\..\server\TracyColor.hpp">
<Filter>server</Filter>
</ClInclude>
<ClInclude Include="..\..\..\server\TracyMicroArchitecture.hpp">
<Filter>server</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Natvis Include="DebugVis.natvis" />

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,44 @@
#include <stdint.h>
namespace tracy
{
struct AsmDesc
{
uint8_t type;
uint16_t width;
};
struct AsmVar
{
int descNum;
AsmDesc desc[5];
int isaSet;
float tp;
int port, uops, minlat, maxlat;
bool minbound, maxbound;
};
struct AsmOp
{
int id;
int numVariants;
const AsmVar*const* variant;
};
struct MicroArchitecture
{
int numOps;
const AsmOp*const* ops;
};
extern const char* MicroArchitectureList[];
extern const char* PortList[];
extern const char* OpsList[];
extern const char* IsaList[];
extern const MicroArchitecture* const MicroArchitectureData[];
extern int OpsNum;
extern int MicroArchitectureNum;
};