#define ISPC_FORCE_ALIGNED_MEMORY, if appropriate, in C++ output.

This commit is contained in:
Matt Pharr
2012-09-14 13:53:12 -07:00
parent be2108260e
commit a13e7f2435

View File

@@ -2203,6 +2203,10 @@ bool CWriter::doInitialization(llvm::Module &M) {
Out << "#undef ISPC_FAST_MATH\n";
}
if (g->opt.forceAlignedMemory) {
Out << "#define ISPC_FORCE_ALIGNED_MEMORY\n";
}
Out << "#include \"" << includeName << "\"\n";
Out << "\n/* Basic Library Function Declarations */\n";