Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/clang/lib/Driver/ToolChains/
H A DFlang.cpp66 unsigned PICLevel; in addPicOptions() local
68 std::tie(RelocationModel, PICLevel, IsPIE) = in addPicOptions()
75 if (PICLevel > 0) { in addPicOptions()
77 CmdArgs.push_back(PICLevel == 1 ? "1" : "2"); in addPicOptions()
H A DWebAssembly.cpp266 unsigned PICLevel; in addClangTargetOptions() local
268 std::tie(RelocationModel, PICLevel, IsPIE) = in addClangTargetOptions()
H A DClang.cpp1921 unsigned PICLevel; in AddMIPSTargetArgs() local
1923 std::tie(RelocationModel, PICLevel, IsPIE) = in AddMIPSTargetArgs()
5046 unsigned PICLevel; in ConstructJob() local
5048 std::tie(RelocationModel, PICLevel, IsPIE) = ParsePICArgs(TC, Args); in ConstructJob()
5057 if (!PICLevel) in ConstructJob()
5091 if (PICLevel > 0) { in ConstructJob()
5093 CmdArgs.push_back(PICLevel == 1 ? "1" : "2"); in ConstructJob()
5440 (PICLevel == 0)) in ConstructJob()
8071 unsigned PICLevel; in ConstructJob() local
8073 std::tie(RelocationModel, PICLevel, IsPIE) = in ConstructJob()
H A DCommonArgs.cpp1652 unsigned PICLevel; in AddAssemblerKPIC() local
1654 std::tie(RelocationModel, PICLevel, IsPIE) = ParsePICArgs(ToolChain, Args); in AddAssemblerKPIC()
H A DGnu.cpp717 unsigned PICLevel; in ConstructJob() local
720 std::tie(RelocationModel, PICLevel, IsPIE) = in ConstructJob()
/openbsd-src/gnu/llvm/llvm/include/llvm/Support/
H A DCodeGen.h34 namespace PICLevel {
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/clang/lib/Frontend/
H A DInitPreprocessor.cpp1182 if (unsigned PICLevel = LangOpts.PICLevel) { in InitializePredefinedMacros() local
1183 Builder.defineMacro("__PIC__", Twine(PICLevel)); in InitializePredefinedMacros()
1184 Builder.defineMacro("__pic__", Twine(PICLevel)); in InitializePredefinedMacros()
1186 Builder.defineMacro("__PIE__", Twine(PICLevel)); in InitializePredefinedMacros()
1187 Builder.defineMacro("__pie__", Twine(PICLevel)); in InitializePredefinedMacros()
H A DCompilerInvocation.cpp1362 if (Opts.DirectAccessExternalData && LangOpts->PICLevel != 0) in GenerateCodeGenArgs()
1364 else if (!Opts.DirectAccessExternalData && LangOpts->PICLevel == 0) in GenerateCodeGenArgs()
1644 LangOpts->PICLevel == 0); in ParseCodeGenArgs()
3321 if (Opts.PICLevel != 0) in GenerateLangArgs()
3322 GenerateArg(Args, OPT_pic_level, Twine(Opts.PICLevel), SA); in GenerateLangArgs()
3594 Opts.PICLevel = getLastArgIntValue(Args, OPT_pic_level, 0, Diags); in ParseLangArgs()
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DModule.h844 PICLevel::Level getPICLevel() const;
847 void setPICLevel(PICLevel::Level PL);
/openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/
H A DPPCMCInstLower.cpp120 M->getPICLevel() == PICLevel::BigPIC && in GetSymbolRef()
H A DPPCAsmPrinter.cpp619 M->getPICLevel() == PICLevel::BigPIC) in EmitTlsCall()
662 PICLevel::Level PL = M->getPICLevel(); in emitInstruction()
792 M->getPICLevel() == PICLevel::SmallPIC ? "_GLOBAL_OFFSET_TABLE_" in emitInstruction()
872 StringRef GOTName = (PL == PICLevel::SmallPIC ? in emitInstruction()
933 if (PL == PICLevel::SmallPIC && !IsAIX) { in emitInstruction()
1661 if (M.getPICLevel() == PICLevel::SmallPIC) in emitStartOfAsmFile()
1688 MF->getFunction().getParent()->getPICLevel() == PICLevel::SmallPIC)) in emitFunctionEntryLabel()
H A DPPCISelDAGToDAG.cpp469 M->getPICLevel() == PICLevel::SmallPIC) { in INITIALIZE_PASS()
5290 Mod->getPICLevel() == PICLevel::SmallPIC) in Select()
H A DPPCISelLowering.cpp3350 PICLevel::Level picLevel = M->getPICLevel(); in LowerGlobalTLSAddressLinux()
3398 else if (picLevel == PICLevel::SmallPIC) in LowerGlobalTLSAddressLinux()
3423 if (picLevel == PICLevel::SmallPIC) in LowerGlobalTLSAddressLinux()
3449 if (picLevel == PICLevel::SmallPIC) in LowerGlobalTLSAddressLinux()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Instrumentation/
H A DMemProfiler.cpp539 if (F.getParent()->getPICLevel() == PICLevel::NotPIC) in insertDynamicShadowAtFunctionEntry()
/openbsd-src/gnu/llvm/llvm/lib/LTO/
H A DLTOBackend.cpp216 M.getPICLevel() == PICLevel::NotPIC ? Reloc::Static : Reloc::PIC_; in createTargetMachine()
/openbsd-src/gnu/llvm/clang/include/clang/Basic/
H A DLangOptions.def202 COMPATIBLE_VALUE_LANGOPT(PICLevel , 2, 0, "__PIC__ level")
/openbsd-src/gnu/llvm/llvm/lib/Target/Sparc/
H A DSparcISelLowering.cpp2103 PICLevel::Level picLevel = M->getPICLevel(); in makeAddress()
2106 if (picLevel == PICLevel::SmallPIC) { in makeAddress()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCodeGenModule.cpp878 if (uint32_t PLevel = Context.getLangOpts().PICLevel) { in Release()
880 getModule().setPICLevel(static_cast<llvm::PICLevel::Level>(PLevel)); in Release()
/openbsd-src/gnu/llvm/clang/include/clang/Driver/
H A DOptions.td6168 MarshallingInfoInt<LangOpts<"PICLevel">>;