Home
last modified time | relevance | path

Searched refs:isCast (Results 1 – 25 of 35) sorted by relevance

12

/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DConstantHoisting.cpp178 if (CastInst->isCast()) in findMatInsertPt()
468 if (!CastInst->isCast()) in collectConstantCandidates()
486 if (!ConstExpr->isCast()) in collectConstantCandidates()
503 if (Inst->isCast()) in collectConstantCandidates()
800 assert(CastInst->isCast() && "Expected an cast instruction!"); in emitBaseConstants()
829 assert(ConstExpr->isCast() && "ConstExpr should be a cast"); in emitBaseConstants()
H A DTLSVariableHoist.cpp112 if (Inst->isCast()) in collectTLSCandidate()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DInstruction.h165 bool isCast() const { return isCast(getOpcode()); }
218 static inline bool isCast(unsigned OpCode) {
H A DAbstractCallSite.h147 if (CE->hasOneUse() && CE->isCast()) in isCallee()
H A DConstants.h1182 bool isCast() const;
H A DInstrTypes.h696 return I->isCast();
/llvm-project-15.0.7/clang/include/clang/Tooling/
H A DNodeIntrospection.h46 bool isCast() const { return m_flags & IsCast; } in isCast() function
/llvm-project-15.0.7/llvm/lib/IR/
H A DAbstractCallSite.cpp66 if (CE->hasOneUse() && CE->isCast()) { in AbstractCallSite()
H A DConstantsContext.h60 return Instruction::isCast(CE->getOpcode()) || in classof()
521 if (Instruction::isCast(Opcode) ||
H A DConstantFold.cpp89 assert(Op && Op->isCast() && "Can't fold cast of cast without a cast!"); in foldConstantCastPair()
91 assert(CastInst::isCast(opc) && "Invalid cast opcode"); in foldConstantCastPair()
372 if (CE->isCast()) { in ConstantFoldCastInstruction()
2112 if (CE->isCast() && Idxs.size() > 1 && Idx0->isNullValue()) { in ConstantFoldGetElementPtr()
H A DConstants.cpp1436 bool ConstantExpr::isCast() const { in isCast() function in ConstantExpr
1437 return Instruction::isCast(getOpcode()); in isCast()
1946 assert(Instruction::isCast(opc) && "opcode out of range"); in getCast()
H A DFunction.cpp1843 if (FI->isCast() && !FI->user_empty() && in hasAddressTaken()
/llvm-project-15.0.7/llvm/test/Transforms/ConstantHoisting/AArch64/
H A Dconsthoist-unreachable.ll6 …m::Type *, const llvm::consthoist::ConstantUser &): Assertion `CastInst->isCast() && "Expected an …
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXGenericToNVVM.cpp289 if (Instruction::isCast(Opcode)) { in remapConstantExpr()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/
H A DExecutionUtils.cpp64 if (CE->isCast()) in operator *()
/llvm-project-15.0.7/llvm/tools/bugpoint/
H A DExtractFunction.cpp272 if (CE->isCast()) in SplitStaticCtorDtor()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DFunctionSpecialization.cpp580 if (I->mayReadFromMemory() || I->isCast()) in getUserBonus()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLint.cpp684 if (Instruction::isCast(CE->getOpcode())) { in findValueImpl()
H A DConstantFolding.cpp1053 if (Instruction::isCast(Opcode)) in ConstantFoldInstOperandsImpl()
1413 assert(Instruction::isCast(Opcode)); in ConstantFoldCastOperand()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaExprObjC.cpp3915 unsigned convKindForDiag = Sema::isCast(CCK) ? 0 : 1; in diagnoseObjCARCConversion()
4457 (castACTC == ACTC_coreFoundation && isCast(CCK)))) in CheckObjCConversion()
4461 isCast(CCK)) in CheckObjCConversion()
4486 if (exprACTC == ACTC_retainable && isAnyRetainable(castACTC) && isCast(CCK)) in CheckObjCConversion()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp393 if (CE->isCast()) in runStaticConstructorsDestructors()
/llvm-project-15.0.7/llvm/lib/Target/DirectX/DXILWriter/
H A DDXILBitcodeWriter.cpp2106 if (Instruction::isCast(CE->getOpcode())) { in writeConstants()
2253 if (Instruction::isCast(I.getOpcode())) { in writeInstruction()
/llvm-project-15.0.7/clang/unittests/Introspection/
H A DIntrospectionTest.cpp57 if (Call.isCast()) { in print()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp6516 (Instruction::isCast(E->getOpcode()) && in getEntryCost()
6517 Instruction::isCast(E->getAltOpcode())) || in getEntryCost()
8339 (Instruction::isCast(E->getOpcode()) && in vectorizeTree()
8340 Instruction::isCast(E->getAltOpcode())) || in vectorizeTree()
/llvm-project-15.0.7/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp2596 if (Instruction::isCast(CE->getOpcode())) { in writeConstants()
2782 if (Instruction::isCast(I.getOpcode())) { in writeInstruction()

12