source: trunk/lib_ir/gen/llc_func.pytemplate.ll @ 3977

Last change on this file since 3977 was 3977, checked in by linmengl, 5 years ago

Create a template system to generate lowering logic for v64i2 and the test cases.

File size: 279 bytes
Line 
1{% for name in FunctionNames %}
2define <64 x i2> @{{ name.c }}(<64 x i2> %a, <64 x i2> %b) {
3entry:
4  %c = {{ name.op }} <64 x i2> %a, %b
5{% if "icmp" in name.op %}
6  %d = sext <64 x i1> %c to <64 x i2>
7  ret <64 x i2> %d
8{% else %}
9  ret <64 x i2> %c
10{% endif %}
11}
12{% endfor %}
Note: See TracBrowser for help on using the repository browser.