[PATCH] D11755: [mips][FastISel] Disable code generation for unsupported targets through FastISel.

Vasileios Kalintiris Vasileios.Kalintiris at imgtec.com
Tue Aug 4 07:36:29 PDT 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL243986: [mips][FastISel] Disable code generation for unsupported targets through… (authored by vkalintiris).

Changed prior to commit:
  http://reviews.llvm.org/D11755?vs=31325&id=31330#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D11755

Files:
  llvm/trunk/lib/Target/Mips/MipsFastISel.cpp

Index: llvm/trunk/lib/Target/Mips/MipsFastISel.cpp
===================================================================
--- llvm/trunk/lib/Target/Mips/MipsFastISel.cpp
+++ llvm/trunk/lib/Target/Mips/MipsFastISel.cpp
@@ -267,6 +267,9 @@
 }
 
 unsigned MipsFastISel::fastMaterializeAlloca(const AllocaInst *AI) {
+  if (!TargetSupported)
+    return 0;
+
   assert(TLI.getValueType(DL, AI->getType(), true) == MVT::i32 &&
          "Alloca should always return a pointer.");
 
@@ -377,6 +380,9 @@
 // Materialize a constant into a register, and return the register
 // number (or zero if we failed to handle it).
 unsigned MipsFastISel::fastMaterializeConstant(const Constant *C) {
+  if (!TargetSupported)
+    return 0;
+
   EVT CEVT = TLI.getValueType(DL, C->getType(), true);
 
   // Only handle simple types.
@@ -1234,6 +1240,9 @@
 }
 
 bool MipsFastISel::fastLowerCall(CallLoweringInfo &CLI) {
+  if (!TargetSupported)
+    return false;
+
   CallingConv::ID CC = CLI.CallConv;
   bool IsTailCall = CLI.IsTailCall;
   bool IsVarArg = CLI.IsVarArg;
@@ -1318,6 +1327,9 @@
 }
 
 bool MipsFastISel::fastLowerIntrinsicCall(const IntrinsicInst *II) {
+  if (!TargetSupported)
+    return false;
+
   switch (II->getIntrinsicID()) {
   default:
     return false;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11755.31330.patch
Type: text/x-patch
Size: 1260 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150804/950733bd/attachment.bin>


More information about the llvm-commits mailing list