Home
last modified time | relevance | path

Searched refs:Res (Results 1 – 25 of 540) sorted by relevance

12345678910>>...22

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFunctionComparator.cpp78 if (int Res = cmpNumbers(L.getBitWidth(), R.getBitWidth())) in cmpAPInts() local
79 return Res; in cmpAPInts()
91 if (int Res = cmpNumbers(APFloat::semanticsPrecision(SL), in cmpAPFloats() local
93 return Res; in cmpAPFloats()
94 if (int Res = cmpNumbers(APFloat::semanticsMaxExponent(SL), in cmpAPFloats() local
96 return Res; in cmpAPFloats()
97 if (int Res = cmpNumbers(APFloat::semanticsMinExponent(SL), in cmpAPFloats() local
99 return Res; in cmpAPFloats()
100 if (int Res = cmpNumbers(APFloat::semanticsSizeInBits(SL), in cmpAPFloats() local
102 return Res; in cmpAPFloats()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/MCTargetDesc/
H A DXtensaMCCodeEmitter.cpp152 uint32_t Res = static_cast<uint32_t>(MO.getImm()); in getMachineOpValue() local
153 return Res; in getMachineOpValue()
204 int32_t Res = MO.getImm(); in getCallEncoding() local
205 if (Res & 0x3) { in getCallEncoding()
208 Res >>= 2; in getCallEncoding()
209 return Res; in getCallEncoding()
225 int32_t Res = MO.getImm(); in getL32RTargetEncoding() local
228 Res >>= 2; in getL32RTargetEncoding()
229 return Res; in getL32RTargetEncoding()
245 uint32_t Res = static_cast<uint32_t>(MI.getOperand(OpNo + 1).getImm()); in getMemRegEncoding() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DMachineIRBuilder.cpp136 MachineInstrBuilder MachineIRBuilder::buildDynStackAlloc(const DstOp &Res, in buildDynStackAlloc() argument
139 assert(Res.getLLTTy(*getMRI()).isPointer() && "expected ptr dst type"); in buildDynStackAlloc()
141 Res.addDefToMIB(*getMRI(), MIB); in buildDynStackAlloc()
147 MachineInstrBuilder MachineIRBuilder::buildFrameIndex(const DstOp &Res, in buildFrameIndex() argument
149 assert(Res.getLLTTy(*getMRI()).isPointer() && "invalid operand type"); in buildFrameIndex()
151 Res.addDefToMIB(*getMRI(), MIB); in buildFrameIndex()
156 MachineInstrBuilder MachineIRBuilder::buildGlobalValue(const DstOp &Res, in buildGlobalValue() argument
158 assert(Res.getLLTTy(*getMRI()).isPointer() && "invalid operand type"); in buildGlobalValue()
159 assert(Res.getLLTTy(*getMRI()).getAddressSpace() == in buildGlobalValue()
164 Res.addDefToMIB(*getMRI(), MIB); in buildGlobalValue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVMatInt.cpp16 static int getInstSeqCost(RISCVMatInt::InstSeq &Res, bool HasRVC) { in getInstSeqCost() argument
18 return Res.size(); in getInstSeqCost()
21 for (auto Instr : Res) { in getInstSeqCost()
50 RISCVMatInt::InstSeq &Res) { in generateInstSeqImpl() argument
56 Res.emplace_back(RISCV::BSETI, Log2_64(Val)); in generateInstSeqImpl()
72 Res.emplace_back(RISCV::LUI, Hi20); in generateInstSeqImpl()
76 Res.emplace_back(AddiOpc, Lo12); in generateInstSeqImpl()
146 generateInstSeqImpl(Val, STI, Res); in generateInstSeqImpl()
151 Res.emplace_back(Opc, ShiftAmount); in generateInstSeqImpl()
155 Res.emplace_back(RISCV::ADDI, Lo12); in generateInstSeqImpl()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp639 Value *Res = Builder.CreateBitCast(Arg, VectorType::getInteger(ArgTy)); in simplifyX86movmsk() local
640 Res = Builder.CreateIsNeg(Res); in simplifyX86movmsk()
641 Res = Builder.CreateBitCast(Res, IntegerTy); in simplifyX86movmsk()
642 Res = Builder.CreateZExtOrTrunc(Res, ResTy); in simplifyX86movmsk()
643 return Res; in simplifyX86movmsk()
665 Value *Res = PoisonValue::get(RetTy); in simplifyX86addcarry() local
666 Res = Builder.CreateInsertValue(Res, UAddOV, 0); in simplifyX86addcarry()
667 return Builder.CreateInsertValue(Res, UAddResult, 1); in simplifyX86addcarry()
718 std::pair<Value *, uint8_t> Res = {nullptr, 0}; in simplifyTernarylogic() local
728 Res = {Constant::getNullValue(Ty), 0}; in simplifyTernarylogic()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DModuleSymbolTable.cpp153 uint32_t Res = BasicSymbolRef::SF_Executable; in CollectAsmSymbols() local
158 Res |= BasicSymbolRef::SF_Global; in CollectAsmSymbols()
164 Res |= BasicSymbolRef::SF_Undefined; in CollectAsmSymbols()
165 Res |= BasicSymbolRef::SF_Global; in CollectAsmSymbols()
168 Res |= BasicSymbolRef::SF_Weak; in CollectAsmSymbols()
169 Res |= BasicSymbolRef::SF_Global; in CollectAsmSymbols()
172 Res |= BasicSymbolRef::SF_Weak; in CollectAsmSymbols()
173 Res |= BasicSymbolRef::SF_Undefined; in CollectAsmSymbols()
175 AsmSymbol(Key, BasicSymbolRef::Flags(Res)); in CollectAsmSymbols()
222 uint32_t Res = BasicSymbolRef::SF_None; in getSymbolFlags() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DBitTracker.cpp413 RegisterCell Res(W); in eIMM() local
416 Res[i] = BitValue(V & 1); in eIMM()
419 return Res; in eIMM()
426 RegisterCell Res(BW); in eIMM() local
428 Res[i] = A[i]; in eIMM()
429 return Res; in eIMM()
436 RegisterCell Res(W); in eADD() local
445 Res[I] = BitValue(S & 1); in eADD()
454 Res[I] = BitValue::ref(V2); in eADD()
456 Res[I] = BitValue::ref(V1); in eADD()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86Operand.h669 auto Res = std::make_unique<X86Operand>(Token, Loc, EndLoc); in CreateToken() local
670 Res->Tok.Data = Str.data(); in CreateToken()
671 Res->Tok.Length = Str.size(); in CreateToken()
672 return Res; in CreateToken()
679 auto Res = std::make_unique<X86Operand>(Register, StartLoc, EndLoc); member
680 Res->Reg.RegNo = RegNo;
681 Res->AddressOf = AddressOf;
682 Res->OffsetOfLoc = OffsetOfLoc;
683 Res->SymName = SymName;
684 Res->OpDecl = OpDecl;
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DMachineIRBuilder.h233 void validateUnaryOp(const LLT Res, const LLT Op0);
234 void validateBinaryOp(const LLT Res, const LLT Op0, const LLT Op1);
235 void validateShiftOp(const LLT Res, const LLT Op0, const LLT Op1);
456 MachineInstrBuilder buildDynStackAlloc(const DstOp &Res, const SrcOp &Size,
468 MachineInstrBuilder buildFrameIndex(const DstOp &Res, int Idx);
480 MachineInstrBuilder buildGlobalValue(const DstOp &Res, const GlobalValue *GV);
491 MachineInstrBuilder buildConstantPool(const DstOp &Res, unsigned Idx);
505 MachineInstrBuilder buildPtrAdd(const DstOp &Res, const SrcOp &Op0,
525 std::optional<MachineInstrBuilder> materializePtrAdd(Register &Res,
531 MachineInstrBuilder buildPtrMask(const DstOp &Res, const SrcOp &Op0, in buildPtrMask() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsMCExpr.cpp132 bool MipsMCExpr::evaluateAsRelocatableImpl(MCValue &Res, const MCAssembler *Asm, in evaluateAsRelocatableImpl() argument
139 if (!SubExpr->evaluateAsRelocatable(Res, Asm, Fixup)) in evaluateAsRelocatableImpl()
142 Res = MCValue::get(Res.getSymA(), Res.getSymB(), Res.getConstant(), in evaluateAsRelocatableImpl()
147 if (!getSubExpr()->evaluateAsRelocatable(Res, Asm, Fixup)) in evaluateAsRelocatableImpl()
150 if (Res.getRefKind() != MCSymbolRefExpr::VK_None) in evaluateAsRelocatableImpl()
156 if (Res.isAbsolute() && Fixup == nullptr) { in evaluateAsRelocatableImpl()
157 int64_t AbsVal = Res.getConstant(); in evaluateAsRelocatableImpl()
165 return getSubExpr()->evaluateAsRelocatable(Res, Asm, Fixup); in evaluateAsRelocatableImpl()
202 Res = MCValue::get(AbsVal); in evaluateAsRelocatableImpl()
212 Res = in evaluateAsRelocatableImpl()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp241 Value *Res = PoisonValue::get(VS.VecTy); in concatenate() local
254 Res = Builder.CreateInsertElement(Res, Fragment, I * VS.NumPacked, in concatenate()
259 Res = Fragment; in concatenate()
263 Res = Builder.CreateShuffleVector(Res, Fragment, InsertMask, in concatenate()
271 return Res; in concatenate()
612 ValueVector Res; in splitUnary() local
613 Res.resize(VS->NumFragments); in splitUnary()
615 Res[Frag] = Split(Builder, Op[Frag], I.getName() + ".i" + Twine(Frag)); in splitUnary()
616 gather(&I, Res, *VS); in splitUnary()
642 ValueVector Res; in splitBinary() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/
H A DCSKYAsmBackend.cpp293 MCInst Res; in relaxInstruction() local
300 Res.setOpcode(CSKY::LRW32); in relaxInstruction()
301 Res.addOperand(Inst.getOperand(0)); in relaxInstruction()
302 Res.addOperand(Inst.getOperand(1)); in relaxInstruction()
305 Res.setOpcode(CSKY::BR32); in relaxInstruction()
306 Res.addOperand(Inst.getOperand(0)); in relaxInstruction()
309 Res.setOpcode(CSKY::JSRI32); in relaxInstruction()
310 Res.addOperand(Inst.getOperand(1)); in relaxInstruction()
313 Res.setOpcode(CSKY::JMPI32); in relaxInstruction()
314 Res.addOperand(Inst.getOperand(1)); in relaxInstruction()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DSerializedDiagnosticReader.cpp45 if (Expected<llvm::SimpleBitstreamCursor::word_t> Res = Stream.Read(8)) { in readDiagnostics() local
46 if (Res.get() == C) in readDiagnostics()
50 consumeError(Res.takeError()); in readDiagnostics()
57 if (Expected<unsigned> Res = Stream.ReadCode()) { in readDiagnostics() local
58 if (Res.get() != llvm::bitc::ENTER_SUBBLOCK) in readDiagnostics()
62 consumeError(Res.takeError()); in readDiagnostics()
122 if (Expected<unsigned> Res = Stream.ReadCode()) in skipUntilRecordOrBlock() local
123 Code = Res.get(); in skipUntilRecordOrBlock()
125 return llvm::errorToErrorCode(Res.takeError()); in skipUntilRecordOrBlock()
134 if (Expected<unsigned> Res = Stream.ReadSubBlockID()) in skipUntilRecordOrBlock() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCExpr.cpp546 bool MCExpr::evaluateAsAbsolute(int64_t &Res) const { in evaluateAsAbsolute()
547 return evaluateAsAbsolute(Res, nullptr, nullptr, false); in evaluateAsAbsolute()
550 bool MCExpr::evaluateAsAbsolute(int64_t &Res, const MCAssembler &Asm, in evaluateAsAbsolute() argument
554 return evaluateAsAbsolute(Res, &Asm, &Addrs, true); in evaluateAsAbsolute()
557 bool MCExpr::evaluateAsAbsolute(int64_t &Res, const MCAssembler &Asm) const { in evaluateAsAbsolute() argument
558 return evaluateAsAbsolute(Res, &Asm, nullptr, false); in evaluateAsAbsolute()
561 bool MCExpr::evaluateAsAbsolute(int64_t &Res, const MCAssembler *Asm) const { in evaluateAsAbsolute() argument
562 return evaluateAsAbsolute(Res, Asm, nullptr, false); in evaluateAsAbsolute()
565 bool MCExpr::evaluateKnownAbsolute(int64_t &Res, const MCAssembler &Asm) const { in evaluateKnownAbsolute() argument
566 return evaluateAsAbsolute(Res, &Asm, nullptr, true); in evaluateKnownAbsolute()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64MCExpr.cpp103 bool AArch64MCExpr::evaluateAsRelocatableImpl(MCValue &Res, in evaluateAsRelocatableImpl() argument
106 if (!getSubExpr()->evaluateAsRelocatable(Res, Asm, Fixup)) in evaluateAsRelocatableImpl()
109 Res = in evaluateAsRelocatableImpl()
110 MCValue::get(Res.getSymA(), Res.getSymB(), Res.getConstant(), getKind()); in evaluateAsRelocatableImpl()
189 bool AArch64AuthMCExpr::evaluateAsRelocatableImpl(MCValue &Res, in evaluateAsRelocatableImpl() argument
192 if (!getSubExpr()->evaluateAsRelocatable(Res, Asm, Fixup)) in evaluateAsRelocatableImpl()
195 if (Res.getSymB()) in evaluateAsRelocatableImpl()
198 Res = MCValue::get(Res.getSymA(), nullptr, Res.getConstant(), getKind()); in evaluateAsRelocatableImpl()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVGlobalRegistry.cpp77 auto Res = MRI.createGenericVirtualRegister(LLT::scalar(32)); in createTypeVReg() local
78 MRI.setRegClass(Res, &SPIRV::TYPERegClass); in createTypeVReg()
79 return Res; in createTypeVReg()
83 auto Res = MRI.createGenericVirtualRegister(LLT::scalar(32)); in createTypeVReg() local
84 MRI.setRegClass(Res, &SPIRV::TYPERegClass); in createTypeVReg()
85 return Res; in createTypeVReg()
173 Register Res = DT.find(CI, CurMF); in getOrCreateConstIntReg() local
174 if (!Res.isValid()) { in getOrCreateConstIntReg()
179 Res = CurMF->getRegInfo().createGenericVirtualRegister(LLTy); in getOrCreateConstIntReg()
180 CurMF->getRegInfo().setRegClass(Res, &SPIRV::IDRegClass); in getOrCreateConstIntReg()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerIOWindows.cpp289 size_t Pos = Offset, Res; in ParseServerAndShare() local
290 if (!(Res = ParseDir(FileName, Pos))) in ParseServerAndShare()
292 Pos += Res; in ParseServerAndShare()
293 if (!(Res = ParseDir(FileName, Pos))) in ParseServerAndShare()
295 Pos += Res; in ParseServerAndShare()
313 size_t Pos = 0, Res; in ParseLocation() local
315 if ((Res = ParseCustomString(FileName, Pos, R"(\\?\)"))) { in ParseLocation()
316 Pos += Res; in ParseLocation()
317 if ((Res = ParseCustomString(FileName, Pos, R"(UNC\)"))) { in ParseLocation()
318 Pos += Res; in ParseLocation()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPPExpressions.cpp674 llvm::APSInt Res(LHS.getBitWidth()); in EvaluateDirectiveSubExpr() local
684 Res.setIsUnsigned(LHS.isUnsigned() || RHS.isUnsigned()); in EvaluateDirectiveSubExpr()
687 if (ValueLive && Res.isUnsigned()) { in EvaluateDirectiveSubExpr()
699 LHS.Val.setIsUnsigned(Res.isUnsigned()); in EvaluateDirectiveSubExpr()
700 RHS.Val.setIsUnsigned(Res.isUnsigned()); in EvaluateDirectiveSubExpr()
708 Res = LHS.Val % RHS.Val; in EvaluateDirectiveSubExpr()
718 Res = llvm::APSInt(LHS.Val.sdiv_ov(RHS.Val, Overflow), false); in EvaluateDirectiveSubExpr()
720 Res = LHS.Val / RHS.Val; in EvaluateDirectiveSubExpr()
729 if (Res.isSigned()) in EvaluateDirectiveSubExpr()
730 Res = llvm::APSInt(LHS.Val.smul_ov(RHS.Val, Overflow), false); in EvaluateDirectiveSubExpr()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseExpr.cpp229 ExprResult Res(ParseRHSOfBinaryExpression(LHS, prec::Conditional)); in ParseConstantExpressionInExprEvalContext() local
230 return Actions.ActOnConstantExpression(Res); in ParseConstantExpressionInExprEvalContext()
256 ExprResult Res(ParseRHSOfBinaryExpression(LHS, prec::Conditional)); in ParseCaseExpression() local
257 return Actions.ActOnCaseExpr(CaseLoc, Res); in ParseCaseExpression()
270 ExprResult Res(ParseRHSOfBinaryExpression(LHS, prec::LogicalOr)); in ParseConstraintExpression() local
271 if (Res.isUsable() && !Actions.CheckConstraintExpression(Res.get())) { in ParseConstraintExpression()
272 Actions.CorrectDelayedTyposInExpr(Res); in ParseConstraintExpression()
275 return Res; in ParseConstraintExpression()
712 ExprResult Res = ParseCastExpression(ParseKind, in ParseCastExpression() local
720 return Res; in ParseCastExpression()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUDelayedMCExpr.cpp32 MCValue Res; in assignDocNode() local
33 if (ExprValue->evaluateAsRelocatable(Res, nullptr, nullptr)) { in assignDocNode()
34 if (Res.isAbsolute()) { in assignDocNode()
35 DN = getNode(DN, Type, Res); in assignDocNode()
46 MCValue Res; in resolveDelayedExpressions() local
48 if (!DE.ExprValue->evaluateAsRelocatable(Res, nullptr, nullptr) || in resolveDelayedExpressions()
49 !Res.isAbsolute()) in resolveDelayedExpressions()
53 DE.DN = getNode(DE.DN, DE.Type, Res); in resolveDelayedExpressions()
/freebsd/contrib/llvm-project/llvm/lib/Testing/Annotations/
H A DAnnotations.cpp111 std::vector<std::pair<size_t, llvm::StringRef>> Res; in pointsWithPayload() local
112 Res.reserve(Iter->getValue().size()); in pointsWithPayload()
114 Res.push_back({All[I].Begin, All[I].Payload}); in pointsWithPayload()
116 return Res; in pointsWithPayload()
144 std::vector<Annotations::Range> Res; in ranges() local
145 Res.reserve(WithPayload.size()); in ranges()
147 Res.push_back(Range); in ranges()
148 return Res; in ranges()
156 std::vector<std::pair<Annotations::Range, llvm::StringRef>> Res; in rangesWithPayload() local
157 Res.reserve(Iter->getValue().size()); in rangesWithPayload()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DMakeSupport.cpp11 void clang::quoteMakeTarget(StringRef Target, SmallVectorImpl<char> &Res) { in quoteMakeTarget() argument
18 Res.push_back('\\'); in quoteMakeTarget()
21 Res.push_back('\\'); in quoteMakeTarget()
24 Res.push_back('$'); in quoteMakeTarget()
27 Res.push_back('\\'); in quoteMakeTarget()
33 Res.push_back(Target[i]); in quoteMakeTarget()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DDeltaAlgorithm.cpp27 void DeltaAlgorithm::Split(const changeset_ty &S, changesetlist_ty &Res) { in Split() argument
37 Res.push_back(LHS); in Split()
39 Res.push_back(RHS); in Split()
53 changeset_ty Res; in Delta() local
54 if (Search(Changes, Sets, Res)) in Delta()
55 return Res; in Delta()
69 changeset_ty &Res) { in Search() argument
77 Res = Delta(*it, Sets); in Search()
93 Res = Delta(Complement, ComplementSets); in Search()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/MCTargetDesc/
H A DSystemZMCExpr.cpp39 bool SystemZMCExpr::evaluateAsRelocatableImpl(MCValue &Res, in evaluateAsRelocatableImpl() argument
42 if (!getSubExpr()->evaluateAsRelocatable(Res, Asm, Fixup)) in evaluateAsRelocatableImpl()
45 Res = in evaluateAsRelocatableImpl()
46 MCValue::get(Res.getSymA(), Res.getSymB(), Res.getConstant(), getKind()); in evaluateAsRelocatableImpl()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DValueLattice.h204 ValueLatticeElement Res; in get() local
205 Res.markConstant(C); in get()
206 return Res; in get()
209 ValueLatticeElement Res; in getNot() local
211 Res.markNotConstant(C); in getNot()
212 return Res; in getNot()
220 ValueLatticeElement Res; variable
222 Res.markUndef();
223 return Res;
226 ValueLatticeElement Res; variable
[all …]

12345678910>>...22