1c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot//===- FastISel.h - Definition of the FastISel class ------------*- C++ -*-===// 2c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot// 3c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot// The LLVM Compiler Infrastructure 4c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot// 5c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot// This file is distributed under the University of Illinois Open Source 6c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot// License. See LICENSE.TXT for details. 7c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot// 8c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot//===----------------------------------------------------------------------===// 9c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot/// 10c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot/// \file 11c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot/// This file defines the FastISel class. 12c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot/// 13c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot//===----------------------------------------------------------------------===// 14c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 15c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#ifndef LLVM_CODEGEN_FASTISEL_H 16c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#define LLVM_CODEGEN_FASTISEL_H 17c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 18c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#include "llvm/ADT/DenseMap.h" 19c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#include "llvm/ADT/SmallVector.h" 20c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#include "llvm/ADT/StringRef.h" 21c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#include "llvm/CodeGen/MachineBasicBlock.h" 22c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#include "llvm/CodeGen/MachineValueType.h" 23c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#include "llvm/IR/Attributes.h" 24c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#include "llvm/IR/CallSite.h" 25c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#include "llvm/IR/CallingConv.h" 26c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#include "llvm/IR/DebugLoc.h" 27c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#include "llvm/IR/DerivedTypes.h" 28c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#include "llvm/IR/InstrTypes.h" 29c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#include "llvm/IR/IntrinsicInst.h" 30c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#include "llvm/Target/TargetLowering.h" 31c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#include <algorithm> 32c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#include <cstdint> 33c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#include <utility> 34c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 35c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotnamespace llvm { 36c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 37c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass AllocaInst; 38c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass BasicBlock; 39c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass CallInst; 40c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass Constant; 41c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass ConstantFP; 42c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass DataLayout; 43c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass FunctionLoweringInfo; 44c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass LoadInst; 45c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass MachineConstantPool; 46c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass MachineFrameInfo; 47c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass MachineFunction; 48c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass MachineInstr; 49c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass MachineMemOperand; 50c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass MachineOperand; 51c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass MachineRegisterInfo; 52c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass MCContext; 53c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass MCInstrDesc; 54c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass MCSymbol; 55c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass TargetInstrInfo; 56c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass TargetLibraryInfo; 57c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass TargetMachine; 58c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass TargetRegisterClass; 59c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass TargetRegisterInfo; 60c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass Type; 61c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass User; 62c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass Value; 63c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 64c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot/// \brief This is a fast-path instruction selection class that generates poor 65c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot/// code and doesn't support illegal types or non-trivial lowering, but runs 66c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot/// quickly. 67c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotclass FastISel { 68c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotpublic: 69c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot using ArgListEntry = TargetLoweringBase::ArgListEntry; 70c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot using ArgListTy = TargetLoweringBase::ArgListTy; 71c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot struct CallLoweringInfo { 72c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot Type *RetTy = nullptr; 73c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool RetSExt : 1; 74c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool RetZExt : 1; 75c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool IsVarArg : 1; 76c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool IsInReg : 1; 77c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool DoesNotReturn : 1; 78c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool IsReturnValueUsed : 1; 79c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool IsPatchPoint : 1; 80c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 81c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot // \brief IsTailCall Should be modified by implementations of FastLowerCall 82c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot // that perform tail call conversions. 83c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool IsTailCall = false; 84c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 85c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned NumFixedArgs = -1; 86c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot CallingConv::ID CallConv = CallingConv::C; 87c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const Value *Callee = nullptr; 88c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot MCSymbol *Symbol = nullptr; 89c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot ArgListTy Args; 90c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot ImmutableCallSite *CS = nullptr; 91c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot MachineInstr *Call = nullptr; 92c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned ResultReg = 0; 93c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned NumResultRegs = 0; 94c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 95c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot SmallVector<Value *, 16> OutVals; 96c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot SmallVector<ISD::ArgFlagsTy, 16> OutFlags; 97c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot SmallVector<unsigned, 16> OutRegs; 98c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot SmallVector<ISD::InputArg, 4> Ins; 99c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot SmallVector<unsigned, 4> InRegs; 100c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 101c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot CallLoweringInfo() 102c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot : RetSExt(false), RetZExt(false), IsVarArg(false), IsInReg(false), 103c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot DoesNotReturn(false), IsReturnValueUsed(true), IsPatchPoint(false) {} 104c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 105c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot CallLoweringInfo &setCallee(Type *ResultTy, FunctionType *FuncTy, 106c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const Value *Target, ArgListTy &&ArgsList, 107c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot ImmutableCallSite &Call) { 108c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot RetTy = ResultTy; 109c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot Callee = Target; 110c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 111c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot IsInReg = Call.hasRetAttr(Attribute::InReg); 112c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot DoesNotReturn = Call.doesNotReturn(); 113c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot IsVarArg = FuncTy->isVarArg(); 114c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot IsReturnValueUsed = !Call.getInstruction()->use_empty(); 115c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot RetSExt = Call.hasRetAttr(Attribute::SExt); 116c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot RetZExt = Call.hasRetAttr(Attribute::ZExt); 117c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 118c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot CallConv = Call.getCallingConv(); 119c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot Args = std::move(ArgsList); 120c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot NumFixedArgs = FuncTy->getNumParams(); 121c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 122c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot CS = &Call; 123c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 124c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot return *this; 125c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot } 126c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 127c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot CallLoweringInfo &setCallee(Type *ResultTy, FunctionType *FuncTy, 128c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot MCSymbol *Target, ArgListTy &&ArgsList, 129c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot ImmutableCallSite &Call, 130c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned FixedArgs = ~0U) { 131c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot RetTy = ResultTy; 132c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot Callee = Call.getCalledValue(); 133c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot Symbol = Target; 134c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 135c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot IsInReg = Call.hasRetAttr(Attribute::InReg); 136c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot DoesNotReturn = Call.doesNotReturn(); 137c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot IsVarArg = FuncTy->isVarArg(); 138c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot IsReturnValueUsed = !Call.getInstruction()->use_empty(); 139c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot RetSExt = Call.hasRetAttr(Attribute::SExt); 140c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot RetZExt = Call.hasRetAttr(Attribute::ZExt); 141c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 142c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot CallConv = Call.getCallingConv(); 143c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot Args = std::move(ArgsList); 144c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot NumFixedArgs = (FixedArgs == ~0U) ? FuncTy->getNumParams() : FixedArgs; 145c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 146c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot CS = &Call; 147c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 148c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot return *this; 149c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot } 150c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 151c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot CallLoweringInfo &setCallee(CallingConv::ID CC, Type *ResultTy, 152c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const Value *Target, ArgListTy &&ArgsList, 153c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned FixedArgs = ~0U) { 154c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot RetTy = ResultTy; 155c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot Callee = Target; 156c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot CallConv = CC; 157c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot Args = std::move(ArgsList); 158c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot NumFixedArgs = (FixedArgs == ~0U) ? Args.size() : FixedArgs; 159c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot return *this; 160c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot } 161c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 162c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot CallLoweringInfo &setCallee(const DataLayout &DL, MCContext &Ctx, 163c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot CallingConv::ID CC, Type *ResultTy, 164c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot StringRef Target, ArgListTy &&ArgsList, 165c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned FixedArgs = ~0U); 166c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 167c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot CallLoweringInfo &setCallee(CallingConv::ID CC, Type *ResultTy, 168c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot MCSymbol *Target, ArgListTy &&ArgsList, 169c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned FixedArgs = ~0U) { 170c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot RetTy = ResultTy; 171c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot Symbol = Target; 172c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot CallConv = CC; 173c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot Args = std::move(ArgsList); 174c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot NumFixedArgs = (FixedArgs == ~0U) ? Args.size() : FixedArgs; 175c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot return *this; 176c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot } 177c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 178c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot CallLoweringInfo &setTailCall(bool Value = true) { 179c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot IsTailCall = Value; 180c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot return *this; 181c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot } 182c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 183c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot CallLoweringInfo &setIsPatchPoint(bool Value = true) { 184c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot IsPatchPoint = Value; 185c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot return *this; 186c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot } 187c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 188c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot ArgListTy &getArgs() { return Args; } 189c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 190c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot void clearOuts() { 191c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot OutVals.clear(); 192c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot OutFlags.clear(); 193c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot OutRegs.clear(); 194c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot } 195c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 196c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot void clearIns() { 197c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot Ins.clear(); 198c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot InRegs.clear(); 199c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot } 200c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot }; 201c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 202c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotprotected: 203c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot DenseMap<const Value *, unsigned> LocalValueMap; 204c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot FunctionLoweringInfo &FuncInfo; 205c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot MachineFunction *MF; 206c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot MachineRegisterInfo &MRI; 207c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot MachineFrameInfo &MFI; 208c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot MachineConstantPool &MCP; 209c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot DebugLoc DbgLoc; 210c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const TargetMachine &TM; 211c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const DataLayout &DL; 212c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const TargetInstrInfo &TII; 213c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const TargetLowering &TLI; 214c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const TargetRegisterInfo &TRI; 215c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const TargetLibraryInfo *LibInfo; 216c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool SkipTargetIndependentISel; 217c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 218c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief The position of the last instruction for materializing constants 219c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// for use in the current block. It resets to EmitStartPt when it makes sense 220c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// (for example, it's usually profitable to avoid function calls between the 221c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// definition and the use) 222c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot MachineInstr *LastLocalValue; 223c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 224c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief The top most instruction in the current block that is allowed for 225c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// emitting local variables. LastLocalValue resets to EmitStartPt when it 226c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// makes sense (for example, on function calls) 227c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot MachineInstr *EmitStartPt; 228c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 229c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotpublic: 230c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot virtual ~FastISel(); 231c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 232c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Return the position of the last instruction emitted for 233c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// materializing constants for use in the current block. 234c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot MachineInstr *getLastLocalValue() { return LastLocalValue; } 235c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 236c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Update the position of the last instruction emitted for 237c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// materializing constants for use in the current block. 238c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot void setLastLocalValue(MachineInstr *I) { 239c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot EmitStartPt = I; 240c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot LastLocalValue = I; 241c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot } 242c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 243c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Set the current block to which generated machine instructions will 244c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// be appended, and clear the local CSE map. 245c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot void startNewBlock(); 246c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 247c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Return current debug location information. 248c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot DebugLoc getCurDebugLoc() const { return DbgLoc; } 249c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 250c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Do "fast" instruction selection for function arguments and append 251c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// the machine instructions to the current block. Returns true when 252c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// successful. 253c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool lowerArguments(); 254c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 255c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Do "fast" instruction selection for the given LLVM IR instruction 256c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// and append the generated machine instructions to the current block. 257c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// Returns true if selection was successful. 258c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool selectInstruction(const Instruction *I); 259c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 260c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Do "fast" instruction selection for the given LLVM IR operator 261c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// (Instruction or ConstantExpr), and append generated machine instructions 262c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// to the current block. Return true if selection was successful. 263c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool selectOperator(const User *I, unsigned Opcode); 264c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 265c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Create a virtual register and arrange for it to be assigned the 266c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// value for the given LLVM value. 267c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned getRegForValue(const Value *V); 268c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 269c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Look up the value to see if its value is already cached in a 270c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// register. It may be defined by instructions across blocks or defined 271c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// locally. 272c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned lookUpRegForValue(const Value *V); 273c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 274c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief This is a wrapper around getRegForValue that also takes care of 275c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// truncating or sign-extending the given getelementptr index value. 276c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot std::pair<unsigned, bool> getRegForGEPIndex(const Value *V); 277c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 278c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief We're checking to see if we can fold \p LI into \p FoldInst. Note 279c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// that we could have a sequence where multiple LLVM IR instructions are 280c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// folded into the same machineinstr. For example we could have: 281c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// 282c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// A: x = load i32 *P 283c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// B: y = icmp A, 42 284c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// C: br y, ... 285c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// 286c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// In this scenario, \p LI is "A", and \p FoldInst is "C". We know about "B" 287c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// (and any other folded instructions) because it is between A and C. 288c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// 289c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// If we succeed folding, return true. 290c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool tryToFoldLoad(const LoadInst *LI, const Instruction *FoldInst); 291c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 292c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief The specified machine instr operand is a vreg, and that vreg is 293c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// being provided by the specified load instruction. If possible, try to 294c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// fold the load as an operand to the instruction, returning true if 295c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// possible. 296c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// 297c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// This method should be implemented by targets. 298c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot virtual bool tryToFoldLoadIntoMI(MachineInstr * /*MI*/, unsigned /*OpNo*/, 299c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const LoadInst * /*LI*/) { 300c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot return false; 301c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot } 302c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 303c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Reset InsertPt to prepare for inserting instructions into the 304c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// current block. 305c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot void recomputeInsertPt(); 306c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 307c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Remove all dead instructions between the I and E. 308c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot void removeDeadCode(MachineBasicBlock::iterator I, 309c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot MachineBasicBlock::iterator E); 310c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 311c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot struct SavePoint { 312c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot MachineBasicBlock::iterator InsertPt; 313c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot DebugLoc DL; 314c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot }; 315c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 316c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Prepare InsertPt to begin inserting instructions into the local 317c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// value area and return the old insert position. 318c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot SavePoint enterLocalValueArea(); 319c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 320c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Reset InsertPt to the given old insert position. 321c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot void leaveLocalValueArea(SavePoint Old); 322c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 323c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotprotected: 324c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot explicit FastISel(FunctionLoweringInfo &FuncInfo, 325c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const TargetLibraryInfo *LibInfo, 326c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool SkipTargetIndependentISel = false); 327c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 328c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief This method is called by target-independent code when the normal 329c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// FastISel process fails to select an instruction. This gives targets a 330c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// chance to emit code for anything that doesn't fit into FastISel's 331c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// framework. It returns true if it was successful. 332c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot virtual bool fastSelectInstruction(const Instruction *I) = 0; 333c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 334c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief This method is called by target-independent code to do target- 335c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// specific argument lowering. It returns true if it was successful. 336c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot virtual bool fastLowerArguments(); 337c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 338c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief This method is called by target-independent code to do target- 339c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// specific call lowering. It returns true if it was successful. 340c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot virtual bool fastLowerCall(CallLoweringInfo &CLI); 341c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 342c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief This method is called by target-independent code to do target- 343c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// specific intrinsic lowering. It returns true if it was successful. 344c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot virtual bool fastLowerIntrinsicCall(const IntrinsicInst *II); 345c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 346c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief This method is called by target-independent code to request that an 347c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// instruction with the given type and opcode be emitted. 348c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot virtual unsigned fastEmit_(MVT VT, MVT RetVT, unsigned Opcode); 349c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 350c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief This method is called by target-independent code to request that an 351c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// instruction with the given type, opcode, and register operand be emitted. 352c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot virtual unsigned fastEmit_r(MVT VT, MVT RetVT, unsigned Opcode, unsigned Op0, 353c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool Op0IsKill); 354c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 355c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief This method is called by target-independent code to request that an 356c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// instruction with the given type, opcode, and register operands be emitted. 357c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot virtual unsigned fastEmit_rr(MVT VT, MVT RetVT, unsigned Opcode, unsigned Op0, 358c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool Op0IsKill, unsigned Op1, bool Op1IsKill); 359c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 360c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief This method is called by target-independent code to request that an 361c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// instruction with the given type, opcode, and register and immediate 362c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// operands be emitted. 363c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot virtual unsigned fastEmit_ri(MVT VT, MVT RetVT, unsigned Opcode, unsigned Op0, 364c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool Op0IsKill, uint64_t Imm); 365c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 366c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief This method is a wrapper of fastEmit_ri. 367c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// 368c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// It first tries to emit an instruction with an immediate operand using 369c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// fastEmit_ri. If that fails, it materializes the immediate into a register 370c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// and try fastEmit_rr instead. 371c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned fastEmit_ri_(MVT VT, unsigned Opcode, unsigned Op0, bool Op0IsKill, 372c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot uint64_t Imm, MVT ImmType); 373c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 374c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief This method is called by target-independent code to request that an 375c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// instruction with the given type, opcode, and immediate operand be emitted. 376c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot virtual unsigned fastEmit_i(MVT VT, MVT RetVT, unsigned Opcode, uint64_t Imm); 377c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 378c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief This method is called by target-independent code to request that an 379c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// instruction with the given type, opcode, and floating-point immediate 380c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// operand be emitted. 381c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot virtual unsigned fastEmit_f(MVT VT, MVT RetVT, unsigned Opcode, 382c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const ConstantFP *FPImm); 383c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 384c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Emit a MachineInstr with no operands and a result register in the 385c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// given register class. 386c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned fastEmitInst_(unsigned MachineInstOpcode, 387c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const TargetRegisterClass *RC); 388c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 389c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Emit a MachineInstr with one register operand and a result register 390c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// in the given register class. 391c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned fastEmitInst_r(unsigned MachineInstOpcode, 392c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const TargetRegisterClass *RC, unsigned Op0, 393c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool Op0IsKill); 394c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 395c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Emit a MachineInstr with two register operands and a result 396c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// register in the given register class. 397c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned fastEmitInst_rr(unsigned MachineInstOpcode, 398c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const TargetRegisterClass *RC, unsigned Op0, 399c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool Op0IsKill, unsigned Op1, bool Op1IsKill); 400c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 401c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Emit a MachineInstr with three register operands and a result 402c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// register in the given register class. 403c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned fastEmitInst_rrr(unsigned MachineInstOpcode, 404c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const TargetRegisterClass *RC, unsigned Op0, 405c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool Op0IsKill, unsigned Op1, bool Op1IsKill, 406c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned Op2, bool Op2IsKill); 407c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 408c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Emit a MachineInstr with a register operand, an immediate, and a 409c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// result register in the given register class. 410c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned fastEmitInst_ri(unsigned MachineInstOpcode, 411c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const TargetRegisterClass *RC, unsigned Op0, 412c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool Op0IsKill, uint64_t Imm); 413c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 414c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Emit a MachineInstr with one register operand and two immediate 415c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// operands. 416c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned fastEmitInst_rii(unsigned MachineInstOpcode, 417c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const TargetRegisterClass *RC, unsigned Op0, 418c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool Op0IsKill, uint64_t Imm1, uint64_t Imm2); 419c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 420c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Emit a MachineInstr with a floating point immediate, and a result 421c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// register in the given register class. 422c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned fastEmitInst_f(unsigned MachineInstOpcode, 423c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const TargetRegisterClass *RC, 424c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const ConstantFP *FPImm); 425c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 426c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Emit a MachineInstr with two register operands, an immediate, and a 427c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// result register in the given register class. 428c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned fastEmitInst_rri(unsigned MachineInstOpcode, 429c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const TargetRegisterClass *RC, unsigned Op0, 430c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool Op0IsKill, unsigned Op1, bool Op1IsKill, 431c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot uint64_t Imm); 432c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 433c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Emit a MachineInstr with a single immediate operand, and a result 434c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// register in the given register class. 435c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned fastEmitInst_i(unsigned MachineInstrOpcode, 436c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const TargetRegisterClass *RC, uint64_t Imm); 437c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 438c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Emit a MachineInstr for an extract_subreg from a specified index of 439c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// a superregister to a specified type. 440c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned fastEmitInst_extractsubreg(MVT RetVT, unsigned Op0, bool Op0IsKill, 441c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot uint32_t Idx); 442c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 443c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Emit MachineInstrs to compute the value of Op with all but the 444c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// least significant bit set to zero. 445c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned fastEmitZExtFromI1(MVT VT, unsigned Op0, bool Op0IsKill); 446c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 447c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Emit an unconditional branch to the given block, unless it is the 448c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// immediate (fall-through) successor, and update the CFG. 449c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot void fastEmitBranch(MachineBasicBlock *MBB, const DebugLoc &DL); 450c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 451c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// Emit an unconditional branch to \p FalseMBB, obtains the branch weight 452c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// and adds TrueMBB and FalseMBB to the successor list. 453c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot void finishCondBranch(const BasicBlock *BranchBB, MachineBasicBlock *TrueMBB, 454c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot MachineBasicBlock *FalseMBB); 455c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 456c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Update the value map to include the new mapping for this 457c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// instruction, or insert an extra copy to get the result in a previous 458c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// determined register. 459c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// 460c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// NOTE: This is only necessary because we might select a block that uses a 461c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// value before we select the block that defines the value. It might be 462c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// possible to fix this by selecting blocks in reverse postorder. 463c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot void updateValueMap(const Value *I, unsigned Reg, unsigned NumRegs = 1); 464c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 465c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned createResultReg(const TargetRegisterClass *RC); 466c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 467c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Try to constrain Op so that it is usable by argument OpNum of the 468c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// provided MCInstrDesc. If this fails, create a new virtual register in the 469c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// correct class and COPY the value there. 470c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned constrainOperandRegClass(const MCInstrDesc &II, unsigned Op, 471c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned OpNum); 472c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 473c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Emit a constant in a register using target-specific logic, such as 474c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// constant pool loads. 475c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot virtual unsigned fastMaterializeConstant(const Constant *C) { return 0; } 476c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 477c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Emit an alloca address in a register using target-specific logic. 478c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot virtual unsigned fastMaterializeAlloca(const AllocaInst *C) { return 0; } 479c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 480c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Emit the floating-point constant +0.0 in a register using target- 481c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// specific logic. 482c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot virtual unsigned fastMaterializeFloatZero(const ConstantFP *CF) { 483c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot return 0; 484c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot } 485c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 486c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Check if \c Add is an add that can be safely folded into \c GEP. 487c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// 488c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \c Add can be folded into \c GEP if: 489c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// - \c Add is an add, 490c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// - \c Add's size matches \c GEP's, 491c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// - \c Add is in the same basic block as \c GEP, and 492c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// - \c Add has a constant operand. 493c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool canFoldAddIntoGEP(const User *GEP, const Value *Add); 494c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 495c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Test whether the given value has exactly one use. 496c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool hasTrivialKill(const Value *V); 497c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 498c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Create a machine mem operand from the given instruction. 499c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot MachineMemOperand *createMachineMemOperandFor(const Instruction *I) const; 500c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 501c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot CmpInst::Predicate optimizeCmpPredicate(const CmpInst *CI) const; 502c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 503c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool lowerCallTo(const CallInst *CI, MCSymbol *Symbol, unsigned NumArgs); 504c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool lowerCallTo(const CallInst *CI, const char *SymbolName, 505c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned NumArgs); 506c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool lowerCallTo(CallLoweringInfo &CLI); 507c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 508c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool isCommutativeIntrinsic(IntrinsicInst const *II) { 509c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot switch (II->getIntrinsicID()) { 510c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot case Intrinsic::sadd_with_overflow: 511c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot case Intrinsic::uadd_with_overflow: 512c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot case Intrinsic::smul_with_overflow: 513c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot case Intrinsic::umul_with_overflow: 514c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot return true; 515c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot default: 516c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot return false; 517c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot } 518c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot } 519c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 520c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool lowerCall(const CallInst *I); 521c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Select and emit code for a binary operator instruction, which has 522c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// an opcode which directly corresponds to the given ISD opcode. 523c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool selectBinaryOp(const User *I, unsigned ISDOpcode); 524c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool selectFNeg(const User *I); 525c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool selectGetElementPtr(const User *I); 526c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool selectStackmap(const CallInst *I); 527c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool selectPatchpoint(const CallInst *I); 528c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool selectCall(const User *Call); 529c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool selectIntrinsicCall(const IntrinsicInst *II); 530c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool selectBitCast(const User *I); 531c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool selectCast(const User *I, unsigned Opcode); 532c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool selectExtractValue(const User *I); 533c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool selectInsertValue(const User *I); 534c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool selectXRayCustomEvent(const CallInst *II); 535c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 536c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotprivate: 537c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Handle PHI nodes in successor blocks. 538c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// 539c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// Emit code to ensure constants are copied into registers when needed. 540c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// Remember the virtual registers that need to be added to the Machine PHI 541c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// nodes as input. We cannot just directly add them, because expansion might 542c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// result in multiple MBB's for one BB. As such, the start of the BB might 543c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// correspond to a different MBB than the end. 544c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool handlePHINodesInSuccessorBlocks(const BasicBlock *LLVMBB); 545c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 546c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Helper for materializeRegForValue to materialize a constant in a 547c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// target-independent way. 548c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned materializeConstant(const Value *V, MVT VT); 549c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 550c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Helper for getRegForVale. This function is called when the value 551c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// isn't already available in a register and must be materialized with new 552c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// instructions. 553c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot unsigned materializeRegForValue(const Value *V, MVT VT); 554c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 555c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Clears LocalValueMap and moves the area for the new local variables 556c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// to the beginning of the block. It helps to avoid spilling cached variables 557c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// across heavy instructions like calls. 558c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot void flushLocalValueMap(); 559c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 560c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Removes dead local value instructions after SavedLastLocalvalue. 561c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot void removeDeadLocalValueCode(MachineInstr *SavedLastLocalValue); 562c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 563c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Insertion point before trying to select the current instruction. 564c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot MachineBasicBlock::iterator SavedInsertPt; 565c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 566c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// \brief Add a stackmap or patchpoint intrinsic call's live variable 567c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot /// operands to a stackmap or patchpoint machine instruction. 568c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool addStackMapLiveVars(SmallVectorImpl<MachineOperand> &Ops, 569c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const CallInst *CI, unsigned StartIdx); 570c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot bool lowerCallOperands(const CallInst *CI, unsigned ArgIdx, unsigned NumArgs, 571c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot const Value *Callee, bool ForceRetVoidTy, 572c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot CallLoweringInfo &CLI); 573c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot}; 574c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 575c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot} // end namespace llvm 576c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot 577c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#endif // LLVM_CODEGEN_FASTISEL_H 578