diff options
author | Haicheng Wu <haicheng@codeaurora.org> | 2016-01-23 06:52:41 +0000 |
---|---|---|
committer | Haicheng Wu <haicheng@codeaurora.org> | 2016-01-23 06:52:41 +0000 |
commit | dd5e9d2159385e2f195c5977871ccae310f4a258 (patch) | |
tree | d13a525090f2c185c741647734f7112c93436faa /lldb/source/Core/Module.cpp | |
parent | 327bca776c3e0c91af08ba715f390c678f6ac0ad (diff) | |
download | bcm5719-llvm-dd5e9d2159385e2f195c5977871ccae310f4a258.tar.gz bcm5719-llvm-dd5e9d2159385e2f195c5977871ccae310f4a258.zip |
[LIR] Add support for structs and hand unrolled loops
Now LIR can turn following codes into memset:
typedef struct foo {
int a;
int b;
} foo_t;
void bar(foo_t *f, unsigned n) {
for (unsigned i = 0; i < n; ++i) {
f[i].a = 0;
f[i].b = 0;
}
}
void test(foo_t *f, unsigned n) {
for (unsigned i = 0; i < n; i += 2) {
f[i] = 0;
f[i+1] = 0;
}
}
llvm-svn: 258620
Diffstat (limited to 'lldb/source/Core/Module.cpp')
0 files changed, 0 insertions, 0 deletions