Skip to content

Commit 2ae54ab

Browse files
committed
[clang-offload-bundler] Support .cui and .d.
Reviewers: tra, yaxunl Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D68663 llvm-svn: 374167
1 parent d1170db commit 2ae54ab

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ static cl::opt<std::string>
7171
"Current supported types are:\n"
7272
" i - cpp-output\n"
7373
" ii - c++-cpp-output\n"
74+
" cui - cuda/hip-output\n"
75+
" d - dependency\n"
7476
" ll - llvm\n"
7577
" bc - llvm-bc\n"
7678
" s - assembler\n"
@@ -628,6 +630,12 @@ static FileHandler *CreateFileHandler(MemoryBuffer &FirstInput) {
628630
return new TextFileHandler(/*Comment=*/"//");
629631
if (FilesType == "ii")
630632
return new TextFileHandler(/*Comment=*/"//");
633+
if (FilesType == "cui")
634+
return new TextFileHandler(/*Comment=*/"//");
635+
// TODO: `.d` should be eventually removed once `-M` and its variants are
636+
// handled properly in offload compilation.
637+
if (FilesType == "d")
638+
return new TextFileHandler(/*Comment=*/"#");
631639
if (FilesType == "ll")
632640
return new TextFileHandler(/*Comment=*/";");
633641
if (FilesType == "bc")

0 commit comments

Comments
 (0)