================
@@ -3134,117 +3129,163 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) {
if (isa<MSAsmStmt>(&S)) {
if (Clobber == "eax" || Clobber == "edx") {
- if (Constraints.find("=&A") != std::string::npos)
+ if (AsmInfo.Constraints.find("=&A") != std::string::npos)
continue;
+
std::string::size_type position1 =
- Constraints.find("={" + Clobber + "}");
+ AsmInfo.Constraints.find("={" + Clobber + "}");
if (position1 != std::string::npos) {
- Constraints.insert(position1 + 1, "&");
+ AsmInfo.Constraints.insert(position1 + 1, "&");
continue;
}
- std::string::size_type position2 = Constraints.find("=A");
+
+ std::string::size_type position2 = AsmInfo.Constraints.find("=A");
if (position2 != std::string::npos) {
- Constraints.insert(position2 + 1, "&");
+ AsmInfo.Constraints.insert(position2 + 1, "&");
continue;
}
}
}
- if (!Constraints.empty())
- Constraints += ',';
- Constraints += "~{";
- Constraints += Clobber;
- Constraints += '}';
+ if (!AsmInfo.Constraints.empty())
+ AsmInfo.Constraints += ',';
+
+ AsmInfo.Constraints += "~{" + Clobber + '}';
}
+ return HasUnwindClobber;
+}
+
+static void EmitHipStdParUnsupportedAsm(CodeGenFunction *CGF,
----------------
s-barannikov wrote:
Can it be move it where it was to reduce diff?
https://github.com/llvm/llvm-project/pull/196885
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits