-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1510 from ptersilie/loop_peeling
Implement loop peeling.
- Loading branch information
Showing
14 changed files
with
1,049 additions
and
469 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// Run-time: | ||
// env-var: YKD_LOG_IR=jit-post-opt | ||
// env-var: YKD_SERIALISE_COMPILATION=1 | ||
// env-var: YK_LOG=4 | ||
// stderr: | ||
// ... | ||
// --- Begin jit-post-opt --- | ||
// ... | ||
// header_start ... | ||
// ... | ||
// header_end [%{{0}}, %{{1}}, %{{2}}, %{{3}}, %{{4}}, %{{25}}] | ||
// ... | ||
// body_start [%{{30}}, %{{31}}, %{{32}}, %{{33}}, %{{34}}, %{{35}}] | ||
// ... | ||
// body_end ... | ||
// ... | ||
// --- End jit-post-opt --- | ||
// ... | ||
|
||
// Check that basic trace compilation works. | ||
|
||
#include <assert.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
#include <yk.h> | ||
#include <yk_testing.h> | ||
|
||
int main(int argc, char **argv) { | ||
YkMT *mt = yk_mt_new(NULL); | ||
yk_mt_hot_threshold_set(mt, 0); | ||
YkLocation loc = yk_location_new(); | ||
|
||
int res = 9998; | ||
int i = 4; | ||
NOOPT_VAL(loc); | ||
NOOPT_VAL(res); | ||
NOOPT_VAL(i); | ||
while (i > 0) { | ||
yk_mt_control_point(mt, &loc); | ||
fprintf(stderr, "%d\n", i); | ||
i--; | ||
} | ||
fprintf(stderr, "exit\n"); | ||
NOOPT_VAL(res); | ||
yk_location_drop(loc); | ||
yk_mt_shutdown(mt); | ||
return (EXIT_SUCCESS); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.