Displaying 2 results from an estimated 2 matches for "getabitypealigment".
Did you mean:
getabitypealignment
2016 May 31
0
va_arg on Windows 64 bits
...During my research, I found that when a VAArgInst is being lowered
in SelectionDAG::expandVAARG(), the alignment information is retrieved
from the va_arg SDNode and the lowering is wrong (in this case).
The alignment is set in SelectionDAGBuilder::visitVAArg() where it
creates a VAArg DAG using DL.getABITypeAligment(I.getType()) which
seems to be the alignment information.
DL.getABITypeAligment(I.getType()) returns 4 if the type is i32 and 8
for i64 type. For testing, I forced it to 8 and the IR example below
worked fine.
Is there some kind of attributes to force function parameters to be
aligned contiguousl...
2016 Apr 20
3
va_arg on Windows 64
...During my research, I found that when a VAArgInst is being lowered in
SelectionDAG::expandVAARG(), the alignment information is retrieved
from the va_arg SDNode and the lowering is wrong (in this case).
The alignment is set in SelectionDAGBuilder::visitVAArg() where it
creates a VAArg DAG using DL.getABITypeAligment(I.getType()) which
seems to be the alignment information.
DL.getABITypeAligment(I.getType()) returns 4 if the type is i32 and 8
for i64 type. For testing, I forced it to 8 and the IR example below
worked fine.
Is there some kind of attributes to force function parameters to be
aligned contiguousl...