Home
last modified time | relevance | path

Searched refs:getModuleFlag (Results 1 – 25 of 55) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DModule.cpp333 Metadata *Module::getModuleFlag(StringRef Key) const { in getModuleFlag() function in Module
567 cast_or_null<ConstantAsMetadata>(getModuleFlag("NumRegisterParameters")); in getNumberRegisterParameters()
574 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("Dwarf Version")); in getDwarfVersion()
581 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("DWARF64")); in isDwarf64()
586 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("CodeView")); in getCodeViewFlag()
606 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIC Level")); in getPICLevel()
622 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIE Level")); in getPIELevel()
636 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("Code Model")); in getCodeModel()
655 cast_or_null<ConstantAsMetadata>(getModuleFlag("Large Data Threshold")); in getLargeDataThreshold()
678 return (IsCS ? getModuleFlag("CSProfileSummary") in getProfileSummary()
[all …]
H A DEHPersonalities.cpp101 bool EHa = M->getModuleFlag("eh-asynch"); in canSimplifyInvokeNoUnwind()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64MachineFunctionInfo.cpp97 F.getParent()->getModuleFlag("stack-probe-size"))) in AArch64FunctionInfo()
113 F.getParent()->getModuleFlag("probe-stack"))) in AArch64FunctionInfo()
H A DAArch64AsmPrinter.cpp266 if (M.getModuleFlag("cfguard")) { in emitStartOfAsmFile()
271 if (M.getModuleFlag("ehcontguard")) { in emitStartOfAsmFile()
276 if (M.getModuleFlag("ms-kernel")) { in emitStartOfAsmFile()
292 M.getModuleFlag("branch-target-enforcement"))) in emitStartOfAsmFile()
297 M.getModuleFlag("guarded-control-stack"))) in emitStartOfAsmFile()
302 M.getModuleFlag("sign-return-address"))) in emitStartOfAsmFile()
308 M.getModuleFlag("aarch64-elf-pauthabi-platform"))) in emitStartOfAsmFile()
312 M.getModuleFlag("aarch64-elf-pauthabi-version"))) in emitStartOfAsmFile()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86AsmPrinter.cpp72 IndCSPrefix = M->getModuleFlag("indirect_branch_cs_prefix"); in runOnMachineFunction()
156 if (!F.getParent()->getModuleFlag("kcfi")) in emitKCFITypeId()
851 if (M.getModuleFlag("cf-protection-branch")) in emitStartOfAsmFile()
853 if (M.getModuleFlag("cf-protection-return")) in emitStartOfAsmFile()
904 if (M.getModuleFlag("cfguard")) { in emitStartOfAsmFile()
909 if (M.getModuleFlag("ehcontguard")) { in emitStartOfAsmFile()
914 if (M.getModuleFlag("ms-kernel")) { in emitStartOfAsmFile()
H A DX86ReturnThunks.cpp81 MF.getFunction().getParent()->getModuleFlag("indirect_branch_cs_prefix"); in runOnMachineFunction()
H A DX86IndirectBranchTracking.cpp121 Metadata *isCFProtectionSupported = M->getModuleFlag("cf-protection-branch"); in runOnMachineFunction()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DEHContGuardCatchret.cpp65 if (!MF.getFunction().getParent()->getModuleFlag("ehcontguard")) in runOnMachineFunction()
H A DCFGuardLongjmp.cpp65 if (!MF.getFunction().getParent()->getModuleFlag("cfguard")) in runOnMachineFunction()
H A DKCFI.cpp93 if (!M->getModuleFlag("kcfi")) in runOnMachineFunction()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZAsmPrinter.cpp849 if (M.getModuleFlag("s390x-visible-vector-ABI")) { in emitAttributes()
1055 if (auto *MD = M.getModuleFlag("zos_product_id")) in getProductID()
1064 M.getModuleFlag("zos_product_major_version"))) in getProductVersion()
1071 M.getModuleFlag("zos_product_minor_version"))) in getProductRelease()
1078 M.getModuleFlag("zos_product_patchlevel"))) in getProductPatch()
1086 M.getModuleFlag("zos_translation_time"))) { in getTranslationTime()
1485 if (auto *MD = M.getModuleFlag("zos_cu_language")) { in emitPPA2()
1509 if (auto *MD = M.getModuleFlag("zos_le_char_mode")) { in emitPPA2()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DKCFI.cpp50 if (!M.getModuleFlag("kcfi")) in run()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DModuleUtils.cpp159 if (!M.getModuleFlag("kcfi")) in setKCFIType()
165 if (M.getModuleFlag("cfi-normalize-integers")) in setKCFIType()
174 M.getModuleFlag("kcfi-offset"))) { in setKCFIType()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.h94 return dyn_cast_or_null<MDString>(M.getModuleFlag(MarkerKey)); in getRVInstMarker()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVVMReflect.cpp174 F.getParent()->getModuleFlag("nvvm-reflect-ftz"))) in runNVVMReflect()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DCrossDSOCFI.cpp143 if (M.getModuleFlag("Cross-DSO CFI") == nullptr) in runOnModule()
H A DThinLTOBitcodeWriter.cpp266 mdconst::extract_or_null<ConstantInt>(M.getModuleFlag("UnifiedLTO"))) in enableUnifiedLTO()
517 M.getModuleFlag("EnableSplitLTOUnit"))) in enableSplitLTOUnit()
H A DLowerTypeTests.cpp244 F->getParent()->getModuleFlag("CFI Canonical Jump Tables")); in isJumpTableCanonical()
1213 M.getModuleFlag("branch-target-enforcement"))) in hasBranchTargetEnforcement()
1226 M.getModuleFlag("cf-protection-branch"))) in getJumpTableEntrySize()
1266 Dest->getParent()->getModuleFlag("cf-protection-branch"))) in createJumpTableEntry()
2073 const bool CrossDsoCfi = M.getModuleFlag("Cross-DSO CFI") != nullptr; in lower()
H A DGlobalDCE.cpp231 M.getModuleFlag("Virtual Function Elim")); in AddVirtualFunctionDependencies()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetMachine.cpp238 F.getParent()->getModuleFlag("target-abi"))) { in getSubtargetImpl()
532 return MF.getFunction().getParent()->getModuleFlag("kcfi"); in addPreEmitPass2()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/CFGuard/
H A DCFGuard.cpp239 mdconst::extract_or_null<ConstantInt>(M.getModuleFlag("cfguard"))) in doInitialization()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchTargetMachine.cpp122 F.getParent()->getModuleFlag("target-abi"))) { in getSubtargetImpl()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DModuleSummaryAnalysis.cpp893 M.getModuleFlag("EnableSplitLTOUnit"))) in buildModuleSummaryIndex()
896 mdconst::extract_or_null<ConstantInt>(M.getModuleFlag("UnifiedLTO"))) in buildModuleSummaryIndex()
989 mdconst::extract_or_null<ConstantInt>(M.getModuleFlag("ThinLTO"))) in buildModuleSummaryIndex()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DBackendUtil.cpp1056 if (!TheModule->getModuleFlag("EnableSplitLTOUnit")) in RunOptimizationPipeline()
1076 if (!TheModule->getModuleFlag("ThinLTO") && !CodeGenOpts.UnifiedLTO) in RunOptimizationPipeline()
1078 if (!TheModule->getModuleFlag("EnableSplitLTOUnit")) in RunOptimizationPipeline()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMAsmPrinter.cpp762 SourceModule->getModuleFlag("wchar_size"))) { in emitAttributes()
773 SourceModule->getModuleFlag("min_enum_size"))) { in emitAttributes()
782 SourceModule->getModuleFlag("sign-return-address")); in emitAttributes()
795 SourceModule->getModuleFlag("branch-target-enforcement")); in emitAttributes()

123