ground_truth
sequencelengths 8
512
| natrual_language
sequencelengths 1
243
| TS_V_token
sequencelengths 1
182
| File
stringlengths 2
45
| Func
stringlengths 1
56
| Target
stringclasses 175
values | Target_Clf
stringclasses 6
values | Compiler_Type
stringclasses 2
values | Idx
int64 0
36.2k
| Length
int64 6
510
| Cover_Rate
float64 1
1
| Template_token
sequencelengths 0
0
|
---|---|---|---|---|---|---|---|---|---|---|---|
[
"<s>",
"void",
"SystemZPassConfig",
"::",
"addPreEmitPass",
"(",
")",
"{",
"if",
"(",
"getOptLevel",
"(",
")",
"!=",
"CodeGenOpt",
"::",
"None",
")",
"addPass",
"(",
"createSystemZShortenInstPass",
"(",
"getSystemZTargetMachine",
"(",
")",
")",
",",
"false",
")",
";",
"if",
"(",
"getOptLevel",
"(",
")",
"!=",
"CodeGenOpt",
"::",
"None",
")",
"addPass",
"(",
"createSystemZElimComparePass",
"(",
"getSystemZTargetMachine",
"(",
")",
")",
",",
"false",
")",
";",
"addPass",
"(",
"createSystemZLongBranchPass",
"(",
"getSystemZTargetMachine",
"(",
")",
")",
")",
";",
"}",
"</s>"
] | [
"This",
"pass",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"immediately",
"before",
"machine",
"code",
"is",
"emitted",
"."
] | [
"SystemZ",
"SystemZ",
"SystemZ",
"SystemZ",
"SystemZ",
"SystemZ",
"SystemZ",
"SystemZ"
] | SystemZTargetMachine31 | addPreEmitPass | SystemZ | CPU | LLVM | 25,900 | 62 | 1 | [] |
[
"<s>",
"static",
"tree",
"pdp11_guard_type",
"(",
"void",
")",
"{",
"return",
"short_integer_type_node",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_CXX_GUARD_TYPE"
] | [
"pdp11"
] | pdp11 | pdp11_guard_type | pdp11 | MPU | GCC | 25,901 | 11 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"output_shift",
"(",
"rtx",
"*",
"operands",
")",
"{",
"rtx",
"shift",
"=",
"operands",
"[",
"3",
"]",
";",
"enum",
"machine_mode",
"mode",
"=",
"GET_MODE",
"(",
"shift",
")",
";",
"enum",
"rtx_code",
"code",
"=",
"GET_CODE",
"(",
"shift",
")",
";",
"const",
"char",
"*",
"shift_one",
";",
"gcc_assert",
"(",
"mode",
"==",
"SImode",
")",
";",
"switch",
"(",
"code",
")",
"{",
"case",
"ASHIFT",
":",
"shift_one",
"=",
"\"asl %0,%0\"",
";",
"break",
";",
"case",
"ASHIFTRT",
":",
"shift_one",
"=",
"\"asr %0,%0\"",
";",
"break",
";",
"case",
"LSHIFTRT",
":",
"shift_one",
"=",
"\"lsr %0,%0\"",
";",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"if",
"(",
"GET_CODE",
"(",
"operands",
"[",
"2",
"]",
")",
"!=",
"CONST_INT",
")",
"{",
"if",
"(",
"optimize",
")",
"{",
"output_asm_insn",
"(",
"\"sub.f 0,%2,0\"",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"mov lp_count,%2\"",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"bz 2f\"",
",",
"operands",
")",
";",
"}",
"else",
"output_asm_insn",
"(",
"\"mov %4,%2\"",
",",
"operands",
")",
";",
"goto",
"shiftloop",
";",
"}",
"else",
"{",
"int",
"n",
"=",
"INTVAL",
"(",
"operands",
"[",
"2",
"]",
")",
";",
"if",
"(",
"n",
"<",
"0",
")",
"n",
"=",
"0",
";",
"else",
"if",
"(",
"n",
">",
"GET_MODE_BITSIZE",
"(",
"mode",
")",
")",
"n",
"=",
"GET_MODE_BITSIZE",
"(",
"mode",
")",
";",
"if",
"(",
"n",
"<=",
"8",
")",
"{",
"while",
"(",
"--",
"n",
">=",
"0",
")",
"output_asm_insn",
"(",
"shift_one",
",",
"operands",
")",
";",
"}",
"else",
"if",
"(",
"n",
"==",
"BITS_PER_WORD",
"-",
"1",
")",
"{",
"switch",
"(",
"code",
")",
"{",
"case",
"ASHIFT",
":",
"output_asm_insn",
"(",
"\"and %0,%0,1\\n\\tror %0,%0\"",
",",
"operands",
")",
";",
"break",
";",
"case",
"ASHIFTRT",
":",
"output_asm_insn",
"(",
"\"asl.f 0,%0\\n\\tsbc %0,0,0\"",
",",
"operands",
")",
";",
"break",
";",
"case",
"LSHIFTRT",
":",
"output_asm_insn",
"(",
"\"asl.f 0,%0\\n\\tadc %0,0,0\"",
",",
"operands",
")",
";",
"break",
";",
"default",
":",
"break",
";",
"}",
"}",
"else",
"{",
"char",
"buf",
"[",
"100",
"]",
";",
"if",
"(",
"optimize",
")",
"output_asm_insn",
"(",
"\"mov lp_count,%c2\"",
",",
"operands",
")",
";",
"else",
"output_asm_insn",
"(",
"\"mov %4,%c2\"",
",",
"operands",
")",
";",
"shiftloop",
":",
"if",
"(",
"optimize",
")",
"{",
"if",
"(",
"flag_pic",
")",
"sprintf",
"(",
"buf",
",",
"\"lr %%4,[status]\\n\\tadd %%4,%%4,6\\t%s single insn loop start\"",
",",
"ASM_COMMENT_START",
")",
";",
"else",
"sprintf",
"(",
"buf",
",",
"\"mov %%4,%%%%st(1f)\\t%s (single insn loop start) >> 2\"",
",",
"ASM_COMMENT_START",
")",
";",
"output_asm_insn",
"(",
"buf",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"sr %4,[lp_start]\"",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"add %4,%4,1\"",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"sr %4,[lp_end]\"",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"nop\\n\\tnop\"",
",",
"operands",
")",
";",
"if",
"(",
"flag_pic",
")",
"fprintf",
"(",
"asm_out_file",
",",
"\"\\t%s single insn loop\\n\"",
",",
"ASM_COMMENT_START",
")",
";",
"else",
"fprintf",
"(",
"asm_out_file",
",",
"\"1:\\t%s single insn loop\\n\"",
",",
"ASM_COMMENT_START",
")",
";",
"output_asm_insn",
"(",
"shift_one",
",",
"operands",
")",
";",
"fprintf",
"(",
"asm_out_file",
",",
"\"2:\\t%s end single insn loop\\n\"",
",",
"ASM_COMMENT_START",
")",
";",
"}",
"else",
"{",
"fprintf",
"(",
"asm_out_file",
",",
"\"1:\\t%s begin shift loop\\n\"",
",",
"ASM_COMMENT_START",
")",
";",
"output_asm_insn",
"(",
"\"sub.f %4,%4,1\"",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"nop\"",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"bn.nd 2f\"",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"shift_one",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"b.nd 1b\"",
",",
"operands",
")",
";",
"fprintf",
"(",
"asm_out_file",
",",
"\"2:\\t%s end shift loop\\n\"",
",",
"ASM_COMMENT_START",
")",
";",
"}",
"}",
"}",
"return",
"\"\"",
";",
"}",
"</s>"
] | [
"FIXME",
":",
"This",
"probably",
"can",
"be",
"done",
"using",
"a",
"define_split",
"in",
"arc.md",
".",
"Alternately",
",",
"generate",
"rtx",
"rather",
"than",
"output",
"instructions",
"."
] | [
"arc",
"3",
"\"asl %0,%0\"",
"\"asr %0,%0\"",
"\"lsr %0,%0\"",
"2",
"\"sub.f 0,%2,0\"",
"\"mov lp_count,%2\"",
"\"bz 2f\"",
"\"mov %4,%2\"",
"2",
"0",
"0",
"8",
"0",
"1",
"\"and %0,%0,1\\n\\tror %0,%0\"",
"\"asl.f 0,%0\\n\\tsbc %0,0,0\"",
"\"asl.f 0,%0\\n\\tadc %0,0,0\"",
"100",
"\"mov lp_count,%c2\"",
"\"mov %4,%c2\"",
"\"lr %%4,[status]\\n\\tadd %%4,%%4,6\\t%s single insn loop start\"",
"\"mov %%4,%%%%st(1f)\\t%s (single insn loop start) >> 2\"",
"\"sr %4,[lp_start]\"",
"\"add %4,%4,1\"",
"\"sr %4,[lp_end]\"",
"\"nop\\n\\tnop\"",
"\"\\t%s single insn loop\\n\"",
"\"1:\\t%s single insn loop\\n\"",
"\"2:\\t%s end single insn loop\\n\"",
"\"1:\\t%s begin shift loop\\n\"",
"\"sub.f %4,%4,1\"",
"\"nop\"",
"\"bn.nd 2f\"",
"\"b.nd 1b\"",
"\"2:\\t%s end shift loop\\n\"",
"\"\""
] | arc3 | output_shift | arc | MPU | GCC | 25,902 | 452 | 1 | [] |
[
"<s>",
"bool",
"NVVMReflect",
"::",
"runOnFunction",
"(",
"Function",
"&",
"F",
")",
"{",
"if",
"(",
"!",
"NVVMReflectEnabled",
")",
"return",
"false",
";",
"if",
"(",
"F",
".",
"getName",
"(",
")",
"==",
"NVVM_REFLECT_FUNCTION",
")",
"{",
"assert",
"(",
"F",
".",
"isDeclaration",
"(",
")",
"&&",
"\"_reflect function should not have a body\"",
")",
";",
"assert",
"(",
"F",
".",
"getReturnType",
"(",
")",
"->",
"isIntegerTy",
"(",
")",
"&&",
"\"_reflect's return type should be integer\"",
")",
";",
"return",
"false",
";",
"}",
"SmallVector",
"<",
"Instruction",
"*",
",",
"4",
">",
"ToRemove",
";",
"for",
"(",
"Instruction",
"&",
"I",
":",
"instructions",
"(",
"F",
")",
")",
"{",
"CallInst",
"*",
"Call",
"=",
"dyn_cast",
"<",
"CallInst",
">",
"(",
"&",
"I",
")",
";",
"if",
"(",
"!",
"Call",
")",
"continue",
";",
"Function",
"*",
"Callee",
"=",
"Call",
"->",
"getCalledFunction",
"(",
")",
";",
"if",
"(",
"!",
"Callee",
"||",
"(",
"Callee",
"->",
"getName",
"(",
")",
"!=",
"NVVM_REFLECT_FUNCTION",
"&&",
"Callee",
"->",
"getIntrinsicID",
"(",
")",
"!=",
"Intrinsic",
"::",
"nvvm_reflect",
")",
")",
"continue",
";",
"assert",
"(",
"Call",
"->",
"getNumOperands",
"(",
")",
"==",
"2",
"&&",
"\"Wrong number of operands to __nvvm_reflect function\"",
")",
";",
"const",
"Value",
"*",
"Str",
"=",
"Call",
"->",
"getArgOperand",
"(",
"0",
")",
";",
"if",
"(",
"const",
"CallInst",
"*",
"ConvCall",
"=",
"dyn_cast",
"<",
"CallInst",
">",
"(",
"Str",
")",
")",
"{",
"Str",
"=",
"ConvCall",
"->",
"getArgOperand",
"(",
"0",
")",
";",
"}",
"assert",
"(",
"isa",
"<",
"ConstantExpr",
">",
"(",
"Str",
")",
"&&",
"\"Format of __nvvm__reflect function not recognized\"",
")",
";",
"const",
"ConstantExpr",
"*",
"GEP",
"=",
"cast",
"<",
"ConstantExpr",
">",
"(",
"Str",
")",
";",
"const",
"Value",
"*",
"Sym",
"=",
"GEP",
"->",
"getOperand",
"(",
"0",
")",
";",
"assert",
"(",
"isa",
"<",
"Constant",
">",
"(",
"Sym",
")",
"&&",
"\"Format of __nvvm_reflect function not recognized\"",
")",
";",
"const",
"Value",
"*",
"Operand",
"=",
"cast",
"<",
"Constant",
">",
"(",
"Sym",
")",
"->",
"getOperand",
"(",
"0",
")",
";",
"if",
"(",
"const",
"GlobalVariable",
"*",
"GV",
"=",
"dyn_cast",
"<",
"GlobalVariable",
">",
"(",
"Operand",
")",
")",
"{",
"assert",
"(",
"GV",
"->",
"hasInitializer",
"(",
")",
"&&",
"\"Format of _reflect function not recognized\"",
")",
";",
"const",
"Constant",
"*",
"Initializer",
"=",
"GV",
"->",
"getInitializer",
"(",
")",
";",
"Operand",
"=",
"Initializer",
";",
"}",
"assert",
"(",
"isa",
"<",
"ConstantDataSequential",
">",
"(",
"Operand",
")",
"&&",
"\"Format of _reflect function not recognized\"",
")",
";",
"assert",
"(",
"cast",
"<",
"ConstantDataSequential",
">",
"(",
"Operand",
")",
"->",
"isCString",
"(",
")",
"&&",
"\"Format of _reflect function not recognized\"",
")",
";",
"StringRef",
"ReflectArg",
"=",
"cast",
"<",
"ConstantDataSequential",
">",
"(",
"Operand",
")",
"->",
"getAsString",
"(",
")",
";",
"ReflectArg",
"=",
"ReflectArg",
".",
"substr",
"(",
"0",
",",
"ReflectArg",
".",
"size",
"(",
")",
"-",
"1",
")",
";",
"DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"Arg of _reflect : \"",
"<<",
"ReflectArg",
"<<",
"\"\\n\"",
")",
";",
"int",
"ReflectVal",
"=",
"0",
";",
"auto",
"Iter",
"=",
"VarMap",
".",
"find",
"(",
"ReflectArg",
")",
";",
"if",
"(",
"Iter",
"!=",
"VarMap",
".",
"end",
"(",
")",
")",
"ReflectVal",
"=",
"Iter",
"->",
"second",
";",
"else",
"if",
"(",
"ReflectArg",
"==",
"\"__CUDA_FTZ\"",
")",
"{",
"if",
"(",
"auto",
"*",
"Flag",
"=",
"mdconst",
"::",
"extract_or_null",
"<",
"ConstantInt",
">",
"(",
"F",
".",
"getParent",
"(",
")",
"->",
"getModuleFlag",
"(",
"\"nvvm-reflect-ftz\"",
")",
")",
")",
"ReflectVal",
"=",
"Flag",
"->",
"getSExtValue",
"(",
")",
";",
"}",
"Call",
"->",
"replaceAllUsesWith",
"(",
"ConstantInt",
"::",
"get",
"(",
"Call",
"->",
"getType",
"(",
")",
",",
"ReflectVal",
")",
")",
";",
"ToRemove",
".",
"push_back",
"(",
"Call",
")",
";",
"}",
"for",
"(",
"Instruction",
"*",
"I",
":",
"ToRemove",
")",
"I",
"->",
"eraseFromParent",
"(",
")",
";",
"return",
"ToRemove",
".",
"size",
"(",
")",
">",
"0",
";",
"}",
"</s>"
] | [
"runOnFunction",
"-",
"Virtual",
"method",
"overriden",
"by",
"subclasses",
"to",
"do",
"the",
"per-function",
"processing",
"of",
"the",
"pass",
"."
] | [
"NVPTX",
"\"_reflect function should not have a body\"",
"\"_reflect's return type should be integer\"",
"4",
"Intrinsic::nvvm_reflect",
"2",
"\"Wrong number of operands to __nvvm_reflect function\"",
"0",
"0",
"\"Format of __nvvm__reflect function not recognized\"",
"0",
"\"Format of __nvvm_reflect function not recognized\"",
"0",
"\"Format of _reflect function not recognized\"",
"\"Format of _reflect function not recognized\"",
"\"Format of _reflect function not recognized\"",
"0",
"1",
"\"Arg of _reflect : \"",
"\"\\n\"",
"0",
"\"__CUDA_FTZ\"",
"\"nvvm-reflect-ftz\"",
"0"
] | NVVMReflect2 | runOnFunction | NVPTX | GPU | LLVM | 25,903 | 498 | 1 | [] |
[
"<s>",
"std",
"::",
"unique_ptr",
"<",
"MCObjectWriter",
">",
"RISCVAsmBackend",
"::",
"createObjectWriter",
"(",
"raw_pwrite_stream",
"&",
"OS",
")",
"const",
"{",
"return",
"createRISCVELFObjectWriter",
"(",
"OS",
",",
"OSABI",
",",
"Is64Bit",
")",
";",
"}",
"</s>"
] | [
"Create",
"a",
"new",
"MCObjectWriter",
"instance",
"for",
"use",
"by",
"the",
"assembler",
"backend",
"to",
"emit",
"the",
"final",
"object",
"file",
"."
] | [
"RISCV",
"RISCV",
"RISCV"
] | RISCVAsmBackend25 | createObjectWriter | RISCV | CPU | LLVM | 25,904 | 27 | 1 | [] |
[
"<s>",
"X86TargetLowering",
"::",
"ConstraintType",
"X86TargetLowering",
"::",
"getConstraintType",
"(",
"StringRef",
"Constraint",
")",
"const",
"{",
"if",
"(",
"Constraint",
".",
"size",
"(",
")",
"==",
"1",
")",
"{",
"switch",
"(",
"Constraint",
"[",
"0",
"]",
")",
"{",
"case",
"'R'",
":",
"case",
"'q'",
":",
"case",
"'Q'",
":",
"case",
"'f'",
":",
"case",
"'t'",
":",
"case",
"'u'",
":",
"case",
"'y'",
":",
"case",
"'x'",
":",
"case",
"'v'",
":",
"case",
"'Y'",
":",
"case",
"'l'",
":",
"case",
"'k'",
":",
"return",
"C_RegisterClass",
";",
"case",
"'a'",
":",
"case",
"'b'",
":",
"case",
"'c'",
":",
"case",
"'d'",
":",
"case",
"'S'",
":",
"case",
"'D'",
":",
"case",
"'A'",
":",
"return",
"C_Register",
";",
"case",
"'I'",
":",
"case",
"'J'",
":",
"case",
"'K'",
":",
"case",
"'L'",
":",
"case",
"'M'",
":",
"case",
"'N'",
":",
"case",
"'G'",
":",
"case",
"'C'",
":",
"case",
"'e'",
":",
"case",
"'Z'",
":",
"return",
"C_Other",
";",
"default",
":",
"break",
";",
"}",
"}",
"else",
"if",
"(",
"Constraint",
".",
"size",
"(",
")",
"==",
"2",
")",
"{",
"switch",
"(",
"Constraint",
"[",
"0",
"]",
")",
"{",
"default",
":",
"break",
";",
"case",
"'Y'",
":",
"switch",
"(",
"Constraint",
"[",
"1",
"]",
")",
"{",
"default",
":",
"break",
";",
"case",
"'z'",
":",
"case",
"'0'",
":",
"return",
"C_Register",
";",
"case",
"'i'",
":",
"case",
"'m'",
":",
"case",
"'k'",
":",
"case",
"'t'",
":",
"case",
"'2'",
":",
"return",
"C_RegisterClass",
";",
"}",
"}",
"}",
"else",
"if",
"(",
"parseConstraintCode",
"(",
"Constraint",
")",
"!=",
"X86",
"::",
"COND_INVALID",
")",
"return",
"C_Other",
";",
"return",
"TargetLowering",
"::",
"getConstraintType",
"(",
"Constraint",
")",
";",
"}",
"</s>"
] | [
"Given",
"a",
"constraint",
"letter",
",",
"return",
"the",
"type",
"of",
"constraint",
"for",
"this",
"target",
"."
] | [
"X86",
"X86",
"X86",
"1",
"0",
"2",
"0",
"1",
"X86::COND_INVALID"
] | X86ISelLowering108 | getConstraintType | X86 | CPU | LLVM | 25,905 | 226 | 1 | [] |
[
"<s>",
"unsigned",
"X86TargetLowering",
"::",
"getByValTypeAlignment",
"(",
"Type",
"*",
"Ty",
",",
"const",
"DataLayout",
"&",
"DL",
")",
"const",
"{",
"if",
"(",
"Subtarget",
"->",
"is64Bit",
"(",
")",
")",
"{",
"unsigned",
"TyAlign",
"=",
"DL",
".",
"getABITypeAlignment",
"(",
"Ty",
")",
";",
"if",
"(",
"TyAlign",
">",
"8",
")",
"return",
"TyAlign",
";",
"return",
"8",
";",
"}",
"unsigned",
"Align",
"=",
"4",
";",
"if",
"(",
"Subtarget",
"->",
"hasSSE1",
"(",
")",
")",
"getMaxByValAlign",
"(",
"Ty",
",",
"Align",
")",
";",
"return",
"Align",
";",
"}",
"</s>"
] | [
"Return",
"the",
"desired",
"alignment",
"for",
"ByVal",
"aggregate",
"function",
"arguments",
"in",
"the",
"caller",
"parameter",
"area",
"."
] | [
"X86",
"X86",
"8",
"8",
"4"
] | X86ISelLowering (2)3 | getByValTypeAlignment | X86 | CPU | LLVM | 25,906 | 72 | 1 | [] |
[
"<s>",
"bool",
"WebAssemblyAsmBackend",
"::",
"writeNopData",
"(",
"raw_ostream",
"&",
"OS",
",",
"uint64_t",
"Count",
")",
"const",
"{",
"if",
"(",
"Count",
"==",
"0",
")",
"return",
"true",
";",
"for",
"(",
"uint64_t",
"i",
"=",
"0",
";",
"i",
"<",
"Count",
";",
"++",
"i",
")",
"OS",
"<<",
"char",
"(",
"WebAssembly",
"::",
"Nop",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Write",
"an",
"(",
"optimal",
")",
"nop",
"sequence",
"of",
"Count",
"bytes",
"to",
"the",
"given",
"output",
"."
] | [
"WebAssembly",
"WebAssembly",
"0",
"0",
"WebAssembly::Nop"
] | WebAssemblyAsmBackend8 | writeNopData | WebAssembly | Virtual ISA | LLVM | 25,907 | 50 | 1 | [] |
[
"<s>",
"SMLoc",
"getStartLoc",
"(",
")",
"const",
"{",
"return",
"Start",
";",
"}",
"</s>"
] | [
"getStartLoc",
"-",
"Get",
"the",
"location",
"of",
"the",
"first",
"token",
"of",
"this",
"operand",
"."
] | [
"SNES"
] | SNESAsmParser | getStartLoc | SNES | DSP | LLVM | 25,908 | 10 | 1 | [] |
[
"<s>",
"bool",
"AMDGPUPassConfig",
"::",
"addPreISel",
"(",
")",
"{",
"const",
"AMDGPUSubtarget",
"&",
"ST",
"=",
"TM",
"->",
"getSubtarget",
"<",
"AMDGPUSubtarget",
">",
"(",
")",
";",
"addPass",
"(",
"createFlattenCFGPass",
"(",
")",
")",
";",
"if",
"(",
"ST",
".",
"getGeneration",
"(",
")",
">",
"AMDGPUSubtarget",
"::",
"NORTHERN_ISLANDS",
")",
"{",
"addPass",
"(",
"createStructurizeCFGPass",
"(",
")",
")",
";",
"addPass",
"(",
"createSIAnnotateControlFlowPass",
"(",
")",
")",
";",
"}",
"else",
"{",
"addPass",
"(",
"createR600TextureIntrinsicsReplacer",
"(",
")",
")",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"{",
"{",
"@",
"For",
"GlobalISel"
] | [
"R600",
"SI"
] | AMDGPUTargetMachine13 | addPreISel | R600 | GPU | LLVM | 25,909 | 70 | 1 | [] |
[
"<s>",
"static",
"void",
"rs6000_file_start",
"(",
"void",
")",
"{",
"char",
"buffer",
"[",
"80",
"]",
";",
"const",
"char",
"*",
"start",
"=",
"buffer",
";",
"FILE",
"*",
"file",
"=",
"asm_out_file",
";",
"rs6000_default_cpu",
"=",
"TARGET_CPU_DEFAULT",
";",
"default_file_start",
"(",
")",
";",
"if",
"(",
"flag_verbose_asm",
")",
"{",
"sprintf",
"(",
"buffer",
",",
"\"\\n%s rs6000/powerpc options:\"",
",",
"ASM_COMMENT_START",
")",
";",
"if",
"(",
"rs6000_default_cpu",
"!=",
"0",
"&&",
"rs6000_default_cpu",
"[",
"0",
"]",
"!=",
"'\\0'",
")",
"{",
"fprintf",
"(",
"file",
",",
"\"%s --with-cpu=%s\"",
",",
"start",
",",
"rs6000_default_cpu",
")",
";",
"start",
"=",
"\"\"",
";",
"}",
"if",
"(",
"global_options_set",
".",
"x_rs6000_cpu_index",
")",
"{",
"fprintf",
"(",
"file",
",",
"\"%s -mcpu=%s\"",
",",
"start",
",",
"processor_target_table",
"[",
"rs6000_cpu_index",
"]",
".",
"name",
")",
";",
"start",
"=",
"\"\"",
";",
"}",
"if",
"(",
"global_options_set",
".",
"x_rs6000_tune_index",
")",
"{",
"fprintf",
"(",
"file",
",",
"\"%s -mtune=%s\"",
",",
"start",
",",
"processor_target_table",
"[",
"rs6000_tune_index",
"]",
".",
"name",
")",
";",
"start",
"=",
"\"\"",
";",
"}",
"if",
"(",
"PPC405_ERRATUM77",
")",
"{",
"fprintf",
"(",
"file",
",",
"\"%s PPC405CR_ERRATUM77\"",
",",
"start",
")",
";",
"start",
"=",
"\"\"",
";",
"}",
"switch",
"(",
"rs6000_sdata",
")",
"{",
"case",
"SDATA_NONE",
":",
"fprintf",
"(",
"file",
",",
"\"%s -msdata=none\"",
",",
"start",
")",
";",
"start",
"=",
"\"\"",
";",
"break",
";",
"case",
"SDATA_DATA",
":",
"fprintf",
"(",
"file",
",",
"\"%s -msdata=data\"",
",",
"start",
")",
";",
"start",
"=",
"\"\"",
";",
"break",
";",
"case",
"SDATA_SYSV",
":",
"fprintf",
"(",
"file",
",",
"\"%s -msdata=sysv\"",
",",
"start",
")",
";",
"start",
"=",
"\"\"",
";",
"break",
";",
"case",
"SDATA_EABI",
":",
"fprintf",
"(",
"file",
",",
"\"%s -msdata=eabi\"",
",",
"start",
")",
";",
"start",
"=",
"\"\"",
";",
"break",
";",
"}",
"if",
"(",
"rs6000_sdata",
"&&",
"g_switch_value",
")",
"{",
"fprintf",
"(",
"file",
",",
"\"%s -G %d\"",
",",
"start",
",",
"g_switch_value",
")",
";",
"start",
"=",
"\"\"",
";",
"}",
"if",
"(",
"*",
"start",
"==",
"'\\0'",
")",
"putc",
"(",
"'\\n'",
",",
"file",
")",
";",
"}",
"if",
"(",
"rs6000_default_cpu",
"==",
"0",
"||",
"rs6000_default_cpu",
"[",
"0",
"]",
"==",
"'\\0'",
"||",
"!",
"global_options_set",
".",
"x_rs6000_cpu_index",
")",
"{",
"fputs",
"(",
"\"\\t.machine \"",
",",
"asm_out_file",
")",
";",
"if",
"(",
"(",
"rs6000_isa_flags",
"&",
"OPTION_MASK_MODULO",
")",
"!=",
"0",
")",
"fputs",
"(",
"\"power9\\n\"",
",",
"asm_out_file",
")",
";",
"else",
"if",
"(",
"(",
"rs6000_isa_flags",
"&",
"OPTION_MASK_DIRECT_MOVE",
")",
"!=",
"0",
")",
"fputs",
"(",
"\"power8\\n\"",
",",
"asm_out_file",
")",
";",
"else",
"if",
"(",
"(",
"rs6000_isa_flags",
"&",
"OPTION_MASK_POPCNTD",
")",
"!=",
"0",
")",
"fputs",
"(",
"\"power7\\n\"",
",",
"asm_out_file",
")",
";",
"else",
"if",
"(",
"(",
"rs6000_isa_flags",
"&",
"OPTION_MASK_CMPB",
")",
"!=",
"0",
")",
"fputs",
"(",
"\"power6\\n\"",
",",
"asm_out_file",
")",
";",
"else",
"if",
"(",
"(",
"rs6000_isa_flags",
"&",
"OPTION_MASK_POPCNTB",
")",
"!=",
"0",
")",
"fputs",
"(",
"\"power5\\n\"",
",",
"asm_out_file",
")",
";",
"else",
"if",
"(",
"(",
"rs6000_isa_flags",
"&",
"OPTION_MASK_MFCRF",
")",
"!=",
"0",
")",
"fputs",
"(",
"\"power4\\n\"",
",",
"asm_out_file",
")",
";",
"else",
"if",
"(",
"(",
"rs6000_isa_flags",
"&",
"OPTION_MASK_POWERPC64",
")",
"!=",
"0",
")",
"fputs",
"(",
"\"ppc64\\n\"",
",",
"asm_out_file",
")",
";",
"else",
"fputs",
"(",
"\"ppc\\n\"",
",",
"asm_out_file",
")",
";",
"}",
"if",
"(",
"DEFAULT_ABI",
"==",
"ABI_ELFv2",
")",
"fprintf",
"(",
"file",
",",
"\"\\t.abiversion 2\\n\"",
")",
";",
"}",
"</s>"
] | [
"Do",
"anything",
"needed",
"at",
"the",
"start",
"of",
"the",
"asm",
"file",
"."
] | [
"rs6000",
"80",
"\"\\n%s rs6000/powerpc options:\"",
"0",
"0",
"\"%s --with-cpu=%s\"",
"\"\"",
"\"%s -mcpu=%s\"",
"\"\"",
"\"%s -mtune=%s\"",
"\"\"",
"\"%s PPC405CR_ERRATUM77\"",
"\"\"",
"\"%s -msdata=none\"",
"\"\"",
"\"%s -msdata=data\"",
"\"\"",
"\"%s -msdata=sysv\"",
"\"\"",
"\"%s -msdata=eabi\"",
"\"\"",
"\"%s -G %d\"",
"\"\"",
"0",
"0",
"\"\\t.machine \"",
"0",
"\"power9\\n\"",
"0",
"\"power8\\n\"",
"0",
"\"power7\\n\"",
"0",
"\"power6\\n\"",
"0",
"\"power5\\n\"",
"0",
"\"power4\\n\"",
"0",
"\"ppc64\\n\"",
"\"ppc\\n\"",
"\"\\t.abiversion 2\\n\""
] | rs60005 | rs6000_file_start | rs6000 | CPU | GCC | 25,910 | 443 | 1 | [] |
[
"<s>",
"void",
"VEInstPrinter",
"::",
"printRegName",
"(",
"raw_ostream",
"&",
"OS",
",",
"unsigned",
"RegNo",
")",
"const",
"{",
"OS",
"<<",
"'%'",
"<<",
"StringRef",
"(",
"getRegisterName",
"(",
"RegNo",
")",
")",
".",
"lower",
"(",
")",
";",
"}",
"</s>"
] | [
"Print",
"the",
"assembler",
"register",
"name",
"."
] | [
"VE",
"VE"
] | VEInstPrinter1 | printRegName | VE | CPU | LLVM | 25,911 | 31 | 1 | [] |
[
"<s>",
"MCObjectWriter",
"*",
"createObjectWriter",
"(",
"raw_ostream",
"&",
"OS",
")",
"const",
"{",
"return",
"createAMDGPUELFObjectWriter",
"(",
"OS",
")",
";",
"}",
"</s>"
] | [
"Create",
"a",
"new",
"MCObjectWriter",
"instance",
"for",
"use",
"by",
"the",
"assembler",
"backend",
"to",
"emit",
"the",
"final",
"object",
"file",
"."
] | [
"R600"
] | AMDGPUAsmBackend24 | createObjectWriter | R600 | GPU | LLVM | 25,912 | 17 | 1 | [] |
[
"<s>",
"X86TargetMachine",
"::",
"X86TargetMachine",
"(",
"const",
"Module",
"&",
"M",
",",
"const",
"std",
"::",
"string",
"&",
"FS",
",",
"bool",
"is64Bit",
")",
":",
"Subtarget",
"(",
"M",
",",
"FS",
",",
"is64Bit",
")",
",",
"DataLayout",
"(",
"Subtarget",
".",
"getDataLayout",
"(",
")",
")",
",",
"FrameInfo",
"(",
"TargetFrameInfo",
"::",
"StackGrowsDown",
",",
"Subtarget",
".",
"getStackAlignment",
"(",
")",
",",
"Subtarget",
".",
"is64Bit",
"(",
")",
"?",
"-",
"8",
":",
"-",
"4",
")",
",",
"InstrInfo",
"(",
"*",
"this",
")",
",",
"JITInfo",
"(",
"*",
"this",
")",
",",
"TLInfo",
"(",
"*",
"this",
")",
"{",
"DefRelocModel",
"=",
"getRelocationModel",
"(",
")",
";",
"if",
"(",
"getRelocationModel",
"(",
")",
"==",
"Reloc",
"::",
"Default",
")",
"{",
"if",
"(",
"Subtarget",
".",
"isTargetDarwin",
"(",
")",
"||",
"(",
"Subtarget",
".",
"isTargetCygMing",
"(",
")",
"&&",
"!",
"Subtarget",
".",
"isTargetWin64",
"(",
")",
")",
")",
"setRelocationModel",
"(",
"Reloc",
"::",
"DynamicNoPIC",
")",
";",
"else",
"setRelocationModel",
"(",
"Reloc",
"::",
"Static",
")",
";",
"}",
"if",
"(",
"Subtarget",
".",
"isTargetELF",
"(",
")",
"&&",
"getRelocationModel",
"(",
")",
"==",
"Reloc",
"::",
"DynamicNoPIC",
")",
"setRelocationModel",
"(",
"Reloc",
"::",
"Static",
")",
";",
"if",
"(",
"Subtarget",
".",
"is64Bit",
"(",
")",
")",
"{",
"if",
"(",
"getRelocationModel",
"(",
")",
"==",
"Reloc",
"::",
"DynamicNoPIC",
")",
"setRelocationModel",
"(",
"Reloc",
"::",
"PIC_",
")",
";",
"if",
"(",
"getCodeModel",
"(",
")",
"==",
"CodeModel",
"::",
"Default",
")",
"setCodeModel",
"(",
"CodeModel",
"::",
"Small",
")",
";",
"}",
"if",
"(",
"Subtarget",
".",
"isTargetCygMing",
"(",
")",
")",
"Subtarget",
".",
"setPICStyle",
"(",
"PICStyles",
"::",
"WinPIC",
")",
";",
"else",
"if",
"(",
"Subtarget",
".",
"isTargetDarwin",
"(",
")",
")",
"{",
"if",
"(",
"Subtarget",
".",
"is64Bit",
"(",
")",
")",
"Subtarget",
".",
"setPICStyle",
"(",
"PICStyles",
"::",
"RIPRel",
")",
";",
"else",
"Subtarget",
".",
"setPICStyle",
"(",
"PICStyles",
"::",
"Stub",
")",
";",
"}",
"else",
"if",
"(",
"Subtarget",
".",
"isTargetELF",
"(",
")",
")",
"{",
"if",
"(",
"Subtarget",
".",
"is64Bit",
"(",
")",
")",
"Subtarget",
".",
"setPICStyle",
"(",
"PICStyles",
"::",
"RIPRel",
")",
";",
"else",
"Subtarget",
".",
"setPICStyle",
"(",
"PICStyles",
"::",
"GOT",
")",
";",
"}",
"}",
"</s>"
] | [
"Create",
"an",
"X86",
"target",
"."
] | [
"X86",
"X86",
"X86",
"8",
"4"
] | X86TargetMachine40 | X86TargetMachine | X86 | CPU | LLVM | 25,913 | 298 | 1 | [] |
[
"<s>",
"static",
"bool",
"sh_handle_option",
"(",
"size_t",
"code",
",",
"const",
"char",
"*",
"arg",
"ATTRIBUTE_UNUSED",
",",
"int",
"value",
"ATTRIBUTE_UNUSED",
")",
"{",
"switch",
"(",
"code",
")",
"{",
"case",
"OPT_m1",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH1",
";",
"return",
"true",
";",
"case",
"OPT_m2",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH2",
";",
"return",
"true",
";",
"case",
"OPT_m2a",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH2A",
";",
"return",
"true",
";",
"case",
"OPT_m2a_nofpu",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH2A_NOFPU",
";",
"return",
"true",
";",
"case",
"OPT_m2a_single",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH2A_SINGLE",
";",
"return",
"true",
";",
"case",
"OPT_m2a_single_only",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH2A_SINGLE_ONLY",
";",
"return",
"true",
";",
"case",
"OPT_m2e",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH2E",
";",
"return",
"true",
";",
"case",
"OPT_m3",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH3",
";",
"return",
"true",
";",
"case",
"OPT_m3e",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH3E",
";",
"return",
"true",
";",
"case",
"OPT_m4",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH4",
";",
"return",
"true",
";",
"case",
"OPT_m4_nofpu",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH4_NOFPU",
";",
"return",
"true",
";",
"case",
"OPT_m4_single",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH4_SINGLE",
";",
"return",
"true",
";",
"case",
"OPT_m4_single_only",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH4_SINGLE_ONLY",
";",
"return",
"true",
";",
"case",
"OPT_m4a",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH4A",
";",
"return",
"true",
";",
"case",
"OPT_m4a_nofpu",
":",
"case",
"OPT_m4al",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH4A_NOFPU",
";",
"return",
"true",
";",
"case",
"OPT_m4a_single",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH4A_SINGLE",
";",
"return",
"true",
";",
"case",
"OPT_m4a_single_only",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH4A_SINGLE_ONLY",
";",
"return",
"true",
";",
"case",
"OPT_m5_32media",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH5_32MEDIA",
";",
"return",
"true",
";",
"case",
"OPT_m5_32media_nofpu",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH5_32MEDIA_NOFPU",
";",
"return",
"true",
";",
"case",
"OPT_m5_64media",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH5_64MEDIA",
";",
"return",
"true",
";",
"case",
"OPT_m5_64media_nofpu",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH5_64MEDIA_NOFPU",
";",
"return",
"true",
";",
"case",
"OPT_m5_compact",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH5_COMPACT",
";",
"return",
"true",
";",
"case",
"OPT_m5_compact_nofpu",
":",
"target_flags",
"=",
"(",
"target_flags",
"&",
"~",
"MASK_ARCH",
")",
"|",
"SELECT_SH5_COMPACT_NOFPU",
";",
"return",
"true",
";",
"default",
":",
"return",
"true",
";",
"}",
"}",
"</s>"
] | [
"Implement",
"TARGET_HANDLE_OPTION",
"."
] | [
"sh"
] | sh3 | sh_handle_option | sh | CPU | GCC | 25,914 | 424 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"m68k_cpp_cpu_family",
"(",
"const",
"char",
"*",
"prefix",
")",
"{",
"if",
"(",
"!",
"m68k_cpu_entry",
")",
"return",
"NULL",
";",
"return",
"concat",
"(",
"\"__m\"",
",",
"prefix",
",",
"\"_family_\"",
",",
"m68k_cpu_entry",
"->",
"family",
",",
"NULL",
")",
";",
"}",
"</s>"
] | [
"Generate",
"a",
"macro",
"of",
"the",
"form",
"__mPREFIX_family_NAME",
",",
"where",
"PREFIX",
"is",
"the",
"given",
"argument",
"and",
"NAME",
"is",
"the",
"name",
"of",
"the",
"representative",
"device",
"for",
"the",
"-mcpu",
"argument",
"'s",
"family",
".",
"Return",
"NULL",
"if",
"-mcpu",
"was",
"not",
"passed",
"."
] | [
"m68k",
"\"__m\"",
"\"_family_\""
] | m68k | m68k_cpp_cpu_family | m68k | MPU | GCC | 25,915 | 36 | 1 | [] |
[
"<s>",
"const",
"RegisterBankInfo",
"*",
"getRegBankInfo",
"(",
")",
"const",
"override",
"{",
"return",
"RegBankInfo",
".",
"get",
"(",
")",
";",
"}",
"</s>"
] | [
"If",
"the",
"information",
"for",
"the",
"register",
"banks",
"is",
"available",
",",
"return",
"it",
"."
] | [
"AMDGPU"
] | AMDGPUSubtarget | getRegBankInfo | AMDGPU | GPU | LLVM | 25,916 | 17 | 1 | [] |
[
"<s>",
"static",
"void",
"fix_range",
"(",
"const",
"char",
"*",
"const_str",
")",
"{",
"int",
"i",
",",
"first",
",",
"last",
";",
"char",
"*",
"str",
",",
"*",
"dash",
",",
"*",
"comma",
";",
"i",
"=",
"strlen",
"(",
"const_str",
")",
";",
"str",
"=",
"(",
"char",
"*",
")",
"alloca",
"(",
"i",
"+",
"1",
")",
";",
"memcpy",
"(",
"str",
",",
"const_str",
",",
"i",
"+",
"1",
")",
";",
"while",
"(",
"1",
")",
"{",
"dash",
"=",
"strchr",
"(",
"str",
",",
"'-'",
")",
";",
"if",
"(",
"!",
"dash",
")",
"{",
"warning",
"(",
"0",
",",
"\"value of -mfixed-range must have form REG1-REG2\"",
")",
";",
"return",
";",
"}",
"*",
"dash",
"=",
"'\\0'",
";",
"comma",
"=",
"strchr",
"(",
"dash",
"+",
"1",
",",
"','",
")",
";",
"if",
"(",
"comma",
")",
"*",
"comma",
"=",
"'\\0'",
";",
"first",
"=",
"decode_reg_name",
"(",
"str",
")",
";",
"if",
"(",
"first",
"<",
"0",
")",
"{",
"warning",
"(",
"0",
",",
"\"unknown register name: %s\"",
",",
"str",
")",
";",
"return",
";",
"}",
"last",
"=",
"decode_reg_name",
"(",
"dash",
"+",
"1",
")",
";",
"if",
"(",
"last",
"<",
"0",
")",
"{",
"warning",
"(",
"0",
",",
"\"unknown register name: %s\"",
",",
"dash",
"+",
"1",
")",
";",
"return",
";",
"}",
"*",
"dash",
"=",
"'-'",
";",
"if",
"(",
"first",
">",
"last",
")",
"{",
"warning",
"(",
"0",
",",
"\"%s-%s is an empty range\"",
",",
"str",
",",
"dash",
"+",
"1",
")",
";",
"return",
";",
"}",
"for",
"(",
"i",
"=",
"first",
";",
"i",
"<=",
"last",
";",
"++",
"i",
")",
"fixed_regs",
"[",
"i",
"]",
"=",
"call_used_regs",
"[",
"i",
"]",
"=",
"1",
";",
"if",
"(",
"!",
"comma",
")",
"break",
";",
"*",
"comma",
"=",
"','",
";",
"str",
"=",
"comma",
"+",
"1",
";",
"}",
"}",
"</s>"
] | [
"Parse",
"the",
"-mfixed-range=",
"option",
"string",
"."
] | [
"spu",
"1",
"1",
"1",
"0",
"\"value of -mfixed-range must have form REG1-REG2\"",
"1",
"0",
"0",
"\"unknown register name: %s\"",
"1",
"0",
"0",
"\"unknown register name: %s\"",
"1",
"0",
"\"%s-%s is an empty range\"",
"1",
"1",
"1"
] | spu | fix_range | spu | MPU | GCC | 25,917 | 242 | 1 | [] |
[
"<s>",
"bool",
"AArch64FrameLowering",
"::",
"restoreCalleeSavedRegisters",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"MI",
",",
"const",
"std",
"::",
"vector",
"<",
"CalleeSavedInfo",
">",
"&",
"CSI",
",",
"const",
"TargetRegisterInfo",
"*",
"TRI",
")",
"const",
"{",
"MachineFunction",
"&",
"MF",
"=",
"*",
"MBB",
".",
"getParent",
"(",
")",
";",
"const",
"TargetInstrInfo",
"&",
"TII",
"=",
"*",
"MF",
".",
"getTarget",
"(",
")",
".",
"getInstrInfo",
"(",
")",
";",
"unsigned",
"Count",
"=",
"CSI",
".",
"size",
"(",
")",
";",
"DebugLoc",
"DL",
";",
"assert",
"(",
"(",
"Count",
"&",
"1",
")",
"==",
"0",
"&&",
"\"Odd number of callee-saved regs to spill!\"",
")",
";",
"if",
"(",
"MI",
"!=",
"MBB",
".",
"end",
"(",
")",
")",
"DL",
"=",
"MI",
"->",
"getDebugLoc",
"(",
")",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"<",
"Count",
";",
"i",
"+=",
"2",
")",
"{",
"unsigned",
"Reg1",
"=",
"CSI",
"[",
"i",
"]",
".",
"getReg",
"(",
")",
";",
"unsigned",
"Reg2",
"=",
"CSI",
"[",
"i",
"+",
"1",
"]",
".",
"getReg",
"(",
")",
";",
"assert",
"(",
"CSI",
"[",
"i",
"]",
".",
"getFrameIdx",
"(",
")",
"+",
"1",
"==",
"CSI",
"[",
"i",
"+",
"1",
"]",
".",
"getFrameIdx",
"(",
")",
"&&",
"\"Out of order callee saved regs!\"",
")",
";",
"unsigned",
"LdrOpc",
";",
"assert",
"(",
"(",
"Count",
"&",
"1",
")",
"==",
"0",
"&&",
"\"Odd number of callee-saved regs to spill!\"",
")",
";",
"assert",
"(",
"(",
"i",
"&",
"1",
")",
"==",
"0",
"&&",
"\"Odd index for callee-saved reg spill!\"",
")",
";",
"if",
"(",
"AArch64",
"::",
"GPR64RegClass",
".",
"contains",
"(",
"Reg1",
")",
")",
"{",
"assert",
"(",
"AArch64",
"::",
"GPR64RegClass",
".",
"contains",
"(",
"Reg2",
")",
"&&",
"\"Expected GPR64 callee-saved register pair!\"",
")",
";",
"if",
"(",
"i",
"==",
"Count",
"-",
"2",
")",
"LdrOpc",
"=",
"AArch64",
"::",
"LDPXpost",
";",
"else",
"LdrOpc",
"=",
"AArch64",
"::",
"LDPXi",
";",
"}",
"else",
"if",
"(",
"AArch64",
"::",
"FPR64RegClass",
".",
"contains",
"(",
"Reg1",
")",
")",
"{",
"assert",
"(",
"AArch64",
"::",
"FPR64RegClass",
".",
"contains",
"(",
"Reg2",
")",
"&&",
"\"Expected FPR64 callee-saved register pair!\"",
")",
";",
"if",
"(",
"i",
"==",
"Count",
"-",
"2",
")",
"LdrOpc",
"=",
"AArch64",
"::",
"LDPDpost",
";",
"else",
"LdrOpc",
"=",
"AArch64",
"::",
"LDPDi",
";",
"}",
"else",
"llvm_unreachable",
"(",
"\"Unexpected callee saved register!\"",
")",
";",
"DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"CSR restore: (\"",
"<<",
"TRI",
"->",
"getName",
"(",
"Reg1",
")",
"<<",
"\", \"",
"<<",
"TRI",
"->",
"getName",
"(",
"Reg2",
")",
"<<",
"\") -> fi#(\"",
"<<",
"CSI",
"[",
"i",
"]",
".",
"getFrameIdx",
"(",
")",
"<<",
"\", \"",
"<<",
"CSI",
"[",
"i",
"+",
"1",
"]",
".",
"getFrameIdx",
"(",
")",
"<<",
"\")\\n\"",
")",
";",
"const",
"int",
"Offset",
"=",
"(",
"i",
"==",
"Count",
"-",
"2",
")",
"?",
"Count",
":",
"Count",
"-",
"i",
"-",
"2",
";",
"assert",
"(",
"(",
"Offset",
">=",
"-",
"64",
"&&",
"Offset",
"<=",
"63",
")",
"&&",
"\"Offset out of bounds for LDP immediate\"",
")",
";",
"MachineInstrBuilder",
"MIB",
"=",
"BuildMI",
"(",
"MBB",
",",
"MI",
",",
"DL",
",",
"TII",
".",
"get",
"(",
"LdrOpc",
")",
")",
";",
"if",
"(",
"LdrOpc",
"==",
"AArch64",
"::",
"LDPXpost",
"||",
"LdrOpc",
"==",
"AArch64",
"::",
"LDPDpost",
")",
"MIB",
".",
"addReg",
"(",
"AArch64",
"::",
"SP",
",",
"RegState",
"::",
"Define",
")",
";",
"MIB",
".",
"addReg",
"(",
"Reg2",
",",
"getDefRegState",
"(",
"true",
")",
")",
".",
"addReg",
"(",
"Reg1",
",",
"getDefRegState",
"(",
"true",
")",
")",
".",
"addReg",
"(",
"AArch64",
"::",
"SP",
")",
".",
"addImm",
"(",
"Offset",
")",
";",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"restoreCalleeSavedRegisters",
"-",
"Issues",
"instruction",
"(",
"s",
")",
"to",
"restore",
"all",
"callee",
"saved",
"registers",
"and",
"returns",
"true",
"if",
"it",
"is",
"n't",
"possible",
"/",
"profitable",
"to",
"do",
"so",
"by",
"issuing",
"a",
"series",
"of",
"load",
"instructions",
"via",
"loadRegToStackSlot",
"(",
")",
"."
] | [
"AArch64",
"AArch64",
"1",
"0",
"\"Odd number of callee-saved regs to spill!\"",
"0",
"2",
"1",
"1",
"1",
"\"Out of order callee saved regs!\"",
"1",
"0",
"\"Odd number of callee-saved regs to spill!\"",
"1",
"0",
"\"Odd index for callee-saved reg spill!\"",
"AArch64::GPR64RegClass",
"AArch64::GPR64RegClass",
"\"Expected GPR64 callee-saved register pair!\"",
"2",
"AArch64::LDPXpost",
"AArch64::LDPXi",
"AArch64::FPR64RegClass",
"AArch64::FPR64RegClass",
"\"Expected FPR64 callee-saved register pair!\"",
"2",
"AArch64::LDPDpost",
"AArch64::LDPDi",
"\"Unexpected callee saved register!\"",
"\"CSR restore: (\"",
"\", \"",
"\") -> fi#(\"",
"\", \"",
"1",
"\")\\n\"",
"2",
"2",
"64",
"63",
"\"Offset out of bounds for LDP immediate\"",
"AArch64::LDPXpost",
"AArch64::LDPDpost",
"AArch64::SP",
"AArch64::SP"
] | AArch64FrameLowering44 | restoreCalleeSavedRegisters | AArch64 | CPU | LLVM | 25,918 | 474 | 1 | [] |
[
"<s>",
"void",
"HexagonPassConfig",
"::",
"addIRPasses",
"(",
")",
"{",
"TargetPassConfig",
"::",
"addIRPasses",
"(",
")",
";",
"bool",
"NoOpt",
"=",
"(",
"getOptLevel",
"(",
")",
"==",
"CodeGenOpt",
"::",
"None",
")",
";",
"addPass",
"(",
"createAtomicExpandPass",
"(",
"TM",
")",
")",
";",
"if",
"(",
"!",
"NoOpt",
")",
"{",
"if",
"(",
"EnableLoopPrefetch",
")",
"addPass",
"(",
"createLoopDataPrefetchPass",
"(",
")",
")",
";",
"if",
"(",
"EnableCommGEP",
")",
"addPass",
"(",
"createHexagonCommonGEP",
"(",
")",
")",
";",
"if",
"(",
"EnableGenExtract",
")",
"addPass",
"(",
"createHexagonGenExtract",
"(",
")",
")",
";",
"}",
"}",
"</s>"
] | [
"Add",
"common",
"target",
"configurable",
"passes",
"that",
"perform",
"LLVM",
"IR",
"to",
"IR",
"transforms",
"following",
"machine",
"independent",
"optimization",
"."
] | [
"Hexagon",
"Hexagon",
"Hexagon",
"Hexagon"
] | HexagonTargetMachine29 | addIRPasses | Hexagon | DSP | LLVM | 25,919 | 75 | 1 | [] |
[
"<s>",
"static",
"void",
"restore_saved_cr",
"(",
"rtx",
"reg",
",",
"int",
"using_mfcr_multiple",
",",
"bool",
"exit_func",
")",
"{",
"int",
"count",
"=",
"0",
";",
"int",
"i",
";",
"if",
"(",
"using_mfcr_multiple",
")",
"{",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"8",
";",
"i",
"++",
")",
"if",
"(",
"save_reg_p",
"(",
"CR0_REGNO",
"+",
"i",
")",
")",
"count",
"++",
";",
"gcc_assert",
"(",
"count",
")",
";",
"}",
"if",
"(",
"using_mfcr_multiple",
"&&",
"count",
">",
"1",
")",
"{",
"rtx_insn",
"*",
"insn",
";",
"rtvec",
"p",
";",
"int",
"ndx",
";",
"p",
"=",
"rtvec_alloc",
"(",
"count",
")",
";",
"ndx",
"=",
"0",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"8",
";",
"i",
"++",
")",
"if",
"(",
"save_reg_p",
"(",
"CR0_REGNO",
"+",
"i",
")",
")",
"{",
"rtvec",
"r",
"=",
"rtvec_alloc",
"(",
"2",
")",
";",
"RTVEC_ELT",
"(",
"r",
",",
"0",
")",
"=",
"reg",
";",
"RTVEC_ELT",
"(",
"r",
",",
"1",
")",
"=",
"GEN_INT",
"(",
"1",
"<<",
"(",
"7",
"-",
"i",
")",
")",
";",
"RTVEC_ELT",
"(",
"p",
",",
"ndx",
")",
"=",
"gen_rtx_SET",
"(",
"gen_rtx_REG",
"(",
"CCmode",
",",
"CR0_REGNO",
"+",
"i",
")",
",",
"gen_rtx_UNSPEC",
"(",
"CCmode",
",",
"r",
",",
"UNSPEC_MOVESI_TO_CR",
")",
")",
";",
"ndx",
"++",
";",
"}",
"insn",
"=",
"emit_insn",
"(",
"gen_rtx_PARALLEL",
"(",
"VOIDmode",
",",
"p",
")",
")",
";",
"gcc_assert",
"(",
"ndx",
"==",
"count",
")",
";",
"if",
"(",
"!",
"exit_func",
"&&",
"DEFAULT_ABI",
"==",
"ABI_ELFv2",
"&&",
"flag_shrink_wrap",
")",
"{",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"8",
";",
"i",
"++",
")",
"if",
"(",
"save_reg_p",
"(",
"CR0_REGNO",
"+",
"i",
")",
")",
"add_reg_note",
"(",
"insn",
",",
"REG_CFA_RESTORE",
",",
"gen_rtx_REG",
"(",
"SImode",
",",
"CR0_REGNO",
"+",
"i",
")",
")",
";",
"RTX_FRAME_RELATED_P",
"(",
"insn",
")",
"=",
"1",
";",
"}",
"}",
"else",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"8",
";",
"i",
"++",
")",
"if",
"(",
"save_reg_p",
"(",
"CR0_REGNO",
"+",
"i",
")",
")",
"{",
"rtx",
"insn",
"=",
"emit_insn",
"(",
"gen_movsi_to_cr_one",
"(",
"gen_rtx_REG",
"(",
"CCmode",
",",
"CR0_REGNO",
"+",
"i",
")",
",",
"reg",
")",
")",
";",
"if",
"(",
"!",
"exit_func",
"&&",
"DEFAULT_ABI",
"==",
"ABI_ELFv2",
"&&",
"flag_shrink_wrap",
")",
"{",
"add_reg_note",
"(",
"insn",
",",
"REG_CFA_RESTORE",
",",
"gen_rtx_REG",
"(",
"SImode",
",",
"CR0_REGNO",
"+",
"i",
")",
")",
";",
"RTX_FRAME_RELATED_P",
"(",
"insn",
")",
"=",
"1",
";",
"}",
"}",
"if",
"(",
"!",
"exit_func",
"&&",
"DEFAULT_ABI",
"!=",
"ABI_ELFv2",
"&&",
"(",
"DEFAULT_ABI",
"==",
"ABI_V4",
"||",
"flag_shrink_wrap",
")",
")",
"{",
"rtx_insn",
"*",
"insn",
"=",
"get_last_insn",
"(",
")",
";",
"rtx",
"cr",
"=",
"gen_rtx_REG",
"(",
"SImode",
",",
"CR2_REGNO",
")",
";",
"add_reg_note",
"(",
"insn",
",",
"REG_CFA_RESTORE",
",",
"cr",
")",
";",
"RTX_FRAME_RELATED_P",
"(",
"insn",
")",
"=",
"1",
";",
"}",
"}",
"</s>"
] | [
"Reload",
"CR",
"from",
"REG",
"."
] | [
"powerpcspe",
"0",
"0",
"8",
"1",
"0",
"0",
"8",
"2",
"0",
"1",
"1",
"7",
"0",
"8",
"1",
"0",
"8",
"1",
"1"
] | powerpcspe | restore_saved_cr | powerpcspe | CPU | GCC | 25,920 | 391 | 1 | [] |
[
"<s>",
"bool",
"SITargetLowering",
"::",
"enableAggressiveFMAFusion",
"(",
"EVT",
"VT",
")",
"const",
"{",
"return",
"true",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"target",
"always",
"benefits",
"from",
"combining",
"into",
"FMA",
"for",
"a",
"given",
"value",
"type",
"."
] | [
"AMDGPU",
"SI"
] | SIISelLowering (2) | enableAggressiveFMAFusion | AMDGPU | GPU | LLVM | 25,921 | 14 | 1 | [] |
[
"<s>",
"void",
"print",
"(",
"raw_ostream",
"&",
"OS",
")",
"const",
"override",
"{",
"switch",
"(",
"Kind",
")",
"{",
"case",
"k_Immediate",
":",
"OS",
"<<",
"\"Imm<\"",
"<<",
"*",
"Imm",
".",
"Val",
"<<",
"\">\"",
";",
"break",
";",
"case",
"k_Memory",
":",
"OS",
"<<",
"\"Mem<\"",
";",
"OS",
"<<",
"Mem",
".",
"Base",
";",
"OS",
"<<",
"\", \"",
";",
"OS",
"<<",
"*",
"Mem",
".",
"Off",
";",
"OS",
"<<",
"\">\"",
";",
"break",
";",
"case",
"k_Register",
":",
"OS",
"<<",
"\"Register<\"",
"<<",
"Reg",
".",
"RegNum",
"<<",
"\">\"",
";",
"break",
";",
"case",
"k_Token",
":",
"OS",
"<<",
"Tok",
".",
"Data",
";",
"break",
";",
"}",
"}",
"</s>"
] | [
"print",
"-",
"Print",
"a",
"debug",
"representation",
"of",
"the",
"operand",
"to",
"the",
"given",
"stream",
"."
] | [
"Cpu0",
"\"Imm<\"",
"\">\"",
"\"Mem<\"",
"\", \"",
"\">\"",
"\"Register<\"",
"\">\""
] | Cpu0AsmParser | print | Cpu0 | CPU | LLVM | 25,922 | 89 | 1 | [] |
[
"<s>",
"bool",
"AMDGPUAsmPrinter",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"SetupMachineFunction",
"(",
"MF",
")",
";",
"if",
"(",
"OutStreamer",
".",
"hasRawTextSupport",
"(",
")",
")",
"{",
"OutStreamer",
".",
"EmitRawText",
"(",
"\"@\"",
"+",
"MF",
".",
"getName",
"(",
")",
"+",
"\":\"",
")",
";",
"}",
"MCContext",
"&",
"Context",
"=",
"getObjFileLowering",
"(",
")",
".",
"getContext",
"(",
")",
";",
"const",
"MCSectionELF",
"*",
"ConfigSection",
"=",
"Context",
".",
"getELFSection",
"(",
"\".AMDGPU.config\"",
",",
"ELF",
"::",
"SHT_PROGBITS",
",",
"0",
",",
"SectionKind",
"::",
"getReadOnly",
"(",
")",
")",
";",
"OutStreamer",
".",
"SwitchSection",
"(",
"ConfigSection",
")",
";",
"const",
"AMDGPUSubtarget",
"&",
"STM",
"=",
"TM",
".",
"getSubtarget",
"<",
"AMDGPUSubtarget",
">",
"(",
")",
";",
"if",
"(",
"STM",
".",
"getGeneration",
"(",
")",
">",
"AMDGPUSubtarget",
"::",
"NORTHERN_ISLANDS",
")",
"{",
"EmitProgramInfoSI",
"(",
"MF",
")",
";",
"}",
"else",
"{",
"EmitProgramInfoR600",
"(",
"MF",
")",
";",
"}",
"DisasmLines",
".",
"clear",
"(",
")",
";",
"HexLines",
".",
"clear",
"(",
")",
";",
"DisasmLineMaxLen",
"=",
"0",
";",
"OutStreamer",
".",
"SwitchSection",
"(",
"getObjFileLowering",
"(",
")",
".",
"getTextSection",
"(",
")",
")",
";",
"EmitFunctionBody",
"(",
")",
";",
"if",
"(",
"STM",
".",
"dumpCode",
"(",
")",
")",
"{",
"MF",
".",
"dump",
"(",
")",
";",
"if",
"(",
"DisasmEnabled",
")",
"{",
"OutStreamer",
".",
"SwitchSection",
"(",
"Context",
".",
"getELFSection",
"(",
"\".AMDGPU.disasm\"",
",",
"ELF",
"::",
"SHT_NOTE",
",",
"0",
",",
"SectionKind",
"::",
"getReadOnly",
"(",
")",
")",
")",
";",
"for",
"(",
"size_t",
"i",
"=",
"0",
";",
"i",
"<",
"DisasmLines",
".",
"size",
"(",
")",
";",
"++",
"i",
")",
"{",
"std",
"::",
"string",
"Comment",
"(",
"DisasmLineMaxLen",
"-",
"DisasmLines",
"[",
"i",
"]",
".",
"size",
"(",
")",
",",
"' '",
")",
";",
"Comment",
"+=",
"\" ; \"",
"+",
"HexLines",
"[",
"i",
"]",
"+",
"\"\\n\"",
";",
"OutStreamer",
".",
"EmitBytes",
"(",
"StringRef",
"(",
"DisasmLines",
"[",
"i",
"]",
")",
")",
";",
"OutStreamer",
".",
"EmitBytes",
"(",
"StringRef",
"(",
"Comment",
")",
")",
";",
"}",
"}",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"R600",
"\"@\"",
"\":\"",
"\".AMDGPU.config\"",
"0",
"SI",
"0",
"\".AMDGPU.disasm\"",
"0",
"0",
"\" ; \"",
"\"\\n\""
] | AMDGPUAsmPrinter68 | runOnMachineFunction | R600 | GPU | LLVM | 25,923 | 280 | 1 | [] |
[
"<s>",
"void",
"thumb2_expand_return",
"(",
"bool",
"simple_return",
")",
"{",
"int",
"i",
",",
"num_regs",
";",
"unsigned",
"long",
"saved_regs_mask",
";",
"arm_stack_offsets",
"*",
"offsets",
";",
"offsets",
"=",
"arm_get_frame_offsets",
"(",
")",
";",
"saved_regs_mask",
"=",
"offsets",
"->",
"saved_regs_mask",
";",
"for",
"(",
"i",
"=",
"0",
",",
"num_regs",
"=",
"0",
";",
"i",
"<=",
"LAST_ARM_REGNUM",
";",
"i",
"++",
")",
"if",
"(",
"saved_regs_mask",
"&",
"(",
"1",
"<<",
"i",
")",
")",
"num_regs",
"++",
";",
"if",
"(",
"!",
"simple_return",
"&&",
"saved_regs_mask",
")",
"{",
"gcc_assert",
"(",
"!",
"IS_CMSE_ENTRY",
"(",
"arm_current_func_type",
"(",
")",
")",
")",
";",
"if",
"(",
"num_regs",
"==",
"1",
")",
"{",
"rtx",
"par",
"=",
"gen_rtx_PARALLEL",
"(",
"VOIDmode",
",",
"rtvec_alloc",
"(",
"2",
")",
")",
";",
"rtx",
"reg",
"=",
"gen_rtx_REG",
"(",
"SImode",
",",
"PC_REGNUM",
")",
";",
"rtx",
"addr",
"=",
"gen_rtx_MEM",
"(",
"SImode",
",",
"gen_rtx_POST_INC",
"(",
"SImode",
",",
"stack_pointer_rtx",
")",
")",
";",
"set_mem_alias_set",
"(",
"addr",
",",
"get_frame_alias_set",
"(",
")",
")",
";",
"XVECEXP",
"(",
"par",
",",
"0",
",",
"0",
")",
"=",
"ret_rtx",
";",
"XVECEXP",
"(",
"par",
",",
"0",
",",
"1",
")",
"=",
"gen_rtx_SET",
"(",
"reg",
",",
"addr",
")",
";",
"RTX_FRAME_RELATED_P",
"(",
"XVECEXP",
"(",
"par",
",",
"0",
",",
"1",
")",
")",
"=",
"1",
";",
"emit_jump_insn",
"(",
"par",
")",
";",
"}",
"else",
"{",
"saved_regs_mask",
"&=",
"~",
"(",
"1",
"<<",
"LR_REGNUM",
")",
";",
"saved_regs_mask",
"|=",
"(",
"1",
"<<",
"PC_REGNUM",
")",
";",
"arm_emit_multi_reg_pop",
"(",
"saved_regs_mask",
")",
";",
"}",
"}",
"else",
"{",
"if",
"(",
"IS_CMSE_ENTRY",
"(",
"arm_current_func_type",
"(",
")",
")",
")",
"cmse_nonsecure_entry_clear_before_return",
"(",
")",
";",
"emit_jump_insn",
"(",
"simple_return_rtx",
")",
";",
"}",
"}",
"</s>"
] | [
"Generate",
"pattern",
"*",
"pop_multiple_with_stack_update_and_return",
"if",
"single",
"POP",
"instruction",
"can",
"be",
"generated",
".",
"LR",
"should",
"be",
"replaced",
"by",
"PC",
".",
"All",
"the",
"checks",
"required",
"are",
"already",
"done",
"by",
"USE_RETURN_INSN",
"(",
")",
".",
"Hence",
",",
"all",
"we",
"really",
"need",
"to",
"check",
"here",
"is",
"if",
"single",
"register",
"is",
"to",
"be",
"returned",
",",
"or",
"multiple",
"register",
"return",
"."
] | [
"arm",
"0",
"0",
"1",
"1",
"2",
"0",
"0",
"0",
"1",
"0",
"1",
"1",
"1",
"1"
] | arm | thumb2_expand_return | arm | CPU | GCC | 25,924 | 230 | 1 | [] |
[
"<s>",
"void",
"PPCPassConfig",
"::",
"addPreSched2",
"(",
")",
"{",
"if",
"(",
"getOptLevel",
"(",
")",
"!=",
"CodeGenOpt",
"::",
"None",
")",
"{",
"addPass",
"(",
"&",
"IfConverterID",
")",
";",
"if",
"(",
"!",
"DisableQPXLoadSplat",
")",
"addPass",
"(",
"createPPCQPXLoadSplatPass",
"(",
")",
")",
";",
"}",
"}",
"</s>"
] | [
"This",
"method",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"after",
"prolog-epilog",
"insertion",
"and",
"before",
"the",
"second",
"instruction",
"scheduling",
"pass",
"."
] | [
"PowerPC",
"PPC",
"PPC"
] | PPCTargetMachine1 | addPreSched2 | PowerPC | CPU | LLVM | 25,925 | 38 | 1 | [] |
[
"<s>",
"static",
"rtx",
"s390_pool_offset",
"(",
"struct",
"constant_pool",
"*",
"pool",
",",
"rtx",
"x",
")",
"{",
"rtx",
"label",
";",
"label",
"=",
"gen_rtx_LABEL_REF",
"(",
"GET_MODE",
"(",
"x",
")",
",",
"pool",
"->",
"label",
")",
";",
"x",
"=",
"gen_rtx_UNSPEC",
"(",
"GET_MODE",
"(",
"x",
")",
",",
"gen_rtvec",
"(",
"2",
",",
"x",
",",
"label",
")",
",",
"UNSPEC_POOL_OFFSET",
")",
";",
"return",
"gen_rtx_CONST",
"(",
"GET_MODE",
"(",
"x",
")",
",",
"x",
")",
";",
"}",
"</s>"
] | [
"Return",
"an",
"rtx",
"that",
"represents",
"the",
"offset",
"of",
"X",
"from",
"the",
"start",
"of",
"pool",
"POOL",
"."
] | [
"s390",
"2"
] | s390 | s390_pool_offset | s390 | MPU | GCC | 25,926 | 63 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"output_move_multiple",
"(",
"rtx",
"*",
"operands",
")",
"{",
"rtx",
"inops",
"[",
"2",
"]",
";",
"rtx",
"exops",
"[",
"4",
"]",
"[",
"2",
"]",
";",
"rtx",
"adjops",
"[",
"2",
"]",
";",
"pdp11_action",
"action",
"[",
"2",
"]",
";",
"int",
"i",
",",
"words",
";",
"words",
"=",
"GET_MODE_BITSIZE",
"(",
"GET_MODE",
"(",
"operands",
"[",
"0",
"]",
")",
")",
"/",
"16",
";",
"adjops",
"[",
"1",
"]",
"=",
"gen_rtx_CONST_INT",
"(",
"HImode",
",",
"words",
"*",
"2",
")",
";",
"inops",
"[",
"0",
"]",
"=",
"operands",
"[",
"0",
"]",
";",
"inops",
"[",
"1",
"]",
"=",
"operands",
"[",
"1",
"]",
";",
"pdp11_expand_operands",
"(",
"inops",
",",
"exops",
",",
"2",
",",
"words",
",",
"action",
",",
"either",
")",
";",
"if",
"(",
"action",
"[",
"0",
"]",
"==",
"dec_before",
")",
"{",
"adjops",
"[",
"0",
"]",
"=",
"XEXP",
"(",
"XEXP",
"(",
"operands",
"[",
"0",
"]",
",",
"0",
")",
",",
"0",
")",
";",
"output_asm_insn",
"(",
"\"sub\\t%1,%0\"",
",",
"adjops",
")",
";",
"}",
"if",
"(",
"action",
"[",
"1",
"]",
"==",
"dec_before",
")",
"{",
"adjops",
"[",
"0",
"]",
"=",
"XEXP",
"(",
"XEXP",
"(",
"operands",
"[",
"1",
"]",
",",
"0",
")",
",",
"0",
")",
";",
"output_asm_insn",
"(",
"\"sub\\t%1,%0\"",
",",
"adjops",
")",
";",
"}",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"words",
";",
"i",
"++",
")",
"output_asm_insn",
"(",
"singlemove_string",
"(",
"exops",
"[",
"i",
"]",
")",
",",
"exops",
"[",
"i",
"]",
")",
";",
"if",
"(",
"action",
"[",
"0",
"]",
"==",
"inc_after",
")",
"{",
"adjops",
"[",
"0",
"]",
"=",
"XEXP",
"(",
"XEXP",
"(",
"operands",
"[",
"0",
"]",
",",
"0",
")",
",",
"0",
")",
";",
"output_asm_insn",
"(",
"\"add\\t%1,%0\"",
",",
"adjops",
")",
";",
"}",
"if",
"(",
"action",
"[",
"1",
"]",
"==",
"inc_after",
")",
"{",
"adjops",
"[",
"0",
"]",
"=",
"XEXP",
"(",
"XEXP",
"(",
"operands",
"[",
"1",
"]",
",",
"0",
")",
",",
"0",
")",
";",
"output_asm_insn",
"(",
"\"add\\t%1,%0\"",
",",
"adjops",
")",
";",
"}",
"return",
"\"\"",
";",
"}",
"</s>"
] | [
"Output",
"assembler",
"code",
"to",
"perform",
"a",
"multiple-word",
"move",
"insn",
"with",
"operands",
"OPERANDS",
".",
"This",
"moves",
"2",
"or",
"4",
"words",
"depending",
"on",
"the",
"machine",
"mode",
"of",
"the",
"operands",
"."
] | [
"pdp11",
"2",
"4",
"2",
"2",
"2",
"0",
"16",
"1",
"2",
"0",
"0",
"1",
"1",
"2",
"0",
"0",
"0",
"0",
"0",
"\"sub\\t%1,%0\"",
"1",
"0",
"1",
"0",
"0",
"\"sub\\t%1,%0\"",
"0",
"0",
"0",
"0",
"0",
"0",
"\"add\\t%1,%0\"",
"1",
"0",
"1",
"0",
"0",
"\"add\\t%1,%0\"",
"\"\""
] | pdp11 | output_move_multiple | pdp11 | MPU | GCC | 25,927 | 291 | 1 | [] |
[
"<s>",
"const",
"TriCoreRegisterInfo",
"&",
"getRegisterInfo",
"(",
")",
"const",
"{",
"return",
"RI",
";",
"}",
"</s>"
] | [
"getRegisterInfo",
"-",
"TargetInstrInfo",
"is",
"a",
"superset",
"of",
"MRegister",
"info",
"."
] | [
"TriCore",
"TriCore"
] | TriCoreInstrInfo | getRegisterInfo | TriCore | MPU | LLVM | 25,928 | 12 | 1 | [] |
[
"<s>",
"SDValue",
"SystemZSelectionDAGInfo",
"::",
"EmitTargetCodeForMemcpy",
"(",
"SelectionDAG",
"&",
"DAG",
",",
"const",
"SDLoc",
"&",
"DL",
",",
"SDValue",
"Chain",
",",
"SDValue",
"Dst",
",",
"SDValue",
"Src",
",",
"SDValue",
"Size",
",",
"Align",
"Alignment",
",",
"bool",
"IsVolatile",
",",
"bool",
"AlwaysInline",
",",
"MachinePointerInfo",
"DstPtrInfo",
",",
"MachinePointerInfo",
"SrcPtrInfo",
")",
"const",
"{",
"if",
"(",
"IsVolatile",
")",
"return",
"SDValue",
"(",
")",
";",
"if",
"(",
"auto",
"*",
"CSize",
"=",
"dyn_cast",
"<",
"ConstantSDNode",
">",
"(",
"Size",
")",
")",
"return",
"emitMemMemImm",
"(",
"DAG",
",",
"DL",
",",
"SystemZISD",
"::",
"MVC",
",",
"Chain",
",",
"Dst",
",",
"Src",
",",
"CSize",
"->",
"getZExtValue",
"(",
")",
")",
";",
"return",
"emitMemMemReg",
"(",
"DAG",
",",
"DL",
",",
"SystemZISD",
"::",
"MVC",
",",
"Chain",
",",
"Dst",
",",
"Src",
",",
"Size",
")",
";",
"}",
"</s>"
] | [
"Emit",
"target-specific",
"code",
"that",
"performs",
"a",
"memcpy",
"."
] | [
"SystemZ",
"SystemZ",
"SystemZISD::MVC",
"SystemZISD::MVC"
] | SystemZSelectionDAGInfo12 | EmitTargetCodeForMemcpy | SystemZ | CPU | LLVM | 25,929 | 111 | 1 | [] |
[
"<s>",
"void",
"SPIRVPassConfig",
"::",
"addPostRegAlloc",
"(",
")",
"{",
"disablePass",
"(",
"&",
"MachineCopyPropagationID",
")",
";",
"disablePass",
"(",
"&",
"PostRAMachineSinkingID",
")",
";",
"disablePass",
"(",
"&",
"PostRASchedulerID",
")",
";",
"disablePass",
"(",
"&",
"FuncletLayoutID",
")",
";",
"disablePass",
"(",
"&",
"StackMapLivenessID",
")",
";",
"disablePass",
"(",
"&",
"PatchableFunctionID",
")",
";",
"disablePass",
"(",
"&",
"ShrinkWrapID",
")",
";",
"disablePass",
"(",
"&",
"LiveDebugValuesID",
")",
";",
"disablePass",
"(",
"&",
"BranchFolderPassID",
")",
";",
"disablePass",
"(",
"&",
"MachineBlockPlacementID",
")",
";",
"TargetPassConfig",
"::",
"addPostRegAlloc",
"(",
")",
";",
"}",
"</s>"
] | [
"This",
"method",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"after",
"register",
"allocation",
"pass",
"pipeline",
"but",
"before",
"prolog-epilog",
"insertion",
"."
] | [
"SPIRV",
"SPIRV"
] | SPIRVTargetMachine | addPostRegAlloc | SPIRV | Virtual ISA | LLVM | 25,930 | 74 | 1 | [] |
[
"<s>",
"static",
"bool",
"mips_tls_symbol_p",
"(",
"rtx",
"x",
")",
"{",
"return",
"GET_CODE",
"(",
"x",
")",
"==",
"SYMBOL_REF",
"&&",
"SYMBOL_REF_TLS_MODEL",
"(",
"x",
")",
"!=",
"0",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"X",
"is",
"a",
"thread-local",
"symbol",
"."
] | [
"mips",
"0"
] | mips | mips_tls_symbol_p | mips | CPU | GCC | 25,931 | 24 | 1 | [] |
[
"<s>",
"int",
"arm_address_offset_is_imm",
"(",
"rtx_insn",
"*",
"insn",
")",
"{",
"rtx",
"mem",
",",
"addr",
";",
"extract_insn_cached",
"(",
"insn",
")",
";",
"if",
"(",
"REG_P",
"(",
"recog_data",
".",
"operand",
"[",
"0",
"]",
")",
")",
"return",
"0",
";",
"mem",
"=",
"recog_data",
".",
"operand",
"[",
"0",
"]",
";",
"gcc_assert",
"(",
"MEM_P",
"(",
"mem",
")",
")",
";",
"addr",
"=",
"XEXP",
"(",
"mem",
",",
"0",
")",
";",
"if",
"(",
"REG_P",
"(",
"addr",
")",
"||",
"(",
"GET_CODE",
"(",
"addr",
")",
"==",
"PLUS",
"&&",
"REG_P",
"(",
"XEXP",
"(",
"addr",
",",
"0",
")",
")",
"&&",
"CONST_INT_P",
"(",
"XEXP",
"(",
"addr",
",",
"1",
")",
")",
")",
")",
"return",
"1",
";",
"else",
"return",
"0",
";",
"}",
"</s>"
] | [
"Return",
"nonzero",
"if",
"the",
"offset",
"in",
"the",
"address",
"is",
"an",
"immediate",
".",
"Otherwise",
",",
"return",
"zero",
"."
] | [
"arm",
"0",
"0",
"0",
"0",
"0",
"1",
"1",
"0"
] | arm | arm_address_offset_is_imm | arm | CPU | GCC | 25,932 | 103 | 1 | [] |
[
"<s>",
"int",
"visium_expand_block_move",
"(",
"rtx",
"*",
"operands",
")",
"{",
"rtx",
"dst",
"=",
"operands",
"[",
"0",
"]",
";",
"rtx",
"src",
"=",
"operands",
"[",
"1",
"]",
";",
"rtx",
"bytes_rtx",
"=",
"operands",
"[",
"2",
"]",
";",
"rtx",
"align_rtx",
"=",
"operands",
"[",
"3",
"]",
";",
"const",
"int",
"align",
"=",
"INTVAL",
"(",
"align_rtx",
")",
";",
"rtx",
"dst_reg",
",",
"src_reg",
";",
"tree",
"dst_expr",
",",
"src_expr",
";",
"if",
"(",
"!",
"CONST_INT_P",
"(",
"bytes_rtx",
")",
"||",
"INTVAL",
"(",
"bytes_rtx",
")",
"<=",
"0",
")",
"return",
"0",
";",
"dst_reg",
"=",
"copy_addr_to_reg",
"(",
"XEXP",
"(",
"dst",
",",
"0",
")",
")",
";",
"src_reg",
"=",
"copy_addr_to_reg",
"(",
"XEXP",
"(",
"src",
",",
"0",
")",
")",
";",
"if",
"(",
"align",
">=",
"4",
")",
"expand_block_move_4",
"(",
"dst",
",",
"dst_reg",
",",
"src",
",",
"src_reg",
",",
"bytes_rtx",
")",
";",
"else",
"if",
"(",
"align",
">=",
"2",
")",
"expand_block_move_2",
"(",
"dst",
",",
"dst_reg",
",",
"src",
",",
"src_reg",
",",
"bytes_rtx",
")",
";",
"else",
"expand_block_move_1",
"(",
"dst_reg",
",",
"src_reg",
",",
"bytes_rtx",
")",
";",
"dst_expr",
"=",
"MEM_EXPR",
"(",
"dst",
")",
";",
"src_expr",
"=",
"MEM_EXPR",
"(",
"src",
")",
";",
"if",
"(",
"dst_expr",
")",
"mark_addressable",
"(",
"dst_expr",
")",
";",
"if",
"(",
"src_expr",
")",
"mark_addressable",
"(",
"src_expr",
")",
";",
"return",
"1",
";",
"}",
"</s>"
] | [
"Expand",
"string/block",
"move",
"operations",
".",
"operands",
"[",
"0",
"]",
"is",
"the",
"pointer",
"to",
"the",
"destination",
".",
"operands",
"[",
"1",
"]",
"is",
"the",
"pointer",
"to",
"the",
"source",
".",
"operands",
"[",
"2",
"]",
"is",
"the",
"number",
"of",
"bytes",
"to",
"move",
".",
"operands",
"[",
"3",
"]",
"is",
"the",
"alignment",
".",
"Return",
"1",
"upon",
"success",
",",
"0",
"otherwise",
"."
] | [
"visium",
"0",
"1",
"2",
"3",
"0",
"0",
"0",
"0",
"4",
"2",
"1"
] | visium | visium_expand_block_move | visium | Virtual ISA | GCC | 25,933 | 186 | 1 | [] |
[
"<s>",
"void",
"AArch64AsmPrinter",
"::",
"emitEndOfAsmFile",
"(",
"Module",
"&",
"M",
")",
"{",
"emitHwasanMemaccessSymbols",
"(",
"M",
")",
";",
"const",
"Triple",
"&",
"TT",
"=",
"TM",
".",
"getTargetTriple",
"(",
")",
";",
"if",
"(",
"TT",
".",
"isOSBinFormatMachO",
"(",
")",
")",
"{",
"OutStreamer",
"->",
"emitAssemblerFlag",
"(",
"MCAF_SubsectionsViaSymbols",
")",
";",
"}",
"emitStackMaps",
"(",
"SM",
")",
";",
"FM",
".",
"serializeToFaultMapSection",
"(",
")",
";",
"}",
"</s>"
] | [
"This",
"virtual",
"method",
"can",
"be",
"overridden",
"by",
"targets",
"that",
"want",
"to",
"emit",
"something",
"at",
"the",
"end",
"of",
"their",
"file",
"."
] | [
"AArch64",
"AArch64"
] | AArch64AsmPrinter1 | emitEndOfAsmFile | AArch64 | CPU | LLVM | 25,934 | 55 | 1 | [] |
[
"<s>",
"void",
"MipsInstrInfo",
"::",
"storeRegToStackSlot",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"I",
",",
"unsigned",
"SrcReg",
",",
"bool",
"isKill",
",",
"int",
"FI",
",",
"const",
"TargetRegisterClass",
"*",
"RC",
",",
"const",
"TargetRegisterInfo",
"*",
"TRI",
")",
"const",
"{",
"DebugLoc",
"DL",
";",
"if",
"(",
"I",
"!=",
"MBB",
".",
"end",
"(",
")",
")",
"DL",
"=",
"I",
"->",
"getDebugLoc",
"(",
")",
";",
"MachineMemOperand",
"*",
"MMO",
"=",
"GetMemOperand",
"(",
"MBB",
",",
"FI",
",",
"MachineMemOperand",
"::",
"MOStore",
")",
";",
"unsigned",
"Opc",
"=",
"0",
";",
"if",
"(",
"Mips",
"::",
"CPURegsRegClass",
".",
"hasSubClassEq",
"(",
"RC",
")",
")",
"Opc",
"=",
"IsN64",
"?",
"Mips",
"::",
"SW_P8",
":",
"Mips",
"::",
"SW",
";",
"else",
"if",
"(",
"Mips",
"::",
"CPU64RegsRegClass",
".",
"hasSubClassEq",
"(",
"RC",
")",
")",
"Opc",
"=",
"IsN64",
"?",
"Mips",
"::",
"SD_P8",
":",
"Mips",
"::",
"SD",
";",
"else",
"if",
"(",
"Mips",
"::",
"FGR32RegClass",
".",
"hasSubClassEq",
"(",
"RC",
")",
")",
"Opc",
"=",
"IsN64",
"?",
"Mips",
"::",
"SWC1_P8",
":",
"Mips",
"::",
"SWC1",
";",
"else",
"if",
"(",
"Mips",
"::",
"AFGR64RegClass",
".",
"hasSubClassEq",
"(",
"RC",
")",
")",
"Opc",
"=",
"Mips",
"::",
"SDC1",
";",
"else",
"if",
"(",
"Mips",
"::",
"FGR64RegClass",
".",
"hasSubClassEq",
"(",
"RC",
")",
")",
"Opc",
"=",
"IsN64",
"?",
"Mips",
"::",
"SDC164_P8",
":",
"Mips",
"::",
"SDC164",
";",
"assert",
"(",
"Opc",
"&&",
"\"Register class not handled!\"",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"Opc",
")",
")",
".",
"addReg",
"(",
"SrcReg",
",",
"getKillRegState",
"(",
"isKill",
")",
")",
".",
"addFrameIndex",
"(",
"FI",
")",
".",
"addImm",
"(",
"0",
")",
".",
"addMemOperand",
"(",
"MMO",
")",
";",
"}",
"</s>"
] | [
"Store",
"the",
"specified",
"register",
"of",
"the",
"given",
"register",
"class",
"to",
"the",
"specified",
"stack",
"frame",
"index",
"."
] | [
"Mips",
"Mips",
"0",
"Mips::CPURegsRegClass",
"Mips::SW_P8",
"Mips::SW",
"Mips::CPU64RegsRegClass",
"Mips::SD_P8",
"Mips::SD",
"Mips::FGR32RegClass",
"Mips::SWC1_P8",
"Mips::SWC1",
"Mips::AFGR64RegClass",
"Mips::SDC1",
"Mips::FGR64RegClass",
"Mips::SDC164_P8",
"Mips::SDC164",
"\"Register class not handled!\"",
"0"
] | MipsInstrInfo20 | storeRegToStackSlot | Mips | CPU | LLVM | 25,935 | 236 | 1 | [] |
[
"<s>",
"virtual",
"const",
"DataLayout",
"*",
"getDataLayout",
"(",
")",
"const",
"{",
"return",
"&",
"DL",
";",
"}",
"</s>"
] | [
"Return",
"the",
"DataLayout",
"associated",
"with",
"the",
"module",
"this",
"SCEV",
"instance",
"is",
"operating",
"on",
"."
] | [
"MSP430"
] | MSP430TargetMachine14 | getDataLayout | MSP430 | MPU | LLVM | 25,936 | 14 | 1 | [] |
[
"<s>",
"unsigned",
"AArch64RegisterInfo",
"::",
"getRegPressureLimit",
"(",
"const",
"TargetRegisterClass",
"*",
"RC",
",",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"const",
"AArch64FrameLowering",
"*",
"TFI",
"=",
"getFrameLowering",
"(",
"MF",
")",
";",
"switch",
"(",
"RC",
"->",
"getID",
"(",
")",
")",
"{",
"default",
":",
"return",
"0",
";",
"case",
"AArch64",
"::",
"GPR32RegClassID",
":",
"case",
"AArch64",
"::",
"GPR32spRegClassID",
":",
"case",
"AArch64",
"::",
"GPR32allRegClassID",
":",
"case",
"AArch64",
"::",
"GPR64spRegClassID",
":",
"case",
"AArch64",
"::",
"GPR64allRegClassID",
":",
"case",
"AArch64",
"::",
"GPR64RegClassID",
":",
"case",
"AArch64",
"::",
"GPR32commonRegClassID",
":",
"case",
"AArch64",
"::",
"GPR64commonRegClassID",
":",
"return",
"32",
"-",
"1",
"-",
"(",
"TFI",
"->",
"hasFP",
"(",
"MF",
")",
"||",
"TT",
".",
"isOSDarwin",
"(",
")",
")",
"-",
"(",
"TT",
".",
"isOSDarwin",
"(",
")",
"||",
"ReserveX18",
")",
"-",
"hasBasePointer",
"(",
"MF",
")",
";",
"case",
"AArch64",
"::",
"FPR8RegClassID",
":",
"case",
"AArch64",
"::",
"FPR16RegClassID",
":",
"case",
"AArch64",
"::",
"FPR32RegClassID",
":",
"case",
"AArch64",
"::",
"FPR64RegClassID",
":",
"case",
"AArch64",
"::",
"FPR128RegClassID",
":",
"return",
"32",
";",
"case",
"AArch64",
"::",
"DDRegClassID",
":",
"case",
"AArch64",
"::",
"DDDRegClassID",
":",
"case",
"AArch64",
"::",
"DDDDRegClassID",
":",
"case",
"AArch64",
"::",
"QQRegClassID",
":",
"case",
"AArch64",
"::",
"QQQRegClassID",
":",
"case",
"AArch64",
"::",
"QQQQRegClassID",
":",
"return",
"32",
";",
"case",
"AArch64",
"::",
"FPR128_loRegClassID",
":",
"return",
"16",
";",
"}",
"}",
"</s>"
] | [
"Return",
"the",
"register",
"pressure",
"``",
"high",
"water",
"mark",
"''",
"for",
"the",
"specific",
"register",
"class",
"."
] | [
"AArch64",
"AArch64",
"AArch64",
"0",
"AArch64::GPR32RegClassID",
"AArch64::GPR32spRegClassID",
"AArch64::GPR32allRegClassID",
"AArch64::GPR64spRegClassID",
"AArch64::GPR64allRegClassID",
"AArch64::GPR64RegClassID",
"AArch64::GPR32commonRegClassID",
"AArch64::GPR64commonRegClassID",
"32",
"1",
"AArch64::FPR8RegClassID",
"AArch64::FPR16RegClassID",
"AArch64::FPR32RegClassID",
"AArch64::FPR64RegClassID",
"AArch64::FPR128RegClassID",
"32",
"AArch64::DDRegClassID",
"AArch64::DDDRegClassID",
"AArch64::DDDDRegClassID",
"AArch64::QQRegClassID",
"AArch64::QQQRegClassID",
"AArch64::QQQQRegClassID",
"32",
"AArch64::FPR128_loRegClassID",
"16"
] | AArch64RegisterInfo3 | getRegPressureLimit | AArch64 | CPU | LLVM | 25,937 | 186 | 1 | [] |
[
"<s>",
"bool",
"PPCInstrInfo",
"::",
"isAssociativeAndCommutative",
"(",
"const",
"MachineInstr",
"&",
"Inst",
")",
"const",
"{",
"switch",
"(",
"Inst",
".",
"getOpcode",
"(",
")",
")",
"{",
"case",
"PPC",
"::",
"FADD",
":",
"case",
"PPC",
"::",
"FADDS",
":",
"case",
"PPC",
"::",
"FMUL",
":",
"case",
"PPC",
"::",
"FMULS",
":",
"case",
"PPC",
"::",
"VADDFP",
":",
"case",
"PPC",
"::",
"XSADDDP",
":",
"case",
"PPC",
"::",
"XVADDDP",
":",
"case",
"PPC",
"::",
"XVADDSP",
":",
"case",
"PPC",
"::",
"XSADDSP",
":",
"case",
"PPC",
"::",
"XSMULDP",
":",
"case",
"PPC",
"::",
"XVMULDP",
":",
"case",
"PPC",
"::",
"XVMULSP",
":",
"case",
"PPC",
"::",
"XSMULSP",
":",
"case",
"PPC",
"::",
"QVFADD",
":",
"case",
"PPC",
"::",
"QVFADDS",
":",
"case",
"PPC",
"::",
"QVFADDSs",
":",
"case",
"PPC",
"::",
"QVFMUL",
":",
"case",
"PPC",
"::",
"QVFMULS",
":",
"case",
"PPC",
"::",
"QVFMULSs",
":",
"return",
"Inst",
".",
"getFlag",
"(",
"MachineInstr",
"::",
"MIFlag",
"::",
"FmReassoc",
")",
"&&",
"Inst",
".",
"getFlag",
"(",
"MachineInstr",
"::",
"MIFlag",
"::",
"FmNsz",
")",
";",
"case",
"PPC",
"::",
"MULHD",
":",
"case",
"PPC",
"::",
"MULLD",
":",
"case",
"PPC",
"::",
"MULHW",
":",
"case",
"PPC",
"::",
"MULLW",
":",
"return",
"true",
";",
"default",
":",
"return",
"false",
";",
"}",
"}",
"</s>"
] | [
"Return",
"true",
"when",
"\\P",
"Inst",
"is",
"both",
"associative",
"and",
"commutative",
"."
] | [
"PowerPC",
"PPC",
"PPC::FADD",
"PPC::FADDS",
"PPC::FMUL",
"PPC::FMULS",
"PPC::VADDFP",
"PPC::XSADDDP",
"PPC::XVADDDP",
"PPC::XVADDSP",
"PPC::XSADDSP",
"PPC::XSMULDP",
"PPC::XVMULDP",
"PPC::XVMULSP",
"PPC::XSMULSP",
"PPC::QVFADD",
"PPC::QVFADDS",
"PPC::QVFADDSs",
"PPC::QVFMUL",
"PPC::QVFMULS",
"PPC::QVFMULSs",
"PPC::MULHD",
"PPC::MULLD",
"PPC::MULHW",
"PPC::MULLW"
] | PPCInstrInfo128 | isAssociativeAndCommutative | PowerPC | CPU | LLVM | 25,938 | 169 | 1 | [] |
[
"<s>",
"unsigned",
"Mips16InstrInfo",
"::",
"getInlineAsmLength",
"(",
"const",
"char",
"*",
"Str",
",",
"const",
"MCAsmInfo",
"&",
"MAI",
")",
"const",
"{",
"bool",
"atInsnStart",
"=",
"true",
";",
"unsigned",
"Length",
"=",
"0",
";",
"for",
"(",
";",
"*",
"Str",
";",
"++",
"Str",
")",
"{",
"if",
"(",
"*",
"Str",
"==",
"'\\n'",
"||",
"strncmp",
"(",
"Str",
",",
"MAI",
".",
"getSeparatorString",
"(",
")",
",",
"strlen",
"(",
"MAI",
".",
"getSeparatorString",
"(",
")",
")",
")",
"==",
"0",
")",
"atInsnStart",
"=",
"true",
";",
"if",
"(",
"atInsnStart",
"&&",
"!",
"std",
"::",
"isspace",
"(",
"static_cast",
"<",
"unsigned",
"char",
">",
"(",
"*",
"Str",
")",
")",
")",
"{",
"if",
"(",
"strncmp",
"(",
"Str",
",",
"\".space\"",
",",
"6",
")",
"==",
"0",
")",
"{",
"char",
"*",
"EStr",
";",
"int",
"Sz",
";",
"Sz",
"=",
"strtol",
"(",
"Str",
"+",
"6",
",",
"&",
"EStr",
",",
"10",
")",
";",
"while",
"(",
"isspace",
"(",
"*",
"EStr",
")",
")",
"++",
"EStr",
";",
"if",
"(",
"*",
"EStr",
"==",
"'\\0'",
")",
"{",
"DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"parsed .space \"",
"<<",
"Sz",
"<<",
"'\\n'",
")",
";",
"return",
"Sz",
";",
"}",
"}",
"Length",
"+=",
"MAI",
".",
"getMaxInstLength",
"(",
")",
";",
"atInsnStart",
"=",
"false",
";",
"}",
"if",
"(",
"atInsnStart",
"&&",
"strncmp",
"(",
"Str",
",",
"MAI",
".",
"getCommentString",
"(",
")",
".",
"data",
"(",
")",
",",
"MAI",
".",
"getCommentString",
"(",
")",
".",
"size",
"(",
")",
")",
"==",
"0",
")",
"atInsnStart",
"=",
"false",
";",
"}",
"return",
"Length",
";",
"}",
"</s>"
] | [
"Measure",
"the",
"specified",
"inline",
"asm",
"to",
"determine",
"an",
"approximation",
"of",
"its",
"length",
"."
] | [
"Mips",
"Mips",
"0",
"0",
"\".space\"",
"6",
"0",
"6",
"10",
"\"parsed .space \"",
"0"
] | Mips16InstrInfo24 | getInlineAsmLength | Mips | CPU | LLVM | 25,939 | 216 | 1 | [] |
[
"<s>",
"void",
"SystemZHazardRecognizer",
"::",
"Reset",
"(",
")",
"{",
"CurrGroupSize",
"=",
"0",
";",
"clearProcResCounters",
"(",
")",
";",
"GrpCount",
"=",
"0",
";",
"LastFPdOpCycleIdx",
"=",
"UINT_MAX",
";",
"LastEmittedMI",
"=",
"nullptr",
";",
"DEBUG",
"(",
"CurGroupDbg",
"=",
"\"\"",
";",
")",
";",
"}",
"</s>"
] | [
"Reset",
"the",
"unwind",
"opcode",
"assembler",
"."
] | [
"SystemZ",
"SystemZ",
"0",
"0",
"\"\""
] | SystemZHazardRecognizer1 | Reset | SystemZ | CPU | LLVM | 25,940 | 36 | 1 | [] |
[
"<s>",
"static",
"void",
"aarch64_copy_one_block_and_progress_pointers",
"(",
"rtx",
"*",
"src",
",",
"rtx",
"*",
"dst",
",",
"machine_mode",
"mode",
")",
"{",
"rtx",
"reg",
"=",
"gen_reg_rtx",
"(",
"mode",
")",
";",
"*",
"src",
"=",
"adjust_address",
"(",
"*",
"src",
",",
"mode",
",",
"0",
")",
";",
"*",
"dst",
"=",
"adjust_address",
"(",
"*",
"dst",
",",
"mode",
",",
"0",
")",
";",
"emit_move_insn",
"(",
"reg",
",",
"*",
"src",
")",
";",
"emit_move_insn",
"(",
"*",
"dst",
",",
"reg",
")",
";",
"*",
"src",
"=",
"aarch64_progress_pointer",
"(",
"*",
"src",
")",
";",
"*",
"dst",
"=",
"aarch64_progress_pointer",
"(",
"*",
"dst",
")",
";",
"}",
"</s>"
] | [
"Copy",
"one",
"MODE",
"sized",
"block",
"from",
"SRC",
"to",
"DST",
",",
"then",
"progress",
"SRC",
"and",
"DST",
"by",
"MODE",
"bytes",
"."
] | [
"aarch64",
"0",
"0"
] | aarch64 | aarch64_copy_one_block_and_progress_pointers | aarch64 | CPU | GCC | 25,941 | 85 | 1 | [] |
[
"<s>",
"bool",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"F",
")",
"{",
"bool",
"Changed",
"=",
"false",
";",
"for",
"(",
"MachineFunction",
"::",
"iterator",
"FI",
"=",
"F",
".",
"begin",
"(",
")",
",",
"FE",
"=",
"F",
".",
"end",
"(",
")",
";",
"FI",
"!=",
"FE",
";",
"++",
"FI",
")",
"Changed",
"|=",
"runOnMachineBasicBlock",
"(",
"*",
"FI",
")",
";",
"return",
"Changed",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"Mips"
] | MipsDelaySlotFiller17 | runOnMachineFunction | Mips | CPU | LLVM | 25,942 | 53 | 1 | [] |
[
"<s>",
"X86TargetMachine",
"::",
"X86TargetMachine",
"(",
"const",
"Target",
"&",
"T",
",",
"const",
"Triple",
"&",
"TT",
",",
"StringRef",
"CPU",
",",
"StringRef",
"FS",
",",
"const",
"TargetOptions",
"&",
"Options",
",",
"Optional",
"<",
"Reloc",
"::",
"Model",
">",
"RM",
",",
"Optional",
"<",
"CodeModel",
"::",
"Model",
">",
"CM",
",",
"CodeGenOpt",
"::",
"Level",
"OL",
",",
"bool",
"JIT",
")",
":",
"LLVMTargetMachine",
"(",
"T",
",",
"computeDataLayout",
"(",
"TT",
")",
",",
"TT",
",",
"CPU",
",",
"FS",
",",
"Options",
",",
"getEffectiveRelocModel",
"(",
"TT",
",",
"JIT",
",",
"RM",
")",
",",
"getEffectiveX86CodeModel",
"(",
"CM",
",",
"JIT",
",",
"TT",
".",
"getArch",
"(",
")",
"==",
"Triple",
"::",
"x86_64",
")",
",",
"OL",
")",
",",
"TLOF",
"(",
"createTLOF",
"(",
"getTargetTriple",
"(",
")",
")",
")",
"{",
"if",
"(",
"(",
"TT",
".",
"isOSWindows",
"(",
")",
"&&",
"TT",
".",
"getArch",
"(",
")",
"==",
"Triple",
"::",
"x86_64",
")",
"||",
"TT",
".",
"isPS4",
"(",
")",
"||",
"TT",
".",
"isOSBinFormatMachO",
"(",
")",
")",
"{",
"this",
"->",
"Options",
".",
"TrapUnreachable",
"=",
"true",
";",
"this",
"->",
"Options",
".",
"NoTrapAfterNoreturn",
"=",
"TT",
".",
"isOSBinFormatMachO",
"(",
")",
";",
"}",
"if",
"(",
"TT",
".",
"getArch",
"(",
")",
"==",
"Triple",
"::",
"x86_64",
")",
"setMachineOutliner",
"(",
"true",
")",
";",
"initAsmInfo",
"(",
")",
";",
"}",
"</s>"
] | [
"Create",
"an",
"X86",
"target",
"."
] | [
"X86",
"X86",
"X86",
"X86"
] | X86TargetMachine105 | X86TargetMachine | X86 | CPU | LLVM | 25,943 | 182 | 1 | [] |
[
"<s>",
"static",
"bool",
"rs6000_assemble_integer",
"(",
"rtx",
"x",
",",
"unsigned",
"int",
"size",
",",
"int",
"aligned_p",
")",
"{",
"if",
"(",
"RELOCATABLE_NEEDS_FIXUP",
"&&",
"size",
"==",
"4",
"&&",
"aligned_p",
")",
"{",
"static",
"int",
"recurse",
"=",
"0",
";",
"if",
"(",
"DEFAULT_ABI",
"==",
"ABI_V4",
"&&",
"(",
"TARGET_RELOCATABLE",
"||",
"flag_pic",
">",
"1",
")",
"&&",
"in_section",
"!=",
"toc_section",
"&&",
"!",
"recurse",
"&&",
"!",
"CONST_SCALAR_INT_P",
"(",
"x",
")",
"&&",
"CONSTANT_P",
"(",
"x",
")",
")",
"{",
"char",
"buf",
"[",
"256",
"]",
";",
"recurse",
"=",
"1",
";",
"ASM_GENERATE_INTERNAL_LABEL",
"(",
"buf",
",",
"\"LCP\"",
",",
"fixuplabelno",
")",
";",
"fixuplabelno",
"++",
";",
"ASM_OUTPUT_LABEL",
"(",
"asm_out_file",
",",
"buf",
")",
";",
"fprintf",
"(",
"asm_out_file",
",",
"\"\\t.long\\t(\"",
")",
";",
"output_addr_const",
"(",
"asm_out_file",
",",
"x",
")",
";",
"fprintf",
"(",
"asm_out_file",
",",
"\")@fixup\\n\"",
")",
";",
"fprintf",
"(",
"asm_out_file",
",",
"\"\\t.section\\t\\\".fixup\\\",\\\"aw\\\"\\n\"",
")",
";",
"ASM_OUTPUT_ALIGN",
"(",
"asm_out_file",
",",
"2",
")",
";",
"fprintf",
"(",
"asm_out_file",
",",
"\"\\t.long\\t\"",
")",
";",
"assemble_name",
"(",
"asm_out_file",
",",
"buf",
")",
";",
"fprintf",
"(",
"asm_out_file",
",",
"\"\\n\\t.previous\\n\"",
")",
";",
"recurse",
"=",
"0",
";",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"GET_CODE",
"(",
"x",
")",
"==",
"SYMBOL_REF",
"&&",
"XSTR",
"(",
"x",
",",
"0",
")",
"[",
"0",
"]",
"==",
"'.'",
"&&",
"DEFAULT_ABI",
"==",
"ABI_AIX",
")",
"{",
"const",
"char",
"*",
"name",
"=",
"XSTR",
"(",
"x",
",",
"0",
")",
";",
"while",
"(",
"*",
"name",
"==",
"'.'",
")",
"name",
"++",
";",
"fprintf",
"(",
"asm_out_file",
",",
"\"\\t.long\\t%s\\n\"",
",",
"name",
")",
";",
"return",
"true",
";",
"}",
"}",
"return",
"default_assemble_integer",
"(",
"x",
",",
"size",
",",
"aligned_p",
")",
";",
"}",
"</s>"
] | [
"Target",
"hook",
"for",
"assembling",
"integer",
"objects",
".",
"The",
"powerpc",
"version",
"has",
"to",
"handle",
"fixup",
"entries",
"for",
"relocatable",
"code",
"if",
"RELOCATABLE_NEEDS_FIXUP",
"is",
"defined",
".",
"It",
"also",
"needs",
"to",
"handle",
"DI-mode",
"objects",
"on",
"64-bit",
"targets",
"."
] | [
"powerpcspe",
"4",
"0",
"1",
"256",
"1",
"\"LCP\"",
"\"\\t.long\\t(\"",
"\")@fixup\\n\"",
"\"\\t.section\\t\\\".fixup\\\",\\\"aw\\\"\\n\"",
"2",
"\"\\t.long\\t\"",
"\"\\n\\t.previous\\n\"",
"0",
"0",
"0",
"0",
"\"\\t.long\\t%s\\n\""
] | powerpcspe | rs6000_assemble_integer | powerpcspe | CPU | GCC | 25,944 | 232 | 1 | [] |
[
"<s>",
"EVT",
"AArch64TargetLowering",
"::",
"getSetCCResultType",
"(",
"EVT",
"VT",
")",
"const",
"{",
"if",
"(",
"!",
"VT",
".",
"isVector",
"(",
")",
")",
"return",
"MVT",
"::",
"i32",
";",
"return",
"VT",
".",
"changeVectorElementTypeToInteger",
"(",
")",
";",
"}",
"</s>"
] | [
"Return",
"the",
"value",
"type",
"to",
"use",
"for",
"ISD",
":",
":SETCC",
"."
] | [
"AArch64",
"AArch64",
"MVT::i32"
] | AArch64ISelLowering123 | getSetCCResultType | AArch64 | CPU | LLVM | 25,945 | 32 | 1 | [] |
[
"<s>",
"static",
"rtx_insn",
"*",
"csky_call_tls_get_addr",
"(",
"rtx",
"x",
",",
"rtx",
"reg",
",",
"rtx",
"*",
"valuep",
",",
"int",
"reloc",
")",
"{",
"rtx",
"label",
",",
"labelno",
",",
"unspec",
",",
"tmp",
";",
"rtx_insn",
"*",
"insns",
";",
"start_sequence",
"(",
")",
";",
"labelno",
"=",
"GEN_INT",
"(",
"tls_labelno",
"++",
")",
";",
"label",
"=",
"gen_rtx_UNSPEC",
"(",
"Pmode",
",",
"gen_rtvec",
"(",
"1",
",",
"labelno",
")",
",",
"UNSPEC_TLS_LABEL",
")",
";",
"unspec",
"=",
"gen_rtx_UNSPEC",
"(",
"Pmode",
",",
"gen_rtvec",
"(",
"3",
",",
"x",
",",
"GEN_INT",
"(",
"reloc",
")",
",",
"label",
")",
",",
"UNSPEC_TLS",
")",
";",
"tmp",
"=",
"gen_reg_rtx",
"(",
"SImode",
")",
";",
"emit_move_insn",
"(",
"reg",
",",
"unspec",
")",
";",
"emit_move_insn",
"(",
"tmp",
",",
"label",
")",
";",
"emit_insn",
"(",
"gen_addsi3",
"(",
"reg",
",",
"reg",
",",
"tmp",
")",
")",
";",
"*",
"valuep",
"=",
"emit_library_call_value",
"(",
"get_tls_get_addr",
"(",
")",
",",
"NULL_RTX",
",",
"LCT_PURE",
",",
"Pmode",
",",
"reg",
",",
"Pmode",
")",
";",
"insns",
"=",
"get_insns",
"(",
")",
";",
"end_sequence",
"(",
")",
";",
"return",
"insns",
";",
"}",
"</s>"
] | [
"Emit",
"a",
"call",
"to",
"__tls_get_addr",
"."
] | [
"csky",
"1",
"3"
] | csky | csky_call_tls_get_addr | csky | CPU | GCC | 25,946 | 150 | 1 | [] |
[
"<s>",
"bool",
"RISCVFrameLowering",
"::",
"canUseAsEpilogue",
"(",
"const",
"MachineBasicBlock",
"&",
"MBB",
")",
"const",
"{",
"const",
"MachineFunction",
"*",
"MF",
"=",
"MBB",
".",
"getParent",
"(",
")",
";",
"MachineBasicBlock",
"*",
"TmpMBB",
"=",
"const_cast",
"<",
"MachineBasicBlock",
"*",
">",
"(",
"&",
"MBB",
")",
";",
"const",
"auto",
"*",
"RVFI",
"=",
"MF",
"->",
"getInfo",
"<",
"RISCVMachineFunctionInfo",
">",
"(",
")",
";",
"if",
"(",
"!",
"RVFI",
"->",
"useSaveRestoreLibCalls",
"(",
"*",
"MF",
")",
")",
"return",
"true",
";",
"if",
"(",
"MBB",
".",
"succ_size",
"(",
")",
">",
"1",
")",
"return",
"false",
";",
"MachineBasicBlock",
"*",
"SuccMBB",
"=",
"MBB",
".",
"succ_empty",
"(",
")",
"?",
"TmpMBB",
"->",
"getFallThrough",
"(",
")",
":",
"*",
"MBB",
".",
"succ_begin",
"(",
")",
";",
"if",
"(",
"!",
"SuccMBB",
")",
"return",
"true",
";",
"return",
"SuccMBB",
"->",
"isReturnBlock",
"(",
")",
"&&",
"SuccMBB",
"->",
"size",
"(",
")",
"==",
"1",
";",
"}",
"</s>"
] | [
"Check",
"whether",
"or",
"not",
"the",
"given",
"MBB",
"can",
"be",
"used",
"as",
"a",
"epilogue",
"for",
"the",
"target",
"."
] | [
"RISCV",
"RISCV",
"RISCV",
"1",
"1"
] | RISCVFrameLowering (2) | canUseAsEpilogue | RISCV | CPU | LLVM | 25,947 | 125 | 1 | [] |
[
"<s>",
"bool",
"WebAssemblyMCLowerPrePass",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"********** MC Lower Pre Pass **********\\n\"",
"\"********** Function: \"",
"<<",
"MF",
".",
"getName",
"(",
")",
"<<",
"'\\n'",
")",
";",
"MachineModuleInfo",
"&",
"MMI",
"=",
"MF",
".",
"getMMI",
"(",
")",
";",
"MachineModuleInfoWasm",
"&",
"MMIW",
"=",
"MMI",
".",
"getObjFileInfo",
"<",
"MachineModuleInfoWasm",
">",
"(",
")",
";",
"for",
"(",
"MachineBasicBlock",
"&",
"MBB",
":",
"MF",
")",
"{",
"for",
"(",
"auto",
"&",
"MI",
":",
"MBB",
")",
"{",
"if",
"(",
"MI",
".",
"isDebugInstr",
"(",
")",
"||",
"MI",
".",
"isInlineAsm",
"(",
")",
")",
"continue",
";",
"for",
"(",
"MachineOperand",
"&",
"MO",
":",
"MI",
".",
"uses",
"(",
")",
")",
"{",
"if",
"(",
"MO",
".",
"isSymbol",
"(",
")",
")",
"{",
"MMIW",
".",
"MachineSymbolsUsed",
".",
"insert",
"(",
"MO",
".",
"getSymbolName",
"(",
")",
")",
";",
"}",
"}",
"}",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"WebAssembly",
"WebAssembly",
"\"********** MC Lower Pre Pass **********\\n\"",
"\"********** Function: \""
] | WebAssemblyMCLowerPrePass1 | runOnMachineFunction | WebAssembly | Virtual ISA | LLVM | 25,948 | 128 | 1 | [] |
[
"<s>",
"static",
"bool",
"s390_pragma_target_parse",
"(",
"tree",
"args",
",",
"tree",
"pop_target",
")",
"{",
"tree",
"prev_tree",
"=",
"build_target_option_node",
"(",
"&",
"global_options",
",",
"&",
"global_options_set",
")",
";",
"tree",
"cur_tree",
";",
"if",
"(",
"!",
"args",
")",
"cur_tree",
"=",
"pop_target",
";",
"else",
"{",
"cur_tree",
"=",
"s390_valid_target_attribute_tree",
"(",
"args",
",",
"&",
"global_options",
",",
"&",
"global_options_set",
",",
"true",
")",
";",
"if",
"(",
"!",
"cur_tree",
"||",
"cur_tree",
"==",
"error_mark_node",
")",
"{",
"cl_target_option_restore",
"(",
"&",
"global_options",
",",
"&",
"global_options_set",
",",
"TREE_TARGET_OPTION",
"(",
"prev_tree",
")",
")",
";",
"return",
"false",
";",
"}",
"}",
"target_option_current_node",
"=",
"cur_tree",
";",
"s390_activate_target_options",
"(",
"target_option_current_node",
")",
";",
"{",
"struct",
"cl_target_option",
"*",
"prev_opt",
";",
"struct",
"cl_target_option",
"*",
"cur_opt",
";",
"prev_opt",
"=",
"TREE_TARGET_OPTION",
"(",
"prev_tree",
")",
";",
"cur_opt",
"=",
"TREE_TARGET_OPTION",
"(",
"cur_tree",
")",
";",
"cpp_options",
"*",
"cpp_opts",
"=",
"cpp_get_options",
"(",
"parse_in",
")",
";",
"unsigned",
"char",
"saved_warn_unused_macros",
"=",
"cpp_opts",
"->",
"warn_unused_macros",
";",
"cpp_opts",
"->",
"warn_unused_macros",
"=",
"0",
";",
"cpp_force_token_locations",
"(",
"parse_in",
",",
"BUILTINS_LOCATION",
")",
";",
"s390_cpu_cpp_builtins_internal",
"(",
"parse_in",
",",
"cur_opt",
",",
"prev_opt",
")",
";",
"cpp_stop_forcing_token_locations",
"(",
"parse_in",
")",
";",
"cpp_opts",
"->",
"warn_unused_macros",
"=",
"saved_warn_unused_macros",
";",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"Hook",
"to",
"validate",
"the",
"current",
"#",
"pragma",
"GCC",
"target",
"and",
"set",
"the",
"state",
",",
"and",
"update",
"the",
"macros",
"based",
"on",
"what",
"was",
"changed",
".",
"If",
"ARGS",
"is",
"NULL",
",",
"then",
"POP_TARGET",
"is",
"used",
"to",
"reset",
"the",
"options",
"."
] | [
"s390",
"0"
] | s390-c | s390_pragma_target_parse | s390 | MPU | GCC | 25,949 | 170 | 1 | [] |
[
"<s>",
"static",
"tree",
"aarch64_get_attributes",
"(",
"aarch64_simd_builtin_datum",
"*",
"d",
")",
"{",
"tree",
"attrs",
"=",
"NULL_TREE",
";",
"if",
"(",
"!",
"aarch64_modifies_global_state_p",
"(",
"d",
")",
")",
"{",
"if",
"(",
"aarch64_reads_global_state_p",
"(",
"d",
")",
")",
"attrs",
"=",
"aarch64_add_attribute",
"(",
"\"pure\"",
",",
"attrs",
")",
";",
"else",
"attrs",
"=",
"aarch64_add_attribute",
"(",
"\"const\"",
",",
"attrs",
")",
";",
"}",
"if",
"(",
"!",
"flag_non_call_exceptions",
"||",
"!",
"aarch64_could_trap_p",
"(",
"d",
")",
")",
"attrs",
"=",
"aarch64_add_attribute",
"(",
"\"nothrow\"",
",",
"attrs",
")",
";",
"return",
"aarch64_add_attribute",
"(",
"\"leaf\"",
",",
"attrs",
")",
";",
"}",
"</s>"
] | [
"Return",
"the",
"appropriate",
"function",
"attributes",
"."
] | [
"aarch64",
"\"pure\"",
"\"const\"",
"\"nothrow\"",
"\"leaf\""
] | aarch64-builtins1 | aarch64_get_attributes | aarch64 | CPU | GCC | 25,950 | 79 | 1 | [] |
[
"<s>",
"bool",
"LanaiAsmPrinter",
"::",
"PrintAsmOperand",
"(",
"const",
"MachineInstr",
"*",
"MI",
",",
"unsigned",
"OpNo",
",",
"unsigned",
",",
"const",
"char",
"*",
"ExtraCode",
",",
"raw_ostream",
"&",
"O",
")",
"{",
"if",
"(",
"ExtraCode",
"&&",
"ExtraCode",
"[",
"0",
"]",
")",
"{",
"if",
"(",
"ExtraCode",
"[",
"1",
"]",
")",
"return",
"true",
";",
"switch",
"(",
"ExtraCode",
"[",
"0",
"]",
")",
"{",
"case",
"'H'",
":",
"{",
"if",
"(",
"OpNo",
"==",
"0",
")",
"return",
"true",
";",
"const",
"MachineOperand",
"&",
"FlagsOP",
"=",
"MI",
"->",
"getOperand",
"(",
"OpNo",
"-",
"1",
")",
";",
"if",
"(",
"!",
"FlagsOP",
".",
"isImm",
"(",
")",
")",
"return",
"true",
";",
"unsigned",
"Flags",
"=",
"FlagsOP",
".",
"getImm",
"(",
")",
";",
"unsigned",
"NumVals",
"=",
"InlineAsm",
"::",
"getNumOperandRegisters",
"(",
"Flags",
")",
";",
"if",
"(",
"NumVals",
"!=",
"2",
")",
"return",
"true",
";",
"unsigned",
"RegOp",
"=",
"OpNo",
"+",
"1",
";",
"if",
"(",
"RegOp",
">=",
"MI",
"->",
"getNumOperands",
"(",
")",
")",
"return",
"true",
";",
"const",
"MachineOperand",
"&",
"MO",
"=",
"MI",
"->",
"getOperand",
"(",
"RegOp",
")",
";",
"if",
"(",
"!",
"MO",
".",
"isReg",
"(",
")",
")",
"return",
"true",
";",
"unsigned",
"Reg",
"=",
"MO",
".",
"getReg",
"(",
")",
";",
"O",
"<<",
"LanaiInstPrinter",
"::",
"getRegisterName",
"(",
"Reg",
")",
";",
"return",
"false",
";",
"}",
"default",
":",
"return",
"true",
";",
"}",
"}",
"printOperand",
"(",
"MI",
",",
"OpNo",
",",
"O",
")",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"PrintAsmOperand",
"-",
"Print",
"out",
"an",
"operand",
"for",
"an",
"inline",
"asm",
"expression",
"."
] | [
"Lanai",
"Lanai",
"0",
"1",
"0",
"0",
"1",
"2",
"1",
"Lanai"
] | LanaiAsmPrinter13 | PrintAsmOperand | Lanai | CPU | LLVM | 25,951 | 206 | 1 | [] |
[
"<s>",
"void",
"GBZ80TargetLowering",
"::",
"ReplaceNodeResults",
"(",
"SDNode",
"*",
"N",
",",
"SmallVectorImpl",
"<",
"SDValue",
">",
"&",
"Results",
",",
"SelectionDAG",
"&",
"DAG",
")",
"const",
"{",
"SDLoc",
"DL",
"(",
"N",
")",
";",
"switch",
"(",
"N",
"->",
"getOpcode",
"(",
")",
")",
"{",
"case",
"ISD",
"::",
"ADD",
":",
"{",
"if",
"(",
"const",
"ConstantSDNode",
"*",
"C",
"=",
"dyn_cast",
"<",
"ConstantSDNode",
">",
"(",
"N",
"->",
"getOperand",
"(",
"1",
")",
")",
")",
"{",
"SDValue",
"Sub",
"=",
"DAG",
".",
"getNode",
"(",
"ISD",
"::",
"SUB",
",",
"DL",
",",
"N",
"->",
"getValueType",
"(",
"0",
")",
",",
"N",
"->",
"getOperand",
"(",
"0",
")",
",",
"DAG",
".",
"getConstant",
"(",
"-",
"C",
"->",
"getAPIntValue",
"(",
")",
",",
"DL",
",",
"C",
"->",
"getValueType",
"(",
"0",
")",
")",
")",
";",
"Results",
".",
"push_back",
"(",
"Sub",
")",
";",
"}",
"break",
";",
"}",
"default",
":",
"{",
"SDValue",
"Res",
"=",
"LowerOperation",
"(",
"SDValue",
"(",
"N",
",",
"0",
")",
",",
"DAG",
")",
";",
"for",
"(",
"unsigned",
"I",
"=",
"0",
",",
"E",
"=",
"Res",
"->",
"getNumValues",
"(",
")",
";",
"I",
"!=",
"E",
";",
"++",
"I",
")",
"Results",
".",
"push_back",
"(",
"Res",
".",
"getValue",
"(",
"I",
")",
")",
";",
"break",
";",
"}",
"}",
"}",
"</s>"
] | [
"ReplaceNodeResults",
"-",
"Replace",
"the",
"results",
"of",
"node",
"with",
"an",
"illegal",
"result",
"type",
"with",
"new",
"values",
"built",
"out",
"of",
"custom",
"code",
"."
] | [
"GBZ80",
"GB",
"ISD::ADD",
"1",
"ISD::SUB",
"0",
"0",
"0",
"0",
"0"
] | GBZ80ISelLowering | ReplaceNodeResults | GBZ80 | MPU | LLVM | 25,952 | 181 | 1 | [] |
[
"<s>",
"static",
"bool",
"csky_class_likely_spilled_p",
"(",
"reg_class_t",
"rclass",
")",
"{",
"if",
"(",
"(",
"TARGET_MINI_REGISTERS",
"&&",
"rclass",
"==",
"MINI_REGS",
")",
"||",
"rclass",
"==",
"C_REGS",
")",
"return",
"true",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_CLASS_LIKELY_SPILLED_P",
".",
"We",
"need",
"to",
"define",
"this",
"for",
"MINI_REGS",
"when",
"we",
"only",
"use",
"r0",
"-",
"r7",
".",
"Otherwise",
"we",
"can",
"end",
"up",
"using",
"r0-r4",
"for",
"function",
"arguments",
",",
"and",
"do",
"n't",
"have",
"enough",
"left",
"over",
"to",
"do",
"doubleword",
"arithmetic",
"."
] | [
"csky"
] | csky | csky_class_likely_spilled_p | csky | CPU | GCC | 25,953 | 29 | 1 | [] |
[
"<s>",
"bool",
"reg_unused_after",
"(",
"rtx",
"reg",
",",
"rtx_insn",
"*",
"insn",
")",
"{",
"rtx",
"set",
"=",
"single_set",
"(",
"insn",
")",
";",
"if",
"(",
"set",
"&&",
"!",
"MEM_P",
"(",
"SET_DEST",
"(",
"set",
")",
")",
"&&",
"reg_overlap_mentioned_p",
"(",
"reg",
",",
"SET_DEST",
"(",
"set",
")",
")",
")",
"return",
"true",
";",
"while",
"(",
"(",
"insn",
"=",
"NEXT_INSN",
"(",
"insn",
")",
")",
")",
"{",
"if",
"(",
"!",
"INSN_P",
"(",
"insn",
")",
")",
"continue",
";",
"rtx_code",
"code",
"=",
"GET_CODE",
"(",
"insn",
")",
";",
"if",
"(",
"code",
"==",
"CODE_LABEL",
")",
"return",
"1",
";",
"if",
"(",
"code",
"==",
"JUMP_INSN",
")",
"return",
"false",
";",
"else",
"if",
"(",
"code",
"==",
"INSN",
"&&",
"GET_CODE",
"(",
"PATTERN",
"(",
"insn",
")",
")",
"==",
"SEQUENCE",
")",
"{",
"rtx_sequence",
"*",
"seq",
"=",
"as_a",
"<",
"rtx_sequence",
"*",
">",
"(",
"PATTERN",
"(",
"insn",
")",
")",
";",
"bool",
"retval",
"=",
"false",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"seq",
"->",
"len",
"(",
")",
";",
"i",
"++",
")",
"{",
"rtx_insn",
"*",
"this_insn",
"=",
"seq",
"->",
"insn",
"(",
"i",
")",
";",
"rtx",
"set",
"=",
"single_set",
"(",
"this_insn",
")",
";",
"if",
"(",
"CALL_P",
"(",
"this_insn",
")",
")",
"code",
"=",
"CALL_INSN",
";",
"else",
"if",
"(",
"JUMP_P",
"(",
"this_insn",
")",
")",
"{",
"if",
"(",
"INSN_ANNULLED_BRANCH_P",
"(",
"this_insn",
")",
")",
"return",
"false",
";",
"code",
"=",
"JUMP_INSN",
";",
"}",
"if",
"(",
"set",
"&&",
"reg_overlap_mentioned_p",
"(",
"reg",
",",
"SET_SRC",
"(",
"set",
")",
")",
")",
"return",
"false",
";",
"if",
"(",
"set",
"&&",
"reg_overlap_mentioned_p",
"(",
"reg",
",",
"SET_DEST",
"(",
"set",
")",
")",
")",
"{",
"if",
"(",
"!",
"MEM_P",
"(",
"SET_DEST",
"(",
"set",
")",
")",
")",
"retval",
"=",
"true",
";",
"else",
"return",
"false",
";",
"}",
"if",
"(",
"set",
"==",
"NULL_RTX",
"&&",
"reg_overlap_mentioned_p",
"(",
"reg",
",",
"PATTERN",
"(",
"this_insn",
")",
")",
")",
"return",
"false",
";",
"}",
"if",
"(",
"retval",
")",
"return",
"true",
";",
"else",
"if",
"(",
"code",
"==",
"JUMP_INSN",
")",
"return",
"false",
";",
"}",
"rtx",
"set",
"=",
"single_set",
"(",
"insn",
")",
";",
"if",
"(",
"set",
"&&",
"reg_overlap_mentioned_p",
"(",
"reg",
",",
"SET_SRC",
"(",
"set",
")",
")",
")",
"return",
"false",
";",
"if",
"(",
"set",
"&&",
"reg_overlap_mentioned_p",
"(",
"reg",
",",
"SET_DEST",
"(",
"set",
")",
")",
")",
"return",
"!",
"MEM_P",
"(",
"SET_DEST",
"(",
"set",
")",
")",
";",
"if",
"(",
"set",
"==",
"NULL",
"&&",
"reg_overlap_mentioned_p",
"(",
"reg",
",",
"PATTERN",
"(",
"insn",
")",
")",
")",
"return",
"false",
";",
"if",
"(",
"code",
"==",
"CALL_INSN",
"&&",
"call_really_used_regs",
"[",
"REGNO",
"(",
"reg",
")",
"]",
")",
"return",
"true",
";",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"Return",
"nonzero",
"if",
"REG",
"is",
"not",
"used",
"after",
"INSN",
".",
"We",
"assume",
"REG",
"is",
"a",
"reload",
"reg",
",",
"and",
"therefore",
"does",
"not",
"live",
"past",
"labels",
"or",
"calls",
"or",
"jumps",
"."
] | [
"sh",
"1",
"0"
] | sh6 | reg_unused_after | sh | CPU | GCC | 25,954 | 385 | 1 | [] |
[
"<s>",
"SDValue",
"NVPTXTargetLowering",
"::",
"LowerReturn",
"(",
"SDValue",
"Chain",
",",
"CallingConv",
"::",
"ID",
"CallConv",
",",
"bool",
"isVarArg",
",",
"const",
"SmallVectorImpl",
"<",
"ISD",
"::",
"OutputArg",
">",
"&",
"Outs",
",",
"const",
"SmallVectorImpl",
"<",
"SDValue",
">",
"&",
"OutVals",
",",
"SDLoc",
"dl",
",",
"SelectionDAG",
"&",
"DAG",
")",
"const",
"{",
"bool",
"isABI",
"=",
"(",
"nvptxSubtarget",
".",
"getSmVersion",
"(",
")",
">=",
"20",
")",
";",
"unsigned",
"sizesofar",
"=",
"0",
";",
"unsigned",
"idx",
"=",
"0",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
",",
"e",
"=",
"Outs",
".",
"size",
"(",
")",
";",
"i",
"!=",
"e",
";",
"++",
"i",
")",
"{",
"SDValue",
"theVal",
"=",
"OutVals",
"[",
"i",
"]",
";",
"EVT",
"theValType",
"=",
"theVal",
".",
"getValueType",
"(",
")",
";",
"unsigned",
"numElems",
"=",
"1",
";",
"if",
"(",
"theValType",
".",
"isVector",
"(",
")",
")",
"numElems",
"=",
"theValType",
".",
"getVectorNumElements",
"(",
")",
";",
"for",
"(",
"unsigned",
"j",
"=",
"0",
",",
"je",
"=",
"numElems",
";",
"j",
"!=",
"je",
";",
"++",
"j",
")",
"{",
"SDValue",
"tmpval",
"=",
"theVal",
";",
"if",
"(",
"theValType",
".",
"isVector",
"(",
")",
")",
"tmpval",
"=",
"DAG",
".",
"getNode",
"(",
"ISD",
"::",
"EXTRACT_VECTOR_ELT",
",",
"dl",
",",
"theValType",
".",
"getVectorElementType",
"(",
")",
",",
"tmpval",
",",
"DAG",
".",
"getIntPtrConstant",
"(",
"j",
")",
")",
";",
"Chain",
"=",
"DAG",
".",
"getNode",
"(",
"isABI",
"?",
"NVPTXISD",
"::",
"StoreRetval",
":",
"NVPTXISD",
"::",
"MoveToRetval",
",",
"dl",
",",
"MVT",
"::",
"Other",
",",
"Chain",
",",
"DAG",
".",
"getConstant",
"(",
"isABI",
"?",
"sizesofar",
":",
"idx",
",",
"MVT",
"::",
"i32",
")",
",",
"tmpval",
")",
";",
"if",
"(",
"theValType",
".",
"isVector",
"(",
")",
")",
"sizesofar",
"+=",
"theValType",
".",
"getVectorElementType",
"(",
")",
".",
"getStoreSizeInBits",
"(",
")",
"/",
"8",
";",
"else",
"sizesofar",
"+=",
"theValType",
".",
"getStoreSizeInBits",
"(",
")",
"/",
"8",
";",
"++",
"idx",
";",
"}",
"}",
"return",
"DAG",
".",
"getNode",
"(",
"NVPTXISD",
"::",
"RET_FLAG",
",",
"dl",
",",
"MVT",
"::",
"Other",
",",
"Chain",
")",
";",
"}",
"</s>"
] | [
"This",
"hook",
"must",
"be",
"implemented",
"to",
"lower",
"outgoing",
"return",
"values",
",",
"described",
"by",
"the",
"Outs",
"array",
",",
"into",
"the",
"specified",
"DAG",
"."
] | [
"NVPTX",
"NVPTX",
"ISD::OutputArg",
"20",
"0",
"0",
"0",
"1",
"0",
"ISD::EXTRACT_VECTOR_ELT",
"NVPTXISD::StoreRetval",
"NVPTXISD::MoveToRetval",
"MVT::Other",
"MVT::i32",
"8",
"8",
"NVPTXISD::RET_FLAG",
"MVT::Other"
] | NVPTXISelLowering4 | LowerReturn | NVPTX | GPU | LLVM | 25,955 | 286 | 1 | [] |
[
"<s>",
"static",
"void",
"arm_output_dwarf_dtprel",
"(",
"FILE",
"*",
"file",
",",
"int",
"size",
",",
"rtx",
"x",
")",
"{",
"gcc_assert",
"(",
"size",
"==",
"4",
")",
";",
"fputs",
"(",
"\"\\t.word\\t\"",
",",
"file",
")",
";",
"output_addr_const",
"(",
"file",
",",
"x",
")",
";",
"fputs",
"(",
"\"(tlsldo)\"",
",",
"file",
")",
";",
"}",
"</s>"
] | [
"ARM",
"implementation",
"of",
"TARGET_ASM_OUTPUT_DWARF_DTPREL",
"."
] | [
"arm",
"4",
"\"\\t.word\\t\"",
"\"(tlsldo)\""
] | arm | arm_output_dwarf_dtprel | arm | CPU | GCC | 25,956 | 44 | 1 | [] |
[
"<s>",
"inline",
"static",
"bool",
"isMem",
"(",
"const",
"MachineInstr",
"*",
"MI",
",",
"unsigned",
"Op",
")",
"{",
"if",
"(",
"MI",
"->",
"getOperand",
"(",
"Op",
")",
".",
"isFI",
"(",
")",
")",
"return",
"true",
";",
"return",
"Op",
"+",
"X86",
"::",
"AddrNumOperands",
"<=",
"MI",
"->",
"getNumOperands",
"(",
")",
"&&",
"MI",
"->",
"getOperand",
"(",
"Op",
"+",
"X86",
"::",
"AddrSegmentReg",
")",
".",
"isReg",
"(",
")",
"&&",
"isLeaMem",
"(",
"MI",
",",
"Op",
")",
";",
"}",
"</s>"
] | [
"isMem",
"-",
"Is",
"this",
"a",
"memory",
"operand",
"?"
] | [
"X86",
"X86::AddrNumOperands",
"X86::AddrSegmentReg"
] | X86InstrInfo (2) | isMem | X86 | CPU | LLVM | 25,957 | 66 | 1 | [] |
[
"<s>",
"static",
"void",
"add_sched_insns_for_speculation",
"(",
"void",
")",
"{",
"rtx_insn",
"*",
"insn",
";",
"if",
"(",
"!",
"ENABLE_WA_SPECULATIVE_LOADS",
"&&",
"!",
"ENABLE_WA_SPECULATIVE_SYNCS",
"&&",
"!",
"ENABLE_WA_INDIRECT_CALLS",
")",
"return",
";",
"for",
"(",
"insn",
"=",
"get_insns",
"(",
")",
";",
"insn",
";",
"insn",
"=",
"NEXT_INSN",
"(",
"insn",
")",
")",
"{",
"rtx",
"pat",
";",
"if",
"(",
"NOTE_P",
"(",
"insn",
")",
"||",
"BARRIER_P",
"(",
"insn",
")",
"||",
"LABEL_P",
"(",
"insn",
")",
")",
"continue",
";",
"if",
"(",
"JUMP_TABLE_DATA_P",
"(",
"insn",
")",
")",
"continue",
";",
"pat",
"=",
"PATTERN",
"(",
"insn",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"pat",
")",
"==",
"USE",
"||",
"GET_CODE",
"(",
"pat",
")",
"==",
"CLOBBER",
"||",
"GET_CODE",
"(",
"pat",
")",
"==",
"ASM_INPUT",
"||",
"asm_noperands",
"(",
"pat",
")",
">=",
"0",
")",
"continue",
";",
"if",
"(",
"JUMP_P",
"(",
"insn",
")",
")",
"{",
"if",
"(",
"any_condjump_p",
"(",
"insn",
")",
"&&",
"!",
"cbranch_predicted_taken_p",
"(",
"insn",
")",
")",
"{",
"rtx",
"n",
"=",
"next_real_insn",
"(",
"insn",
")",
";",
"emit_insn_before",
"(",
"gen_stall",
"(",
"GEN_INT",
"(",
"3",
")",
")",
",",
"n",
")",
";",
"}",
"}",
"}",
"for",
"(",
"insn",
"=",
"get_insns",
"(",
")",
";",
"insn",
";",
"insn",
"=",
"NEXT_INSN",
"(",
"insn",
")",
")",
"{",
"if",
"(",
"JUMP_P",
"(",
"insn",
")",
"&&",
"any_condjump_p",
"(",
"insn",
")",
"&&",
"(",
"cbranch_predicted_taken_p",
"(",
"insn",
")",
")",
")",
"{",
"rtx",
"target",
"=",
"JUMP_LABEL",
"(",
"insn",
")",
";",
"rtx_insn",
"*",
"next",
"=",
"next_real_insn",
"(",
"target",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"PATTERN",
"(",
"next",
")",
")",
"==",
"UNSPEC_VOLATILE",
"&&",
"get_attr_type",
"(",
"next",
")",
"==",
"TYPE_STALL",
")",
"continue",
";",
"emit_insn_before",
"(",
"gen_stall",
"(",
"GEN_INT",
"(",
"1",
")",
")",
",",
"next",
")",
";",
"}",
"}",
"}",
"</s>"
] | [
"Called",
"just",
"before",
"the",
"final",
"scheduling",
"pass",
".",
"If",
"we",
"need",
"to",
"insert",
"NOPs",
"later",
"on",
"to",
"work",
"around",
"speculative",
"loads",
",",
"insert",
"special",
"placeholder",
"insns",
"that",
"cause",
"loads",
"to",
"be",
"delayed",
"for",
"as",
"many",
"cycles",
"as",
"necessary",
"(",
"and",
"possible",
")",
".",
"This",
"reduces",
"the",
"number",
"of",
"NOPs",
"we",
"need",
"to",
"add",
".",
"The",
"dummy",
"insns",
"we",
"generate",
"are",
"later",
"removed",
"by",
"bfin_gen_bundles",
"."
] | [
"bfin",
"0",
"3",
"1"
] | bfin3 | add_sched_insns_for_speculation | bfin | DSP | GCC | 25,958 | 250 | 1 | [] |
[
"<s>",
"const",
"uint32_t",
"*",
"X86RegisterInfo",
"::",
"getCallPreservedMask",
"(",
"CallingConv",
"::",
"ID",
"CC",
")",
"const",
"{",
"bool",
"HasAVX",
"=",
"TM",
".",
"getSubtarget",
"<",
"X86Subtarget",
">",
"(",
")",
".",
"hasAVX",
"(",
")",
";",
"bool",
"HasAVX512",
"=",
"TM",
".",
"getSubtarget",
"<",
"X86Subtarget",
">",
"(",
")",
".",
"hasAVX512",
"(",
")",
";",
"switch",
"(",
"CC",
")",
"{",
"case",
"CallingConv",
"::",
"GHC",
":",
"case",
"CallingConv",
"::",
"HiPE",
":",
"return",
"CSR_NoRegs_RegMask",
";",
"case",
"CallingConv",
"::",
"AnyReg",
":",
"if",
"(",
"HasAVX",
")",
"return",
"CSR_64_AllRegs_AVX_RegMask",
";",
"return",
"CSR_64_AllRegs_RegMask",
";",
"case",
"CallingConv",
"::",
"PreserveMost",
":",
"return",
"CSR_64_RT_MostRegs_RegMask",
";",
"case",
"CallingConv",
"::",
"PreserveAll",
":",
"if",
"(",
"HasAVX",
")",
"return",
"CSR_64_RT_AllRegs_AVX_RegMask",
";",
"return",
"CSR_64_RT_AllRegs_RegMask",
";",
"case",
"CallingConv",
"::",
"Intel_OCL_BI",
":",
"{",
"if",
"(",
"HasAVX512",
"&&",
"IsWin64",
")",
"return",
"CSR_Win64_Intel_OCL_BI_AVX512_RegMask",
";",
"if",
"(",
"HasAVX512",
"&&",
"Is64Bit",
")",
"return",
"CSR_64_Intel_OCL_BI_AVX512_RegMask",
";",
"if",
"(",
"HasAVX",
"&&",
"IsWin64",
")",
"return",
"CSR_Win64_Intel_OCL_BI_AVX_RegMask",
";",
"if",
"(",
"HasAVX",
"&&",
"Is64Bit",
")",
"return",
"CSR_64_Intel_OCL_BI_AVX_RegMask",
";",
"if",
"(",
"!",
"HasAVX",
"&&",
"!",
"IsWin64",
"&&",
"Is64Bit",
")",
"return",
"CSR_64_Intel_OCL_BI_RegMask",
";",
"break",
";",
"}",
"case",
"CallingConv",
"::",
"Cold",
":",
"if",
"(",
"Is64Bit",
")",
"return",
"CSR_64_MostRegs_RegMask",
";",
"break",
";",
"default",
":",
"break",
";",
"}",
"if",
"(",
"Is64Bit",
")",
"{",
"if",
"(",
"IsWin64",
")",
"return",
"CSR_Win64_RegMask",
";",
"return",
"CSR_64_RegMask",
";",
"}",
"return",
"CSR_32_RegMask",
";",
"}",
"</s>"
] | [
"Return",
"a",
"mask",
"of",
"call-preserved",
"registers",
"for",
"the",
"given",
"calling",
"convention",
"on",
"the",
"current",
"function",
"."
] | [
"X86",
"X86",
"X86",
"X86"
] | X86RegisterInfo35 | getCallPreservedMask | X86 | CPU | LLVM | 25,959 | 199 | 1 | [] |
[
"<s>",
"bool",
"X86RegisterInfo",
"::",
"hasFP",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"const",
"MachineFrameInfo",
"*",
"MFI",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
";",
"const",
"MachineModuleInfo",
"&",
"MMI",
"=",
"MF",
".",
"getMMI",
"(",
")",
";",
"return",
"(",
"NoFramePointerElim",
"||",
"needsStackRealignment",
"(",
"MF",
")",
"||",
"MFI",
"->",
"hasVarSizedObjects",
"(",
")",
"||",
"MFI",
"->",
"isFrameAddressTaken",
"(",
")",
"||",
"MF",
".",
"getInfo",
"<",
"X86MachineFunctionInfo",
">",
"(",
")",
"->",
"getForceFramePointer",
"(",
")",
"||",
"MMI",
".",
"callsUnwindInit",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"hasFP",
"-",
"Return",
"true",
"if",
"the",
"specified",
"function",
"should",
"have",
"a",
"dedicated",
"frame",
"pointer",
"register",
"."
] | [
"X86",
"X86",
"X86"
] | X86RegisterInfo11 | hasFP | X86 | CPU | LLVM | 25,960 | 76 | 1 | [] |
[
"<s>",
"bool",
"MCS51TargetLowering",
"::",
"getPostIndexedAddressParts",
"(",
"SDNode",
"*",
"N",
",",
"SDNode",
"*",
"Op",
",",
"SDValue",
"&",
"Base",
",",
"SDValue",
"&",
"Offset",
",",
"ISD",
"::",
"MemIndexedMode",
"&",
"AM",
",",
"SelectionDAG",
"&",
"DAG",
")",
"const",
"{",
"EVT",
"VT",
";",
"SDLoc",
"DL",
"(",
"N",
")",
";",
"if",
"(",
"const",
"LoadSDNode",
"*",
"LD",
"=",
"dyn_cast",
"<",
"LoadSDNode",
">",
"(",
"N",
")",
")",
"{",
"VT",
"=",
"LD",
"->",
"getMemoryVT",
"(",
")",
";",
"if",
"(",
"LD",
"->",
"getExtensionType",
"(",
")",
"!=",
"ISD",
"::",
"NON_EXTLOAD",
")",
"return",
"false",
";",
"}",
"else",
"if",
"(",
"const",
"StoreSDNode",
"*",
"ST",
"=",
"dyn_cast",
"<",
"StoreSDNode",
">",
"(",
"N",
")",
")",
"{",
"VT",
"=",
"ST",
"->",
"getMemoryVT",
"(",
")",
";",
"if",
"(",
"MCS51",
"::",
"isProgramMemoryAccess",
"(",
"ST",
")",
")",
"{",
"return",
"false",
";",
"}",
"}",
"else",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"VT",
"!=",
"MVT",
"::",
"i8",
"&&",
"VT",
"!=",
"MVT",
"::",
"i16",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"Op",
"->",
"getOpcode",
"(",
")",
"!=",
"ISD",
"::",
"ADD",
"&&",
"Op",
"->",
"getOpcode",
"(",
")",
"!=",
"ISD",
"::",
"SUB",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"const",
"ConstantSDNode",
"*",
"RHS",
"=",
"dyn_cast",
"<",
"ConstantSDNode",
">",
"(",
"Op",
"->",
"getOperand",
"(",
"1",
")",
")",
")",
"{",
"int",
"RHSC",
"=",
"RHS",
"->",
"getSExtValue",
"(",
")",
";",
"if",
"(",
"Op",
"->",
"getOpcode",
"(",
")",
"==",
"ISD",
"::",
"SUB",
")",
"RHSC",
"=",
"-",
"RHSC",
";",
"if",
"(",
"(",
"VT",
"==",
"MVT",
"::",
"i16",
"&&",
"RHSC",
"!=",
"2",
")",
"||",
"(",
"VT",
"==",
"MVT",
"::",
"i8",
"&&",
"RHSC",
"!=",
"1",
")",
")",
"{",
"return",
"false",
";",
"}",
"Base",
"=",
"Op",
"->",
"getOperand",
"(",
"0",
")",
";",
"Offset",
"=",
"DAG",
".",
"getConstant",
"(",
"RHSC",
",",
"DL",
",",
"MVT",
"::",
"i8",
")",
";",
"AM",
"=",
"ISD",
"::",
"POST_INC",
";",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"by",
"value",
",",
"base",
"pointer",
"and",
"offset",
"pointer",
"and",
"addressing",
"mode",
"by",
"reference",
"if",
"this",
"node",
"can",
"be",
"combined",
"with",
"a",
"load",
"/",
"store",
"to",
"form",
"a",
"post-indexed",
"load",
"/",
"store",
"."
] | [
"MCS51",
"MCS51",
"ISD::MemIndexedMode",
"ISD::NON_EXTLOAD",
"MCS51::isProgramMemoryAccess",
"MVT::i8",
"MVT::i16",
"ISD::ADD",
"ISD::SUB",
"1",
"ISD::SUB",
"MVT::i16",
"2",
"MVT::i8",
"1",
"0",
"MVT::i8",
"ISD::POST_INC"
] | MCS51ISelLowering | getPostIndexedAddressParts | MCS51 | MPU | LLVM | 25,961 | 290 | 1 | [] |
[
"<s>",
"bool",
"HexagonAsmParser",
"::",
"isLabel",
"(",
"AsmToken",
"&",
"Token",
")",
"{",
"MCAsmLexer",
"&",
"Lexer",
"=",
"getLexer",
"(",
")",
";",
"AsmToken",
"const",
"&",
"Second",
"=",
"Lexer",
".",
"getTok",
"(",
")",
";",
"AsmToken",
"Third",
"=",
"Lexer",
".",
"peekTok",
"(",
")",
";",
"StringRef",
"String",
"=",
"Token",
".",
"getString",
"(",
")",
";",
"if",
"(",
"Token",
".",
"is",
"(",
"AsmToken",
"::",
"TokenKind",
"::",
"LCurly",
")",
"||",
"Token",
".",
"is",
"(",
"AsmToken",
"::",
"TokenKind",
"::",
"RCurly",
")",
")",
"return",
"false",
";",
"if",
"(",
"String",
".",
"lower",
"(",
")",
"==",
"\"vwhist256\"",
"&&",
"Second",
".",
"is",
"(",
"AsmToken",
"::",
"Colon",
")",
"&&",
"Third",
".",
"getString",
"(",
")",
".",
"lower",
"(",
")",
"==",
"\"sat\"",
")",
"return",
"false",
";",
"if",
"(",
"!",
"Token",
".",
"is",
"(",
"AsmToken",
"::",
"TokenKind",
"::",
"Identifier",
")",
")",
"return",
"true",
";",
"if",
"(",
"!",
"matchRegister",
"(",
"String",
".",
"lower",
"(",
")",
")",
")",
"return",
"true",
";",
"assert",
"(",
"Second",
".",
"is",
"(",
"AsmToken",
"::",
"Colon",
")",
")",
";",
"StringRef",
"Raw",
"(",
"String",
".",
"data",
"(",
")",
",",
"Third",
".",
"getString",
"(",
")",
".",
"data",
"(",
")",
"-",
"String",
".",
"data",
"(",
")",
"+",
"Third",
".",
"getString",
"(",
")",
".",
"size",
"(",
")",
")",
";",
"std",
"::",
"string",
"Collapsed",
"=",
"Raw",
";",
"Collapsed",
".",
"erase",
"(",
"llvm",
"::",
"remove_if",
"(",
"Collapsed",
",",
"isspace",
")",
",",
"Collapsed",
".",
"end",
"(",
")",
")",
";",
"StringRef",
"Whole",
"=",
"Collapsed",
";",
"std",
"::",
"pair",
"<",
"StringRef",
",",
"StringRef",
">",
"DotSplit",
"=",
"Whole",
".",
"split",
"(",
"'.'",
")",
";",
"if",
"(",
"!",
"matchRegister",
"(",
"DotSplit",
".",
"first",
".",
"lower",
"(",
")",
")",
")",
"return",
"true",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"the",
"MachineInstr",
"represents",
"a",
"label",
"."
] | [
"Hexagon",
"Hexagon",
"\"vwhist256\"",
"\"sat\""
] | HexagonAsmParser | isLabel | Hexagon | DSP | LLVM | 25,962 | 258 | 1 | [] |
[
"<s>",
"static",
"rtx",
"mips_legitimize_tls_address",
"(",
"rtx",
"loc",
")",
"{",
"rtx",
"dest",
",",
"v0",
",",
"tp",
",",
"tmp1",
",",
"tmp2",
",",
"eqv",
",",
"offset",
";",
"enum",
"tls_model",
"model",
";",
"model",
"=",
"SYMBOL_REF_TLS_MODEL",
"(",
"loc",
")",
";",
"if",
"(",
"!",
"TARGET_ABICALLS",
")",
"model",
"=",
"TLS_MODEL_LOCAL_EXEC",
";",
"switch",
"(",
"model",
")",
"{",
"case",
"TLS_MODEL_GLOBAL_DYNAMIC",
":",
"{",
"v0",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"GP_RETURN",
")",
";",
"rtx_insn",
"*",
"insn",
"=",
"mips_call_tls_get_addr",
"(",
"loc",
",",
"SYMBOL_TLSGD",
",",
"v0",
")",
";",
"dest",
"=",
"gen_reg_rtx",
"(",
"Pmode",
")",
";",
"emit_libcall_block",
"(",
"insn",
",",
"dest",
",",
"v0",
",",
"loc",
")",
";",
"break",
";",
"}",
"case",
"TLS_MODEL_LOCAL_DYNAMIC",
":",
"{",
"v0",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"GP_RETURN",
")",
";",
"rtx_insn",
"*",
"insn",
"=",
"mips_call_tls_get_addr",
"(",
"loc",
",",
"SYMBOL_TLSLDM",
",",
"v0",
")",
";",
"tmp1",
"=",
"gen_reg_rtx",
"(",
"Pmode",
")",
";",
"eqv",
"=",
"gen_rtx_UNSPEC",
"(",
"Pmode",
",",
"gen_rtvec",
"(",
"1",
",",
"const0_rtx",
")",
",",
"UNSPEC_TLS_LDM",
")",
";",
"emit_libcall_block",
"(",
"insn",
",",
"tmp1",
",",
"v0",
",",
"eqv",
")",
";",
"offset",
"=",
"mips_unspec_address",
"(",
"loc",
",",
"SYMBOL_DTPREL",
")",
";",
"if",
"(",
"mips_split_p",
"[",
"SYMBOL_DTPREL",
"]",
")",
"{",
"tmp2",
"=",
"mips_unspec_offset_high",
"(",
"NULL",
",",
"tmp1",
",",
"loc",
",",
"SYMBOL_DTPREL",
")",
";",
"dest",
"=",
"gen_rtx_LO_SUM",
"(",
"Pmode",
",",
"tmp2",
",",
"offset",
")",
";",
"}",
"else",
"dest",
"=",
"expand_binop",
"(",
"Pmode",
",",
"add_optab",
",",
"tmp1",
",",
"offset",
",",
"0",
",",
"0",
",",
"OPTAB_DIRECT",
")",
";",
"break",
";",
"}",
"case",
"TLS_MODEL_INITIAL_EXEC",
":",
"tp",
"=",
"mips_get_tp",
"(",
")",
";",
"tmp1",
"=",
"gen_reg_rtx",
"(",
"Pmode",
")",
";",
"tmp2",
"=",
"mips_unspec_address",
"(",
"loc",
",",
"SYMBOL_GOTTPREL",
")",
";",
"if",
"(",
"Pmode",
"==",
"DImode",
")",
"emit_insn",
"(",
"gen_load_gotdi",
"(",
"tmp1",
",",
"pic_offset_table_rtx",
",",
"tmp2",
")",
")",
";",
"else",
"emit_insn",
"(",
"gen_load_gotsi",
"(",
"tmp1",
",",
"pic_offset_table_rtx",
",",
"tmp2",
")",
")",
";",
"dest",
"=",
"gen_reg_rtx",
"(",
"Pmode",
")",
";",
"emit_insn",
"(",
"gen_add3_insn",
"(",
"dest",
",",
"tmp1",
",",
"tp",
")",
")",
";",
"break",
";",
"case",
"TLS_MODEL_LOCAL_EXEC",
":",
"tmp1",
"=",
"mips_get_tp",
"(",
")",
";",
"offset",
"=",
"mips_unspec_address",
"(",
"loc",
",",
"SYMBOL_TPREL",
")",
";",
"if",
"(",
"mips_split_p",
"[",
"SYMBOL_TPREL",
"]",
")",
"{",
"tmp2",
"=",
"mips_unspec_offset_high",
"(",
"NULL",
",",
"tmp1",
",",
"loc",
",",
"SYMBOL_TPREL",
")",
";",
"dest",
"=",
"gen_rtx_LO_SUM",
"(",
"Pmode",
",",
"tmp2",
",",
"offset",
")",
";",
"}",
"else",
"dest",
"=",
"expand_binop",
"(",
"Pmode",
",",
"add_optab",
",",
"tmp1",
",",
"offset",
",",
"0",
",",
"0",
",",
"OPTAB_DIRECT",
")",
";",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"return",
"dest",
";",
"}",
"</s>"
] | [
"Generate",
"the",
"code",
"to",
"access",
"LOC",
",",
"a",
"thread",
"local",
"SYMBOL_REF",
".",
"The",
"return",
"value",
"will",
"be",
"a",
"valid",
"address",
"and",
"move_operand",
"(",
"either",
"a",
"REG",
"or",
"a",
"LO_SUM",
")",
"."
] | [
"mips",
"1",
"0",
"0",
"0",
"0"
] | mips | mips_legitimize_tls_address | mips | CPU | GCC | 25,963 | 381 | 1 | [] |
[
"<s>",
"bool",
"PPCTargetLowering",
"::",
"isLegalAddressingMode",
"(",
"const",
"DataLayout",
"&",
"DL",
",",
"const",
"AddrMode",
"&",
"AM",
",",
"Type",
"*",
"Ty",
",",
"unsigned",
"AS",
")",
"const",
"{",
"if",
"(",
"Ty",
"->",
"isVectorTy",
"(",
")",
"&&",
"AM",
".",
"BaseOffs",
"!=",
"0",
")",
"return",
"false",
";",
"if",
"(",
"AM",
".",
"BaseOffs",
"<=",
"-",
"(",
"1LL",
"<<",
"16",
")",
"||",
"AM",
".",
"BaseOffs",
">=",
"(",
"1LL",
"<<",
"16",
")",
"-",
"1",
")",
"return",
"false",
";",
"if",
"(",
"AM",
".",
"BaseGV",
")",
"return",
"false",
";",
"switch",
"(",
"AM",
".",
"Scale",
")",
"{",
"case",
"0",
":",
"break",
";",
"case",
"1",
":",
"if",
"(",
"AM",
".",
"HasBaseReg",
"&&",
"AM",
".",
"BaseOffs",
")",
"return",
"false",
";",
"break",
";",
"case",
"2",
":",
"if",
"(",
"AM",
".",
"HasBaseReg",
"||",
"AM",
".",
"BaseOffs",
")",
"return",
"false",
";",
"break",
";",
"default",
":",
"return",
"false",
";",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"isLegalAddressingMode",
"-",
"Return",
"true",
"if",
"the",
"addressing",
"mode",
"represented",
"by",
"AM",
"is",
"legal",
"for",
"this",
"target",
",",
"for",
"a",
"load/store",
"of",
"the",
"specified",
"type",
"."
] | [
"PowerPC",
"PPC",
"0",
"1LL",
"16",
"1LL",
"16",
"1",
"0",
"1",
"2"
] | PPCISelLowering (2)2 | isLegalAddressingMode | PowerPC | CPU | LLVM | 25,964 | 136 | 1 | [] |
[
"<s>",
"bool",
"X86TTIImpl",
"::",
"isLegalMaskedExpandLoad",
"(",
"Type",
"*",
"DataTy",
")",
"{",
"if",
"(",
"!",
"isa",
"<",
"VectorType",
">",
"(",
"DataTy",
")",
")",
"return",
"false",
";",
"if",
"(",
"!",
"ST",
"->",
"hasAVX512",
"(",
")",
")",
"return",
"false",
";",
"if",
"(",
"cast",
"<",
"FixedVectorType",
">",
"(",
"DataTy",
")",
"->",
"getNumElements",
"(",
")",
"==",
"1",
")",
"return",
"false",
";",
"Type",
"*",
"ScalarTy",
"=",
"cast",
"<",
"VectorType",
">",
"(",
"DataTy",
")",
"->",
"getElementType",
"(",
")",
";",
"if",
"(",
"ScalarTy",
"->",
"isFloatTy",
"(",
")",
"||",
"ScalarTy",
"->",
"isDoubleTy",
"(",
")",
")",
"return",
"true",
";",
"if",
"(",
"!",
"ScalarTy",
"->",
"isIntegerTy",
"(",
")",
")",
"return",
"false",
";",
"unsigned",
"IntWidth",
"=",
"ScalarTy",
"->",
"getIntegerBitWidth",
"(",
")",
";",
"return",
"IntWidth",
"==",
"32",
"||",
"IntWidth",
"==",
"64",
"||",
"(",
"(",
"IntWidth",
"==",
"8",
"||",
"IntWidth",
"==",
"16",
")",
"&&",
"ST",
"->",
"hasVBMI2",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"the",
"target",
"supports",
"masked",
"expand",
"load",
"."
] | [
"X86",
"X86",
"1",
"32",
"64",
"8",
"16"
] | X86TargetTransformInfo (2)1 | isLegalMaskedExpandLoad | X86 | CPU | LLVM | 25,965 | 137 | 1 | [] |
[
"<s>",
"static",
"void",
"split_words",
"(",
"const",
"std",
"::",
"string",
"&",
"val",
",",
"std",
"::",
"set",
"<",
"std",
"::",
"string",
">",
"&",
"result",
")",
"{",
"size_t",
"cur",
",",
"prev",
"=",
"0",
";",
"std",
"::",
"string",
"word",
";",
"while",
"(",
"(",
"cur",
"=",
"val",
".",
"find_first_of",
"(",
"\" \\n\"",
",",
"prev",
")",
")",
"!=",
"std",
"::",
"string",
"::",
"npos",
")",
"{",
"word",
"=",
"val",
".",
"substr",
"(",
"prev",
",",
"cur",
"-",
"prev",
")",
";",
"if",
"(",
"!",
"word",
".",
"empty",
"(",
")",
")",
"result",
".",
"insert",
"(",
"word",
")",
";",
"prev",
"=",
"cur",
"+",
"1",
";",
"}",
"if",
"(",
"prev",
"!=",
"cur",
")",
"result",
".",
"insert",
"(",
"val",
".",
"substr",
"(",
"prev",
")",
")",
";",
"}",
"</s>"
] | [
"Splits",
"and",
"returns",
"a",
"string",
"based",
"on",
"whitespace",
"and",
"return",
"it",
"as",
"part",
"of",
"a",
"set",
".",
"Empty",
"strings",
"are",
"ignored",
"."
] | [
"aarch64",
"0",
"\" \\n\"",
"1"
] | driver-aarch641 | split_words | aarch64 | CPU | GCC | 25,966 | 112 | 1 | [] |
[
"<s>",
"void",
"print",
"(",
"raw_ostream",
"&",
"OS",
")",
"const",
"override",
"{",
"switch",
"(",
"Kind",
")",
"{",
"case",
"KindTy",
"::",
"Immediate",
":",
"OS",
"<<",
"*",
"getImm",
"(",
")",
";",
"break",
";",
"case",
"KindTy",
"::",
"Register",
":",
"OS",
"<<",
"\"<register x\"",
";",
"OS",
"<<",
"getReg",
"(",
")",
"<<",
"\">\"",
";",
"break",
";",
"case",
"KindTy",
"::",
"Token",
":",
"OS",
"<<",
"\"'\"",
"<<",
"getToken",
"(",
")",
"<<",
"\"'\"",
";",
"break",
";",
"case",
"KindTy",
"::",
"SystemRegister",
":",
"OS",
"<<",
"\"<sysreg: \"",
"<<",
"getSysReg",
"(",
")",
"<<",
"'>'",
";",
"break",
";",
"case",
"KindTy",
"::",
"VType",
":",
"SmallString",
"<",
"32",
">",
"VTypeBuf",
";",
"OS",
"<<",
"\"<vtype: \"",
"<<",
"getVType",
"(",
"VTypeBuf",
")",
"<<",
"'>'",
";",
"break",
";",
"}",
"}",
"</s>"
] | [
"print",
"-",
"Print",
"a",
"debug",
"representation",
"of",
"the",
"operand",
"to",
"the",
"given",
"stream",
"."
] | [
"RISCV",
"\"<register x\"",
"\">\"",
"\"'\"",
"\"'\"",
"\"<sysreg: \"",
"32",
"\"<vtype: \""
] | RISCVAsmParser36 | print | RISCV | CPU | LLVM | 25,967 | 108 | 1 | [] |
[
"<s>",
"const",
"ARMSubtarget",
"*",
"ARMBaseTargetMachine",
"::",
"getSubtargetImpl",
"(",
"const",
"Function",
"&",
"F",
")",
"const",
"{",
"Attribute",
"CPUAttr",
"=",
"F",
".",
"getFnAttribute",
"(",
"\"target-cpu\"",
")",
";",
"Attribute",
"FSAttr",
"=",
"F",
".",
"getFnAttribute",
"(",
"\"target-features\"",
")",
";",
"std",
"::",
"string",
"CPU",
"=",
"!",
"CPUAttr",
".",
"hasAttribute",
"(",
"Attribute",
"::",
"None",
")",
"?",
"CPUAttr",
".",
"getValueAsString",
"(",
")",
".",
"str",
"(",
")",
":",
"TargetCPU",
";",
"std",
"::",
"string",
"FS",
"=",
"!",
"FSAttr",
".",
"hasAttribute",
"(",
"Attribute",
"::",
"None",
")",
"?",
"FSAttr",
".",
"getValueAsString",
"(",
")",
".",
"str",
"(",
")",
":",
"TargetFS",
";",
"bool",
"SoftFloat",
"=",
"F",
".",
"getFnAttribute",
"(",
"\"use-soft-float\"",
")",
".",
"getValueAsString",
"(",
")",
"==",
"\"true\"",
";",
"if",
"(",
"SoftFloat",
")",
"FS",
"+=",
"FS",
".",
"empty",
"(",
")",
"?",
"\"+soft-float\"",
":",
"\",+soft-float\"",
";",
"auto",
"&",
"I",
"=",
"SubtargetMap",
"[",
"CPU",
"+",
"FS",
"]",
";",
"if",
"(",
"!",
"I",
")",
"{",
"resetTargetOptions",
"(",
"F",
")",
";",
"I",
"=",
"llvm",
"::",
"make_unique",
"<",
"ARMSubtarget",
">",
"(",
"TargetTriple",
",",
"CPU",
",",
"FS",
",",
"*",
"this",
",",
"isLittle",
")",
";",
"GISelAccessor",
"*",
"GISel",
"=",
"new",
"GISelAccessor",
"(",
")",
";",
"ARMGISelActualAccessor",
"*",
"GISel",
"=",
"new",
"ARMGISelActualAccessor",
"(",
")",
";",
"GISel",
"->",
"CallLoweringInfo",
".",
"reset",
"(",
"new",
"ARMCallLowering",
"(",
"*",
"I",
"->",
"getTargetLowering",
"(",
")",
")",
")",
";",
"GISel",
"->",
"Legalizer",
".",
"reset",
"(",
"new",
"ARMLegalizerInfo",
"(",
")",
")",
";",
"auto",
"*",
"RBI",
"=",
"new",
"ARMRegisterBankInfo",
"(",
"*",
"I",
"->",
"getRegisterInfo",
"(",
")",
")",
";",
"GISel",
"->",
"InstSelector",
".",
"reset",
"(",
"new",
"ARMInstructionSelector",
"(",
"*",
"I",
",",
"*",
"RBI",
")",
")",
";",
"GISel",
"->",
"RegBankInfo",
".",
"reset",
"(",
"RBI",
")",
";",
"I",
"->",
"setGISelAccessor",
"(",
"*",
"GISel",
")",
";",
"}",
"return",
"I",
".",
"get",
"(",
")",
";",
"}",
"</s>"
] | [
"Virtual",
"method",
"implemented",
"by",
"subclasses",
"that",
"returns",
"a",
"reference",
"to",
"that",
"target",
"'s",
"TargetSubtargetInfo-derived",
"member",
"variable",
"."
] | [
"ARM",
"ARM",
"ARM",
"\"target-cpu\"",
"\"target-features\"",
"\"use-soft-float\"",
"\"true\"",
"\"+soft-float\"",
"\",+soft-float\"",
"ARM",
"ARM",
"ARM",
"ARM",
"ARM",
"ARM",
"ARM"
] | ARMTargetMachine66 | getSubtargetImpl | ARM | CPU | LLVM | 25,968 | 269 | 1 | [] |
[
"<s>",
"bool",
"AMDGPUTTIImpl",
"::",
"isAlwaysUniform",
"(",
"const",
"Value",
"*",
"V",
")",
"const",
"{",
"if",
"(",
"const",
"IntrinsicInst",
"*",
"Intrinsic",
"=",
"dyn_cast",
"<",
"IntrinsicInst",
">",
"(",
"V",
")",
")",
"{",
"switch",
"(",
"Intrinsic",
"->",
"getIntrinsicID",
"(",
")",
")",
"{",
"default",
":",
"return",
"false",
";",
"case",
"Intrinsic",
"::",
"amdgcn_readfirstlane",
":",
"case",
"Intrinsic",
"::",
"amdgcn_readlane",
":",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"Whether",
"Val",
"will",
"always",
"return",
"a",
"uniform",
"value",
"regardless",
"of",
"its",
"operands",
"."
] | [
"AMDGPU",
"AMDGPU",
"Intrinsic::amdgcn_readfirstlane",
"Intrinsic::amdgcn_readlane"
] | AMDGPUTargetTransformInfo11 | isAlwaysUniform | AMDGPU | GPU | LLVM | 25,969 | 61 | 1 | [] |
[
"<s>",
"int",
"sh_register_move_cost",
"(",
"enum",
"machine_mode",
"mode",
",",
"enum",
"reg_class",
"srcclass",
",",
"enum",
"reg_class",
"dstclass",
")",
"{",
"if",
"(",
"dstclass",
"==",
"T_REGS",
"||",
"dstclass",
"==",
"PR_REGS",
")",
"return",
"10",
";",
"if",
"(",
"dstclass",
"==",
"MAC_REGS",
"&&",
"srcclass",
"==",
"MAC_REGS",
")",
"return",
"4",
";",
"if",
"(",
"mode",
"==",
"SImode",
"&&",
"!",
"TARGET_SHMEDIA",
"&&",
"TARGET_FMOVD",
"&&",
"REGCLASS_HAS_FP_REG",
"(",
"srcclass",
")",
"&&",
"REGCLASS_HAS_FP_REG",
"(",
"dstclass",
")",
")",
"return",
"4",
";",
"if",
"(",
"REGCLASS_HAS_FP_REG",
"(",
"dstclass",
")",
"&&",
"srcclass",
"==",
"T_REGS",
")",
"return",
"(",
"(",
"TARGET_HARD_SH4",
"&&",
"!",
"optimize_size",
")",
"?",
"10",
":",
"7",
")",
";",
"if",
"(",
"(",
"REGCLASS_HAS_FP_REG",
"(",
"dstclass",
")",
"&&",
"srcclass",
"==",
"MAC_REGS",
")",
"||",
"(",
"dstclass",
"==",
"MAC_REGS",
"&&",
"REGCLASS_HAS_FP_REG",
"(",
"srcclass",
")",
")",
")",
"return",
"9",
";",
"if",
"(",
"(",
"REGCLASS_HAS_FP_REG",
"(",
"dstclass",
")",
"&&",
"REGCLASS_HAS_GENERAL_REG",
"(",
"srcclass",
")",
")",
"||",
"(",
"REGCLASS_HAS_GENERAL_REG",
"(",
"dstclass",
")",
"&&",
"REGCLASS_HAS_FP_REG",
"(",
"srcclass",
")",
")",
")",
"return",
"(",
"(",
"TARGET_SHMEDIA",
"?",
"4",
":",
"TARGET_FMOVD",
"?",
"8",
":",
"12",
")",
"*",
"(",
"(",
"GET_MODE_SIZE",
"(",
"mode",
")",
"+",
"7",
")",
"/",
"8U",
")",
")",
";",
"if",
"(",
"(",
"dstclass",
"==",
"FPUL_REGS",
"&&",
"REGCLASS_HAS_GENERAL_REG",
"(",
"srcclass",
")",
")",
"||",
"(",
"srcclass",
"==",
"FPUL_REGS",
"&&",
"REGCLASS_HAS_GENERAL_REG",
"(",
"dstclass",
")",
")",
")",
"return",
"5",
";",
"if",
"(",
"(",
"dstclass",
"==",
"FPUL_REGS",
"&&",
"(",
"srcclass",
"==",
"PR_REGS",
"||",
"srcclass",
"==",
"MAC_REGS",
"||",
"srcclass",
"==",
"T_REGS",
")",
")",
"||",
"(",
"srcclass",
"==",
"FPUL_REGS",
"&&",
"(",
"dstclass",
"==",
"PR_REGS",
"||",
"dstclass",
"==",
"MAC_REGS",
")",
")",
")",
"return",
"7",
";",
"if",
"(",
"(",
"srcclass",
"==",
"TARGET_REGS",
"&&",
"!",
"REGCLASS_HAS_GENERAL_REG",
"(",
"dstclass",
")",
")",
"||",
"(",
"(",
"dstclass",
")",
"==",
"TARGET_REGS",
"&&",
"!",
"REGCLASS_HAS_GENERAL_REG",
"(",
"srcclass",
")",
")",
")",
"return",
"20",
";",
"if",
"(",
"TARGET_SHMEDIA",
"&&",
"(",
"(",
"srcclass",
")",
"==",
"TARGET_REGS",
"||",
"(",
"srcclass",
")",
"==",
"SIBCALL_REGS",
")",
")",
"{",
"if",
"(",
"sh_gettrcost",
">=",
"0",
")",
"return",
"sh_gettrcost",
";",
"else",
"if",
"(",
"!",
"TARGET_PT_FIXED",
")",
"return",
"100",
";",
"}",
"if",
"(",
"(",
"srcclass",
"==",
"FPSCR_REGS",
"&&",
"!",
"REGCLASS_HAS_GENERAL_REG",
"(",
"dstclass",
")",
")",
"||",
"(",
"dstclass",
"==",
"FPSCR_REGS",
"&&",
"!",
"REGCLASS_HAS_GENERAL_REG",
"(",
"srcclass",
")",
")",
")",
"return",
"4",
";",
"if",
"(",
"TARGET_SHMEDIA",
"||",
"(",
"TARGET_FMOVD",
"&&",
"!",
"REGCLASS_HAS_GENERAL_REG",
"(",
"srcclass",
")",
"&&",
"!",
"REGCLASS_HAS_GENERAL_REG",
"(",
"dstclass",
")",
")",
")",
"return",
"2",
"*",
"(",
"(",
"GET_MODE_SIZE",
"(",
"mode",
")",
"+",
"7",
")",
"/",
"8U",
")",
";",
"return",
"2",
"*",
"(",
"(",
"GET_MODE_SIZE",
"(",
"mode",
")",
"+",
"3",
")",
"/",
"4U",
")",
";",
"}",
"</s>"
] | [
"If",
"SECONDARY",
"*",
"_RELOAD_CLASS",
"says",
"something",
"about",
"the",
"src/dst",
"pair",
",",
"regclass",
"uses",
"this",
"information",
".",
"Hence",
",",
"the",
"general",
"register",
"<",
"-",
">",
"floating",
"point",
"register",
"information",
"here",
"is",
"not",
"used",
"for",
"SFmode",
"."
] | [
"sh",
"10",
"4",
"4",
"10",
"7",
"9",
"4",
"8",
"12",
"7",
"8U",
"5",
"7",
"20",
"0",
"100",
"4",
"2",
"7",
"8U",
"2",
"3",
"4U"
] | sh3 | sh_register_move_cost | sh | CPU | GCC | 25,970 | 391 | 1 | [] |
[
"<s>",
"bool",
"HexagonExpandCondsets",
"::",
"split",
"(",
"MachineInstr",
"&",
"MI",
",",
"std",
"::",
"set",
"<",
"Register",
">",
"&",
"UpdRegs",
")",
"{",
"if",
"(",
"TfrLimitActive",
")",
"{",
"if",
"(",
"TfrCounter",
">=",
"TfrLimit",
")",
"return",
"false",
";",
"TfrCounter",
"++",
";",
"}",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"\\nsplitting \"",
"<<",
"printMBBReference",
"(",
"*",
"MI",
".",
"getParent",
"(",
")",
")",
"<<",
"\": \"",
"<<",
"MI",
")",
";",
"MachineOperand",
"&",
"MD",
"=",
"MI",
".",
"getOperand",
"(",
"0",
")",
";",
"MachineOperand",
"&",
"MP",
"=",
"MI",
".",
"getOperand",
"(",
"1",
")",
";",
"assert",
"(",
"MD",
".",
"isDef",
"(",
")",
")",
";",
"Register",
"DR",
"=",
"MD",
".",
"getReg",
"(",
")",
",",
"DSR",
"=",
"MD",
".",
"getSubReg",
"(",
")",
";",
"bool",
"ReadUndef",
"=",
"MD",
".",
"isUndef",
"(",
")",
";",
"MachineBasicBlock",
"::",
"iterator",
"At",
"=",
"MI",
";",
"auto",
"updateRegs",
"=",
"[",
"&",
"UpdRegs",
"]",
"(",
"const",
"MachineInstr",
"&",
"MI",
")",
"->",
"void",
"{",
"for",
"(",
"auto",
"&",
"Op",
":",
"MI",
".",
"operands",
"(",
")",
")",
"if",
"(",
"Op",
".",
"isReg",
"(",
")",
")",
"UpdRegs",
".",
"insert",
"(",
"Op",
".",
"getReg",
"(",
")",
")",
";",
"}",
";",
"MachineOperand",
"&",
"ST",
"=",
"MI",
".",
"getOperand",
"(",
"2",
")",
";",
"MachineOperand",
"&",
"SF",
"=",
"MI",
".",
"getOperand",
"(",
"3",
")",
";",
"if",
"(",
"ST",
".",
"isReg",
"(",
")",
"&&",
"SF",
".",
"isReg",
"(",
")",
")",
"{",
"RegisterRef",
"RT",
"(",
"ST",
")",
";",
"if",
"(",
"RT",
"==",
"RegisterRef",
"(",
"SF",
")",
")",
"{",
"updateRegs",
"(",
"MI",
")",
";",
"MI",
".",
"setDesc",
"(",
"HII",
"->",
"get",
"(",
"TargetOpcode",
"::",
"COPY",
")",
")",
";",
"unsigned",
"S",
"=",
"getRegState",
"(",
"ST",
")",
";",
"while",
"(",
"MI",
".",
"getNumOperands",
"(",
")",
">",
"1",
")",
"MI",
".",
"removeOperand",
"(",
"MI",
".",
"getNumOperands",
"(",
")",
"-",
"1",
")",
";",
"MachineFunction",
"&",
"MF",
"=",
"*",
"MI",
".",
"getParent",
"(",
")",
"->",
"getParent",
"(",
")",
";",
"MachineInstrBuilder",
"(",
"MF",
",",
"MI",
")",
".",
"addReg",
"(",
"RT",
".",
"Reg",
",",
"S",
",",
"RT",
".",
"Sub",
")",
";",
"return",
"true",
";",
"}",
"}",
"MachineInstr",
"*",
"TfrT",
"=",
"genCondTfrFor",
"(",
"ST",
",",
"At",
",",
"DR",
",",
"DSR",
",",
"MP",
",",
"true",
",",
"ReadUndef",
",",
"false",
")",
";",
"MachineInstr",
"*",
"TfrF",
"=",
"genCondTfrFor",
"(",
"SF",
",",
"At",
",",
"DR",
",",
"DSR",
",",
"MP",
",",
"false",
",",
"ReadUndef",
",",
"true",
")",
";",
"LIS",
"->",
"InsertMachineInstrInMaps",
"(",
"*",
"TfrT",
")",
";",
"LIS",
"->",
"InsertMachineInstrInMaps",
"(",
"*",
"TfrF",
")",
";",
"updateRegs",
"(",
"MI",
")",
";",
"removeInstr",
"(",
"MI",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Split",
"into",
"substrings",
"around",
"the",
"occurrences",
"of",
"a",
"separator",
"character",
"."
] | [
"Hexagon",
"Hexagon",
"\"\\nsplitting \"",
"\": \"",
"0",
"1",
"2",
"3",
"1",
"1"
] | HexagonExpandCondsets16 | split | Hexagon | DSP | LLVM | 25,971 | 392 | 1 | [] |
[
"<s>",
"enum",
"reg_class",
"avr_mode_code_base_reg_class",
"(",
"machine_mode",
"mode",
"ATTRIBUTE_UNUSED",
",",
"addr_space_t",
"as",
",",
"RTX_CODE",
"outer_code",
",",
"RTX_CODE",
"index_code",
"ATTRIBUTE_UNUSED",
")",
"{",
"if",
"(",
"!",
"ADDR_SPACE_GENERIC_P",
"(",
"as",
")",
")",
"{",
"return",
"POINTER_Z_REGS",
";",
"}",
"if",
"(",
"!",
"avr_strict_X",
")",
"return",
"reload_completed",
"?",
"BASE_POINTER_REGS",
":",
"POINTER_REGS",
";",
"return",
"PLUS",
"==",
"outer_code",
"?",
"BASE_POINTER_REGS",
":",
"POINTER_REGS",
";",
"}",
"</s>"
] | [
"Implement",
"`",
"MODE_CODE_BASE_REG_CLASS",
"'",
"."
] | [
"avr"
] | avr | avr_mode_code_base_reg_class | avr | MPU | GCC | 25,972 | 54 | 1 | [] |
[
"<s>",
"SDValue",
"X86TargetLowering",
"::",
"getNegatedExpression",
"(",
"SDValue",
"Op",
",",
"SelectionDAG",
"&",
"DAG",
",",
"bool",
"LegalOperations",
",",
"bool",
"ForCodeSize",
",",
"NegatibleCost",
"&",
"Cost",
",",
"unsigned",
"Depth",
")",
"const",
"{",
"if",
"(",
"SDValue",
"Arg",
"=",
"isFNEG",
"(",
"DAG",
",",
"Op",
".",
"getNode",
"(",
")",
",",
"Depth",
")",
")",
"{",
"Cost",
"=",
"NegatibleCost",
"::",
"Cheaper",
";",
"return",
"DAG",
".",
"getBitcast",
"(",
"Op",
".",
"getValueType",
"(",
")",
",",
"Arg",
")",
";",
"}",
"EVT",
"VT",
"=",
"Op",
".",
"getValueType",
"(",
")",
";",
"EVT",
"SVT",
"=",
"VT",
".",
"getScalarType",
"(",
")",
";",
"unsigned",
"Opc",
"=",
"Op",
".",
"getOpcode",
"(",
")",
";",
"SDNodeFlags",
"Flags",
"=",
"Op",
".",
"getNode",
"(",
")",
"->",
"getFlags",
"(",
")",
";",
"switch",
"(",
"Opc",
")",
"{",
"case",
"ISD",
"::",
"FMA",
":",
"case",
"X86ISD",
"::",
"FMSUB",
":",
"case",
"X86ISD",
"::",
"FNMADD",
":",
"case",
"X86ISD",
"::",
"FNMSUB",
":",
"case",
"X86ISD",
"::",
"FMADD_RND",
":",
"case",
"X86ISD",
"::",
"FMSUB_RND",
":",
"case",
"X86ISD",
"::",
"FNMADD_RND",
":",
"case",
"X86ISD",
"::",
"FNMSUB_RND",
":",
"{",
"if",
"(",
"!",
"Op",
".",
"hasOneUse",
"(",
")",
"||",
"!",
"Subtarget",
".",
"hasAnyFMA",
"(",
")",
"||",
"!",
"isTypeLegal",
"(",
"VT",
")",
"||",
"!",
"(",
"SVT",
"==",
"MVT",
"::",
"f32",
"||",
"SVT",
"==",
"MVT",
"::",
"f64",
")",
"||",
"!",
"isOperationLegal",
"(",
"ISD",
"::",
"FMA",
",",
"VT",
")",
")",
"break",
";",
"if",
"(",
"!",
"Flags",
".",
"hasNoSignedZeros",
"(",
")",
")",
"break",
";",
"SmallVector",
"<",
"SDValue",
",",
"4",
">",
"NewOps",
"(",
"Op",
".",
"getNumOperands",
"(",
")",
",",
"SDValue",
"(",
")",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"!=",
"3",
";",
"++",
"i",
")",
"NewOps",
"[",
"i",
"]",
"=",
"getCheaperNegatedExpression",
"(",
"Op",
".",
"getOperand",
"(",
"i",
")",
",",
"DAG",
",",
"LegalOperations",
",",
"ForCodeSize",
",",
"Depth",
"+",
"1",
")",
";",
"bool",
"NegA",
"=",
"!",
"!",
"NewOps",
"[",
"0",
"]",
";",
"bool",
"NegB",
"=",
"!",
"!",
"NewOps",
"[",
"1",
"]",
";",
"bool",
"NegC",
"=",
"!",
"!",
"NewOps",
"[",
"2",
"]",
";",
"unsigned",
"NewOpc",
"=",
"negateFMAOpcode",
"(",
"Opc",
",",
"NegA",
"!=",
"NegB",
",",
"NegC",
",",
"true",
")",
";",
"Cost",
"=",
"(",
"NegA",
"||",
"NegB",
"||",
"NegC",
")",
"?",
"NegatibleCost",
"::",
"Cheaper",
":",
"NegatibleCost",
"::",
"Neutral",
";",
"for",
"(",
"int",
"i",
"=",
"0",
",",
"e",
"=",
"Op",
".",
"getNumOperands",
"(",
")",
";",
"i",
"!=",
"e",
";",
"++",
"i",
")",
"if",
"(",
"!",
"NewOps",
"[",
"i",
"]",
")",
"NewOps",
"[",
"i",
"]",
"=",
"Op",
".",
"getOperand",
"(",
"i",
")",
";",
"return",
"DAG",
".",
"getNode",
"(",
"NewOpc",
",",
"SDLoc",
"(",
"Op",
")",
",",
"VT",
",",
"NewOps",
")",
";",
"}",
"case",
"X86ISD",
"::",
"FRCP",
":",
"if",
"(",
"SDValue",
"NegOp0",
"=",
"getNegatedExpression",
"(",
"Op",
".",
"getOperand",
"(",
"0",
")",
",",
"DAG",
",",
"LegalOperations",
",",
"ForCodeSize",
",",
"Cost",
",",
"Depth",
"+",
"1",
")",
")",
"return",
"DAG",
".",
"getNode",
"(",
"Opc",
",",
"SDLoc",
"(",
"Op",
")",
",",
"VT",
",",
"NegOp0",
")",
";",
"break",
";",
"}",
"return",
"TargetLowering",
"::",
"getNegatedExpression",
"(",
"Op",
",",
"DAG",
",",
"LegalOperations",
",",
"ForCodeSize",
",",
"Cost",
",",
"Depth",
")",
";",
"}",
"</s>"
] | [
"Return",
"the",
"newly",
"negated",
"expression",
"if",
"the",
"cost",
"is",
"not",
"expensive",
"and",
"set",
"the",
"cost",
"in",
"Cost",
"to",
"indicate",
"that",
"if",
"it",
"is",
"cheaper",
"or",
"neutral",
"to",
"do",
"the",
"negation",
"."
] | [
"X86",
"X86",
"ISD::FMA",
"X86ISD::FMSUB",
"X86ISD::FNMADD",
"X86ISD::FNMSUB",
"X86ISD::FMADD_RND",
"X86ISD::FMSUB_RND",
"X86ISD::FNMADD_RND",
"X86ISD::FNMSUB_RND",
"MVT::f32",
"MVT::f64",
"ISD::FMA",
"4",
"0",
"3",
"1",
"0",
"1",
"2",
"0",
"X86ISD::FRCP",
"0",
"1"
] | X86ISelLowering (2)5 | getNegatedExpression | X86 | CPU | LLVM | 25,973 | 466 | 1 | [] |
[
"<s>",
"void",
"MipsAsmPrinter",
"::",
"EmitInstruction",
"(",
"const",
"MachineInstr",
"*",
"MI",
")",
"{",
"if",
"(",
"MI",
"->",
"isDebugValue",
"(",
")",
")",
"{",
"SmallString",
"<",
"128",
">",
"Str",
";",
"raw_svector_ostream",
"OS",
"(",
"Str",
")",
";",
"PrintDebugValueComment",
"(",
"MI",
",",
"OS",
")",
";",
"return",
";",
"}",
"MachineBasicBlock",
"::",
"const_instr_iterator",
"I",
"=",
"MI",
";",
"MachineBasicBlock",
"::",
"const_instr_iterator",
"E",
"=",
"MI",
"->",
"getParent",
"(",
")",
"->",
"instr_end",
"(",
")",
";",
"do",
"{",
"if",
"(",
"emitPseudoExpansionLowering",
"(",
"OutStreamer",
",",
"&",
"*",
"I",
")",
")",
"continue",
";",
"if",
"(",
"I",
"->",
"isPseudo",
"(",
")",
"&&",
"!",
"Subtarget",
"->",
"inMips16Mode",
"(",
")",
")",
"llvm_unreachable",
"(",
"\"Pseudo opcode found in EmitInstruction()\"",
")",
";",
"MCInst",
"TmpInst0",
";",
"MCInstLowering",
".",
"Lower",
"(",
"I",
",",
"TmpInst0",
")",
";",
"OutStreamer",
".",
"EmitInstruction",
"(",
"TmpInst0",
")",
";",
"}",
"while",
"(",
"(",
"++",
"I",
"!=",
"E",
")",
"&&",
"I",
"->",
"isInsideBundle",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"EmitInstruction",
"-",
"This",
"callback",
"is",
"invoked",
"when",
"an",
"instruction",
"is",
"emitted",
",",
"to",
"advance",
"the",
"hazard",
"state",
"."
] | [
"Mips",
"Mips",
"128",
"Mips",
"\"Pseudo opcode found in EmitInstruction()\""
] | MipsAsmPrinter11 | EmitInstruction | Mips | CPU | LLVM | 25,974 | 136 | 1 | [] |
[
"<s>",
"static",
"void",
"build_32_64",
"(",
"function_builder",
"&",
"b",
",",
"const",
"char",
"*",
"signature",
",",
"const",
"function_group_info",
"&",
"group",
",",
"mode_suffix_index",
"mode32",
",",
"mode_suffix_index",
"mode64",
",",
"bool",
"force_direct_overloads",
"=",
"false",
")",
"{",
"for",
"(",
"unsigned",
"int",
"pi",
"=",
"0",
";",
"group",
".",
"preds",
"[",
"pi",
"]",
"!=",
"NUM_PREDS",
";",
"++",
"pi",
")",
"if",
"(",
"group",
".",
"types",
"[",
"0",
"]",
"[",
"0",
"]",
"==",
"NUM_TYPE_SUFFIXES",
")",
"{",
"gcc_assert",
"(",
"mode32",
"!=",
"MODE_none",
"&&",
"mode64",
"!=",
"MODE_none",
")",
";",
"build_one",
"(",
"b",
",",
"signature",
",",
"group",
",",
"mode32",
",",
"0",
",",
"pi",
",",
"force_direct_overloads",
")",
";",
"build_one",
"(",
"b",
",",
"signature",
",",
"group",
",",
"mode64",
",",
"0",
",",
"pi",
",",
"force_direct_overloads",
")",
";",
"}",
"else",
"for",
"(",
"unsigned",
"int",
"ti",
"=",
"0",
";",
"group",
".",
"types",
"[",
"ti",
"]",
"[",
"0",
"]",
"!=",
"NUM_TYPE_SUFFIXES",
";",
"++",
"ti",
")",
"{",
"unsigned",
"int",
"bits",
"=",
"type_suffixes",
"[",
"group",
".",
"types",
"[",
"ti",
"]",
"[",
"0",
"]",
"]",
".",
"element_bits",
";",
"gcc_assert",
"(",
"bits",
"==",
"32",
"||",
"bits",
"==",
"64",
")",
";",
"mode_suffix_index",
"mode",
"=",
"bits",
"==",
"32",
"?",
"mode32",
":",
"mode64",
";",
"if",
"(",
"mode",
"!=",
"MODE_none",
")",
"build_one",
"(",
"b",
",",
"signature",
",",
"group",
",",
"mode",
",",
"ti",
",",
"pi",
",",
"force_direct_overloads",
")",
";",
"}",
"}",
"</s>"
] | [
"GROUP",
"describes",
"some",
"sort",
"of",
"gather",
"or",
"scatter",
"operation",
".",
"There",
"are",
"two",
"cases",
":",
"-",
"If",
"the",
"function",
"has",
"any",
"type",
"suffixes",
"(",
"as",
"for",
"loads",
"and",
"stores",
")",
",",
"the",
"first",
"function",
"type",
"suffix",
"specifies",
"either",
"a",
"32-bit",
"or",
"a",
"64-bit",
"type",
",",
"which",
"in",
"turn",
"selects",
"either",
"MODE32",
"or",
"MODE64",
"as",
"the",
"addressing",
"mode",
".",
"Add",
"a",
"function",
"instance",
"for",
"every",
"type",
"and",
"predicate",
"combination",
"in",
"GROUP",
"for",
"which",
"the",
"associated",
"addressing",
"mode",
"is",
"not",
"MODE_none",
".",
"-",
"If",
"the",
"function",
"has",
"no",
"type",
"suffixes",
"(",
"as",
"for",
"prefetches",
")",
",",
"add",
"one",
"MODE32",
"form",
"and",
"one",
"MODE64",
"form",
"for",
"each",
"predication",
"type",
".",
"The",
"other",
"arguments",
"are",
"as",
"for",
"build_all",
"."
] | [
"aarch64",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"32",
"64",
"32"
] | aarch64-sve-builtins-shapes | build_32_64 | aarch64 | CPU | GCC | 25,975 | 202 | 1 | [] |
[
"<s>",
"std",
"::",
"pair",
"<",
"unsigned",
",",
"const",
"TargetRegisterClass",
"*",
">",
"HexagonTargetLowering",
"::",
"getRegForInlineAsmConstraint",
"(",
"const",
"TargetRegisterInfo",
"*",
"TRI",
",",
"const",
"std",
"::",
"string",
"&",
"Constraint",
",",
"MVT",
"VT",
")",
"const",
"{",
"if",
"(",
"Constraint",
".",
"size",
"(",
")",
"==",
"1",
")",
"{",
"switch",
"(",
"Constraint",
"[",
"0",
"]",
")",
"{",
"case",
"'r'",
":",
"switch",
"(",
"VT",
".",
"SimpleTy",
")",
"{",
"default",
":",
"llvm_unreachable",
"(",
"\"getRegForInlineAsmConstraint Unhandled data type\"",
")",
";",
"case",
"MVT",
"::",
"i32",
":",
"case",
"MVT",
"::",
"i16",
":",
"case",
"MVT",
"::",
"i8",
":",
"case",
"MVT",
"::",
"f32",
":",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"&",
"Hexagon",
"::",
"IntRegsRegClass",
")",
";",
"case",
"MVT",
"::",
"i64",
":",
"case",
"MVT",
"::",
"f64",
":",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"&",
"Hexagon",
"::",
"DoubleRegsRegClass",
")",
";",
"}",
"default",
":",
"llvm_unreachable",
"(",
"\"Unknown asm register class\"",
")",
";",
"}",
"}",
"return",
"TargetLowering",
"::",
"getRegForInlineAsmConstraint",
"(",
"TRI",
",",
"Constraint",
",",
"VT",
")",
";",
"}",
"</s>"
] | [
"Given",
"a",
"physical",
"register",
"constraint",
"(",
"e.g",
"."
] | [
"Hexagon",
"Hexagon",
"1",
"0",
"\"getRegForInlineAsmConstraint Unhandled data type\"",
"MVT::i32",
"MVT::i16",
"MVT::i8",
"MVT::f32",
"0U",
"Hexagon::IntRegsRegClass",
"MVT::i64",
"MVT::f64",
"0U",
"Hexagon::DoubleRegsRegClass",
"\"Unknown asm register class\""
] | HexagonISelLowering61 | getRegForInlineAsmConstraint | Hexagon | DSP | LLVM | 25,976 | 146 | 1 | [] |
[
"<s>",
"void",
"initializePass",
"(",
")",
"override",
"{",
"pushTTIStack",
"(",
"this",
")",
";",
"}",
"</s>"
] | [
"initializePass",
"-",
"This",
"method",
"may",
"be",
"overriden",
"by",
"immutable",
"passes",
"to",
"allow",
"them",
"to",
"perform",
"various",
"initialization",
"actions",
"they",
"require",
"."
] | [
"NVPTX"
] | NVPTXTargetTransformInfo21 | initializePass | NVPTX | GPU | LLVM | 25,977 | 12 | 1 | [] |
[
"<s>",
"void",
"R600SchedStrategy",
"::",
"schedNode",
"(",
"SUnit",
"*",
"SU",
",",
"bool",
"IsTopNode",
")",
"{",
"if",
"(",
"NextInstKind",
"!=",
"CurInstKind",
")",
"{",
"DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"Instruction Type Switch\\n\"",
")",
";",
"if",
"(",
"NextInstKind",
"!=",
"IDAlu",
")",
"OccupedSlotsMask",
"|=",
"31",
";",
"CurEmitted",
"=",
"0",
";",
"CurInstKind",
"=",
"NextInstKind",
";",
"}",
"if",
"(",
"CurInstKind",
"==",
"IDAlu",
")",
"{",
"AluInstCount",
"++",
";",
"switch",
"(",
"getAluKind",
"(",
"SU",
")",
")",
"{",
"case",
"AluT_XYZW",
":",
"CurEmitted",
"+=",
"4",
";",
"break",
";",
"case",
"AluDiscarded",
":",
"break",
";",
"default",
":",
"{",
"++",
"CurEmitted",
";",
"for",
"(",
"MachineInstr",
"::",
"mop_iterator",
"It",
"=",
"SU",
"->",
"getInstr",
"(",
")",
"->",
"operands_begin",
"(",
")",
",",
"E",
"=",
"SU",
"->",
"getInstr",
"(",
")",
"->",
"operands_end",
"(",
")",
";",
"It",
"!=",
"E",
";",
"++",
"It",
")",
"{",
"MachineOperand",
"&",
"MO",
"=",
"*",
"It",
";",
"if",
"(",
"MO",
".",
"isReg",
"(",
")",
"&&",
"MO",
".",
"getReg",
"(",
")",
"==",
"AMDGPU",
"::",
"ALU_LITERAL_X",
")",
"++",
"CurEmitted",
";",
"}",
"}",
"}",
"}",
"else",
"{",
"++",
"CurEmitted",
";",
"}",
"DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"CurEmitted",
"<<",
"\" Instructions Emitted in this clause\\n\"",
")",
";",
"if",
"(",
"CurInstKind",
"!=",
"IDFetch",
")",
"{",
"MoveUnits",
"(",
"Pending",
"[",
"IDFetch",
"]",
",",
"Available",
"[",
"IDFetch",
"]",
")",
";",
"}",
"else",
"FetchInstCount",
"++",
";",
"}",
"</s>"
] | [
"ScheduleDAGMI",
"has",
"scheduled",
"an",
"instruction",
"-",
"tell",
"HazardRec",
"about",
"it",
"."
] | [
"R600",
"\"Instruction Type Switch\\n\"",
"31",
"0",
"4",
"\" Instructions Emitted in this clause\\n\""
] | R600MachineScheduler1 | schedNode | R600 | GPU | LLVM | 25,978 | 198 | 1 | [] |
[
"<s>",
"const",
"RegisterBank",
"&",
"X86RegisterBankInfo",
"::",
"getRegBankFromRegClass",
"(",
"const",
"TargetRegisterClass",
"&",
"RC",
",",
"LLT",
")",
"const",
"{",
"if",
"(",
"X86",
"::",
"GR8RegClass",
".",
"hasSubClassEq",
"(",
"&",
"RC",
")",
"||",
"X86",
"::",
"GR16RegClass",
".",
"hasSubClassEq",
"(",
"&",
"RC",
")",
"||",
"X86",
"::",
"GR32RegClass",
".",
"hasSubClassEq",
"(",
"&",
"RC",
")",
"||",
"X86",
"::",
"GR64RegClass",
".",
"hasSubClassEq",
"(",
"&",
"RC",
")",
"||",
"X86",
"::",
"LOW32_ADDR_ACCESSRegClass",
".",
"hasSubClassEq",
"(",
"&",
"RC",
")",
"||",
"X86",
"::",
"LOW32_ADDR_ACCESS_RBPRegClass",
".",
"hasSubClassEq",
"(",
"&",
"RC",
")",
")",
"return",
"getRegBank",
"(",
"X86",
"::",
"GPRRegBankID",
")",
";",
"if",
"(",
"X86",
"::",
"FR32XRegClass",
".",
"hasSubClassEq",
"(",
"&",
"RC",
")",
"||",
"X86",
"::",
"FR64XRegClass",
".",
"hasSubClassEq",
"(",
"&",
"RC",
")",
"||",
"X86",
"::",
"VR128XRegClass",
".",
"hasSubClassEq",
"(",
"&",
"RC",
")",
"||",
"X86",
"::",
"VR256XRegClass",
".",
"hasSubClassEq",
"(",
"&",
"RC",
")",
"||",
"X86",
"::",
"VR512RegClass",
".",
"hasSubClassEq",
"(",
"&",
"RC",
")",
")",
"return",
"getRegBank",
"(",
"X86",
"::",
"VECRRegBankID",
")",
";",
"llvm_unreachable",
"(",
"\"Unsupported register kind yet.\"",
")",
";",
"}",
"</s>"
] | [
"Get",
"a",
"register",
"bank",
"that",
"covers",
"RC",
"."
] | [
"X86",
"X86",
"X86::GR8RegClass",
"X86::GR16RegClass",
"X86::GR32RegClass",
"X86::GR64RegClass",
"X86::LOW32_ADDR_ACCESSRegClass",
"X86::LOW32_ADDR_ACCESS_RBPRegClass",
"X86::GPRRegBankID",
"X86::FR32XRegClass",
"X86::FR64XRegClass",
"X86::VR128XRegClass",
"X86::VR256XRegClass",
"X86::VR512RegClass",
"X86::VECRRegBankID",
"\"Unsupported register kind yet.\""
] | X86RegisterBankInfo | getRegBankFromRegClass | X86 | CPU | LLVM | 25,979 | 152 | 1 | [] |
[
"<s>",
"const",
"RegisterBankInfo",
"*",
"getRegBankInfo",
"(",
")",
"const",
"override",
"{",
"return",
"nullptr",
";",
"}",
"</s>"
] | [
"If",
"the",
"information",
"for",
"the",
"register",
"banks",
"is",
"available",
",",
"return",
"it",
"."
] | [
"X86"
] | X86TargetMachine45 | getRegBankInfo | X86 | CPU | LLVM | 25,980 | 13 | 1 | [] |
[
"<s>",
"bool",
"SystemZTargetLowering",
"::",
"isFMAFasterThanFMulAndFAdd",
"(",
"const",
"MachineFunction",
"&",
"MF",
",",
"EVT",
"VT",
")",
"const",
"{",
"VT",
"=",
"VT",
".",
"getScalarType",
"(",
")",
";",
"if",
"(",
"!",
"VT",
".",
"isSimple",
"(",
")",
")",
"return",
"false",
";",
"switch",
"(",
"VT",
".",
"getSimpleVT",
"(",
")",
".",
"SimpleTy",
")",
"{",
"case",
"MVT",
"::",
"f32",
":",
"case",
"MVT",
"::",
"f64",
":",
"return",
"true",
";",
"case",
"MVT",
"::",
"f128",
":",
"return",
"Subtarget",
".",
"hasVectorEnhancements1",
"(",
")",
";",
"default",
":",
"break",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"an",
"FMA",
"operation",
"is",
"faster",
"than",
"a",
"pair",
"of",
"fmul",
"and",
"fadd",
"instructions",
"."
] | [
"SystemZ",
"SystemZ",
"MVT::f32",
"MVT::f64",
"MVT::f128"
] | SystemZISelLowering (2)2 | isFMAFasterThanFMulAndFAdd | SystemZ | CPU | LLVM | 25,981 | 80 | 1 | [] |
[
"<s>",
"ScheduleDAGInstrs",
"*",
"createMachineScheduler",
"(",
"MachineSchedContext",
"*",
"C",
")",
"const",
"override",
"{",
"ScheduleDAGMILive",
"*",
"DAG",
"=",
"createGenericSchedLive",
"(",
"C",
")",
";",
"DAG",
"->",
"addMutation",
"(",
"createLoadClusterDAGMutation",
"(",
"DAG",
"->",
"TII",
",",
"DAG",
"->",
"TRI",
")",
")",
";",
"DAG",
"->",
"addMutation",
"(",
"createStoreClusterDAGMutation",
"(",
"DAG",
"->",
"TII",
",",
"DAG",
"->",
"TRI",
")",
")",
";",
"DAG",
"->",
"addMutation",
"(",
"createMacroFusionDAGMutation",
"(",
"DAG",
"->",
"TII",
")",
")",
";",
"return",
"DAG",
";",
"}",
"</s>"
] | [
"Create",
"an",
"instance",
"of",
"ScheduleDAGInstrs",
"to",
"be",
"run",
"within",
"the",
"standard",
"MachineScheduler",
"pass",
"for",
"this",
"function",
"and",
"target",
"at",
"the",
"current",
"optimization",
"level",
"."
] | [
"AArch64"
] | AArch64TargetMachine28 | createMachineScheduler | AArch64 | CPU | LLVM | 25,982 | 68 | 1 | [] |
[
"<s>",
"bool",
"AArch64CallLowering",
"::",
"isEligibleForTailCallOptimization",
"(",
"MachineIRBuilder",
"&",
"MIRBuilder",
",",
"CallLoweringInfo",
"&",
"Info",
")",
"const",
"{",
"CallingConv",
"::",
"ID",
"CalleeCC",
"=",
"Info",
".",
"CallConv",
";",
"MachineFunction",
"&",
"MF",
"=",
"MIRBuilder",
".",
"getMF",
"(",
")",
";",
"const",
"Function",
"&",
"CallerF",
"=",
"MF",
".",
"getFunction",
"(",
")",
";",
"CallingConv",
"::",
"ID",
"CallerCC",
"=",
"CallerF",
".",
"getCallingConv",
"(",
")",
";",
"bool",
"CCMatch",
"=",
"CallerCC",
"==",
"CalleeCC",
";",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"Attempting to lower call as tail call\\n\"",
")",
";",
"if",
"(",
"Info",
".",
"SwiftErrorVReg",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"... Cannot handle tail calls with swifterror yet.\\n\"",
")",
";",
"return",
"false",
";",
"}",
"if",
"(",
"!",
"Info",
".",
"OrigRet",
".",
"Ty",
"->",
"isVoidTy",
"(",
")",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"... Cannot handle non-void return types yet.\\n\"",
")",
";",
"return",
"false",
";",
"}",
"if",
"(",
"!",
"mayTailCallThisCC",
"(",
"CalleeCC",
")",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"... Calling convention cannot be tail called.\\n\"",
")",
";",
"return",
"false",
";",
"}",
"if",
"(",
"Info",
".",
"IsVarArg",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"... Tail calling varargs not supported yet.\\n\"",
")",
";",
"return",
"false",
";",
"}",
"if",
"(",
"any_of",
"(",
"CallerF",
".",
"args",
"(",
")",
",",
"[",
"]",
"(",
"const",
"Argument",
"&",
"A",
")",
"{",
"return",
"A",
".",
"hasByValAttr",
"(",
")",
"||",
"A",
".",
"hasInRegAttr",
"(",
")",
";",
"}",
")",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"... Cannot tail call from callers with byval or \"",
"\"inreg arguments.\\n\"",
")",
";",
"return",
"false",
";",
"}",
"if",
"(",
"Info",
".",
"Callee",
".",
"isGlobal",
"(",
")",
")",
"{",
"const",
"GlobalValue",
"*",
"GV",
"=",
"Info",
".",
"Callee",
".",
"getGlobal",
"(",
")",
";",
"const",
"Triple",
"&",
"TT",
"=",
"MF",
".",
"getTarget",
"(",
")",
".",
"getTargetTriple",
"(",
")",
";",
"if",
"(",
"GV",
"->",
"hasExternalWeakLinkage",
"(",
")",
"&&",
"(",
"!",
"TT",
".",
"isOSWindows",
"(",
")",
"||",
"TT",
".",
"isOSBinFormatELF",
"(",
")",
"||",
"TT",
".",
"isOSBinFormatMachO",
"(",
")",
")",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"... Cannot tail call externally-defined function \"",
"\"with weak linkage for this OS.\\n\"",
")",
";",
"return",
"false",
";",
"}",
"}",
"assert",
"(",
"(",
"!",
"Info",
".",
"IsVarArg",
"||",
"CalleeCC",
"==",
"CallingConv",
"::",
"C",
")",
"&&",
"\"Unexpected variadic calling convention\"",
")",
";",
"if",
"(",
"!",
"CCMatch",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"... Cannot tail call with mismatched calling conventions yet.\\n\"",
")",
";",
"return",
"false",
";",
"}",
"if",
"(",
"!",
"Info",
".",
"OrigArgs",
".",
"empty",
"(",
")",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"... Cannot tail call callees with outgoing arguments yet.\\n\"",
")",
";",
"return",
"false",
";",
"}",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"... Call is eligible for tail call optimization.\\n\"",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"the",
"call",
"can",
"be",
"lowered",
"as",
"a",
"tail",
"call",
"."
] | [
"AArch64",
"AArch64",
"\"Attempting to lower call as tail call\\n\"",
"\"... Cannot handle tail calls with swifterror yet.\\n\"",
"\"... Cannot handle non-void return types yet.\\n\"",
"\"... Calling convention cannot be tail called.\\n\"",
"\"... Tail calling varargs not supported yet.\\n\"",
"\"... Cannot tail call from callers with byval or \"",
"\"inreg arguments.\\n\"",
"\"... Cannot tail call externally-defined function \"",
"\"with weak linkage for this OS.\\n\"",
"\"Unexpected variadic calling convention\"",
"\"... Cannot tail call with mismatched calling conventions yet.\\n\"",
"\"... Cannot tail call callees with outgoing arguments yet.\\n\"",
"\"... Call is eligible for tail call optimization.\\n\""
] | AArch64CallLowering25 | isEligibleForTailCallOptimization | AArch64 | CPU | LLVM | 25,983 | 370 | 1 | [] |
[
"<s>",
"bool",
"ARMTargetLowering",
"::",
"ExpandInlineAsm",
"(",
"CallInst",
"*",
"CI",
")",
"const",
"{",
"if",
"(",
"!",
"Subtarget",
"->",
"hasV6Ops",
"(",
")",
")",
"return",
"false",
";",
"InlineAsm",
"*",
"IA",
"=",
"cast",
"<",
"InlineAsm",
">",
"(",
"CI",
"->",
"getCalledValue",
"(",
")",
")",
";",
"std",
"::",
"string",
"AsmStr",
"=",
"IA",
"->",
"getAsmString",
"(",
")",
";",
"SmallVector",
"<",
"StringRef",
",",
"4",
">",
"AsmPieces",
";",
"SplitString",
"(",
"AsmStr",
",",
"AsmPieces",
",",
"\";\\n\"",
")",
";",
"switch",
"(",
"AsmPieces",
".",
"size",
"(",
")",
")",
"{",
"default",
":",
"return",
"false",
";",
"case",
"1",
":",
"AsmStr",
"=",
"AsmPieces",
"[",
"0",
"]",
";",
"AsmPieces",
".",
"clear",
"(",
")",
";",
"SplitString",
"(",
"AsmStr",
",",
"AsmPieces",
",",
"\" \\t,\"",
")",
";",
"if",
"(",
"AsmPieces",
".",
"size",
"(",
")",
"==",
"3",
"&&",
"AsmPieces",
"[",
"0",
"]",
"==",
"\"rev\"",
"&&",
"AsmPieces",
"[",
"1",
"]",
"==",
"\"$0\"",
"&&",
"AsmPieces",
"[",
"2",
"]",
"==",
"\"$1\"",
"&&",
"IA",
"->",
"getConstraintString",
"(",
")",
".",
"compare",
"(",
"0",
",",
"4",
",",
"\"=l,l\"",
")",
"==",
"0",
")",
"{",
"IntegerType",
"*",
"Ty",
"=",
"dyn_cast",
"<",
"IntegerType",
">",
"(",
"CI",
"->",
"getType",
"(",
")",
")",
";",
"if",
"(",
"Ty",
"&&",
"Ty",
"->",
"getBitWidth",
"(",
")",
"==",
"32",
")",
"return",
"IntrinsicLowering",
"::",
"LowerToByteSwap",
"(",
"CI",
")",
";",
"}",
"break",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"This",
"hook",
"allows",
"the",
"target",
"to",
"expand",
"an",
"inline",
"asm",
"call",
"to",
"be",
"explicit",
"llvm",
"code",
"if",
"it",
"wants",
"to",
"."
] | [
"ARM",
"ARM",
"4",
"\";\\n\"",
"1",
"0",
"\" \\t,\"",
"3",
"0",
"\"rev\"",
"1",
"\"$0\"",
"2",
"\"$1\"",
"0",
"4",
"\"=l,l\"",
"0",
"32"
] | ARMISelLowering (2) | ExpandInlineAsm | ARM | CPU | LLVM | 25,984 | 199 | 1 | [] |
[
"<s>",
"bool",
"ARMCodeGenPrepare",
"::",
"doInitialization",
"(",
"Module",
"&",
"M",
")",
"{",
"Promoter",
"=",
"new",
"IRPromoter",
"(",
"&",
"M",
")",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Set",
"up",
"the",
"AsmPrinter",
"when",
"we",
"are",
"working",
"on",
"a",
"new",
"module",
"."
] | [
"ARM",
"ARM"
] | ARMCodeGenPrepare | doInitialization | ARM | CPU | LLVM | 25,985 | 23 | 1 | [] |
[
"<s>",
"static",
"rtx",
"c6x_expand_builtin",
"(",
"tree",
"exp",
",",
"rtx",
"target",
"ATTRIBUTE_UNUSED",
",",
"rtx",
"subtarget",
"ATTRIBUTE_UNUSED",
",",
"machine_mode",
"mode",
"ATTRIBUTE_UNUSED",
",",
"int",
"ignore",
"ATTRIBUTE_UNUSED",
")",
"{",
"size_t",
"i",
";",
"const",
"struct",
"builtin_description",
"*",
"d",
";",
"tree",
"fndecl",
"=",
"TREE_OPERAND",
"(",
"CALL_EXPR_FN",
"(",
"exp",
")",
",",
"0",
")",
";",
"unsigned",
"int",
"fcode",
"=",
"DECL_MD_FUNCTION_CODE",
"(",
"fndecl",
")",
";",
"for",
"(",
"i",
"=",
"0",
",",
"d",
"=",
"bdesc_2arg",
";",
"i",
"<",
"ARRAY_SIZE",
"(",
"bdesc_2arg",
")",
";",
"i",
"++",
",",
"d",
"++",
")",
"if",
"(",
"d",
"->",
"code",
"==",
"fcode",
")",
"return",
"c6x_expand_binop_builtin",
"(",
"d",
"->",
"icode",
",",
"exp",
",",
"target",
",",
"fcode",
"==",
"C6X_BUILTIN_CLRR",
")",
";",
"for",
"(",
"i",
"=",
"0",
",",
"d",
"=",
"bdesc_1arg",
";",
"i",
"<",
"ARRAY_SIZE",
"(",
"bdesc_1arg",
")",
";",
"i",
"++",
",",
"d",
"++",
")",
"if",
"(",
"d",
"->",
"code",
"==",
"fcode",
")",
"return",
"c6x_expand_unop_builtin",
"(",
"d",
"->",
"icode",
",",
"exp",
",",
"target",
")",
";",
"gcc_unreachable",
"(",
")",
";",
"}",
"</s>"
] | [
"Expand",
"an",
"expression",
"EXP",
"that",
"calls",
"a",
"built-in",
"function",
",",
"with",
"result",
"going",
"to",
"TARGET",
"if",
"that",
"'s",
"convenient",
"(",
"and",
"in",
"mode",
"MODE",
"if",
"that",
"'s",
"convenient",
")",
".",
"SUBTARGET",
"may",
"be",
"used",
"as",
"the",
"target",
"for",
"computing",
"one",
"of",
"EXP",
"'s",
"operands",
".",
"IGNORE",
"is",
"nonzero",
"if",
"the",
"value",
"is",
"to",
"be",
"ignored",
"."
] | [
"c6x",
"0",
"0",
"0"
] | c6x | c6x_expand_builtin | c6x | VLIW | GCC | 25,986 | 150 | 1 | [] |
[
"<s>",
"bool",
"check_if_valid_regno_const",
"(",
"rtx",
"*",
"operands",
",",
"int",
"opno",
")",
"{",
"switch",
"(",
"GET_CODE",
"(",
"operands",
"[",
"opno",
"]",
")",
")",
"{",
"case",
"SYMBOL_REF",
":",
"case",
"CONST",
":",
"case",
"CONST_INT",
":",
"return",
"true",
";",
"default",
":",
"error",
"(",
"\"register number must be a compile-time constant. Try giving higher optimization levels\"",
")",
";",
"break",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"the",
"operands",
"[",
"opno",
"]",
"is",
"a",
"valid",
"compile-time",
"constant",
"to",
"be",
"used",
"as",
"register",
"number",
"in",
"the",
"code",
"for",
"builtins",
".",
"Else",
"it",
"flags",
"an",
"error",
"and",
"returns",
"false",
"."
] | [
"arc",
"\"register number must be a compile-time constant. Try giving higher optimization levels\""
] | arc4 | check_if_valid_regno_const | arc | MPU | GCC | 25,987 | 48 | 1 | [] |
[
"<s>",
"unsigned",
"CSKYInstrInfo",
"::",
"getInstSizeInBytes",
"(",
"const",
"MachineInstr",
"&",
"MI",
")",
"const",
"{",
"switch",
"(",
"MI",
".",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"return",
"MI",
".",
"getDesc",
"(",
")",
".",
"getSize",
"(",
")",
";",
"case",
"CSKY",
"::",
"CONSTPOOL_ENTRY",
":",
"return",
"MI",
".",
"getOperand",
"(",
"2",
")",
".",
"getImm",
"(",
")",
";",
"case",
"CSKY",
"::",
"SPILL_CARRY",
":",
"case",
"CSKY",
"::",
"RESTORE_CARRY",
":",
"case",
"CSKY",
"::",
"PseudoTLSLA32",
":",
"return",
"8",
";",
"case",
"TargetOpcode",
"::",
"INLINEASM_BR",
":",
"case",
"TargetOpcode",
"::",
"INLINEASM",
":",
"{",
"const",
"MachineFunction",
"*",
"MF",
"=",
"MI",
".",
"getParent",
"(",
")",
"->",
"getParent",
"(",
")",
";",
"const",
"char",
"*",
"AsmStr",
"=",
"MI",
".",
"getOperand",
"(",
"0",
")",
".",
"getSymbolName",
"(",
")",
";",
"return",
"getInlineAsmLength",
"(",
"AsmStr",
",",
"*",
"MF",
"->",
"getTarget",
"(",
")",
".",
"getMCAsmInfo",
"(",
")",
")",
";",
"}",
"}",
"}",
"</s>"
] | [
"Returns",
"the",
"size",
"in",
"bytes",
"of",
"the",
"specified",
"MachineInstr",
",",
"or",
"~0U",
"when",
"this",
"function",
"is",
"not",
"implemented",
"by",
"a",
"target",
"."
] | [
"CSKY",
"CSKY",
"CSKY::CONSTPOOL_ENTRY",
"2",
"CSKY::SPILL_CARRY",
"CSKY::RESTORE_CARRY",
"CSKY::PseudoTLSLA32",
"8",
"0"
] | CSKYInstrInfo1 | getInstSizeInBytes | CSKY | CPU | LLVM | 25,988 | 131 | 1 | [] |
[
"<s>",
"bool",
"AMDGPUPassConfig",
"::",
"addPreRegAlloc",
"(",
")",
"{",
"addPass",
"(",
"createAMDGPUConvertToISAPass",
"(",
"*",
"TM",
")",
")",
";",
"const",
"AMDGPUSubtarget",
"&",
"ST",
"=",
"TM",
"->",
"getSubtarget",
"<",
"AMDGPUSubtarget",
">",
"(",
")",
";",
"if",
"(",
"ST",
".",
"getGeneration",
"(",
")",
"<=",
"AMDGPUSubtarget",
"::",
"NORTHERN_ISLANDS",
")",
"{",
"addPass",
"(",
"createR600VectorRegMerger",
"(",
"*",
"TM",
")",
")",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"This",
"method",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"immediately",
"before",
"register",
"allocation",
"."
] | [
"R600"
] | AMDGPUTargetMachine109 | addPreRegAlloc | R600 | GPU | LLVM | 25,989 | 57 | 1 | [] |
[
"<s>",
"MachineInstr",
"*",
"SIInstrInfo",
"::",
"convertToThreeAddress",
"(",
"MachineFunction",
"::",
"iterator",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"&",
"MI",
",",
"LiveVariables",
"*",
"LV",
")",
"const",
"{",
"switch",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"return",
"nullptr",
";",
"case",
"AMDGPU",
"::",
"V_MAC_F32_e64",
":",
"break",
";",
"case",
"AMDGPU",
"::",
"V_MAC_F32_e32",
":",
"{",
"const",
"MachineOperand",
"*",
"Src0",
"=",
"getNamedOperand",
"(",
"*",
"MI",
",",
"AMDGPU",
"::",
"OpName",
"::",
"src0",
")",
";",
"if",
"(",
"Src0",
"->",
"isImm",
"(",
")",
"&&",
"!",
"isInlineConstant",
"(",
"*",
"Src0",
",",
"4",
")",
")",
"return",
"nullptr",
";",
"break",
";",
"}",
"}",
"const",
"MachineOperand",
"*",
"Dst",
"=",
"getNamedOperand",
"(",
"*",
"MI",
",",
"AMDGPU",
"::",
"OpName",
"::",
"dst",
")",
";",
"const",
"MachineOperand",
"*",
"Src0",
"=",
"getNamedOperand",
"(",
"*",
"MI",
",",
"AMDGPU",
"::",
"OpName",
"::",
"src0",
")",
";",
"const",
"MachineOperand",
"*",
"Src1",
"=",
"getNamedOperand",
"(",
"*",
"MI",
",",
"AMDGPU",
"::",
"OpName",
"::",
"src1",
")",
";",
"const",
"MachineOperand",
"*",
"Src2",
"=",
"getNamedOperand",
"(",
"*",
"MI",
",",
"AMDGPU",
"::",
"OpName",
"::",
"src2",
")",
";",
"return",
"BuildMI",
"(",
"*",
"MBB",
",",
"MI",
",",
"MI",
"->",
"getDebugLoc",
"(",
")",
",",
"get",
"(",
"AMDGPU",
"::",
"V_MAD_F32",
")",
")",
".",
"addOperand",
"(",
"*",
"Dst",
")",
".",
"addImm",
"(",
"0",
")",
".",
"addOperand",
"(",
"*",
"Src0",
")",
".",
"addImm",
"(",
"0",
")",
".",
"addOperand",
"(",
"*",
"Src1",
")",
".",
"addImm",
"(",
"0",
")",
".",
"addOperand",
"(",
"*",
"Src2",
")",
".",
"addImm",
"(",
"0",
")",
".",
"addImm",
"(",
"0",
")",
";",
"}",
"</s>"
] | [
"convertToThreeAddress",
"-",
"This",
"method",
"must",
"be",
"implemented",
"by",
"targets",
"that",
"set",
"the",
"M_CONVERTIBLE_TO_3_ADDR",
"flag",
"."
] | [
"AMDGPU",
"SI",
"AMDGPU::V_MAC_F32_e64",
"AMDGPU::V_MAC_F32_e32",
"AMDGPU::OpName",
"4",
"AMDGPU::OpName",
"AMDGPU::OpName",
"AMDGPU::OpName",
"AMDGPU::OpName",
"AMDGPU::V_MAD_F32",
"0",
"0",
"0",
"0",
"0"
] | SIInstrInfo (3) | convertToThreeAddress | AMDGPU | GPU | LLVM | 25,990 | 232 | 1 | [] |
[
"<s>",
"int",
"ix86_attr_length_immediate_default",
"(",
"rtx_insn",
"*",
"insn",
",",
"bool",
"shortform",
")",
"{",
"int",
"len",
"=",
"0",
";",
"int",
"i",
";",
"extract_insn_cached",
"(",
"insn",
")",
";",
"for",
"(",
"i",
"=",
"recog_data",
".",
"n_operands",
"-",
"1",
";",
"i",
">=",
"0",
";",
"--",
"i",
")",
"if",
"(",
"CONSTANT_P",
"(",
"recog_data",
".",
"operand",
"[",
"i",
"]",
")",
")",
"{",
"enum",
"attr_mode",
"mode",
"=",
"get_attr_mode",
"(",
"insn",
")",
";",
"gcc_assert",
"(",
"!",
"len",
")",
";",
"if",
"(",
"shortform",
"&&",
"CONST_INT_P",
"(",
"recog_data",
".",
"operand",
"[",
"i",
"]",
")",
")",
"{",
"HOST_WIDE_INT",
"ival",
"=",
"INTVAL",
"(",
"recog_data",
".",
"operand",
"[",
"i",
"]",
")",
";",
"switch",
"(",
"mode",
")",
"{",
"case",
"MODE_QI",
":",
"len",
"=",
"1",
";",
"continue",
";",
"case",
"MODE_HI",
":",
"ival",
"=",
"trunc_int_for_mode",
"(",
"ival",
",",
"HImode",
")",
";",
"break",
";",
"case",
"MODE_SI",
":",
"ival",
"=",
"trunc_int_for_mode",
"(",
"ival",
",",
"SImode",
")",
";",
"break",
";",
"default",
":",
"break",
";",
"}",
"if",
"(",
"IN_RANGE",
"(",
"ival",
",",
"-",
"128",
",",
"127",
")",
")",
"{",
"len",
"=",
"1",
";",
"continue",
";",
"}",
"}",
"switch",
"(",
"mode",
")",
"{",
"case",
"MODE_QI",
":",
"len",
"=",
"1",
";",
"break",
";",
"case",
"MODE_HI",
":",
"len",
"=",
"2",
";",
"break",
";",
"case",
"MODE_SI",
":",
"len",
"=",
"4",
";",
"break",
";",
"case",
"MODE_DI",
":",
"len",
"=",
"4",
";",
"break",
";",
"default",
":",
"fatal_insn",
"(",
"\"unknown insn mode\"",
",",
"insn",
")",
";",
"}",
"}",
"return",
"len",
";",
"}",
"</s>"
] | [
"Compute",
"default",
"value",
"for",
"``",
"length_immediate",
"''",
"attribute",
".",
"When",
"SHORTFORM",
"is",
"set",
"expect",
"that",
"insn",
"have",
"8bit",
"immediate",
"alternative",
"."
] | [
"i386",
"0",
"1",
"0",
"1",
"128",
"127",
"1",
"1",
"2",
"4",
"4",
"\"unknown insn mode\""
] | i386 | ix86_attr_length_immediate_default | i386 | CPU | GCC | 25,991 | 221 | 1 | [] |
[
"<s>",
"static",
"rtx",
"expand_set_or_cpymem_constant_prologue",
"(",
"rtx",
"dst",
",",
"rtx",
"*",
"srcp",
",",
"rtx",
"destreg",
",",
"rtx",
"srcreg",
",",
"rtx",
"value",
",",
"rtx",
"vec_value",
",",
"int",
"desired_align",
",",
"int",
"align_bytes",
",",
"bool",
"issetmem",
")",
"{",
"rtx",
"src",
"=",
"NULL",
";",
"rtx",
"orig_dst",
"=",
"dst",
";",
"rtx",
"orig_src",
"=",
"NULL",
";",
"int",
"piece_size",
"=",
"1",
";",
"int",
"copied_bytes",
"=",
"0",
";",
"if",
"(",
"!",
"issetmem",
")",
"{",
"gcc_assert",
"(",
"srcp",
"!=",
"NULL",
")",
";",
"src",
"=",
"*",
"srcp",
";",
"orig_src",
"=",
"src",
";",
"}",
"for",
"(",
"piece_size",
"=",
"1",
";",
"piece_size",
"<=",
"desired_align",
"&&",
"copied_bytes",
"<",
"align_bytes",
";",
"piece_size",
"<<=",
"1",
")",
"{",
"if",
"(",
"align_bytes",
"&",
"piece_size",
")",
"{",
"if",
"(",
"issetmem",
")",
"{",
"if",
"(",
"vec_value",
"&&",
"piece_size",
">",
"GET_MODE_SIZE",
"(",
"GET_MODE",
"(",
"value",
")",
")",
")",
"dst",
"=",
"emit_memset",
"(",
"dst",
",",
"destreg",
",",
"vec_value",
",",
"piece_size",
")",
";",
"else",
"dst",
"=",
"emit_memset",
"(",
"dst",
",",
"destreg",
",",
"value",
",",
"piece_size",
")",
";",
"}",
"else",
"dst",
"=",
"emit_memmov",
"(",
"dst",
",",
"&",
"src",
",",
"destreg",
",",
"srcreg",
",",
"piece_size",
")",
";",
"copied_bytes",
"+=",
"piece_size",
";",
"}",
"}",
"if",
"(",
"MEM_ALIGN",
"(",
"dst",
")",
"<",
"(",
"unsigned",
"int",
")",
"desired_align",
"*",
"BITS_PER_UNIT",
")",
"set_mem_align",
"(",
"dst",
",",
"desired_align",
"*",
"BITS_PER_UNIT",
")",
";",
"if",
"(",
"MEM_SIZE_KNOWN_P",
"(",
"orig_dst",
")",
")",
"set_mem_size",
"(",
"dst",
",",
"MEM_SIZE",
"(",
"orig_dst",
")",
"-",
"align_bytes",
")",
";",
"if",
"(",
"!",
"issetmem",
")",
"{",
"int",
"src_align_bytes",
"=",
"get_mem_align_offset",
"(",
"src",
",",
"desired_align",
"*",
"BITS_PER_UNIT",
")",
";",
"if",
"(",
"src_align_bytes",
">=",
"0",
")",
"src_align_bytes",
"=",
"desired_align",
"-",
"src_align_bytes",
";",
"if",
"(",
"src_align_bytes",
">=",
"0",
")",
"{",
"unsigned",
"int",
"src_align",
";",
"for",
"(",
"src_align",
"=",
"desired_align",
";",
"src_align",
">=",
"2",
";",
"src_align",
">>=",
"1",
")",
"{",
"if",
"(",
"(",
"src_align_bytes",
"&",
"(",
"src_align",
"-",
"1",
")",
")",
"==",
"(",
"align_bytes",
"&",
"(",
"src_align",
"-",
"1",
")",
")",
")",
"break",
";",
"}",
"if",
"(",
"src_align",
">",
"(",
"unsigned",
"int",
")",
"desired_align",
")",
"src_align",
"=",
"desired_align",
";",
"if",
"(",
"MEM_ALIGN",
"(",
"src",
")",
"<",
"src_align",
"*",
"BITS_PER_UNIT",
")",
"set_mem_align",
"(",
"src",
",",
"src_align",
"*",
"BITS_PER_UNIT",
")",
";",
"}",
"if",
"(",
"MEM_SIZE_KNOWN_P",
"(",
"orig_src",
")",
")",
"set_mem_size",
"(",
"src",
",",
"MEM_SIZE",
"(",
"orig_src",
")",
"-",
"align_bytes",
")",
";",
"*",
"srcp",
"=",
"src",
";",
"}",
"return",
"dst",
";",
"}",
"</s>"
] | [
"This",
"function",
"is",
"like",
"the",
"previous",
"one",
",",
"except",
"here",
"we",
"know",
"how",
"many",
"bytes",
"need",
"to",
"be",
"copied",
".",
"That",
"allows",
"us",
"to",
"update",
"alignment",
"not",
"only",
"of",
"DST",
",",
"which",
"is",
"returned",
",",
"but",
"also",
"of",
"SRC",
",",
"which",
"is",
"passed",
"as",
"a",
"pointer",
"for",
"that",
"reason",
"."
] | [
"i386",
"1",
"0",
"1",
"1",
"0",
"0",
"2",
"1",
"1",
"1"
] | i386-expand | expand_set_or_cpymem_constant_prologue | i386 | CPU | GCC | 25,992 | 365 | 1 | [] |
[
"<s>",
"static",
"bool",
"nvptx_goacc_validate_dims",
"(",
"tree",
"decl",
",",
"int",
"dims",
"[",
"]",
",",
"int",
"fn_level",
",",
"unsigned",
"used",
")",
"{",
"int",
"old_dims",
"[",
"GOMP_DIM_MAX",
"]",
";",
"unsigned",
"int",
"i",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"GOMP_DIM_MAX",
";",
"++",
"i",
")",
"old_dims",
"[",
"i",
"]",
"=",
"dims",
"[",
"i",
"]",
";",
"nvptx_goacc_validate_dims_1",
"(",
"decl",
",",
"dims",
",",
"fn_level",
",",
"used",
")",
";",
"gcc_assert",
"(",
"dims",
"[",
"GOMP_DIM_VECTOR",
"]",
"!=",
"0",
")",
";",
"if",
"(",
"dims",
"[",
"GOMP_DIM_WORKER",
"]",
">",
"0",
"&&",
"dims",
"[",
"GOMP_DIM_VECTOR",
"]",
">",
"0",
")",
"gcc_assert",
"(",
"dims",
"[",
"GOMP_DIM_WORKER",
"]",
"*",
"dims",
"[",
"GOMP_DIM_VECTOR",
"]",
"<=",
"PTX_CTA_SIZE",
")",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"GOMP_DIM_MAX",
";",
"++",
"i",
")",
"if",
"(",
"old_dims",
"[",
"i",
"]",
"!=",
"dims",
"[",
"i",
"]",
")",
"return",
"true",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Validate",
"compute",
"dimensions",
"of",
"an",
"OpenACC",
"offload",
"or",
"routine",
",",
"fill",
"in",
"non-unity",
"defaults",
".",
"FN_LEVEL",
"indicates",
"the",
"level",
"at",
"which",
"a",
"routine",
"might",
"spawn",
"a",
"loop",
".",
"It",
"is",
"negative",
"for",
"non-routines",
".",
"If",
"DECL",
"is",
"null",
",",
"we",
"are",
"validating",
"the",
"default",
"dimensions",
"."
] | [
"nvptx",
"0",
"0",
"0",
"0",
"0"
] | nvptx | nvptx_goacc_validate_dims | nvptx | GPU | GCC | 25,993 | 136 | 1 | [] |
[
"<s>",
"void",
"getAnalysisUsage",
"(",
"AnalysisUsage",
"&",
"AU",
")",
"const",
"{",
"AU",
".",
"setPreservesCFG",
"(",
")",
";",
"AU",
".",
"addRequired",
"<",
"MachineDominatorTree",
">",
"(",
")",
";",
"AU",
".",
"addPreserved",
"<",
"MachineDominatorTree",
">",
"(",
")",
";",
"AU",
".",
"addRequired",
"<",
"MachineLoopInfo",
">",
"(",
")",
";",
"AU",
".",
"addPreserved",
"<",
"MachineLoopInfo",
">",
"(",
")",
";",
"MachineFunctionPass",
"::",
"getAnalysisUsage",
"(",
"AU",
")",
";",
"}",
"</s>"
] | [
"getAnalysisUsage",
"-",
"Subclasses",
"that",
"override",
"getAnalysisUsage",
"must",
"call",
"this",
"."
] | [
"rvex"
] | rvexVLIWPacketizer | getAnalysisUsage | rvex | VLIW | LLVM | 25,994 | 59 | 1 | [] |
[
"<s>",
"SDValue",
"XCoreSelectionDAGInfo",
"::",
"EmitTargetCodeForMemcpy",
"(",
"SelectionDAG",
"&",
"DAG",
",",
"SDLoc",
"dl",
",",
"SDValue",
"Chain",
",",
"SDValue",
"Dst",
",",
"SDValue",
"Src",
",",
"SDValue",
"Size",
",",
"unsigned",
"Align",
",",
"bool",
"isVolatile",
",",
"bool",
"AlwaysInline",
",",
"MachinePointerInfo",
"DstPtrInfo",
",",
"MachinePointerInfo",
"SrcPtrInfo",
")",
"const",
"{",
"unsigned",
"SizeBitWidth",
"=",
"Size",
".",
"getValueType",
"(",
")",
".",
"getSizeInBits",
"(",
")",
";",
"if",
"(",
"!",
"AlwaysInline",
"&&",
"(",
"Align",
"&",
"3",
")",
"==",
"0",
"&&",
"DAG",
".",
"MaskedValueIsZero",
"(",
"Size",
",",
"APInt",
"(",
"SizeBitWidth",
",",
"3",
")",
")",
")",
"{",
"const",
"TargetLowering",
"&",
"TLI",
"=",
"*",
"DAG",
".",
"getSubtarget",
"(",
")",
".",
"getTargetLowering",
"(",
")",
";",
"TargetLowering",
"::",
"ArgListTy",
"Args",
";",
"TargetLowering",
"::",
"ArgListEntry",
"Entry",
";",
"Entry",
".",
"Ty",
"=",
"TLI",
".",
"getDataLayout",
"(",
")",
"->",
"getIntPtrType",
"(",
"*",
"DAG",
".",
"getContext",
"(",
")",
")",
";",
"Entry",
".",
"Node",
"=",
"Dst",
";",
"Args",
".",
"push_back",
"(",
"Entry",
")",
";",
"Entry",
".",
"Node",
"=",
"Src",
";",
"Args",
".",
"push_back",
"(",
"Entry",
")",
";",
"Entry",
".",
"Node",
"=",
"Size",
";",
"Args",
".",
"push_back",
"(",
"Entry",
")",
";",
"TargetLowering",
"::",
"CallLoweringInfo",
"CLI",
"(",
"DAG",
")",
";",
"CLI",
".",
"setDebugLoc",
"(",
"dl",
")",
".",
"setChain",
"(",
"Chain",
")",
".",
"setCallee",
"(",
"TLI",
".",
"getLibcallCallingConv",
"(",
"RTLIB",
"::",
"MEMCPY",
")",
",",
"Type",
"::",
"getVoidTy",
"(",
"*",
"DAG",
".",
"getContext",
"(",
")",
")",
",",
"DAG",
".",
"getExternalSymbol",
"(",
"\"__memcpy_4\"",
",",
"TLI",
".",
"getPointerTy",
"(",
")",
")",
",",
"std",
"::",
"move",
"(",
"Args",
")",
",",
"0",
")",
".",
"setDiscardResult",
"(",
")",
";",
"std",
"::",
"pair",
"<",
"SDValue",
",",
"SDValue",
">",
"CallResult",
"=",
"TLI",
".",
"LowerCallTo",
"(",
"CLI",
")",
";",
"return",
"CallResult",
".",
"second",
";",
"}",
"return",
"SDValue",
"(",
")",
";",
"}",
"</s>"
] | [
"Emit",
"target-specific",
"code",
"that",
"performs",
"a",
"memcpy",
"."
] | [
"XCore",
"XCore",
"3",
"0",
"3",
"\"__memcpy_4\"",
"0"
] | XCoreSelectionDAGInfo6 | EmitTargetCodeForMemcpy | XCore | MPU | LLVM | 25,995 | 266 | 1 | [] |
[
"<s>",
"bool",
"has",
"(",
"unsigned",
"R",
")",
"const",
"{",
"unsigned",
"Idx",
"=",
"v2x",
"(",
"R",
")",
";",
"if",
"(",
"Idx",
">=",
"size",
"(",
")",
")",
"return",
"false",
";",
"return",
"BitVector",
"::",
"test",
"(",
"Idx",
")",
";",
"}",
"</s>"
] | [
"Tests",
"whether",
"a",
"library",
"function",
"is",
"available",
"."
] | [
"Hexagon"
] | HexagonBitSimplify (2) | has | Hexagon | DSP | LLVM | 25,996 | 36 | 1 | [] |
[
"<s>",
"bool",
"rs6000_return_in_msb",
"(",
"const_tree",
"valtype",
")",
"{",
"return",
"(",
"DEFAULT_ABI",
"==",
"ABI_ELFv2",
"&&",
"BYTES_BIG_ENDIAN",
"&&",
"AGGREGATE_TYPE_P",
"(",
"valtype",
")",
"&&",
"(",
"rs6000_function_arg_padding",
"(",
"TYPE_MODE",
"(",
"valtype",
")",
",",
"valtype",
")",
"==",
"PAD_UPWARD",
")",
")",
";",
"}",
"</s>"
] | [
"Specify",
"whether",
"values",
"returned",
"in",
"registers",
"should",
"be",
"at",
"the",
"most",
"significant",
"end",
"of",
"a",
"register",
".",
"We",
"want",
"aggregates",
"returned",
"by",
"value",
"to",
"match",
"the",
"way",
"aggregates",
"are",
"passed",
"to",
"functions",
"."
] | [
"rs6000"
] | rs6000-call | rs6000_return_in_msb | rs6000 | CPU | GCC | 25,997 | 36 | 1 | [] |
[
"<s>",
"static",
"rtx",
"mips_unspec_offset_high",
"(",
"rtx",
"temp",
",",
"rtx",
"base",
",",
"rtx",
"addr",
",",
"enum",
"mips_symbol_type",
"symbol_type",
")",
"{",
"if",
"(",
"mips_split_p",
"[",
"symbol_type",
"]",
")",
"{",
"addr",
"=",
"gen_rtx_HIGH",
"(",
"Pmode",
",",
"mips_unspec_address",
"(",
"addr",
",",
"symbol_type",
")",
")",
";",
"addr",
"=",
"mips_force_temporary",
"(",
"temp",
",",
"addr",
")",
";",
"base",
"=",
"mips_force_temporary",
"(",
"temp",
",",
"gen_rtx_PLUS",
"(",
"Pmode",
",",
"addr",
",",
"base",
")",
")",
";",
"}",
"return",
"base",
";",
"}",
"</s>"
] | [
"If",
"mips_unspec_address",
"(",
"ADDR",
",",
"SYMBOL_TYPE",
")",
"is",
"a",
"32-bit",
"value",
",",
"add",
"the",
"high",
"part",
"to",
"BASE",
"and",
"return",
"the",
"result",
".",
"Just",
"return",
"BASE",
"otherwise",
".",
"TEMP",
"is",
"available",
"as",
"a",
"temporary",
"register",
"if",
"needed",
".",
"The",
"returned",
"expression",
"can",
"be",
"used",
"as",
"the",
"first",
"operand",
"to",
"a",
"LO_SUM",
"."
] | [
"mips"
] | mips | mips_unspec_offset_high | mips | CPU | GCC | 25,998 | 70 | 1 | [] |
[
"<s>",
"void",
"X86FrameLowering",
"::",
"eliminateCallFramePseudoInstr",
"(",
"MachineFunction",
"&",
"MF",
",",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"I",
")",
"const",
"{",
"bool",
"reserveCallFrame",
"=",
"hasReservedCallFrame",
"(",
"MF",
")",
";",
"unsigned",
"Opcode",
"=",
"I",
"->",
"getOpcode",
"(",
")",
";",
"bool",
"isDestroy",
"=",
"Opcode",
"==",
"TII",
".",
"getCallFrameDestroyOpcode",
"(",
")",
";",
"DebugLoc",
"DL",
"=",
"I",
"->",
"getDebugLoc",
"(",
")",
";",
"uint64_t",
"Amount",
"=",
"!",
"reserveCallFrame",
"?",
"I",
"->",
"getOperand",
"(",
"0",
")",
".",
"getImm",
"(",
")",
":",
"0",
";",
"uint64_t",
"InternalAmt",
"=",
"(",
"isDestroy",
"||",
"Amount",
")",
"?",
"I",
"->",
"getOperand",
"(",
"1",
")",
".",
"getImm",
"(",
")",
":",
"0",
";",
"I",
"=",
"MBB",
".",
"erase",
"(",
"I",
")",
";",
"if",
"(",
"!",
"reserveCallFrame",
")",
"{",
"unsigned",
"StackAlign",
"=",
"getStackAlignment",
"(",
")",
";",
"Amount",
"=",
"alignTo",
"(",
"Amount",
",",
"StackAlign",
")",
";",
"MachineModuleInfo",
"&",
"MMI",
"=",
"MF",
".",
"getMMI",
"(",
")",
";",
"const",
"Function",
"*",
"Fn",
"=",
"MF",
".",
"getFunction",
"(",
")",
";",
"bool",
"WindowsCFI",
"=",
"MF",
".",
"getTarget",
"(",
")",
".",
"getMCAsmInfo",
"(",
")",
"->",
"usesWindowsCFI",
"(",
")",
";",
"bool",
"DwarfCFI",
"=",
"!",
"WindowsCFI",
"&&",
"(",
"MMI",
".",
"hasDebugInfo",
"(",
")",
"||",
"Fn",
"->",
"needsUnwindTableEntry",
"(",
")",
")",
";",
"bool",
"HasDwarfEHHandlers",
"=",
"!",
"WindowsCFI",
"&&",
"!",
"MF",
".",
"getMMI",
"(",
")",
".",
"getLandingPads",
"(",
")",
".",
"empty",
"(",
")",
";",
"if",
"(",
"HasDwarfEHHandlers",
"&&",
"!",
"isDestroy",
"&&",
"MF",
".",
"getInfo",
"<",
"X86MachineFunctionInfo",
">",
"(",
")",
"->",
"getHasPushSequences",
"(",
")",
")",
"BuildCFI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"MCCFIInstruction",
"::",
"createGnuArgsSize",
"(",
"nullptr",
",",
"Amount",
")",
")",
";",
"if",
"(",
"Amount",
"==",
"0",
")",
"return",
";",
"Amount",
"-=",
"InternalAmt",
";",
"if",
"(",
"isDestroy",
"&&",
"InternalAmt",
"&&",
"DwarfCFI",
"&&",
"!",
"hasFP",
"(",
"MF",
")",
")",
"BuildCFI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"MCCFIInstruction",
"::",
"createAdjustCfaOffset",
"(",
"nullptr",
",",
"-",
"InternalAmt",
")",
")",
";",
"if",
"(",
"Amount",
")",
"{",
"int",
"Offset",
"=",
"isDestroy",
"?",
"Amount",
":",
"-",
"Amount",
";",
"if",
"(",
"!",
"(",
"Fn",
"->",
"optForMinSize",
"(",
")",
"&&",
"adjustStackWithPops",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"Offset",
")",
")",
")",
"BuildStackAdjustment",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"Offset",
",",
"false",
")",
";",
"}",
"if",
"(",
"DwarfCFI",
"&&",
"!",
"hasFP",
"(",
"MF",
")",
")",
"{",
"int",
"CFAOffset",
"=",
"Amount",
";",
"if",
"(",
"CFAOffset",
")",
"{",
"CFAOffset",
"=",
"isDestroy",
"?",
"-",
"CFAOffset",
":",
"CFAOffset",
";",
"BuildCFI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"MCCFIInstruction",
"::",
"createAdjustCfaOffset",
"(",
"nullptr",
",",
"CFAOffset",
")",
")",
";",
"}",
"}",
"return",
";",
"}",
"if",
"(",
"isDestroy",
"&&",
"InternalAmt",
")",
"{",
"MachineBasicBlock",
"::",
"iterator",
"B",
"=",
"MBB",
".",
"begin",
"(",
")",
";",
"while",
"(",
"I",
"!=",
"B",
"&&",
"!",
"std",
"::",
"prev",
"(",
"I",
")",
"->",
"isCall",
"(",
")",
")",
"--",
"I",
";",
"BuildStackAdjustment",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"-",
"InternalAmt",
",",
"false",
")",
";",
"}",
"}",
"</s>"
] | [
"This",
"method",
"is",
"called",
"during",
"prolog/epilog",
"code",
"insertion",
"to",
"eliminate",
"call",
"frame",
"setup",
"and",
"destroy",
"pseudo",
"instructions",
"(",
"but",
"only",
"if",
"the",
"Target",
"is",
"using",
"them",
")",
"."
] | [
"X86",
"X86",
"0",
"0",
"1",
"0",
"X86",
"0"
] | X86FrameLowering14 | eliminateCallFramePseudoInstr | X86 | CPU | LLVM | 25,999 | 450 | 1 | [] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.