adding noalias attribute to uniform pointer parameters of export function
This commit is contained in:
5
func.cpp
5
func.cpp
@@ -498,6 +498,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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user