Home
last modified time | relevance | path

Searched refs:PICLevel (Results 1 – 19 of 19) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DCodeGen.h31 namespace PICLevel {
/llvm-project-15.0.7/llvm/lib/IR/
H A DModule.cpp588 PICLevel::Level Module::getPICLevel() const { in getPICLevel()
592 return PICLevel::NotPIC; in getPICLevel()
594 return static_cast<PICLevel::Level>( in getPICLevel()
598 void Module::setPICLevel(PICLevel::Level PL) { in setPICLevel()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DInitPreprocessor.cpp1169 if (unsigned PICLevel = LangOpts.PICLevel) { in InitializePredefinedMacros() local
1170 Builder.defineMacro("__PIC__", Twine(PICLevel)); in InitializePredefinedMacros()
1171 Builder.defineMacro("__pic__", Twine(PICLevel)); in InitializePredefinedMacros()
1173 Builder.defineMacro("__PIE__", Twine(PICLevel)); in InitializePredefinedMacros()
1174 Builder.defineMacro("__pie__", Twine(PICLevel)); in InitializePredefinedMacros()
H A DCompilerInvocation.cpp1350 if (Opts.DirectAccessExternalData && LangOpts->PICLevel != 0) in GenerateCodeGenArgs()
1352 else if (!Opts.DirectAccessExternalData && LangOpts->PICLevel == 0) in GenerateCodeGenArgs()
1636 LangOpts->PICLevel == 0); in ParseCodeGenArgs()
3303 if (Opts.PICLevel != 0) in GenerateLangArgs()
3304 GenerateArg(Args, OPT_pic_level, Twine(Opts.PICLevel), SA); in GenerateLangArgs()
3577 Opts.PICLevel = getLastArgIntValue(Args, OPT_pic_level, 0, Diags); in ParseLangArgs()
/llvm-project-15.0.7/clang/lib/Driver/ToolChains/
H A DWebAssembly.cpp266 unsigned PICLevel; in addClangTargetOptions() local
268 std::tie(RelocationModel, PICLevel, IsPIE) = in addClangTargetOptions()
H A DClang.cpp2006 unsigned PICLevel; in AddMIPSTargetArgs() local
2008 std::tie(RelocationModel, PICLevel, IsPIE) = in AddMIPSTargetArgs()
5012 unsigned PICLevel; in ConstructJob() local
5014 std::tie(RelocationModel, PICLevel, IsPIE) = ParsePICArgs(TC, Args); in ConstructJob()
5038 if (PICLevel > 0) { in ConstructJob()
5040 CmdArgs.push_back(PICLevel == 1 ? "1" : "2"); in ConstructJob()
5365 (PICLevel == 0)) in ConstructJob()
7972 unsigned PICLevel; in ConstructJob() local
7974 std::tie(RelocationModel, PICLevel, IsPIE) = in ConstructJob()
H A DCommonArgs.cpp1464 unsigned PICLevel; in AddAssemblerKPIC() local
1466 std::tie(RelocationModel, PICLevel, IsPIE) = ParsePICArgs(ToolChain, Args); in AddAssemblerKPIC()
H A DGnu.cpp718 unsigned PICLevel; in ConstructJob() local
721 std::tie(RelocationModel, PICLevel, IsPIE) = in ConstructJob()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DModule.h844 PICLevel::Level getPICLevel() const;
847 void setPICLevel(PICLevel::Level PL);
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCMCInstLower.cpp120 M->getPICLevel() == PICLevel::BigPIC && in GetSymbolRef()
H A DPPCAsmPrinter.cpp626 M->getPICLevel() == PICLevel::BigPIC) in EmitTlsCall()
669 PICLevel::Level PL = M->getPICLevel(); in emitInstruction()
799 M->getPICLevel() == PICLevel::SmallPIC ? "_GLOBAL_OFFSET_TABLE_" in emitInstruction()
861 if (PL == PICLevel::SmallPIC && !IsAIX) { in emitInstruction()
1591 if (M.getPICLevel() == PICLevel::SmallPIC) in emitStartOfAsmFile()
1618 MF->getFunction().getParent()->getPICLevel() == PICLevel::SmallPIC)) in emitFunctionEntryLabel()
H A DPPCISelDAGToDAG.cpp460 M->getPICLevel() == PICLevel::SmallPIC) { in getGlobalBaseReg()
5187 Mod->getPICLevel() == PICLevel::SmallPIC) in Select()
H A DPPCISelLowering.cpp3337 PICLevel::Level picLevel = M->getPICLevel(); in LowerGlobalTLSAddressLinux()
3385 else if (picLevel == PICLevel::SmallPIC) in LowerGlobalTLSAddressLinux()
3410 if (picLevel == PICLevel::SmallPIC) in LowerGlobalTLSAddressLinux()
3436 if (picLevel == PICLevel::SmallPIC) in LowerGlobalTLSAddressLinux()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DMemProfiler.cpp597 if (F.getParent()->getPICLevel() == PICLevel::NotPIC) in insertDynamicShadowAtFunctionEntry()
/llvm-project-15.0.7/llvm/lib/LTO/
H A DLTOBackend.cpp215 M.getPICLevel() == PICLevel::NotPIC ? Reloc::Static : Reloc::PIC_; in createTargetMachine()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DLangOptions.def199 COMPATIBLE_VALUE_LANGOPT(PICLevel , 2, 0, "__PIC__ level")
/llvm-project-15.0.7/llvm/lib/Target/Sparc/
H A DSparcISelLowering.cpp2057 PICLevel::Level picLevel = M->getPICLevel(); in makeAddress()
2060 if (picLevel == PICLevel::SmallPIC) { in makeAddress()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenModule.cpp865 if (uint32_t PLevel = Context.getLangOpts().PICLevel) { in Release()
867 getModule().setPICLevel(static_cast<llvm::PICLevel::Level>(PLevel)); in Release()
/llvm-project-15.0.7/clang/include/clang/Driver/
H A DOptions.td6017 MarshallingInfoInt<LangOpts<"PICLevel">>;