Merge pull request #716 from ifilippov/export_alias
Adding noalias attribute to uniform pointer parameters of export functions
This commit is contained in:
5
func.cpp
5
func.cpp
@@ -503,6 +503,11 @@ Function::GenerateIR() {
|
||||
appFunction->setDoesNotThrow();
|
||||
#endif
|
||||
|
||||
for (int i = 0; i < type->GetNumParameters(); i++) {
|
||||
if (function->doesNotAlias(i)) {
|
||||
appFunction->setDoesNotAlias(i);
|
||||
}
|
||||
}
|
||||
g->target->markFuncWithTargetAttr(appFunction);
|
||||
|
||||
if (appFunction->getName() != functionName) {
|
||||
|
||||
Reference in New Issue
Block a user