Rohan Jacob-Rao
6f51b8c54b
Handle source location metadata generated by clang wrapper.
10 years ago
Rohan Jacob-Rao
37a4709a0f
Translate call instruction and construct call graph.
10 years ago
Rohan Jacob-Rao
5e5fac5dbc
Fix some indentation and a stray comment.
10 years ago
Rohan Jacob-Rao
e127255f60
Renamed some types and variables for consistency.
10 years ago
Rohan Jacob-Rao
f3afc6848b
Open Utils module to avoid prefixing common list functions.
10 years ago
Rohan Jacob-Rao
a7da6066e5
Build maps of metadata variables.
10 years ago
Rohan Jacob-Rao
b4f554b5f5
Parse call to debugging llvm.dbg.declare function.
10 years ago
Rohan Jacob-Rao
c264f95ab3
Setting up metadata variable mappings.
10 years ago
Rohan Jacob-Rao
b3b67cdf69
Add metadata types to AST.
10 years ago
Rohan Jacob-Rao
4a55382345
Refactored grammar for metadata definitions.
10 years ago
Rohan Jacob-Rao
f9939786fb
Add function types.
10 years ago
Rohan Jacob-Rao
ded6b1d654
Fix parsing of boolean constants
10 years ago
Rohan Jacob-Rao
f20236fcac
Parse metadata nodes.
10 years ago
Rohan Jacob-Rao
ef01c485da
Made parser syntax consistent: list(X) -> X* and option(X) -> X?.
10 years ago
Rohan Jacob-Rao
353f442efb
Parse debug annotations and add them to AST.
10 years ago
Rohan Jacob-Rao
026ca7176e
Parse data layout and target triple.
10 years ago
Rohan Jacob-Rao
950b6f4aa4
Added dumb parsing of metadata.
10 years ago
Rohan Jacob-Rao
b8b62cbcb0
Add optional alignment argument to alloca, load and store rules.
10 years ago
Rohan Jacob-Rao
e1d071fb1f
Fix error in parsing int constants.
10 years ago
Rohan Jacob-Rao
66aecca31f
Allow for attribute groups in function definitions.
10 years ago
Rohan Jacob-Rao
e9f1f03aa0
Added empty AST node for binops, to prevent build warnings.
10 years ago
Rohan Jacob-Rao
264a46f80c
Initial attempt to translate alloca instruction.
10 years ago
Rohan Jacob-Rao
6dc20cd4e6
Add "unnamed" (i.e. numbered) variables to syntax.
10 years ago
Rohan Jacob-Rao
9ac4b11056
Translation of load instruction.
10 years ago
Rohan Jacob-Rao
a20d178e7c
Translation of basic store instruction.
10 years ago
Rohan Jacob-Rao
51ebf2493e
Fixed bug in parsing of variables.
10 years ago
Rohan Jacob-Rao
be640f9c4e
Remove build warnings by commenting out unused tokens.
10 years ago
Jules Villard
6911a1516c
[whitespace] ocp-indent the code
...
Summary:
This commit is the result of
`find infer/src -name '*.ml' -or -name '*.mli' -exec ocp-indent -i \{\} \;`
and
`INFER_CHECK_COPYRIGHT=1 InferPrint`
10 years ago
Rohan Jacob-Rao
0946c9e460
Start of SIL generation from AST.
...
Summary:
Added phase to construct (incomplete) CFG from existing AST.
Individual instructions are not yet translated so any nonempty functions will
result in a runtime exception.
Added some very short examples of LLVM programs.
10 years ago