[PATCH] D13653: [mips][mips16] Re-work the inline assembly stubs to work with IAS. NFC.
Daniel Sanders via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 21 05:48:48 PDT 2015
dsanders added a comment.
Thanks
================
Comment at: lib/Target/Mips/Mips16HardFloat.cpp:44-52
@@ +43,11 @@
+ static void EmitInlineAsm(LLVMContext &C, BasicBlock *BB, StringRef AsmText) {
+ std::vector<llvm::Type *> AsmArgTypes;
+ std::vector<llvm::Value*> AsmArgs;
+
+ llvm::FunctionType *AsmFTy = llvm::FunctionType::get(Type::getVoidTy(C),
+ AsmArgTypes, false);
+ llvm::InlineAsm *IA = llvm::InlineAsm::get(AsmFTy, AsmText, "", true,
+ /* IsAlignStack */ false,
+ llvm::InlineAsm::AD_ATT);
+ CallInst::Create(IA, AsmArgs, "", BB);
+ }
----------------
vkalintiris wrote:
> clang-format reformats this bit.
Fixed in the commit
Repository:
rL LLVM
http://reviews.llvm.org/D13653
More information about the llvm-commits
mailing list