@@ -1728,6 +1728,76 @@ complex.c:
17281728# 144| Type = [LongDoubleType] long double
17291729# 144| ValueCategory = prvalue
17301730# 145| getStmt(72): [ReturnStmt] return ...
1731+ ir.c:
1732+ # 5| [TopLevelFunction] int getX(MyCoords*)
1733+ # 5| <params>:
1734+ # 5| getParameter(0): [Parameter] coords
1735+ # 5| Type = [PointerType] MyCoords *
1736+ # 7| [TopLevelFunction] void MyCoordsTest(int)
1737+ # 7| <params>:
1738+ # 7| getParameter(0): [Parameter] pos
1739+ # 7| Type = [IntType] int
1740+ # 7| getEntryPoint(): [BlockStmt] { ... }
1741+ # 8| getStmt(0): [DeclStmt] declaration
1742+ # 8| getDeclarationEntry(0): [VariableDeclarationEntry] definition of coords
1743+ # 8| Type = [CTypedefType] MyCoords
1744+ # 8| getVariable().getInitializer(): [Initializer] initializer for coords
1745+ # 8| getExpr(): [ClassAggregateLiteral] {...}
1746+ # 8| Type = [Struct] (unnamed class/struct/union)
1747+ # 8| ValueCategory = prvalue
1748+ # 8| getAFieldExpr(x): [Literal] 0
1749+ # 8| Type = [IntType] int
1750+ # 8| Value = [Literal] 0
1751+ # 8| ValueCategory = prvalue
1752+ # 9| getStmt(1): [ExprStmt] ExprStmt
1753+ # 9| getExpr(): [AssignExpr] ... = ...
1754+ # 9| Type = [IntType] int
1755+ # 9| ValueCategory = prvalue
1756+ # 9| getLValue(): [ValueFieldAccess] x
1757+ # 9| Type = [IntType] int
1758+ # 9| ValueCategory = lvalue
1759+ # 9| getQualifier(): [VariableAccess] coords
1760+ # 9| Type = [CTypedefType] MyCoords
1761+ # 9| ValueCategory = lvalue
1762+ # 9| getRValue(): [AssignExpr] ... = ...
1763+ # 9| Type = [IntType] int
1764+ # 9| ValueCategory = prvalue
1765+ # 9| getLValue(): [ValueFieldAccess] y
1766+ # 9| Type = [IntType] int
1767+ # 9| ValueCategory = lvalue
1768+ # 9| getQualifier(): [VariableAccess] coords
1769+ # 9| Type = [CTypedefType] MyCoords
1770+ # 9| ValueCategory = lvalue
1771+ # 9| getRValue(): [AddExpr] ... + ...
1772+ # 9| Type = [IntType] int
1773+ # 9| ValueCategory = prvalue
1774+ # 9| getLeftOperand(): [VariableAccess] pos
1775+ # 9| Type = [IntType] int
1776+ # 9| ValueCategory = prvalue(load)
1777+ # 9| getRightOperand(): [Literal] 1
1778+ # 9| Type = [IntType] int
1779+ # 9| Value = [Literal] 1
1780+ # 9| ValueCategory = prvalue
1781+ # 10| getStmt(2): [ExprStmt] ExprStmt
1782+ # 10| getExpr(): [AssignExpr] ... = ...
1783+ # 10| Type = [IntType] int
1784+ # 10| ValueCategory = prvalue
1785+ # 10| getLValue(): [ValueFieldAccess] x
1786+ # 10| Type = [IntType] int
1787+ # 10| ValueCategory = lvalue
1788+ # 10| getQualifier(): [VariableAccess] coords
1789+ # 10| Type = [CTypedefType] MyCoords
1790+ # 10| ValueCategory = lvalue
1791+ # 10| getRValue(): [FunctionCall] call to getX
1792+ # 10| Type = [IntType] int
1793+ # 10| ValueCategory = prvalue
1794+ # 10| getArgument(0): [AddressOfExpr] & ...
1795+ # 10| Type = [PointerType] MyCoords *
1796+ # 10| ValueCategory = prvalue
1797+ # 10| getOperand(): [VariableAccess] coords
1798+ # 10| Type = [CTypedefType] MyCoords
1799+ # 10| ValueCategory = lvalue
1800+ # 11| getStmt(3): [ReturnStmt] return ...
17311801ir.cpp:
17321802# 1| [TopLevelFunction] void Constants()
17331803# 1| <params>:
0 commit comments