Home
last modified time | relevance | path

Searched refs:Const (Results 1 – 25 of 83) sorted by relevance

1234

/freebsd-12.1/contrib/llvm/lib/Target/SystemZ/
H A DSystemZTDC.cpp124 auto *Const = dyn_cast<ConstantFP>(I.getOperand(1)); in convertFCmp() local
127 if (!Const) in convertFCmp()
136 if (Const->isZero()) { in convertFCmp()
139 } else if (Const->isInfinity()) { in convertFCmp()
141 WhichConst = Const->isNegative() ? 2 : 1; in convertFCmp()
142 } else if (Const->isExactlyValue(Smallest)) { in convertFCmp()
148 } else if (Const->isExactlyValue(NegSmallest)) { in convertFCmp()
234 auto *Const = dyn_cast<ConstantInt>(I.getOperand(1)); in convertICmp() local
237 if (!Const) in convertICmp()
247 if (Pred == CmpInst::ICMP_SLT && Const->isZero()) { in convertICmp()
[all …]
/freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DSDNodeDbgValue.h45 const Value *Const; ///< Valid for constants. member
73 u.Const = C; in SDDbgValue()
106 const Value *getConst() const { assert (kind==CONST); return u.Const; } in getConst()
/freebsd-12.1/contrib/llvm/lib/Target/ARM/
H A DARMCodeGenPrepare.cpp362 if (auto *Const = dyn_cast<ConstantInt>(CI->getOperand(0))) in isSafeOverflow() local
363 ICmpConst = Const; in isSafeOverflow()
364 else if (auto *Const = dyn_cast<ConstantInt>(CI->getOperand(1))) in isSafeOverflow() local
365 ICmpConst = Const; in isSafeOverflow()
496 if (auto *Const = dyn_cast<ConstantInt>(I->getOperand(1))) { in PrepareConstants() local
497 if (!Const->isNegative()) in PrepareConstants()
505 auto *NewConst = ConstantInt::get(Ctx, Const->getValue().abs()); in PrepareConstants()
583 if (auto *Const = dyn_cast<ConstantInt>(Op)) { in PromoteTree() local
584 Constant *NewConst = ConstantExpr::getZExt(Const, ExtTy); in PromoteTree()
/freebsd-12.1/contrib/llvm/lib/DebugInfo/CodeView/
H A DRecordName.cpp196 if (Mods & uint16_t(ModifierOptions::Const)) in visitKnownRecord()
325 ConstantSym Const(SymbolKind::S_CONSTANT); in getSymbolName() local
327 cantFail(Mapping.visitKnownRecord(Sym, Const)); in getSymbolName()
329 return Const.Name; in getSymbolName()
/freebsd-12.1/contrib/llvm/lib/Target/WebAssembly/
H A DWebAssemblyAddMissingPrototypes.cpp131 } else if (auto *Const = dyn_cast<ConstantExpr>(U)) { in runOnModule() local
134 Const->replaceAllUsesWith(NewConst); in runOnModule()
H A DWebAssemblyRegStackify.cpp127 MachineInstr *Const = BuildMI(*MI->getParent(), MI, MI->getDebugLoc(), in ConvertImplicitDefToConstZero() local
130 LIS.InsertMachineInstrInMaps(*Const); in ConvertImplicitDefToConstZero()
/freebsd-12.1/contrib/googletest/googlemock/test/
H A Dgmock-generated-function-mockers_test.cc63 using testing::Const;
287 EXPECT_CALL(Const(mock_foo_), OverloadedOnConstness()) in TEST_F()
291 EXPECT_EQ('a', Const(*foo_).OverloadedOnConstness()); in TEST_F()
338 EXPECT_CALL(Const(mock_foo_), CTConst(_)) in TEST_F()
341 EXPECT_EQ('a', Const(*foo_).CTConst(0)); in TEST_F()
H A Dgmock-spec-builders_test.cc72 using testing::Const;
2546 TEST(VerifyAndClearTest, Const) { in TEST() argument
2548 ON_CALL(Const(b), DoB()) in TEST()
2551 EXPECT_CALL(Const(b), DoB()) in TEST()
2740 ON_CALL(Const(mock), Overloaded(5)).WillByDefault(Return(11)); in TEST()
2741 ON_CALL(Const(mock), Overloaded(7)).WillByDefault(Return(13)); in TEST()
/freebsd-12.1/contrib/llvm/lib/DebugInfo/PDB/Native/
H A DNativeTypeBuiltin.cpp36 return (Mods & ModifierOptions::Const) != ModifierOptions::None; in isConstType()
H A DNativeTypePointer.cpp135 return (Record->getOptions() & PointerOptions::Const) != PointerOptions::None; in isConstType()
H A DNativeTypeUDT.cpp139 return (Modifiers->Modifiers & ModifierOptions::Const) != in isConstType()
H A DNativeTypeEnum.cpp358 return ((Modifiers->getModifiers() & ModifierOptions::Const) != in isConstType()
/freebsd-12.1/contrib/llvm/lib/Target/RISCV/
H A DRISCVISelDAGToDAG.cpp247 if (auto Const = dyn_cast<ConstantSDNode>(ImmOperand)) { in doPeepholeLoadStoreADDI() local
249 Const->getSExtValue(), SDLoc(ImmOperand), ImmOperand.getValueType()); in doPeepholeLoadStoreADDI()
/freebsd-12.1/contrib/llvm/include/llvm/DebugInfo/CodeView/
H A DCodeView.h301 Const = 0x0001, enumerator
358 Const = 0x00000400, enumerator
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp781 SizeOffsetType Const = Visitor.compute(V); in compute_() local
782 if (Visitor.bothKnown(Const)) in compute_()
783 return std::make_pair(ConstantInt::get(Context, Const.first), in compute_()
784 ConstantInt::get(Context, Const.second)); in compute_()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DSCCP.cpp1707 Constant *Const = nullptr; in tryToReplaceWithConstant() local
1721 Const = ConstantStruct::get(ST, ConstVals); in tryToReplaceWithConstant()
1727 Const = IV.isConstant() ? IV.getConstant() : UndefValue::get(V->getType()); in tryToReplaceWithConstant()
1729 assert(Const && "Constant is nullptr here!"); in tryToReplaceWithConstant()
1747 LLVM_DEBUG(dbgs() << " Constant: " << *Const << " = " << *V << '\n'); in tryToReplaceWithConstant()
1750 V->replaceAllUsesWith(Const); in tryToReplaceWithConstant()
H A DMergeICmps.cpp356 const auto *const Const = dyn_cast<ConstantInt>(Val); in visitCmpBlock() local
358 if (!Const->isZero()) return {}; in visitCmpBlock()
/freebsd-12.1/contrib/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp686 if (MCConstantExpr const *Const = dyn_cast<MCConstantExpr>(Op.getImm())) { in validateTargetOperandClass() local
687 int64_t RegNum = Const->getValue(); in validateTargetOperandClass()
/freebsd-12.1/contrib/llvm/tools/llvm-pdbutil/
H A DMinimalTypeDumper.cpp81 PUSH_FLAG(PointerOptions, Const, Options, "const"); in pointerOptions()
92 PUSH_FLAG(ModifierOptions, Const, Options, "const"); in modifierOptions()
/freebsd-12.1/contrib/gcc/config/s390/
H A Dconstraints.md32 ;; G -- Const double zero operand
108 Const double zero operand"
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaLookup.cpp3063 assert(!(Quals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupCopyingConstructor()
3066 LookupSpecialMember(Class, CXXCopyConstructor, Quals & Qualifiers::Const, in LookupCopyingConstructor()
3076 LookupSpecialMember(Class, CXXMoveConstructor, Quals & Qualifiers::Const, in LookupMovingConstructor()
3103 assert(!(Quals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupCopyingAssignment()
3105 assert(!(ThisQuals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupCopyingAssignment()
3108 LookupSpecialMember(Class, CXXCopyAssignment, Quals & Qualifiers::Const, in LookupCopyingAssignment()
3110 ThisQuals & Qualifiers::Const, in LookupCopyingAssignment()
3121 assert(!(ThisQuals & ~(Qualifiers::Const | Qualifiers::Volatile)) && in LookupMovingAssignment()
3124 LookupSpecialMember(Class, CXXMoveAssignment, Quals & Qualifiers::Const, in LookupMovingAssignment()
3126 ThisQuals & Qualifiers::Const, in LookupMovingAssignment()
/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DWholeProgramDevirt.cpp501 uint32_t Const, uint32_t &Storage);
1059 StringRef Name, uint32_t Const, in exportConstant() argument
1064 ConstantExpr::getIntToPtr(ConstantInt::get(Int32Ty, Const), Int8PtrTy)); in exportConstant()
1068 Storage = Const; in exportConstant()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DType.h144 Const = 0x1,
147 CVRMask = Const | Volatile | Restrict
258 bool hasConst() const { return Mask & Const; }
259 bool hasOnlyConst() const { return Mask == Const; }
260 void removeConst() { Mask &= ~Const; }
261 void addConst() { Mask |= Const; }
711 return (getLocalFastQualifiers() & Qualifiers::Const);
808 addFastQualifiers(Qualifiers::Const);
811 return withFastQualifiers(Qualifiers::Const);
6167 removeLocalFastQualifiers(Qualifiers::Const);
H A DCommentCommands.td239 def Const : DeclarationVerbatimLineCommand<"const">;
/freebsd-12.1/contrib/llvm/lib/Target/Hexagon/
H A DHexagonISelDAGToDAG.cpp1379 if (ConstantSDNode *Const = dyn_cast<ConstantSDNode>(N1)) { in SelectGlobalAddress() local
1382 if (!IsAligned(Const->getZExtValue())) in SelectGlobalAddress()
1386 uint64_t NewOff = GA->getOffset() + (uint64_t)Const->getSExtValue(); in SelectGlobalAddress()
1387 R = CurDAG->getTargetGlobalAddress(GA->getGlobal(), SDLoc(Const), in SelectGlobalAddress()
2051 SDValue Const = CurDAG->getConstant(MaxPowerOf2, SDLoc(N), in balanceSubTree() local
2054 Sum, Const); in balanceSubTree()

1234