Release 4.10 tools/perf/tests/clang.c
#include "tests.h"
#include "debug.h"
#include "util.h"
#include "c++/clang-c.h"
static struct {
int (*func)(void);
const char *desc;
}
clang_testcase_table[] = {
#ifdef HAVE_LIBCLANGLLVM_SUPPORT
{
.func = test__clang_to_IR,
.desc = "builtin clang compile C source to IR",
},
{
.func = test__clang_to_obj,
.desc = "builtin clang compile C source to ELF object",
},
#endif
};
int test__clang_subtest_get_nr(void)
{
return (int)ARRAY_SIZE(clang_testcase_table);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
wang nan | wang nan | 16 | 100.00% | 1 | 100.00% |
| Total | 16 | 100.00% | 1 | 100.00% |
const char *test__clang_subtest_get_desc(int i)
{
if (i < 0 || i >= (int)ARRAY_SIZE(clang_testcase_table))
return NULL;
return clang_testcase_table[i].desc;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
wang nan | wang nan | 37 | 100.00% | 1 | 100.00% |
| Total | 37 | 100.00% | 1 | 100.00% |
#ifndef HAVE_LIBCLANGLLVM_SUPPORT
int test__clang(int i __maybe_unused)
{
return TEST_SKIP;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
wang nan | wang nan | 12 | 100.00% | 1 | 100.00% |
| Total | 12 | 100.00% | 1 | 100.00% |
#else
int test__clang(int i)
{
if (i < 0 || i >= (int)ARRAY_SIZE(clang_testcase_table))
return TEST_FAIL;
return clang_testcase_table[i].func();
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
wang nan | wang nan | 36 | 100.00% | 1 | 100.00% |
| Total | 36 | 100.00% | 1 | 100.00% |
#endif
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
wang nan | wang nan | 173 | 100.00% | 2 | 100.00% |
| Total | 173 | 100.00% | 2 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.