Evgeny Mankov
21c3d25403
[HIPIFY][fix] Abandon canCompileHostAndDeviceInOneJob check for --cuda-compile-host-device option
...
[Reason] It turned out that it is not so: 2 jobs are always
2019-11-07 11:30:40 +03:00
Evgeny Mankov
97a0670d29
[HIPIFY][Win][fix] canCompileHostAndDeviceInOneJob is true only for LLVM >= 10
2019-11-06 19:25:42 +03:00
Evgeny Mankov
4cad5fab78
[HIPIFY][format] Apply clang style formatting in LLVMCompat
2019-11-06 14:43:22 +03:00
Evgeny Mankov
3dcae8760d
[HIPIFY] Add a compatibility for CharSourceRange if LLVM < 7
2019-11-06 14:30:39 +03:00
Evgeny Mankov
dd2243f2fa
[HIPIFY][Linux] Rollback --cuda-compile-host-device on Linux
...
[Reason] It doesn't work with LLVM 9 and higher; Windows is fine
2019-10-29 20:53:54 +03:00
Evgeny Mankov
411b18a124
[HIPIFY] Introduce --cuda-compile-host-device for LLVM >= 9
...
* LLVM < 9 continues using --cuda-host-only
2019-10-29 19:42:53 +03:00
Evgeny Mankov
32f22a0117
[HIPIFY][ #207 ][fix] Translate all preprocessor's conditional blocks
...
+ Start to translate preprocessor's false conditional blocks too:
based on clang's https://reviews.llvm.org/D66597 ;
available only starting from LLVM 10.0 or trunk.
+ Option -skip-excluded-preprocessor-conditional-blocks for skipping excluded conditional blocks:
the default behavior for hipify-clang built with LLVM < 10.0;
false by default for hipify-clang built with LLVM 10 or trunk.
+ Add 4 preprocessor unit tests, 2 of which are LLVM 10.0 only
+ Update couple of existing tests by setting -skip-excluded-preprocessor-conditional-blocks option:
update lit testing accordingly
2019-08-28 21:17:35 +03:00
Evgeny Mankov
c1ac414f14
[HIPIFY][LLVMCompat] Support of upcoming LLVM 9.0.0
2019-05-24 15:14:14 +03:00
Evgeny Mankov
df9418c3cd
[HIPIFY][fix][ #204 ] Suppress warning message: #pragma once in main file
2019-04-24 20:35:52 +03:00
emankov
61593291fd
[HIPIFY][fix][ #851 ] make_absolute only in case of relative path
...
Otherwise return the input path.
2019-01-06 17:58:37 +03:00
emankov
723c58afa4
[HIPIFY] LLVM compatibility
...
+ sys::fs::make_absolute fro LLVM < 5.0
+ sys::fs::real_path for LLVM >= 5.0
2018-12-28 01:34:35 +03:00
emankov
340550cc56
[HIPIFY] Add the legal right comment to all the sources
2018-12-20 18:47:57 +03:00
Evgeny Mankov
b087a7f275
[HIPIFY][LLVMCompat] support of upcoming LLVM 8.0
...
+ StringRef issue, which is finally moved to LLVM from Clang
+ Renamed getBeginLoc() and getEndLoc() resolution for Expr and TypeLoc classes
+ Support all the previous LLVM versions via LLVCompat
2018-11-16 01:23:25 +03:00
Evgeny Mankov
9a1a511c84
[HIPIFY] Code cleanup and formatting
2018-10-15 15:27:37 +03:00
Evgeny Mankov
ad28f72ca9
[HIPIFY] undo apply .clangformat to HIPIFY source files
2018-04-23 20:22:15 +03:00
Maneesh Gupta
9e47fccc89
Apply .clangformat to all repo source files
...
Change-Id: I7e79c6058f0303f9a98911e3b7dd2e8596079344
2018-03-12 11:29:03 +05:30
Evgeny Mankov
7b060535c0
[HIPIFY][ #308 ][fix] Consume error returned by Replacements::add(...)
2018-01-09 20:03:53 +03:00
Evgeny Mankov
a469e785f2
[HIPIFY] fix typo - missing )
2017-10-27 23:31:43 +03:00
Chris Kitching
9478be8198
Extract LLVM compatibility code into its own translation unit
2017-10-27 20:12:32 +01:00