Lines Matching refs:PAL
169 AttributeSet PAL = CS.getAttributes(); in DeleteDeadVarargs() local
170 if (!PAL.isEmpty() && PAL.getSlotIndex(PAL.getNumSlots() - 1) > NumArgs) { in DeleteDeadVarargs()
172 for (unsigned i = 0; PAL.getSlotIndex(i) <= NumArgs; ++i) in DeleteDeadVarargs()
173 AttributesVec.push_back(PAL.getSlotAttributes(i)); in DeleteDeadVarargs()
174 if (PAL.hasAttributes(AttributeSet::FunctionIndex)) in DeleteDeadVarargs()
176 PAL.getFnAttributes())); in DeleteDeadVarargs()
177 PAL = AttributeSet::get(Fn.getContext(), AttributesVec); in DeleteDeadVarargs()
188 cast<InvokeInst>(New)->setAttributes(PAL); in DeleteDeadVarargs()
192 cast<CallInst>(New)->setAttributes(PAL); in DeleteDeadVarargs()
685 const AttributeSet &PAL = F->getAttributes(); in RemoveDeadStuffFromFunction() local
702 if (PAL.hasAttributes(i + 1)) { in RemoveDeadStuffFromFunction()
703 AttrBuilder B(PAL, i + 1); in RemoveDeadStuffFromFunction()
782 AttributeSet RAttrs = PAL.getRetAttributes(); in RemoveDeadStuffFromFunction()
800 if (PAL.hasAttributes(AttributeSet::FunctionIndex)) in RemoveDeadStuffFromFunction()
802 PAL.getFnAttributes())); in RemoveDeadStuffFromFunction()