• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/BPF/

Lines Matching refs:CInfo

166   Value *computeBaseAndAccessKey(CallInst *Call, CallInfo &CInfo,
169 bool transformGEPChain(Module &M, CallInst *Call, CallInfo &CInfo);
236 CallInfo &CInfo) {
244 CInfo.Kind = BPFPreserveArrayAI;
245 CInfo.Metadata = Call->getMetadata(LLVMContext::MD_preserve_access_index);
246 if (!CInfo.Metadata)
248 CInfo.AccessIndex = getConstant(Call->getArgOperand(2));
249 CInfo.Base = Call->getArgOperand(0);
250 CInfo.RecordAlignment =
251 DL->getABITypeAlignment(CInfo.Base->getType()->getPointerElementType());
255 CInfo.Kind = BPFPreserveUnionAI;
256 CInfo.Metadata = Call->getMetadata(LLVMContext::MD_preserve_access_index);
257 if (!CInfo.Metadata)
259 CInfo.AccessIndex = getConstant(Call->getArgOperand(1));
260 CInfo.Base = Call->getArgOperand(0);
261 CInfo.RecordAlignment =
262 DL->getABITypeAlignment(CInfo.Base->getType()->getPointerElementType());
266 CInfo.Kind = BPFPreserveStructAI;
267 CInfo.Metadata = Call->getMetadata(LLVMContext::MD_preserve_access_index);
268 if (!CInfo.Metadata)
270 CInfo.AccessIndex = getConstant(Call->getArgOperand(2));
271 CInfo.Base = Call->getArgOperand(0);
272 CInfo.RecordAlignment =
273 DL->getABITypeAlignment(CInfo.Base->getType()->getPointerElementType());
277 CInfo.Kind = BPFPreserveFieldInfoAI;
278 CInfo.Metadata = nullptr;
283 CInfo.AccessIndex = InfoKind;
322 CallInfo CInfo;
323 if (!IsPreserveDIAccessIndexCall(Call, CInfo))
327 if (CInfo.Kind == BPFPreserveArrayAI)
329 else if (CInfo.Kind == BPFPreserveUnionAI)
505 CallInfo CInfo;
507 if (!IsPreserveDIAccessIndexCall(Call, CInfo) ||
511 traceAICall(Call, CInfo);
695 CallInfo &CInfo,
704 CallStack.push(std::make_pair(Call, CInfo));
705 CInfo = AIChain[Call].second;
725 CInfo = StackElem.second;
728 Base = CInfo.Base;
730 DIType *Ty = stripQualifiers(cast<DIType>(CInfo.Metadata));
731 if (CInfo.Kind == BPFPreserveUnionAI ||
732 CInfo.Kind == BPFPreserveStructAI) {
740 assert(CInfo.Kind == BPFPreserveArrayAI);
746 uint64_t AccessIndex = CInfo.AccessIndex;
803 CInfo = StackElem.second;
806 if (CInfo.Kind == BPFPreserveFieldInfoAI)
821 uint64_t AccessIndex = CInfo.AccessIndex;
824 MDNode *MDN = CInfo.Metadata;
825 uint32_t RecordAlignment = CInfo.RecordAlignment;
847 CallInfo &CInfo) {
851 computeBaseAndAccessKey(Call, CInfo, AccessKey, TypeMeta);
860 if (CInfo.Kind == BPFPreserveFieldInfoAI)
874 if (CInfo.Kind == BPFPreserveFieldInfoAI) {