search for: vfu1

Displaying 2 results from an estimated 2 matches for "vfu1".

Did you mean: vf1
2009 Sep 23
2
[LLVMdev] About porting llvm-gcc frontend.
...arget. So I move *.h *.md and *.c to llvm-gcc.  I do not implement any LLVM MACRO, and use default action of llvm-gcc.  I get a new llvm-gcc for our target. But I get a bug. /******************************/ //#include <stdio.h> union MYunion {   unsigned char uc ;   int ui; } myunion; void vfu1(union MYunion  u) {     u.ui = 99; } void unions() {    myunion.ui = 0;    vfu1(myunion);    iequals(244, myunion.ui, 0); } int iequals( int line, int val1, int val2) {     printf("in iequals: line = %d, val1 = %d, val2 = %d\n", line, val1, val2);     if(val1 == val2) {        printf(&q...
2009 Sep 24
0
[LLVMdev] About porting llvm-gcc frontend.
Hi 任坤, > void vfu1(union MYunion u) { > u.ui = 99; > } here u is passed by copy, so vfu1 has no externally visible effect. I think you meant: union MYunion *u > define void @vfu1(%struct.MYunion* byval align 4 %u) nounwind { Here "byval" means that a pointer to a temporary copy of u is bei...