[PATCH] D68663: [clang-offload-bundler] Support `.cui` and `.d`.

Michael Liao via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 8 13:25:28 PDT 2019


hliao created this revision.
hliao added reviewers: tra, yaxunl.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D68663

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


Index: clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
===================================================================
--- clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
+++ clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
@@ -71,6 +71,8 @@
                        "Current supported types are:\n"
                        "  i   - cpp-output\n"
                        "  ii  - c++-cpp-output\n"
+                       "  cui - cuda/hip-output\n"
+                       "  d   - dependency\n"
                        "  ll  - llvm\n"
                        "  bc  - llvm-bc\n"
                        "  s   - assembler\n"
@@ -628,6 +630,10 @@
     return new TextFileHandler(/*Comment=*/"//");
   if (FilesType == "ii")
     return new TextFileHandler(/*Comment=*/"//");
+  if (FilesType == "cui")
+    return new TextFileHandler(/*Comment=*/"//");
+  if (FilesType == "d")
+    return new TextFileHandler(/*Comment=*/"#");
   if (FilesType == "ll")
     return new TextFileHandler(/*Comment=*/";");
   if (FilesType == "bc")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68663.223932.patch
Type: text/x-patch
Size: 1064 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191008/e9c99e46/attachment-0001.bin>


More information about the cfe-commits mailing list