Added support for running GC profiller.
This commit is contained in:
parent
b5384bf2c3
commit
9ffcbf66b9
2 changed files with 7 additions and 1 deletions
|
|
@ -138,4 +138,6 @@ defaultStart =
|
|||
, UnsafeRaw "declare external void @cheap_init()\n"
|
||||
, UnsafeRaw "declare external ptr @cheap_alloc(i64)\n"
|
||||
, UnsafeRaw "declare external void @cheap_dispose()\n"
|
||||
, UnsafeRaw "declare external ptr @cheap_the()\n"
|
||||
, UnsafeRaw "declare external void @cheap_set_profiler(ptr, i1)\n"
|
||||
]
|
||||
|
|
@ -127,7 +127,11 @@ compileScs (MIR.DData (MIR.Data typ ts) : xs) = do
|
|||
compileScs xs
|
||||
|
||||
firstMainContent :: [LLVMIr]
|
||||
firstMainContent = [UnsafeRaw "call void @cheap_init()\n"]
|
||||
firstMainContent =
|
||||
[ UnsafeRaw "%prof = call ptr @cheap_the()\n"
|
||||
, UnsafeRaw "call void @cheap_set_profiler(ptr %prof, i1 true)\n"
|
||||
, UnsafeRaw "call void @cheap_init()\n"
|
||||
]
|
||||
|
||||
lastMainContent :: LLVMValue -> [LLVMIr]
|
||||
lastMainContent var =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue