Adding tracing methods.

This commit is contained in:
Ben Vanik
2013-01-24 00:10:24 -08:00
parent 385a4ee23b
commit 47481fecf7
8 changed files with 107 additions and 14 deletions

15
TODO.md
View File

@@ -43,8 +43,6 @@ indicate expected values.
## Codegen
Make membase/state constant. Ensure optimized code uses constant value.
### Branch generation
Change style to match: http://llvm.org/docs/tutorial/LangImpl5.html
@@ -85,16 +83,9 @@ OurFPM.add(createReassociatePass());
### Tracing
Tracing modes:
- off (0)
- syscalls (1)
- fn calls (2)
- all instructions (3)
Inject extern functions into module:
- XeTraceKernelCall(caller_ia, cia, name, state)
- XeTraceUserCall(caller_ia, cia, name, state)
- XeTraceInstruction(cia, state)
- Trace kernel export info (missing/present/etc).
- Trace user call info (name/?).
- Trace instruction info (disasm).
### Calling convention