Home
last modified time | relevance | path

Searched refs:InputKind (Results 1 – 25 of 30) sorted by relevance

12

/external/llvm-project/clang/lib/Frontend/
DFrontendOptions.cpp15 InputKind FrontendOptions::getInputKindForExtension(StringRef Extension) { in getInputKindForExtension()
16 return llvm::StringSwitch<InputKind>(Extension) in getInputKindForExtension()
17 .Cases("ast", "pcm", InputKind(Language::Unknown, InputKind::Precompiled)) in getInputKindForExtension()
20 .Case("i", InputKind(Language::C).getPreprocessed()) in getInputKindForExtension()
21 .Case("ii", InputKind(Language::CXX).getPreprocessed()) in getInputKindForExtension()
22 .Case("cui", InputKind(Language::CUDA).getPreprocessed()) in getInputKindForExtension()
24 .Case("mi", InputKind(Language::ObjC).getPreprocessed()) in getInputKindForExtension()
26 .Case("mii", InputKind(Language::ObjCXX).getPreprocessed()) in getInputKindForExtension()
30 .Case("iim", InputKind(Language::CXX).getPreprocessed()) in getInputKindForExtension()
DCompilerInvocation.cpp323 static unsigned getOptimizationLevel(ArgList &Args, InputKind IK, in getOptimizationLevel()
812 static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, in ParseCodeGenArgs()
1899 static InputKind ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args, in ParseFrontendArgs()
2110 InputKind DashX(Language::Unknown); in ParseFrontendArgs()
2123 DashX = llvm::StringSwitch<InputKind>(XValue) in ParseFrontendArgs()
2137 DashX = llvm::StringSwitch<InputKind>(XValue) in ParseFrontendArgs()
2144 DashX = llvm::StringSwitch<InputKind>(XValue) in ParseFrontendArgs()
2145 .Case("cpp-output", InputKind(Language::C).getPreprocessed()) in ParseFrontendArgs()
2148 InputKind(Language::Unknown, InputKind::Precompiled)) in ParseFrontendArgs()
2159 DashX = DashX.withFormat(InputKind::ModuleMap); in ParseFrontendArgs()
[all …]
DFrontendAction.cpp557 bool ReplayASTFile = Input.getKind().getFormat() == InputKind::Precompiled && in BeginSourceFile()
615 if (Kind.getFormat() == InputKind::ModuleMap) { in BeginSourceFile()
634 if (Input.getKind().getFormat() == InputKind::Precompiled) { in BeginSourceFile()
770 if (Input.getKind().getFormat() == InputKind::ModuleMap) { in BeginSourceFile()
DASTUnit.cpp1170 InputKind::Source && in Parse()
1588 InputKind::Source && in LoadFromCompilerInvocationAction()
2216 InputKind::Source && in CodeComplete()
2668 InputKind ASTUnit::getInputKind() const { in getInputKind()
2683 InputKind::Format Fmt = InputKind::Source; in getInputKind()
2685 Fmt = InputKind::ModuleMap; in getInputKind()
2690 return InputKind(Lang, Fmt, PP); in getInputKind()
DChainedIncludesSource.cpp120 InputKind IK = CI.getFrontendOpts().Inputs[0].getKind(); in createChainedIncludesSource()
DCompilerInstance.cpp836 Input.getKind().getFormat() == InputKind::ModuleMap in InitializeSourceManager()
1215 InputKind IK(getLanguageFromOptions(ImportingInstance.getLangOpts()), in compileModule()
1216 InputKind::ModuleMap); in compileModule()
2085 InputKind(getLanguageFromOptions(*Invocation->getLangOpts()), in createModuleFromSource()
2086 InputKind::ModuleMap, /*Preprocessed*/true)); in createModuleFromSource()
/external/llvm-project/flang/include/flang/Frontend/
DFrontendOptions.h61 class InputKind {
69 constexpr InputKind(Language l = Language::Unknown) : lang_(l) {} in lang_()
88 InputKind kind_;
92 FrontendInputFile(llvm::StringRef file, InputKind kind) in FrontendInputFile()
94 FrontendInputFile(const llvm::MemoryBuffer *buffer, InputKind kind) in FrontendInputFile()
97 InputKind kind() const { return kind_; } in kind()
140 static InputKind GetInputKindForExtension(llvm::StringRef extension);
/external/llvm-project/clang/include/clang/Frontend/
DFrontendOptions.h144 class InputKind {
158 constexpr InputKind(Language L = Language::Unknown, Format F = Source,
174 InputKind getPreprocessed() const { in getPreprocessed()
175 return InputKind(getLanguage(), getFormat(), true); in getPreprocessed()
178 InputKind withFormat(Format F) const { in withFormat()
179 return InputKind(getLanguage(), F, isPreprocessed()); in withFormat()
194 InputKind Kind;
201 FrontendInputFile(StringRef File, InputKind Kind, bool IsSystem = false)
203 FrontendInputFile(llvm::MemoryBufferRef Buffer, InputKind Kind,
207 InputKind getKind() const { return Kind; } in getKind()
[all …]
DCompilerInvocation.h181 static void setLangDefaults(LangOptions &Opts, InputKind IK,
DFrontendAction.h151 InputKind getCurrentFileKind() const { in getCurrentFileKind()
DASTUnit.h73 class InputKind; variable
658 InputKind getInputKind() const;
/external/clang/include/clang/Frontend/
DFrontendOptions.h63 enum InputKind { enum
91 InputKind Kind;
98 FrontendInputFile(StringRef File, InputKind Kind, bool IsSystem = false)
100 FrontendInputFile(llvm::MemoryBuffer *buffer, InputKind Kind,
104 InputKind getKind() const { return Kind; } in getKind()
292 static InputKind getInputKindForExtension(StringRef Extension);
DCompilerInvocation.h160 static void setLangDefaults(LangOptions &Opts, InputKind IK,
DFrontendAction.h139 InputKind getCurrentFileKind() const { in getCurrentFileKind()
/external/mesa3d/src/gallium/frontends/clover/llvm/
Dcompat.hpp73 const clang::InputKind ik_opencl = clang::Language::OpenCL;
75 const clang::InputKind ik_opencl = clang::InputKind::OpenCL;
/external/llvm-project/flang/lib/Frontend/
DCompilerInvocation.cpp81 static InputKind ParseFrontendArgs(FrontendOptions &opts, in ParseFrontendArgs()
112 InputKind dashX(Language::Unknown); in ParseFrontendArgs()
117 dashX = llvm::StringSwitch<InputKind>(XValue) in ParseFrontendArgs()
123 dashX = llvm::StringSwitch<InputKind>(XValue) in ParseFrontendArgs()
140 InputKind ik = dashX; in ParseFrontendArgs()
DFrontendOptions.cpp14 InputKind FrontendOptions::GetInputKindForExtension(llvm::StringRef extension) { in GetInputKindForExtension()
15 return llvm::StringSwitch<InputKind>(extension) in GetInputKindForExtension()
/external/clang/lib/Frontend/
DFrontendOptions.cpp14 InputKind FrontendOptions::getInputKindForExtension(StringRef Extension) { in getInputKindForExtension()
15 return llvm::StringSwitch<InputKind>(Extension) in getInputKindForExtension()
DCompilerInvocation.cpp81 static unsigned getOptimizationLevel(ArgList &Args, InputKind IK, in getOptimizationLevel()
420 static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, in ParseCodeGenArgs()
1068 static InputKind ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args, in ParseFrontendArgs()
1282 InputKind DashX = IK_None; in ParseFrontendArgs()
1284 DashX = llvm::StringSwitch<InputKind>(A->getValue()) in ParseFrontendArgs()
1319 InputKind IK = DashX; in ParseFrontendArgs()
1471 void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK, in setLangDefaults()
1606 static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, in ParseLangArgs()
2346 InputKind DashX = ParseFrontendArgs(Res.getFrontendOpts(), Args, Diags); in CreateFromArgs()
DChainedIncludesSource.cpp122 InputKind IK = CI.getFrontendOpts().Inputs[0].getKind(); in createChainedIncludesSource()
/external/llvm-project/clang/lib/Frontend/Rewrite/
DFrontendActions.cpp254 Filename, InputKind(Language::Unknown, InputKind::Precompiled)); in visitModuleFile()
283 if (Input.getKind().getFormat() == InputKind::ModuleMap) { in BeginSourceFileAction()
/external/clang/lib/StaticAnalyzer/Frontend/
DModelInjector.cpp70 InputKind IK = IK_CXX; // FIXME in onBodySynthesis()
/external/llvm-project/clang/lib/StaticAnalyzer/Frontend/
DModelInjector.cpp70 InputKind IK = Language::CXX; // FIXME in onBodySynthesis()
/external/llvm-project/polly/lib/External/isl/m4/
Dax_detect_clang.m4189 [IK_C=Language::C], [IK_C=InputKind::C])
191 [Define to Language::C or InputKind::C for newer versions of clang])
/external/llvm-project/polly/lib/External/isl/interface/
Disl_config.h.in90 /* Define to Language::C or InputKind::C for newer versions of clang */

12