Lines Matching refs:IK

78 static unsigned getOptimizationLevel(ArgList &Args, InputKind IK,  in getOptimizationLevel()  argument
81 if (IK == IK_OpenCL && !Args.hasArg(OPT_cl_opt_disable)) in getOptimizationLevel()
363 static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, in ParseCodeGenArgs() argument
370 unsigned OptimizationLevel = getOptimizationLevel(Args, IK, Diags); in ParseCodeGenArgs()
537 if (IK != IK_LLVM_IR) in ParseCodeGenArgs()
1152 InputKind IK = DashX; in ParseFrontendArgs() local
1153 if (IK == IK_None) { in ParseFrontendArgs()
1154 IK = FrontendOptions::getInputKindForExtension( in ParseFrontendArgs()
1158 DashX = IK; in ParseFrontendArgs()
1160 Opts.Inputs.emplace_back(std::move(Inputs[i]), IK); in ParseFrontendArgs()
1285 void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK, in setLangDefaults() argument
1290 if (IK == IK_Asm) { in setLangDefaults()
1292 } else if (IK == IK_ObjC || in setLangDefaults()
1293 IK == IK_ObjCXX || in setLangDefaults()
1294 IK == IK_PreprocessedObjC || in setLangDefaults()
1295 IK == IK_PreprocessedObjCXX) { in setLangDefaults()
1301 switch (IK) { in setLangDefaults()
1344 Opts.OpenCL = LangStd == LangStandard::lang_opencl || IK == IK_OpenCL; in setLangDefaults()
1364 Opts.CUDA = IK == IK_CUDA || IK == IK_PreprocessedCuda || in setLangDefaults()
1400 static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, in ParseLangArgs() argument
1417 switch (IK) { in ParseLangArgs()
1470 CompilerInvocation::setLangDefaults(Opts, IK, LangStd); in ParseLangArgs()
1795 unsigned Opt = getOptimizationLevel(Args, IK, Diags), in ParseLangArgs()