Skip to content

Instantly share code, notes, and snippets.

@matthiasfranz
Last active January 23, 2020 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthiasfranz/de178742126ad356cf603f7383cffb64 to your computer and use it in GitHub Desktop.
Save matthiasfranz/de178742126ad356cf603f7383cffb64 to your computer and use it in GitHub Desktop.
diff --git a/lib/Target/AArch64/AArch64ISelLowering.h b/lib/Target/AArch64/AArch64ISelLowering.h
index d5154fb..49fca3f 100644
--- a/lib/Target/AArch64/AArch64ISelLowering.h
+++ b/lib/Target/AArch64/AArch64ISelLowering.h
@@ -619,8 +619,11 @@ private:
SelectionDAG &DAG) const override;
unsigned getInlineAsmMemConstraint(StringRef ConstraintCode) const override {
- if (ConstraintCode == "Q")
+ if (ConstraintCode == "Q") {
return InlineAsm::Constraint_Q;
+ } else if (ConstraintCode == "o") {
+ return InlineAsm::Constraint_m;
+ }
// FIXME: clang has code for 'Ump', 'Utf', 'Usa', and 'Ush' but these are
// followed by llvm_unreachable so we'll leave them unimplemented in
// the backend for now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment