Lines Matching refs:cast
291 const auto *SeqR = cast<ConstantDataSequential>(R); in cmpConstants()
306 const APInt &LInt = cast<ConstantInt>(L)->getValue(); in cmpConstants()
307 const APInt &RInt = cast<ConstantInt>(R)->getValue(); in cmpConstants()
311 const APFloat &LAPF = cast<ConstantFP>(L)->getValueAPF(); in cmpConstants()
312 const APFloat &RAPF = cast<ConstantFP>(R)->getValueAPF(); in cmpConstants()
316 const ConstantArray *LA = cast<ConstantArray>(L); in cmpConstants()
317 const ConstantArray *RA = cast<ConstantArray>(R); in cmpConstants()
318 uint64_t NumElementsL = cast<ArrayType>(TyL)->getNumElements(); in cmpConstants()
319 uint64_t NumElementsR = cast<ArrayType>(TyR)->getNumElements(); in cmpConstants()
323 if (int Res = cmpConstants(cast<Constant>(LA->getOperand(i)), in cmpConstants()
324 cast<Constant>(RA->getOperand(i)))) in cmpConstants()
330 const ConstantStruct *LS = cast<ConstantStruct>(L); in cmpConstants()
331 const ConstantStruct *RS = cast<ConstantStruct>(R); in cmpConstants()
332 unsigned NumElementsL = cast<StructType>(TyL)->getNumElements(); in cmpConstants()
333 unsigned NumElementsR = cast<StructType>(TyR)->getNumElements(); in cmpConstants()
337 if (int Res = cmpConstants(cast<Constant>(LS->getOperand(i)), in cmpConstants()
338 cast<Constant>(RS->getOperand(i)))) in cmpConstants()
344 const ConstantVector *LV = cast<ConstantVector>(L); in cmpConstants()
345 const ConstantVector *RV = cast<ConstantVector>(R); in cmpConstants()
346 unsigned NumElementsL = cast<FixedVectorType>(TyL)->getNumElements(); in cmpConstants()
347 unsigned NumElementsR = cast<FixedVectorType>(TyR)->getNumElements(); in cmpConstants()
351 if (int Res = cmpConstants(cast<Constant>(LV->getOperand(i)), in cmpConstants()
352 cast<Constant>(RV->getOperand(i)))) in cmpConstants()
358 const ConstantExpr *LE = cast<ConstantExpr>(L); in cmpConstants()
359 const ConstantExpr *RE = cast<ConstantExpr>(R); in cmpConstants()
365 if (int Res = cmpConstants(cast<Constant>(LE->getOperand(i)), in cmpConstants()
366 cast<Constant>(RE->getOperand(i)))) in cmpConstants()
372 const BlockAddress *LBA = cast<BlockAddress>(L); in cmpConstants()
373 const BlockAddress *RBA = cast<BlockAddress>(R); in cmpConstants()
441 return cmpNumbers(cast<IntegerType>(TyL)->getBitWidth(), in cmpTypes()
442 cast<IntegerType>(TyR)->getBitWidth()); in cmpTypes()
460 StructType *STyL = cast<StructType>(TyL); in cmpTypes()
461 StructType *STyR = cast<StructType>(TyR); in cmpTypes()
476 FunctionType *FTyL = cast<FunctionType>(TyL); in cmpTypes()
477 FunctionType *FTyR = cast<FunctionType>(TyR); in cmpTypes()
495 auto *STyL = cast<ArrayType>(TyL); in cmpTypes()
496 auto *STyR = cast<ArrayType>(TyR); in cmpTypes()
503 auto *STyL = cast<VectorType>(TyL); in cmpTypes()
504 auto *STyR = cast<VectorType>(TyR); in cmpTypes()
537 const GetElementPtrInst *GEPR = cast<GetElementPtrInst>(R); in cmpOperations()
565 cast<AllocaInst>(R)->getAllocatedType())) in cmpOperations()
567 return cmpAligns(AI->getAlign(), cast<AllocaInst>(R)->getAlign()); in cmpOperations()
570 if (int Res = cmpNumbers(LI->isVolatile(), cast<LoadInst>(R)->isVolatile())) in cmpOperations()
572 if (int Res = cmpAligns(LI->getAlign(), cast<LoadInst>(R)->getAlign())) in cmpOperations()
575 cmpOrderings(LI->getOrdering(), cast<LoadInst>(R)->getOrdering())) in cmpOperations()
578 cast<LoadInst>(R)->getSyncScopeID())) in cmpOperations()
582 cast<LoadInst>(R)->getMetadata(LLVMContext::MD_range)); in cmpOperations()
586 cmpNumbers(SI->isVolatile(), cast<StoreInst>(R)->isVolatile())) in cmpOperations()
588 if (int Res = cmpAligns(SI->getAlign(), cast<StoreInst>(R)->getAlign())) in cmpOperations()
591 cmpOrderings(SI->getOrdering(), cast<StoreInst>(R)->getOrdering())) in cmpOperations()
594 cast<StoreInst>(R)->getSyncScopeID()); in cmpOperations()
597 return cmpNumbers(CI->getPredicate(), cast<CmpInst>(R)->getPredicate()); in cmpOperations()
599 auto *CBR = cast<CallBase>(R); in cmpOperations()
608 cast<CallInst>(R)->getTailCallKind())) in cmpOperations()
615 ArrayRef<unsigned> RIndices = cast<InsertValueInst>(R)->getIndices(); in cmpOperations()
626 ArrayRef<unsigned> RIndices = cast<ExtractValueInst>(R)->getIndices(); in cmpOperations()
636 cmpOrderings(FI->getOrdering(), cast<FenceInst>(R)->getOrdering())) in cmpOperations()
639 cast<FenceInst>(R)->getSyncScopeID()); in cmpOperations()
643 cast<AtomicCmpXchgInst>(R)->isVolatile())) in cmpOperations()
646 cmpNumbers(CXI->isWeak(), cast<AtomicCmpXchgInst>(R)->isWeak())) in cmpOperations()
650 cast<AtomicCmpXchgInst>(R)->getSuccessOrdering())) in cmpOperations()
654 cast<AtomicCmpXchgInst>(R)->getFailureOrdering())) in cmpOperations()
657 cast<AtomicCmpXchgInst>(R)->getSyncScopeID()); in cmpOperations()
661 cast<AtomicRMWInst>(R)->getOperation())) in cmpOperations()
664 cast<AtomicRMWInst>(R)->isVolatile())) in cmpOperations()
667 cast<AtomicRMWInst>(R)->getOrdering())) in cmpOperations()
670 cast<AtomicRMWInst>(R)->getSyncScopeID()); in cmpOperations()
674 ArrayRef<int> RMask = cast<ShuffleVectorInst>(R)->getShuffleMask(); in cmpOperations()
683 const PHINode *PNR = cast<PHINode>(R); in cmpOperations()