triton
|
2916703e4c
|
Refactored enum item generation in CLI backend to use blocks.
|
12 years ago |
triton
|
92243be28f
|
Make the parsing of function codegen info a bit more robust.
|
12 years ago |
triton
|
dc14a5699a
|
Reworked the CheckAbiParameters pass to be a lot more accurate by re-using the previously added support for indirect type information.
|
12 years ago |
triton
|
8c0c76ca59
|
Reworked operator overloading support.
|
12 years ago |
triton
|
7f8f9289a1
|
Run CheckOperatorsOverloadsPass under both backends.
|
12 years ago |
triton
|
c8abdeb192
|
Cleaned up operator overload helpers.
|
12 years ago |
triton
|
14dbe76e9d
|
Run CleanInvalidDeclNamesPass earlier because some later passes need the names to be cleaned up.
|
12 years ago |
triton
|
5ada754d72
|
Reworked MoveOperatorToClassPass to be simpler and correct.
|
12 years ago |
triton
|
6c1e8fdbbf
|
When generating the internal name for a function, take into account its original function.
|
12 years ago |
triton
|
f7be1cb5e7
|
Added original function property to keep the original function where this one was synthetized from.
|
12 years ago |
triton
|
d56c50ad5e
|
Added FunctionSynthKind property to function to keep what kind of synthesis occurred.
|
12 years ago |
triton
|
df01104ab7
|
Fixed GetFunctionNativeIdentifier to work with function operators.
|
12 years ago |
triton
|
a964df9069
|
Renamed HiddenStructureReturn to IndirectReturnType as it is a lot more clear.
|
12 years ago |
triton
|
5586acdbaf
|
Added accurate return and argument type ABI information by querying Clang's code gen layer for the correct information. This does add a lot of extra dependencies on LLVM and Clang libraries.
|
12 years ago |
triton
|
5ea71589a8
|
Extract diagnostic handling to a method.
|
12 years ago |
triton
|
7767d94281
|
Added some overloads to emit debug diagnostics.
|
12 years ago |
triton
|
d7541960c4
|
Moved operators parsing from methods to functions since functions can also be operators.
|
12 years ago |
João Matos
|
52d269f6e4
|
Merge pull request #46 from ddobrev/master
Compilation fixes
|
12 years ago |
Dimitar Dobrev
|
a9d8e8bf03
|
Removed the hard-coded "__" from the CLI back-end.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
12 years ago |
Dimitar Dobrev
|
5208fafef7
|
Moved GeneratedIdentifier to the base Generator so that the former is available to all back-ends.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
12 years ago |
Dimitar Dobrev
|
fe1387331d
|
Removed a hard-coded "__".
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
12 years ago |
Dimitar Dobrev
|
cd65094792
|
Fixed the generation of virtual tables to use the new format of internal generated identifiers.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
12 years ago |
Dimitar Dobrev
|
3caecadbbe
|
Added a union to the test header to check for compilable generated union wrappers.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
12 years ago |
Dimitar Dobrev
|
7971d0a33e
|
Fixed the generation of unions by considering all unions non-reference types.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
12 years ago |
Dimitar Dobrev
|
bf2dfd375c
|
Fixed the "ret" conflict in the CLI back-end as well.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
12 years ago |
Dimitar Dobrev
|
ca0e67529e
|
Added a compilation test for the class member of a nested type - that is, when &IntPtr code is generated.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
12 years ago |
Dimitar Dobrev
|
0c1240d97e
|
Added a compilation test for a free function with a class parameter named "ret".
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
12 years ago |
Dimitar Dobrev
|
8312ff0a20
|
Removed the hard-coded "ret" variable.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
12 years ago |
Dimitar Dobrev
|
01d3779e2b
|
Corrected the generation of the native constructor when in a structure.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
12 years ago |
Dimitar Dobrev
|
64fb8ecbc0
|
Used the qualified identifier when allocating return values, to handle nested types.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
12 years ago |
Dimitar Dobrev
|
f163ceac63
|
Replaced an expression with a variable so that the & operator works.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
12 years ago |
Dimitar Dobrev
|
712a3904a6
|
Removed the "protected" modifier of setters when in a structure. Changed a generated local variable to a non-conflicting name.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
12 years ago |
Dimitar Dobrev
|
cd8d893601
|
Fixed the class containing context functions to be unsafe.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
12 years ago |
triton
|
b495c77a64
|
Set the driver property in TranslationUnitPass when adding new passes.
|
12 years ago |
triton
|
6b0cb59f8a
|
Added RunPasses to PassBuilder and change existing code to use it.
|
12 years ago |
triton
|
b41b5c6459
|
Fixed virtual tables tests.
|
12 years ago |
triton
|
cdc57d5c0a
|
Cleaned up test build scripts.
|
12 years ago |
triton
|
fb481baf7d
|
Fixed return of structures by value in C# backend similarly to the CLI backend by using copy constructors if the class has any non-trivial ones, or just copying memory directly if the class only has trivial ones.
|
12 years ago |
triton
|
9dfb30265e
|
Simplified GetFunctionIdentifier and GetFunctionNativeIdentifier.
|
12 years ago |
triton
|
02f5d0731a
|
Classes in AST now keep if they have non trivial copy constructors.
|
12 years ago |
triton
|
62078d449e
|
Simplified generated code dealing with hidden structure parameters.
|
12 years ago |
triton
|
d8adef816b
|
Copy constructor P/Invokes are now generated in C# backend.
|
12 years ago |
triton
|
f31dbad64f
|
Managed tests now depend on the Runtime project.
|
12 years ago |
triton
|
3f93eb4b0e
|
Added P/Invoke helpers for unmanaged-unmanaged memory copies.
|
12 years ago |
triton
|
e29bc41a59
|
Fixed value returns of classes bound as reference types in CLI backend.
|
12 years ago |
João Matos
|
8854c59a43
|
Merge pull request #42 from ddobrev/function_operators
Moved all operators not belonging to a type to the type of their first parameters
|
12 years ago |
João Matos
|
1f659d33e8
|
Merge pull request #44 from ddobrev/duplicates_ignore_hidden_args
Duplicates ignore hidden args
|
12 years ago |
Dimitar Dobrev
|
8bea49599a
|
Fixed the check for duplicate names to ignore hidden return parameters.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
12 years ago |
Dimitar Dobrev
|
4f1eba905f
|
Moved all operators not belonging to a type to the type of their first parameters.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
12 years ago |
Dimitar Dobrev
|
43d01854a2
|
Fixed a regression causing a crash as some functions with no symbols are allowed to reach code generation.
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
|
12 years ago |