@@ -208,7 +208,6 @@ BPFTargetLowering::BPFTargetLowering(const TargetMachine &TM,
208208 HasMovsx = STI.hasMovsx ();
209209
210210 AllowsMisalignedMemAccess = STI.getAllowsMisalignedMemAccess ();
211- AllowBuiltinCalls = STI.getAllowBuiltinCalls ();
212211}
213212
214213bool BPFTargetLowering::allowsMisalignedMemoryAccesses (EVT VT, unsigned , Align,
@@ -568,10 +567,9 @@ SDValue BPFTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
568567 } else if (ExternalSymbolSDNode *E = dyn_cast<ExternalSymbolSDNode>(Callee)) {
569568 if (StringRef (E->getSymbol ()) != BPF_TRAP) {
570569 Callee = DAG.getTargetExternalSymbol (E->getSymbol (), PtrVT, 0 );
571- if (!AllowBuiltinCalls)
572- fail (CLI.DL , DAG,
573- Twine (" A call to built-in function '" + StringRef (E->getSymbol ()) +
574- " ' is not supported." ));
570+ fail (CLI.DL , DAG,
571+ Twine (" A call to built-in function '" + StringRef (E->getSymbol ()) +
572+ " ' is not supported." ));
575573 }
576574 }
577575
@@ -1198,18 +1196,3 @@ bool BPFTargetLowering::isLegalAddressingMode(const DataLayout &DL,
11981196
11991197 return true ;
12001198}
1201-
1202- bool BPFTargetLowering::shouldSignExtendTypeInLibCall (Type *Ty,
1203- bool IsSigned) const {
1204- return IsSigned || Ty->isIntegerTy (32 );
1205- }
1206-
1207- bool BPFTargetLowering::CanLowerReturn (
1208- CallingConv::ID CallConv, MachineFunction &MF, bool IsVarArg,
1209- const SmallVectorImpl<ISD::OutputArg> &Outs, LLVMContext &Context,
1210- const Type *RetTy) const {
1211- // At minimal return Outs.size() <= 1, or check valid types in CC.
1212- SmallVector<CCValAssign, 16 > RVLocs;
1213- CCState CCInfo (CallConv, IsVarArg, MF, RVLocs, Context);
1214- return CCInfo.CheckReturn (Outs, getHasAlu32 () ? RetCC_BPF32 : RetCC_BPF64);
1215- }
0 commit comments