Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add nominal support for 'shave' target.
This change passes through C and assembler jobs to Movidius tools by constructing commands which are the same as ones produces by the examples in the SDK. But rather than reference MV_TOOLS_DIR to find tools, we will assume that binaries are installed wherever the Driver would find its native tools. Similarly, this change assumes that -I options will "just work" based on where SDK headers get installed, rather than baking into the Driver some magic paths. Differential Revision: http://reviews.llvm.org/D10440 llvm-svn: 240134
- Loading branch information
Showing
6 changed files
with
193 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Ensure that '-target shave' picks a different compiler. | ||
// Also check that '-I' is turned into '-i:' for the assembler. | ||
|
||
// Note that since we don't know where movi tools are installed, | ||
// the driver may or may not find a full path to them. | ||
// That is, the 0th argument will be "/path/to/my/moviCompile" | ||
// or just "moviCompile" depending on whether moviCompile is found. | ||
// As such, we test only for a trailing quote in its rendering. | ||
// The same goes for "moviAsm". | ||
|
||
// RUN: %clang -target shave -c -### %s -Icommon 2>&1 \ | ||
// RUN: | FileCheck %s -check-prefix=movicompile | ||
// movicompile: moviCompile" "-DMYRIAD2" | ||
// movicompile: moviAsm" "-no6thSlotCompression" "-cv:myriad2" "-noSPrefixing" "-a" "-i:common" "-elf" | ||
|
||
// RUN: %clang -target shave -c -### %s -DEFINE_ME -UNDEFINE_ME 2>&1 \ | ||
// RUN: | FileCheck %s -check-prefix=defines | ||
// defines: "-D" "EFINE_ME" "-U" "NDEFINE_ME" | ||
|
||
// RUN: %clang -target shave -c -### %s -Icommon -iquote quotepath -isystem syspath 2>&1 \ | ||
// RUN: | FileCheck %s -check-prefix=includes | ||
// includes: "-iquote" "quotepath" "-isystem" "syspath" |