Add support for compiling to multiple targets.

If a flag along the lines of "--target=sse4,avx-x2" is provided on the command-line,
then the program will be compiled for each of the given targets, with a separate
output file generated for each one.  Further, an output file with dispatch functions
that check the current system's CPU and then chooses the best available variant
is also created.

Issue #11.
This commit is contained in:
Matt Pharr
2011-10-04 15:48:37 -07:00
parent 880cbb18cc
commit 06975bc7ab
12 changed files with 798 additions and 118 deletions

View File

@@ -55,4 +55,7 @@
void DefineStdlib(SymbolTable *symbolTable, llvm::LLVMContext *ctx, llvm::Module *module,
bool includeStdlib);
void AddBitcodeToModule(const unsigned char *bitcode, int length,
llvm::Module *module, SymbolTable *symbolTable = NULL);
#endif // ISPC_STDLIB_H