Merge pull request #716 from ifilippov/export_alias

Adding noalias attribute to uniform pointer parameters of export functions
This commit is contained in:
Dmitry Babokin
2014-01-15 03:51:16 -08:00

View File

@@ -503,6 +503,11 @@ Function::GenerateIR() {
appFunction->setDoesNotThrow(); appFunction->setDoesNotThrow();
#endif #endif
for (int i = 0; i < type->GetNumParameters(); i++) {
if (function->doesNotAlias(i)) {
appFunction->setDoesNotAlias(i);
}
}
g->target->markFuncWithTargetAttr(appFunction); g->target->markFuncWithTargetAttr(appFunction);
if (appFunction->getName() != functionName) { if (appFunction->getName() != functionName) {