Lines Matching defs:TLI

76     /// TLI - Keep a pointer of a TargetLowering to consult for determining
79 const TargetLowering *TLI;
103 : FunctionPass(ID), TM(TM), TLI(0) {
148 if (TM) TLI = TM->getTargetLowering();
156 if (!OptSize && TLI && TLI->isSlowDivBypassed()) {
158 TLI->getBypassSlowDivWidths();
454 static bool OptimizeNoopCopyExpression(CastInst *CI, const TargetLowering &TLI){
456 EVT SrcVT = TLI.getValueType(CI->getOperand(0)->getType());
457 EVT DstVT = TLI.getValueType(CI->getType());
470 if (TLI.getTypeAction(CI->getContext(), SrcVT) ==
472 SrcVT = TLI.getTypeToTransformTo(CI->getContext(), SrcVT);
473 if (TLI.getTypeAction(CI->getContext(), DstVT) ==
475 DstVT = TLI.getTypeToTransformTo(CI->getContext(), DstVT);
607 if (TLI && isa<InlineAsm>(CI->getCalledValue())) {
608 if (TLI->ExpandInlineAsm(CI)) {
633 replaceAndRecursivelySimplify(CI, RetVal, TLI ? TLI->getDataLayout() : 0,
645 if (II && TLI) {
648 if (TLI->GetAddrModeArguments(II, PtrOps, AccessTy))
658 const DataLayout *TD = TLI ? TLI->getDataLayout() : 0;
701 if (!TLI)
757 TLI->mayBeEmittedAsTailCall(CI))
774 if (CI && CI->use_empty() && TLI->mayBeEmittedAsTailCall(CI))
883 const TargetLowering &TLI;
902 : AddrModeInsts(AMI), TLI(T), AccessTy(AT), MemoryInst(MI), AddrMode(AM) {
913 const TargetLowering &TLI) {
917 AddressingModeMatcher(AddrModeInsts, TLI, AccessTy,
959 if (!TLI.isLegalAddressingMode(TestAddrMode, AccessTy))
976 if (TLI.isLegalAddressingMode(TestAddrMode, AccessTy)) {
1031 if (TLI.getValueType(AddrInst->getOperand(0)->getType()) ==
1032 TLI.getPointerTy(AddrInst->getType()->getPointerAddressSpace()))
1089 const DataLayout *TD = TLI.getDataLayout();
1117 if (ConstantOffset == 0 || TLI.isLegalAddressingMode(AddrMode, AccessTy)){
1181 if (TLI.isLegalAddressingMode(AddrMode, AccessTy))
1188 if (TLI.isLegalAddressingMode(AddrMode, AccessTy))
1225 if (TLI.isLegalAddressingMode(AddrMode, AccessTy))
1235 if (TLI.isLegalAddressingMode(AddrMode, AccessTy))
1248 const TargetLowering &TLI) {
1249 TargetLowering::AsmOperandInfoVector TargetConstraints = TLI.ParseConstraints(ImmutableCallSite(CI));
1254 TLI.ComputeConstraintToUse(OpInfo, SDValue());
1273 const TargetLowering &TLI) {
1304 if (!IsOperandAMemoryOperand(CI, IA, I, TLI))
1310 TLI))
1398 if (FindAllMemoryUses(I, MemoryUses, ConsideredInsts, TLI))
1421 AddressingModeMatcher Matcher(MatchedAddrModeInsts, TLI, AddressAccessTy,
1496 NewAddrModeInsts, *TLI);
1569 Type *IntPtrTy = TLI->getDataLayout()->getIntPtrType(Addr->getType());
1662 TargetConstraints = TLI->ParseConstraints(CS);
1668 TLI->ComputeConstraintToUse(OpInfo, SDValue());
1697 TLI && (TLI->isTypeLegal(TLI->getValueType(LI->getType())) ||
1698 !TLI->isTypeLegal(TLI->getValueType(I->getType()))) &&
1699 !TLI->isTruncateFree(I->getType(), LI->getType()))
1710 if (TLI && !TLI->isLoadExtLegal(LType, TLI->getValueType(LI->getType())))
1731 if (TLI && !TLI->isTruncateFree(I->getType(), Src->getType()))
1830 if (DisableSelectToBranch || OptSize || !TLI || VectorCond)
1842 if (TLI->isSelectSupported(SelectKind)) {
1845 if (!TLI->isPredictableSelectExpensive() ||
1888 if (Value *V = SimplifyInstruction(P, TLI ? TLI->getDataLayout() : 0,
1908 if (TLI && OptimizeNoopCopyExpression(CI, *TLI))
1922 if (TLI)
1928 if (TLI)