[clang-repl][CUDA] Re-land: Initial interactive CUDA support for clang-repl
authorAnubhab Ghosh <anubhabghosh.me@gmail.com>
Mon, 6 Mar 2023 11:20:02 +0000 (16:50 +0530)
committerAnubhab Ghosh <anubhabghosh.me@gmail.com>
Sat, 27 May 2023 08:24:42 +0000 (13:54 +0530)
commitddeab07ca63235f8d952e1171b56fdb0f2d761c9
tree7f716c3bcef2f5189173d5759490e5b895f6f488
parentfe01c084249969518bcd69aa2fedffc9f017f43a
[clang-repl][CUDA] Re-land: Initial interactive CUDA support for clang-repl

CUDA support can be enabled in clang-repl with --cuda flag.
Device code linking is not yet supported. inline must be used with all
__device__ functions.

Differential Revision: https://reviews.llvm.org/D146389
22 files changed:
clang/include/clang/Interpreter/Interpreter.h
clang/lib/CodeGen/CGCUDANV.cpp
clang/lib/CodeGen/CodeGenAction.cpp
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/CodeGen/ModuleBuilder.cpp
clang/lib/Interpreter/CMakeLists.txt
clang/lib/Interpreter/DeviceOffload.cpp [new file with mode: 0644]
clang/lib/Interpreter/DeviceOffload.h [new file with mode: 0644]
clang/lib/Interpreter/IncrementalParser.cpp
clang/lib/Interpreter/IncrementalParser.h
clang/lib/Interpreter/Interpreter.cpp
clang/test/Interpreter/CUDA/device-function-template.cu [new file with mode: 0644]
clang/test/Interpreter/CUDA/device-function.cu [new file with mode: 0644]
clang/test/Interpreter/CUDA/host-and-device.cu [new file with mode: 0644]
clang/test/Interpreter/CUDA/lit.local.cfg [new file with mode: 0644]
clang/test/Interpreter/CUDA/memory.cu [new file with mode: 0644]
clang/test/Interpreter/CUDA/sanity.cu [new file with mode: 0644]
clang/test/lit.cfg.py
clang/tools/clang-repl/ClangRepl.cpp
clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp
clang/unittests/Interpreter/IncrementalProcessingTest.cpp
clang/unittests/Interpreter/InterpreterTest.cpp