Fix for the issue #449: warning due to DataLayout mismatch

This commit is contained in:
Dmitry Babokin
2013-04-02 19:08:44 +04:00
parent 9cf037c90f
commit 3c533f2ba4
3 changed files with 86 additions and 9 deletions

9
util.h
View File

@@ -147,4 +147,13 @@ void GetDirectoryAndFileName(const std::string &currentDir,
const std::string &relativeName,
std::string *directory, std::string *filename);
/** Verification routine, which ensures that DataLayout of the module being
compiled is compatible with DataLayout of the library. At the moment we
allow the library DataLayout to a subset of the module DataLayout (and
extra floating point and vector types to be defined for module) or
empty library DataLayout.
*/
bool VerifyDataLayoutCompatibility(const std::string &module_dl,
const std::string &lib_dl);
#endif // ISPC_UTIL_H