Lines Matching refs:Mapping

505   ShadowMapping Mapping;  in getShadowMapping()  local
507 Mapping.Scale = kDefaultShadowScale; in getShadowMapping()
509 Mapping.Scale = ClMappingScale; in getShadowMapping()
514 Mapping.Offset = kDynamicShadowSentinel; in getShadowMapping()
516 Mapping.Offset = kMIPS_ShadowOffsetN32; in getShadowMapping()
518 Mapping.Offset = kMIPS32_ShadowOffset32; in getShadowMapping()
520 Mapping.Offset = kFreeBSD_ShadowOffset32; in getShadowMapping()
522 Mapping.Offset = kNetBSD_ShadowOffset32; in getShadowMapping()
524 Mapping.Offset = kDynamicShadowSentinel; in getShadowMapping()
526 Mapping.Offset = kWindowsShadowOffset32; in getShadowMapping()
528 Mapping.Offset = kEmscriptenShadowOffset; in getShadowMapping()
530 Mapping.Offset = kDefaultShadowOffset32; in getShadowMapping()
535 Mapping.Offset = 0; in getShadowMapping()
537 Mapping.Offset = kPPC64_ShadowOffset64; in getShadowMapping()
539 Mapping.Offset = kSystemZ_ShadowOffset64; in getShadowMapping()
541 Mapping.Offset = kFreeBSDAArch64_ShadowOffset64; in getShadowMapping()
544 Mapping.Offset = kFreeBSDKasan_ShadowOffset64; in getShadowMapping()
546 Mapping.Offset = kFreeBSD_ShadowOffset64; in getShadowMapping()
549 Mapping.Offset = kNetBSDKasan_ShadowOffset64; in getShadowMapping()
551 Mapping.Offset = kNetBSD_ShadowOffset64; in getShadowMapping()
553 Mapping.Offset = kPS_ShadowOffset64; in getShadowMapping()
556 Mapping.Offset = kLinuxKasan_ShadowOffset64; in getShadowMapping()
558 Mapping.Offset = (kSmallX86_64ShadowOffsetBase & in getShadowMapping()
559 (kSmallX86_64ShadowOffsetAlignMask << Mapping.Scale)); in getShadowMapping()
561 Mapping.Offset = kWindowsShadowOffset64; in getShadowMapping()
563 Mapping.Offset = kMIPS64_ShadowOffset64; in getShadowMapping()
565 Mapping.Offset = kDynamicShadowSentinel; in getShadowMapping()
567 Mapping.Offset = kDynamicShadowSentinel; in getShadowMapping()
569 Mapping.Offset = kAArch64_ShadowOffset64; in getShadowMapping()
571 Mapping.Offset = kLoongArch64_ShadowOffset64; in getShadowMapping()
573 Mapping.Offset = kRISCV64_ShadowOffset64; in getShadowMapping()
575 Mapping.Offset = (kSmallX86_64ShadowOffsetBase & in getShadowMapping()
576 (kSmallX86_64ShadowOffsetAlignMask << Mapping.Scale)); in getShadowMapping()
578 Mapping.Offset = kDefaultShadowOffset64; in getShadowMapping()
582 Mapping.Offset = kDynamicShadowSentinel; in getShadowMapping()
586 Mapping.Offset = ClMappingOffset; in getShadowMapping()
594 Mapping.OrShadowOffset = !IsAArch64 && !IsPPC64 && !IsSystemZ && !IsPS && in getShadowMapping()
596 !(Mapping.Offset & (Mapping.Offset - 1)) && in getShadowMapping()
597 Mapping.Offset != kDynamicShadowSentinel; in getShadowMapping()
600 Mapping.InGlobal = ClWithIfunc && IsAndroidWithIfuncSupport && IsArmOrThumb; in getShadowMapping()
602 return Mapping; in getShadowMapping()
609 auto Mapping = getShadowMapping(TargetTriple, LongSize, IsKasan); in getAddressSanitizerParams() local
610 *ShadowBase = Mapping.Offset; in getAddressSanitizerParams()
611 *MappingScale = Mapping.Scale; in getAddressSanitizerParams()
612 *OrShadowOffset = Mapping.OrShadowOffset; in getAddressSanitizerParams()
744 Mapping = getShadowMapping(TargetTriple, LongSize, this->CompileKernel); in AddressSanitizer()
840 ShadowMapping Mapping; member
902 Mapping = getShadowMapping(TargetTriple, LongSize, this->CompileKernel); in ModuleAddressSanitizer()
943 return getRedzoneSizeForScale(Mapping.Scale); in getMinRedzoneSizeForGlobal()
961 ShadowMapping Mapping; member in __anon4b8f1cd00211::ModuleAddressSanitizer
992 ShadowMapping Mapping; member
1029 Mapping(ASan.Mapping), in FunctionStackPoisoner()
1316 Shadow = IRB.CreateLShr(Shadow, Mapping.Scale); in memToShadow()
1317 if (Mapping.Offset == 0) return Shadow; in memToShadow()
1323 ShadowBase = ConstantInt::get(IntptrTy, Mapping.Offset); in memToShadow()
1324 if (Mapping.OrShadowOffset) in memToShadow()
1728 unsigned Granularity = 1 << Mapping.Scale; in instrumentMop()
1773 size_t Granularity = static_cast<size_t>(1) << Mapping.Scale; in createSlowPathCmp()
1875 IntegerType::get(*C, std::max(8U, TypeStoreSize >> Mapping.Scale)); in instrumentAddress()
1879 std::max<uint64_t>(Alignment.valueOrOne().value() >> Mapping.Scale, 1); in instrumentAddress()
1884 size_t Granularity = 1ULL << Mapping.Scale; in instrumentAddress()
2470 if (Mapping.Scale > 3) in InstrumentGlobalsWithMetadataArray()
2471 AllGlobals->setAlignment(Align(1ULL << Mapping.Scale)); in InstrumentGlobalsWithMetadataArray()
2851 if (Mapping.InGlobal) in initializeCallbacks()
2881 if (Mapping.Offset != kDynamicShadowSentinel) in maybeInsertDynamicShadowAtFunctionEntry()
2885 if (Mapping.InGlobal) { in maybeInsertDynamicShadowAtFunctionEntry()
3440 uint64_t Granularity = 1ULL << Mapping.Scale; in processStaticAllocas()