#define ISPC_FORCE_ALIGNED_MEMORY, if appropriate, in C++ output.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user