Lines Matching refs:IntInit
247 return IntInit::get(getValue()); in convertInitializerTo()
307 return IntInit::get(Result); in convertInitializerTo()
394 IntInit *IntInit::get(int64_t V) { in get()
395 static DenseMap<int64_t, std::unique_ptr<IntInit>> ThePool; in get()
397 std::unique_ptr<IntInit> &I = ThePool[V]; in get()
398 if (!I) I.reset(new IntInit(V)); in get()
402 std::string IntInit::getAsString() const { in getAsString()
414 Init *IntInit::convertInitializerTo(RecTy *Ty) const { in convertInitializerTo()
416 return const_cast<IntInit *>(this); in convertInitializerTo()
441 IntInit::convertInitializerBitRange(const std::vector<unsigned> &Bits) const { in convertInitializerBitRange()
627 if (IntInit *LHSi = dyn_cast<IntInit>(LHS)) in Fold()
705 return IntInit::get(LHSl->empty()); in Fold()
707 return IntInit::get(LHSs->getValue().empty()); in Fold()
797 IntInit *L = in Fold()
798 dyn_cast_or_null<IntInit>(LHS->convertInitializerTo(IntRecTy::get())); in Fold()
799 IntInit *R = in Fold()
800 dyn_cast_or_null<IntInit>(RHS->convertInitializerTo(IntRecTy::get())); in Fold()
803 return IntInit::get(L->getValue() == R->getValue()); in Fold()
810 return IntInit::get(LHSs->getValue() == RHSs->getValue()); in Fold()
819 IntInit *LHSi = in Fold()
820 dyn_cast_or_null<IntInit>(LHS->convertInitializerTo(IntRecTy::get())); in Fold()
821 IntInit *RHSi = in Fold()
822 dyn_cast_or_null<IntInit>(RHS->convertInitializerTo(IntRecTy::get())); in Fold()
834 return IntInit::get(Result); in Fold()
1038 IntInit *LHSi = dyn_cast<IntInit>(LHS); in Fold()
1040 LHSi = dyn_cast<IntInit>(I); in Fold()
1058 IntInit *Value = dyn_cast<IntInit>(lhs); in resolveReferences()
1060 Value = dyn_cast<IntInit>(I); in resolveReferences()
1765 if (IntInit *II = dyn_cast<IntInit>(R->getValue())) in getValueAsInt()
1780 if (IntInit *II = dyn_cast<IntInit>(I)) in getValueAsListOfInts()