Displaying 1 result from an estimated 1 matches for "setallowsmemory".
2013 Feb 28
0
[LLVMdev] [cfe-dev] [MIPS] How can I add a constraint to LLVM/Clang for MIPS BE?
...69ee..854e12b 100644
--- a/lib/Basic/Targets.cpp
+++ b/lib/Basic/Targets.cpp
@@ -4393,6 +4393,9 @@ public:
case 'x': // hilo register pair
Info.setAllowsRegister();
return true;
+ case 'R': // An address that can be used in a non-macro load or store
+ Info.setAllowsMemory();
+ return true;
}
}
Clang gen asm frag:
#APP
lw $2, 0($2)
#NO_APP
#APP
lw $1, 0($1)
#NO_APP
#APP
lwl $1, 1 + 0($1)
lwr $1, 2 + 0($1)
#NO_APP
gcc gen asm frag:
#APP
# 12 "constraints.c" 1
lw $16, 0($2)
# 0 "" 2
#NO_APP
#APP
# 20 "constraints...