[MIPS64] Pass large objects by value for mips64 arch

AArch64's calling convention passes large objects by pointer/reference.
Consequently, RS functions exported in the driver need special handling for MIPS64.
This patch uses the existing X86_64 pass for MIPS64, that identifies pointer arguments
created due to the AArch64 convention and marks them as pass-by-value.

Tested with CTS CtsRsCppTestCases and CtsRenderscriptTestCases modules for abi mips64:
run cts -m CtsRsCppTestCases --abi mips64
run cts -m CtsRenderscriptTestCases --abi mips64

Change-Id: Ib2999d11bad567202a8224d55245b1c70a9f9cdd
diff --git a/lib/Compiler.cpp b/lib/Compiler.cpp
index 5000fa1..44f23c5 100644
--- a/lib/Compiler.cpp
+++ b/lib/Compiler.cpp
@@ -269,8 +269,9 @@
 
   // These passes have to come after LTO, since we don't want to examine
   // functions that are never actually called.
-  if (llvm::Triple(getTargetMachine().getTargetTriple()).getArch() == llvm::Triple::x86_64)
-    transformPasses.add(createRSX86_64CallConvPass());  // Add pass to correct calling convention for X86-64.
+  if (llvm::Triple(getTargetMachine().getTargetTriple()).getArch() == llvm::Triple::x86_64 ||
+      llvm::Triple(getTargetMachine().getTargetTriple()).getArch() == llvm::Triple::mips64el)
+    transformPasses.add(createRSX86_64CallConvPass());  // Add pass to correct calling convention for X86-64 and mips64.
   transformPasses.add(createRSIsThreadablePass());      // Add pass to mark script as threadable.
 
   // RSEmbedInfoPass needs to come after we have scanned for non-threadable