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",
"HexagonInstrInfo",
"::",
"copyPhysReg",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"I",
",",
"DebugLoc",
"DL",
",",
"unsigned",
"DestReg",
",",
"unsigned",
"SrcReg",
",",
"bool",
"KillSrc",
")",
"const",
"{",
"if",
"(",
"Hexagon",
"::",
"IntRegsRegClass",
".",
"contains",
"(",
"SrcReg",
",",
"DestReg",
")",
")",
"{",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"Hexagon",
"::",
"TFR",
")",
",",
"DestReg",
")",
".",
"addReg",
"(",
"SrcReg",
")",
";",
"return",
";",
"}",
"if",
"(",
"Hexagon",
"::",
"DoubleRegsRegClass",
".",
"contains",
"(",
"SrcReg",
",",
"DestReg",
")",
")",
"{",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"Hexagon",
"::",
"TFR_64",
")",
",",
"DestReg",
")",
".",
"addReg",
"(",
"SrcReg",
")",
";",
"return",
";",
"}",
"if",
"(",
"Hexagon",
"::",
"PredRegsRegClass",
".",
"contains",
"(",
"SrcReg",
",",
"DestReg",
")",
")",
"{",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"Hexagon",
"::",
"OR_pp",
")",
",",
"DestReg",
")",
".",
"addReg",
"(",
"SrcReg",
")",
".",
"addReg",
"(",
"SrcReg",
")",
";",
"return",
";",
"}",
"if",
"(",
"Hexagon",
"::",
"DoubleRegsRegClass",
".",
"contains",
"(",
"DestReg",
",",
"SrcReg",
")",
")",
"{",
"if",
"(",
"SrcReg",
"==",
"RI",
".",
"getSubReg",
"(",
"DestReg",
",",
"Hexagon",
"::",
"subreg_loreg",
")",
")",
"{",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"Hexagon",
"::",
"TFRI",
")",
",",
"(",
"RI",
".",
"getSubReg",
"(",
"DestReg",
",",
"Hexagon",
"::",
"subreg_hireg",
")",
")",
")",
".",
"addImm",
"(",
"0",
")",
";",
"}",
"else",
"{",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"Hexagon",
"::",
"TFR",
")",
",",
"(",
"RI",
".",
"getSubReg",
"(",
"DestReg",
",",
"Hexagon",
"::",
"subreg_loreg",
")",
")",
")",
".",
"addReg",
"(",
"SrcReg",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"Hexagon",
"::",
"TFRI",
")",
",",
"(",
"RI",
".",
"getSubReg",
"(",
"DestReg",
",",
"Hexagon",
"::",
"subreg_hireg",
")",
")",
")",
".",
"addImm",
"(",
"0",
")",
";",
"}",
"return",
";",
"}",
"if",
"(",
"Hexagon",
"::",
"CRRegsRegClass",
".",
"contains",
"(",
"DestReg",
",",
"SrcReg",
")",
")",
"{",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"Hexagon",
"::",
"TFCR",
")",
",",
"DestReg",
")",
".",
"addReg",
"(",
"SrcReg",
")",
";",
"return",
";",
"}",
"llvm_unreachable",
"(",
"\"Unimplemented\"",
")",
";",
"}",
"</s>"
] | [
"}",
"Branch",
"Analysis",
"&",
"Modification"
] | [
"Hexagon",
"Hexagon",
"Hexagon::IntRegsRegClass",
"Hexagon::TFR",
"Hexagon::DoubleRegsRegClass",
"Hexagon::TFR_64",
"Hexagon::PredRegsRegClass",
"Hexagon::OR_pp",
"Hexagon::DoubleRegsRegClass",
"Hexagon::subreg_loreg",
"Hexagon::TFRI",
"Hexagon::subreg_hireg",
"0",
"Hexagon::TFR",
"Hexagon::subreg_loreg",
"Hexagon::TFRI",
"Hexagon::subreg_hireg",
"0",
"Hexagon::CRRegsRegClass",
"Hexagon::TFCR",
"\"Unimplemented\""
] | HexagonInstrInfo25 | copyPhysReg | Hexagon | DSP | LLVM | 29,200 | 338 | 1 | [] |
[
"<s>",
"void",
"split_double_mode",
"(",
"machine_mode",
"mode",
",",
"rtx",
"operands",
"[",
"]",
",",
"int",
"num",
",",
"rtx",
"lo_half",
"[",
"]",
",",
"rtx",
"hi_half",
"[",
"]",
")",
"{",
"machine_mode",
"half_mode",
";",
"unsigned",
"int",
"byte",
";",
"switch",
"(",
"mode",
")",
"{",
"case",
"E_TImode",
":",
"half_mode",
"=",
"DImode",
";",
"break",
";",
"case",
"E_DImode",
":",
"half_mode",
"=",
"SImode",
";",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"byte",
"=",
"GET_MODE_SIZE",
"(",
"half_mode",
")",
";",
"while",
"(",
"num",
"--",
")",
"{",
"rtx",
"op",
"=",
"operands",
"[",
"num",
"]",
";",
"if",
"(",
"MEM_P",
"(",
"op",
")",
")",
"{",
"lo_half",
"[",
"num",
"]",
"=",
"adjust_address",
"(",
"op",
",",
"half_mode",
",",
"0",
")",
";",
"hi_half",
"[",
"num",
"]",
"=",
"adjust_address",
"(",
"op",
",",
"half_mode",
",",
"byte",
")",
";",
"}",
"else",
"{",
"lo_half",
"[",
"num",
"]",
"=",
"simplify_gen_subreg",
"(",
"half_mode",
",",
"op",
",",
"GET_MODE",
"(",
"op",
")",
"==",
"VOIDmode",
"?",
"mode",
":",
"GET_MODE",
"(",
"op",
")",
",",
"0",
")",
";",
"hi_half",
"[",
"num",
"]",
"=",
"simplify_gen_subreg",
"(",
"half_mode",
",",
"op",
",",
"GET_MODE",
"(",
"op",
")",
"==",
"VOIDmode",
"?",
"mode",
":",
"GET_MODE",
"(",
"op",
")",
",",
"byte",
")",
";",
"}",
"}",
"}",
"</s>"
] | [
"Split",
"one",
"or",
"more",
"double-mode",
"RTL",
"references",
"into",
"pairs",
"of",
"half-mode",
"references",
".",
"The",
"RTL",
"can",
"be",
"REG",
",",
"offsettable",
"MEM",
",",
"integer",
"constant",
",",
"or",
"CONST_DOUBLE",
".",
"``",
"operands",
"''",
"is",
"a",
"pointer",
"to",
"an",
"array",
"of",
"double-mode",
"RTLs",
"to",
"split",
"and",
"``",
"num",
"''",
"is",
"its",
"length",
".",
"lo_half",
"and",
"hi_half",
"are",
"output",
"arrays",
"that",
"parallel",
"``",
"operands",
"''",
"."
] | [
"i386",
"0",
"0"
] | i3867 | split_double_mode | i386 | CPU | GCC | 29,201 | 181 | 1 | [] |
[
"<s>",
"static",
"bool",
"mmix_legitimate_constant_p",
"(",
"machine_mode",
"mode",
"ATTRIBUTE_UNUSED",
",",
"rtx",
"x",
")",
"{",
"RTX_CODE",
"code",
"=",
"GET_CODE",
"(",
"x",
")",
";",
"if",
"(",
"code",
"==",
"CONST_INT",
"||",
"code",
"==",
"CONST_DOUBLE",
")",
"return",
"1",
";",
"return",
"CONSTANT_ADDRESS_P",
"(",
"x",
")",
";",
"}",
"</s>"
] | [
"LEGITIMATE_CONSTANT_P",
"."
] | [
"mmix",
"1"
] | mmix | mmix_legitimate_constant_p | mmix | CPU | GCC | 29,202 | 40 | 1 | [] |
[
"<s>",
"unsigned",
"int",
"execute",
"(",
"function",
"*",
")",
"{",
"return",
"nds32_relax_opt",
"(",
")",
";",
"}",
"</s>"
] | [
"Main",
"entry",
"point",
"for",
"this",
"pass",
"."
] | [
"nds32"
] | nds32-relax-opt | execute | nds32 | CPU | GCC | 29,203 | 14 | 1 | [] |
[
"<s>",
"void",
"getAnalysisUsage",
"(",
"AnalysisUsage",
"&",
"AU",
")",
"const",
"override",
"{",
"AU",
".",
"setPreservesCFG",
"(",
")",
";",
"AU",
".",
"addRequired",
"<",
"AAResultsWrapperPass",
">",
"(",
")",
";",
"AU",
".",
"addRequired",
"<",
"MachineBranchProbabilityInfo",
">",
"(",
")",
";",
"AU",
".",
"addRequired",
"<",
"MachineDominatorTree",
">",
"(",
")",
";",
"AU",
".",
"addRequired",
"<",
"MachineLoopInfo",
">",
"(",
")",
";",
"AU",
".",
"addPreserved",
"<",
"MachineDominatorTree",
">",
"(",
")",
";",
"AU",
".",
"addPreserved",
"<",
"MachineLoopInfo",
">",
"(",
")",
";",
"MachineFunctionPass",
"::",
"getAnalysisUsage",
"(",
"AU",
")",
";",
"}",
"</s>"
] | [
"getAnalysisUsage",
"-",
"Subclasses",
"that",
"override",
"getAnalysisUsage",
"must",
"call",
"this",
"."
] | [
"Hexagon"
] | HexagonVLIWPacketizer (2)1 | getAnalysisUsage | Hexagon | DSP | LLVM | 29,204 | 78 | 1 | [] |
[
"<s>",
"virtual",
"const",
"char",
"*",
"getPassName",
"(",
")",
"const",
"{",
"return",
"\"NaCl Rewrites\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"X86",
"\"NaCl Rewrites\""
] | X86NaClRewritePass | getPassName | X86 | CPU | LLVM | 29,205 | 13 | 1 | [] |
[
"<s>",
"int64_t",
"getFrameAdjustment",
"(",
"const",
"MachineInstr",
"&",
"I",
")",
"const",
"{",
"assert",
"(",
"isFrameInstr",
"(",
"I",
")",
")",
";",
"return",
"I",
".",
"getOperand",
"(",
"1",
")",
".",
"getImm",
"(",
")",
";",
"}",
"</s>"
] | [
"Returns",
"the",
"stack",
"pointer",
"adjustment",
"that",
"happens",
"inside",
"the",
"frame",
"setup",
"..",
"destroy",
"sequence",
"(",
"e.g",
"."
] | [
"X86",
"1"
] | X86InstrInfo73 | getFrameAdjustment | X86 | CPU | LLVM | 29,206 | 31 | 1 | [] |
[
"<s>",
"void",
"addExpr",
"(",
"MCInst",
"&",
"Inst",
",",
"const",
"MCExpr",
"*",
"Expr",
")",
"const",
"{",
"if",
"(",
"Expr",
"==",
"0",
")",
"Inst",
".",
"addOperand",
"(",
"MCOperand",
"::",
"CreateImm",
"(",
"0",
")",
")",
";",
"else",
"if",
"(",
"auto",
"*",
"CE",
"=",
"dyn_cast",
"<",
"MCConstantExpr",
">",
"(",
"Expr",
")",
")",
"Inst",
".",
"addOperand",
"(",
"MCOperand",
"::",
"CreateImm",
"(",
"CE",
"->",
"getValue",
"(",
")",
")",
")",
";",
"else",
"Inst",
".",
"addOperand",
"(",
"MCOperand",
"::",
"CreateExpr",
"(",
"Expr",
")",
")",
";",
"}",
"</s>"
] | [
"Add",
"a",
"new",
"MCExpr",
"operand",
"."
] | [
"SystemZ",
"0",
"0"
] | SystemZAsmParser11 | addExpr | SystemZ | CPU | LLVM | 29,207 | 77 | 1 | [] |
[
"<s>",
"void",
"maybe_unlink",
"(",
"const",
"char",
"*",
"file",
")",
"{",
"if",
"(",
"!",
"save_temps",
")",
"{",
"if",
"(",
"unlink_if_ordinary",
"(",
"file",
")",
"&&",
"errno",
"!=",
"ENOENT",
")",
"fatal_error",
"(",
"input_location",
",",
"\"deleting file %s: %m\"",
",",
"file",
")",
";",
"}",
"else",
"if",
"(",
"verbose",
")",
"fprintf",
"(",
"stderr",
",",
"\"[Leaving %s]\\n\"",
",",
"file",
")",
";",
"}",
"</s>"
] | [
"Unlink",
"a",
"temporary",
"file",
"unless",
"requested",
"otherwise",
"."
] | [
"nvptx",
"\"deleting file %s: %m\"",
"\"[Leaving %s]\\n\""
] | mkoffload | maybe_unlink | nvptx | GPU | GCC | 29,208 | 51 | 1 | [] |
[
"<s>",
"int",
"effective_address_32bit_p",
"(",
"rtx",
"op",
",",
"enum",
"machine_mode",
"mode",
")",
"{",
"HOST_WIDE_INT",
"offset",
";",
"mode",
"=",
"GET_MODE",
"(",
"op",
")",
";",
"op",
"=",
"XEXP",
"(",
"op",
",",
"0",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"op",
")",
"!=",
"PLUS",
")",
"{",
"gcc_assert",
"(",
"REG_P",
"(",
"op",
")",
"||",
"GET_CODE",
"(",
"op",
")",
"==",
"POST_INC",
"||",
"GET_CODE",
"(",
"op",
")",
"==",
"PRE_DEC",
"||",
"GET_CODE",
"(",
"op",
")",
"==",
"POST_DEC",
")",
";",
"return",
"0",
";",
"}",
"offset",
"=",
"INTVAL",
"(",
"XEXP",
"(",
"op",
",",
"1",
")",
")",
";",
"if",
"(",
"GET_MODE_SIZE",
"(",
"mode",
")",
"==",
"1",
")",
"return",
"1",
";",
"if",
"(",
"GET_MODE_SIZE",
"(",
"mode",
")",
"==",
"4",
")",
"{",
"if",
"(",
"XEXP",
"(",
"op",
",",
"0",
")",
"==",
"frame_pointer_rtx",
")",
"return",
"offset",
"<",
"-",
"128",
"||",
"offset",
">",
"60",
";",
"return",
"offset",
"<",
"0",
"||",
"offset",
">",
"60",
";",
"}",
"return",
"offset",
"<",
"0",
"||",
"offset",
">",
"30",
";",
"}",
"</s>"
] | [
"This",
"predicate",
"is",
"used",
"to",
"compute",
"the",
"length",
"of",
"a",
"load/store",
"insn",
".",
"OP",
"is",
"a",
"MEM",
"rtx",
",",
"we",
"return",
"nonzero",
"if",
"its",
"addressing",
"mode",
"requires",
"a",
"32",
"bit",
"instruction",
"."
] | [
"bfin",
"0",
"0",
"1",
"1",
"1",
"4",
"0",
"128",
"60",
"0",
"60",
"0",
"30"
] | bfin2 | effective_address_32bit_p | bfin | DSP | GCC | 29,209 | 148 | 1 | [] |
[
"<s>",
"static",
"void",
"rs6000_set_handled_components",
"(",
"sbitmap",
"components",
")",
"{",
"rs6000_stack_t",
"*",
"info",
"=",
"rs6000_stack_info",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"info",
"->",
"first_gp_reg_save",
";",
"i",
"<",
"32",
";",
"i",
"++",
")",
"if",
"(",
"bitmap_bit_p",
"(",
"components",
",",
"i",
")",
")",
"cfun",
"->",
"machine",
"->",
"gpr_is_wrapped_separately",
"[",
"i",
"]",
"=",
"true",
";",
"for",
"(",
"int",
"i",
"=",
"info",
"->",
"first_fp_reg_save",
";",
"i",
"<",
"64",
";",
"i",
"++",
")",
"if",
"(",
"bitmap_bit_p",
"(",
"components",
",",
"i",
")",
")",
"cfun",
"->",
"machine",
"->",
"fpr_is_wrapped_separately",
"[",
"i",
"-",
"32",
"]",
"=",
"true",
";",
"if",
"(",
"bitmap_bit_p",
"(",
"components",
",",
"0",
")",
")",
"cfun",
"->",
"machine",
"->",
"lr_is_wrapped_separately",
"=",
"true",
";",
"if",
"(",
"bitmap_bit_p",
"(",
"components",
",",
"2",
")",
")",
"cfun",
"->",
"machine",
"->",
"toc_is_wrapped_separately",
"=",
"true",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS",
"."
] | [
"rs6000",
"32",
"64",
"32",
"0",
"2"
] | rs60007 | rs6000_set_handled_components | rs6000 | CPU | GCC | 29,210 | 125 | 1 | [] |
[
"<s>",
"bool",
"LVLGen",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"F",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"********** Begin LVLGen **********\\n\"",
")",
";",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"********** Function: \"",
"<<",
"F",
".",
"getName",
"(",
")",
"<<",
"'\\n'",
")",
";",
"LLVM_DEBUG",
"(",
"F",
".",
"dump",
"(",
")",
")",
";",
"bool",
"Changed",
"=",
"false",
";",
"const",
"VESubtarget",
"&",
"Subtarget",
"=",
"F",
".",
"getSubtarget",
"<",
"VESubtarget",
">",
"(",
")",
";",
"TII",
"=",
"Subtarget",
".",
"getInstrInfo",
"(",
")",
";",
"TRI",
"=",
"Subtarget",
".",
"getRegisterInfo",
"(",
")",
";",
"for",
"(",
"MachineFunction",
"::",
"iterator",
"FI",
"=",
"F",
".",
"begin",
"(",
")",
",",
"FE",
"=",
"F",
".",
"end",
"(",
")",
";",
"FI",
"!=",
"FE",
";",
"++",
"FI",
")",
"Changed",
"|=",
"runOnMachineBasicBlock",
"(",
"*",
"FI",
")",
";",
"if",
"(",
"Changed",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"\\n\"",
")",
";",
"LLVM_DEBUG",
"(",
"F",
".",
"dump",
"(",
")",
")",
";",
"}",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"********** End LVLGen **********\\n\"",
")",
";",
"return",
"Changed",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"VE",
"\"********** Begin LVLGen **********\\n\"",
"\"********** Function: \"",
"VE",
"VE",
"\"\\n\"",
"\"********** End LVLGen **********\\n\""
] | LVLGen | runOnMachineFunction | VE | CPU | LLVM | 29,211 | 153 | 1 | [] |
[
"<s>",
"bool",
"isFMAFasterThanFMulAndFAdd",
"(",
"const",
"MachineFunction",
"&",
"MF",
",",
"EVT",
")",
"const",
"override",
"{",
"return",
"true",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"an",
"FMA",
"operation",
"is",
"faster",
"than",
"a",
"pair",
"of",
"fmul",
"and",
"fadd",
"instructions",
"."
] | [
"SPIRV"
] | SPIRVISelLowering | isFMAFasterThanFMulAndFAdd | SPIRV | Virtual ISA | LLVM | 29,212 | 17 | 1 | [] |
[
"<s>",
"static",
"void",
"compute_save_world_info",
"(",
"rs6000_stack_t",
"*",
"info",
")",
"{",
"info",
"->",
"world_save_p",
"=",
"1",
";",
"info",
"->",
"world_save_p",
"=",
"(",
"WORLD_SAVE_P",
"(",
"info",
")",
"&&",
"DEFAULT_ABI",
"==",
"ABI_DARWIN",
"&&",
"!",
"cfun",
"->",
"has_nonlocal_label",
"&&",
"info",
"->",
"first_fp_reg_save",
"==",
"FIRST_SAVED_FP_REGNO",
"&&",
"info",
"->",
"first_gp_reg_save",
"==",
"FIRST_SAVED_GP_REGNO",
"&&",
"info",
"->",
"first_altivec_reg_save",
"==",
"FIRST_SAVED_ALTIVEC_REGNO",
"&&",
"info",
"->",
"cr_save_p",
")",
";",
"if",
"(",
"WORLD_SAVE_P",
"(",
"info",
")",
")",
"{",
"rtx_insn",
"*",
"insn",
";",
"for",
"(",
"insn",
"=",
"get_last_insn_anywhere",
"(",
")",
";",
"insn",
";",
"insn",
"=",
"PREV_INSN",
"(",
"insn",
")",
")",
"if",
"(",
"CALL_P",
"(",
"insn",
")",
"&&",
"SIBLING_CALL_P",
"(",
"insn",
")",
")",
"{",
"info",
"->",
"world_save_p",
"=",
"0",
";",
"break",
";",
"}",
"}",
"if",
"(",
"WORLD_SAVE_P",
"(",
"info",
")",
")",
"{",
"info",
"->",
"vrsave_size",
"=",
"4",
";",
"info",
"->",
"lr_save_p",
"=",
"1",
";",
"if",
"(",
"info",
"->",
"vrsave_mask",
"==",
"0",
")",
"info",
"->",
"vrsave_mask",
"=",
"compute_vrsave_mask",
"(",
")",
";",
"gcc_assert",
"(",
"info",
"->",
"first_fp_reg_save",
">=",
"FIRST_SAVED_FP_REGNO",
"&&",
"(",
"info",
"->",
"first_altivec_reg_save",
">=",
"FIRST_SAVED_ALTIVEC_REGNO",
")",
")",
";",
"}",
"return",
";",
"}",
"</s>"
] | [
"For",
"a",
"very",
"restricted",
"set",
"of",
"circumstances",
",",
"we",
"can",
"cut",
"down",
"the",
"size",
"of",
"prologues/epilogues",
"by",
"calling",
"our",
"own",
"save/restore-the-world",
"routines",
"."
] | [
"powerpcspe",
"1",
"0",
"4",
"1",
"0"
] | powerpcspe | compute_save_world_info | powerpcspe | CPU | GCC | 29,213 | 166 | 1 | [] |
[
"<s>",
"uint64_t",
"SIMCCodeEmitter",
"::",
"getMachineOpValue",
"(",
"const",
"MCInst",
"&",
"MI",
",",
"const",
"MCOperand",
"&",
"MO",
",",
"SmallVectorImpl",
"<",
"MCFixup",
">",
"&",
"Fixups",
",",
"const",
"MCSubtargetInfo",
"&",
"STI",
")",
"const",
"{",
"if",
"(",
"MO",
".",
"isReg",
"(",
")",
")",
"return",
"MRI",
".",
"getEncodingValue",
"(",
"MO",
".",
"getReg",
"(",
")",
")",
";",
"if",
"(",
"MO",
".",
"isExpr",
"(",
")",
"&&",
"MO",
".",
"getExpr",
"(",
")",
"->",
"getKind",
"(",
")",
"!=",
"MCExpr",
"::",
"Constant",
")",
"{",
"MCFixupKind",
"Kind",
";",
"if",
"(",
"needsPCRel",
"(",
"MO",
".",
"getExpr",
"(",
")",
")",
")",
"Kind",
"=",
"FK_PCRel_4",
";",
"else",
"Kind",
"=",
"FK_Data_4",
";",
"const",
"MCInstrDesc",
"&",
"Desc",
"=",
"MCII",
".",
"get",
"(",
"MI",
".",
"getOpcode",
"(",
")",
")",
";",
"uint32_t",
"Offset",
"=",
"Desc",
".",
"getSize",
"(",
")",
";",
"assert",
"(",
"Offset",
"==",
"4",
"||",
"Offset",
"==",
"8",
")",
";",
"Fixups",
".",
"push_back",
"(",
"MCFixup",
"::",
"create",
"(",
"Offset",
",",
"MO",
".",
"getExpr",
"(",
")",
",",
"Kind",
",",
"MI",
".",
"getLoc",
"(",
")",
")",
")",
";",
"}",
"unsigned",
"OpNo",
"=",
"0",
";",
"for",
"(",
"unsigned",
"e",
"=",
"MI",
".",
"getNumOperands",
"(",
")",
";",
"OpNo",
"<",
"e",
";",
"++",
"OpNo",
")",
"{",
"if",
"(",
"&",
"MO",
"==",
"&",
"MI",
".",
"getOperand",
"(",
"OpNo",
")",
")",
"break",
";",
"}",
"const",
"MCInstrDesc",
"&",
"Desc",
"=",
"MCII",
".",
"get",
"(",
"MI",
".",
"getOpcode",
"(",
")",
")",
";",
"if",
"(",
"AMDGPU",
"::",
"isSISrcOperand",
"(",
"Desc",
",",
"OpNo",
")",
")",
"{",
"uint32_t",
"Enc",
"=",
"getLitEncoding",
"(",
"MO",
",",
"Desc",
".",
"OpInfo",
"[",
"OpNo",
"]",
",",
"STI",
")",
";",
"if",
"(",
"Enc",
"!=",
"~",
"0U",
"&&",
"(",
"Enc",
"!=",
"255",
"||",
"Desc",
".",
"getSize",
"(",
")",
"==",
"4",
"||",
"Desc",
".",
"getSize",
"(",
")",
"==",
"8",
")",
")",
"return",
"Enc",
";",
"}",
"else",
"if",
"(",
"MO",
".",
"isImm",
"(",
")",
")",
"return",
"MO",
".",
"getImm",
"(",
")",
";",
"llvm_unreachable",
"(",
"\"Encoding of this operand type is not supported yet.\"",
")",
";",
"return",
"0",
";",
"}",
"</s>"
] | [
"getMachineOpValue",
"-",
"Return",
"binary",
"encoding",
"of",
"operand",
"."
] | [
"AMDGPU",
"SI",
"4",
"8",
"0",
"AMDGPU::isSISrcOperand",
"0U",
"255",
"4",
"8",
"\"Encoding of this operand type is not supported yet.\"",
"0"
] | SIMCCodeEmitter15 | getMachineOpValue | AMDGPU | GPU | LLVM | 29,214 | 301 | 1 | [] |
[
"<s>",
"const",
"MCExpr",
"*",
"X86TargetLowering",
"::",
"getPICJumpTableRelocBaseExpr",
"(",
"const",
"MachineFunction",
"*",
"MF",
",",
"unsigned",
"JTI",
",",
"MCContext",
"&",
"Ctx",
")",
"const",
"{",
"if",
"(",
"Subtarget",
"->",
"isPICStyleRIPRel",
"(",
")",
")",
"return",
"TargetLowering",
"::",
"getPICJumpTableRelocBaseExpr",
"(",
"MF",
",",
"JTI",
",",
"Ctx",
")",
";",
"return",
"MCSymbolRefExpr",
"::",
"Create",
"(",
"MF",
"->",
"getPICBaseSymbol",
"(",
")",
",",
"Ctx",
")",
";",
"}",
"</s>"
] | [
"This",
"returns",
"the",
"relocation",
"base",
"for",
"the",
"given",
"PIC",
"jumptable",
",",
"the",
"same",
"as",
"getPICJumpTableRelocBase",
",",
"but",
"as",
"an",
"MCExpr",
"."
] | [
"X86",
"X86"
] | X86ISelLowering (2) | getPICJumpTableRelocBaseExpr | X86 | CPU | LLVM | 29,215 | 56 | 1 | [] |
[
"<s>",
"bool",
"HexagonExpandCondsets",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"if",
"(",
"skipFunction",
"(",
"*",
"MF",
".",
"getFunction",
"(",
")",
")",
")",
"return",
"false",
";",
"HII",
"=",
"static_cast",
"<",
"const",
"HexagonInstrInfo",
"*",
">",
"(",
"MF",
".",
"getSubtarget",
"(",
")",
".",
"getInstrInfo",
"(",
")",
")",
";",
"TRI",
"=",
"MF",
".",
"getSubtarget",
"(",
")",
".",
"getRegisterInfo",
"(",
")",
";",
"MDT",
"=",
"&",
"getAnalysis",
"<",
"MachineDominatorTree",
">",
"(",
")",
";",
"LIS",
"=",
"&",
"getAnalysis",
"<",
"LiveIntervals",
">",
"(",
")",
";",
"MRI",
"=",
"&",
"MF",
".",
"getRegInfo",
"(",
")",
";",
"LocalImpDefs",
".",
"clear",
"(",
")",
";",
"DEBUG",
"(",
"LIS",
"->",
"print",
"(",
"dbgs",
"(",
")",
"<<",
"\"Before expand-condsets\\n\"",
",",
"MF",
".",
"getFunction",
"(",
")",
"->",
"getParent",
"(",
")",
")",
")",
";",
"bool",
"Changed",
"=",
"false",
";",
"std",
"::",
"set",
"<",
"unsigned",
">",
"SplitUpd",
",",
"PredUpd",
";",
"Changed",
"|=",
"coalesceSegments",
"(",
"MF",
")",
";",
"for",
"(",
"auto",
"&",
"B",
":",
"MF",
")",
"Changed",
"|=",
"splitInBlock",
"(",
"B",
",",
"SplitUpd",
")",
";",
"updateLiveness",
"(",
"SplitUpd",
",",
"true",
",",
"true",
",",
"false",
")",
";",
"for",
"(",
"auto",
"&",
"B",
":",
"MF",
")",
"Changed",
"|=",
"predicateInBlock",
"(",
"B",
",",
"PredUpd",
")",
";",
"updateLiveness",
"(",
"PredUpd",
",",
"true",
",",
"true",
",",
"true",
")",
";",
"std",
"::",
"set",
"<",
"unsigned",
">",
"Diff",
";",
"std",
"::",
"set_difference",
"(",
"SplitUpd",
".",
"begin",
"(",
")",
",",
"SplitUpd",
".",
"end",
"(",
")",
",",
"PredUpd",
".",
"begin",
"(",
")",
",",
"PredUpd",
".",
"end",
"(",
")",
",",
"std",
"::",
"inserter",
"(",
"Diff",
",",
"Diff",
".",
"begin",
"(",
")",
")",
")",
";",
"updateLiveness",
"(",
"Diff",
",",
"false",
",",
"false",
",",
"true",
")",
";",
"for",
"(",
"auto",
"*",
"ImpD",
":",
"LocalImpDefs",
")",
"removeInstr",
"(",
"ImpD",
")",
";",
"DEBUG",
"(",
"{",
"if",
"(",
"Changed",
")",
"LIS",
"->",
"print",
"(",
"dbgs",
"(",
")",
"<<",
"\"After expand-condsets\\n\"",
",",
"MF",
".",
"getFunction",
"(",
")",
"->",
"getParent",
"(",
")",
")",
";",
"}",
")",
";",
"return",
"Changed",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"Hexagon",
"Hexagon",
"Hexagon",
"\"Before expand-condsets\\n\"",
"\"After expand-condsets\\n\""
] | HexagonExpandCondsets32 | runOnMachineFunction | Hexagon | DSP | LLVM | 29,216 | 303 | 1 | [] |
[
"<s>",
"machine_mode",
"ix86_split_reduction",
"(",
"machine_mode",
"mode",
")",
"{",
"switch",
"(",
"mode",
")",
"{",
"case",
"E_V8DImode",
":",
"case",
"E_V4DImode",
":",
"return",
"V2DImode",
";",
"case",
"E_V16SImode",
":",
"case",
"E_V8SImode",
":",
"return",
"V4SImode",
";",
"case",
"E_V32HImode",
":",
"case",
"E_V16HImode",
":",
"return",
"V8HImode",
";",
"case",
"E_V64QImode",
":",
"case",
"E_V32QImode",
":",
"return",
"V16QImode",
";",
"case",
"E_V16SFmode",
":",
"case",
"E_V8SFmode",
":",
"return",
"V4SFmode",
";",
"case",
"E_V8DFmode",
":",
"case",
"E_V4DFmode",
":",
"return",
"V2DFmode",
";",
"default",
":",
"return",
"mode",
";",
"}",
"}",
"</s>"
] | [
"All",
"CPUs",
"prefer",
"to",
"avoid",
"cross-lane",
"operations",
"so",
"perform",
"reductions",
"upper",
"against",
"lower",
"halves",
"up",
"to",
"SSE",
"reg",
"size",
"."
] | [
"i386"
] | i386-expand | ix86_split_reduction | i386 | CPU | GCC | 29,217 | 73 | 1 | [] |
[
"<s>",
"MachineBasicBlock",
"::",
"iterator",
"DLXFrameLowering",
"::",
"eliminateCallFramePseudoInstr",
"(",
"MachineFunction",
"&",
",",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"I",
")",
"const",
"{",
"return",
"MBB",
".",
"erase",
"(",
"I",
")",
";",
"}",
"</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",
")",
"."
] | [
"DLX",
"DLX"
] | DLXFrameLowering | eliminateCallFramePseudoInstr | DLX | CPU | LLVM | 29,218 | 30 | 1 | [] |
[
"<s>",
"virtual",
"const",
"char",
"*",
"getPassName",
"(",
")",
"const",
"{",
"return",
"\"TOY Assembly Printer\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"TOY",
"\"TOY Assembly Printer\""
] | TOYAsmPrinter | getPassName | TOY | CPU | LLVM | 29,219 | 13 | 1 | [] |
[
"<s>",
"SDNode",
"*",
"PPCDAGToDAGISel",
"::",
"getGlobalBaseReg",
"(",
")",
"{",
"if",
"(",
"!",
"GlobalBaseReg",
")",
"{",
"const",
"TargetInstrInfo",
"&",
"TII",
"=",
"*",
"PPCSubTarget",
"->",
"getInstrInfo",
"(",
")",
";",
"MachineBasicBlock",
"&",
"FirstMBB",
"=",
"MF",
"->",
"front",
"(",
")",
";",
"MachineBasicBlock",
"::",
"iterator",
"MBBI",
"=",
"FirstMBB",
".",
"begin",
"(",
")",
";",
"const",
"Module",
"*",
"M",
"=",
"MF",
"->",
"getFunction",
"(",
")",
".",
"getParent",
"(",
")",
";",
"DebugLoc",
"dl",
";",
"if",
"(",
"PPCLowering",
"->",
"getPointerTy",
"(",
"CurDAG",
"->",
"getDataLayout",
"(",
")",
")",
"==",
"MVT",
"::",
"i32",
")",
"{",
"if",
"(",
"PPCSubTarget",
"->",
"isTargetELF",
"(",
")",
")",
"{",
"GlobalBaseReg",
"=",
"PPC",
"::",
"R30",
";",
"if",
"(",
"!",
"PPCSubTarget",
"->",
"isSecurePlt",
"(",
")",
"&&",
"M",
"->",
"getPICLevel",
"(",
")",
"==",
"PICLevel",
"::",
"SmallPIC",
")",
"{",
"BuildMI",
"(",
"FirstMBB",
",",
"MBBI",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"PPC",
"::",
"MoveGOTtoLR",
")",
")",
";",
"BuildMI",
"(",
"FirstMBB",
",",
"MBBI",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"PPC",
"::",
"MFLR",
")",
",",
"GlobalBaseReg",
")",
";",
"MF",
"->",
"getInfo",
"<",
"PPCFunctionInfo",
">",
"(",
")",
"->",
"setUsesPICBase",
"(",
"true",
")",
";",
"}",
"else",
"{",
"BuildMI",
"(",
"FirstMBB",
",",
"MBBI",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"PPC",
"::",
"MovePCtoLR",
")",
")",
";",
"BuildMI",
"(",
"FirstMBB",
",",
"MBBI",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"PPC",
"::",
"MFLR",
")",
",",
"GlobalBaseReg",
")",
";",
"unsigned",
"TempReg",
"=",
"RegInfo",
"->",
"createVirtualRegister",
"(",
"&",
"PPC",
"::",
"GPRCRegClass",
")",
";",
"BuildMI",
"(",
"FirstMBB",
",",
"MBBI",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"PPC",
"::",
"UpdateGBR",
")",
",",
"GlobalBaseReg",
")",
".",
"addReg",
"(",
"TempReg",
",",
"RegState",
"::",
"Define",
")",
".",
"addReg",
"(",
"GlobalBaseReg",
")",
";",
"MF",
"->",
"getInfo",
"<",
"PPCFunctionInfo",
">",
"(",
")",
"->",
"setUsesPICBase",
"(",
"true",
")",
";",
"}",
"}",
"else",
"{",
"GlobalBaseReg",
"=",
"RegInfo",
"->",
"createVirtualRegister",
"(",
"&",
"PPC",
"::",
"GPRC_and_GPRC_NOR0RegClass",
")",
";",
"BuildMI",
"(",
"FirstMBB",
",",
"MBBI",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"PPC",
"::",
"MovePCtoLR",
")",
")",
";",
"BuildMI",
"(",
"FirstMBB",
",",
"MBBI",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"PPC",
"::",
"MFLR",
")",
",",
"GlobalBaseReg",
")",
";",
"}",
"}",
"else",
"{",
"MF",
"->",
"getInfo",
"<",
"PPCFunctionInfo",
">",
"(",
")",
"->",
"setShrinkWrapDisabled",
"(",
"true",
")",
";",
"GlobalBaseReg",
"=",
"RegInfo",
"->",
"createVirtualRegister",
"(",
"&",
"PPC",
"::",
"G8RC_and_G8RC_NOX0RegClass",
")",
";",
"BuildMI",
"(",
"FirstMBB",
",",
"MBBI",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"PPC",
"::",
"MovePCtoLR8",
")",
")",
";",
"BuildMI",
"(",
"FirstMBB",
",",
"MBBI",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"PPC",
"::",
"MFLR8",
")",
",",
"GlobalBaseReg",
")",
";",
"}",
"}",
"return",
"CurDAG",
"->",
"getRegister",
"(",
"GlobalBaseReg",
",",
"PPCLowering",
"->",
"getPointerTy",
"(",
"CurDAG",
"->",
"getDataLayout",
"(",
")",
")",
")",
".",
"getNode",
"(",
")",
";",
"}",
"</s>"
] | [
"getGlobalBaseReg",
"-",
"Return",
"a",
"virtual",
"register",
"initialized",
"with",
"the",
"the",
"global",
"base",
"register",
"value",
"."
] | [
"PowerPC",
"PPC",
"PPC",
"PPC",
"MVT::i32",
"PPC",
"PPC::R30",
"PPC",
"PPC::MoveGOTtoLR",
"PPC::MFLR",
"PPC",
"PPC::MovePCtoLR",
"PPC::MFLR",
"PPC::GPRCRegClass",
"PPC::UpdateGBR",
"PPC",
"PPC::GPRC_and_GPRC_NOR0RegClass",
"PPC::MovePCtoLR",
"PPC::MFLR",
"PPC",
"PPC::G8RC_and_G8RC_NOX0RegClass",
"PPC::MovePCtoLR8",
"PPC::MFLR8",
"PPC"
] | PPCISelDAGToDAG105 | getGlobalBaseReg | PowerPC | CPU | LLVM | 29,220 | 420 | 1 | [] |
[
"<s>",
"bool",
"ARMBaseInstrInfo",
"::",
"shouldScheduleLoadsNear",
"(",
"SDNode",
"*",
"Load1",
",",
"SDNode",
"*",
"Load2",
",",
"int64_t",
"Offset1",
",",
"int64_t",
"Offset2",
",",
"unsigned",
"NumLoads",
")",
"const",
"{",
"if",
"(",
"Subtarget",
".",
"isThumb1Only",
"(",
")",
")",
"return",
"false",
";",
"assert",
"(",
"Offset2",
">",
"Offset1",
")",
";",
"if",
"(",
"(",
"Offset2",
"-",
"Offset1",
")",
"/",
"8",
">",
"64",
")",
"return",
"false",
";",
"if",
"(",
"(",
"Load1",
"->",
"getMachineOpcode",
"(",
")",
"!=",
"Load2",
"->",
"getMachineOpcode",
"(",
")",
")",
"&&",
"!",
"(",
"(",
"Load1",
"->",
"getMachineOpcode",
"(",
")",
"==",
"ARM",
"::",
"t2LDRBi8",
"&&",
"Load2",
"->",
"getMachineOpcode",
"(",
")",
"==",
"ARM",
"::",
"t2LDRBi12",
")",
"||",
"(",
"Load1",
"->",
"getMachineOpcode",
"(",
")",
"==",
"ARM",
"::",
"t2LDRBi12",
"&&",
"Load2",
"->",
"getMachineOpcode",
"(",
")",
"==",
"ARM",
"::",
"t2LDRBi8",
")",
")",
")",
"return",
"false",
";",
"if",
"(",
"NumLoads",
">=",
"3",
")",
"return",
"false",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"shouldScheduleLoadsNear",
"-",
"This",
"is",
"a",
"used",
"by",
"the",
"pre-regalloc",
"scheduler",
"to",
"determine",
"(",
"in",
"conjunction",
"with",
"areLoadsFromSameBasePtr",
")",
"if",
"two",
"loads",
"should",
"be",
"scheduled",
"togther",
"."
] | [
"ARM",
"ARM",
"8",
"64",
"ARM::t2LDRBi8",
"ARM::t2LDRBi12",
"ARM::t2LDRBi12",
"ARM::t2LDRBi8",
"3"
] | ARMBaseInstrInfo (2) | shouldScheduleLoadsNear | ARM | CPU | LLVM | 29,221 | 136 | 1 | [] |
[
"<s>",
"unsigned",
"getNumFixupKinds",
"(",
")",
"const",
"override",
"{",
"return",
"Hexagon",
"::",
"NumTargetFixupKinds",
";",
"}",
"</s>"
] | [
"Get",
"the",
"number",
"of",
"target",
"specific",
"fixup",
"kinds",
"."
] | [
"Hexagon",
"Hexagon::NumTargetFixupKinds"
] | HexagonAsmBackend (2)1 | getNumFixupKinds | Hexagon | DSP | LLVM | 29,222 | 13 | 1 | [] |
[
"<s>",
"void",
"ARMAsmPrinter",
"::",
"emitInlineAsmEnd",
"(",
"const",
"MCSubtargetInfo",
"&",
"StartInfo",
",",
"const",
"MCSubtargetInfo",
"*",
"EndInfo",
")",
"const",
"{",
"const",
"bool",
"WasThumb",
"=",
"isThumb",
"(",
"StartInfo",
")",
";",
"if",
"(",
"EndInfo",
"==",
"NULL",
"||",
"WasThumb",
"!=",
"isThumb",
"(",
"*",
"EndInfo",
")",
")",
"{",
"OutStreamer",
".",
"EmitAssemblerFlag",
"(",
"WasThumb",
"?",
"MCAF_Code16",
":",
"MCAF_Code32",
")",
";",
"}",
"}",
"</s>"
] | [
"Let",
"the",
"target",
"do",
"anything",
"it",
"needs",
"to",
"do",
"after",
"emitting",
"inlineasm",
"."
] | [
"ARM",
"ARM"
] | ARMAsmPrinter33 | emitInlineAsmEnd | ARM | CPU | LLVM | 29,223 | 54 | 1 | [] |
[
"<s>",
"int",
"m32r_first_insn_address",
"(",
")",
"{",
"if",
"(",
"!",
"current_frame_info",
".",
"initialized",
")",
"m32r_compute_frame_size",
"(",
"get_frame_size",
"(",
")",
")",
";",
"return",
"0",
";",
"}",
"</s>"
] | [
"When",
"the",
"`",
"length",
"'",
"insn",
"attribute",
"is",
"used",
",",
"this",
"macro",
"specifies",
"the",
"value",
"to",
"be",
"assigned",
"to",
"the",
"address",
"of",
"the",
"first",
"insn",
"in",
"a",
"function",
".",
"If",
"not",
"specified",
",",
"0",
"is",
"used",
"."
] | [
"m32r",
"0"
] | m32r2 | m32r_first_insn_address | m32r | MPU | GCC | 29,224 | 23 | 1 | [] |
[
"<s>",
"bool",
"HexagonHardwareLoops",
"::",
"isDead",
"(",
"const",
"MachineInstr",
"*",
"MI",
",",
"SmallVectorImpl",
"<",
"MachineInstr",
"*",
">",
"&",
"DeadPhis",
")",
"const",
"{",
"for",
"(",
"unsigned",
"i",
"=",
"0",
",",
"e",
"=",
"MI",
"->",
"getNumOperands",
"(",
")",
";",
"i",
"!=",
"e",
";",
"++",
"i",
")",
"{",
"const",
"MachineOperand",
"&",
"MO",
"=",
"MI",
"->",
"getOperand",
"(",
"i",
")",
";",
"if",
"(",
"!",
"MO",
".",
"isReg",
"(",
")",
"||",
"!",
"MO",
".",
"isDef",
"(",
")",
")",
"continue",
";",
"unsigned",
"Reg",
"=",
"MO",
".",
"getReg",
"(",
")",
";",
"if",
"(",
"MRI",
"->",
"use_nodbg_empty",
"(",
"Reg",
")",
")",
"continue",
";",
"using",
"use_nodbg_iterator",
"=",
"MachineRegisterInfo",
"::",
"use_nodbg_iterator",
";",
"use_nodbg_iterator",
"I",
"=",
"MRI",
"->",
"use_nodbg_begin",
"(",
"Reg",
")",
";",
"use_nodbg_iterator",
"End",
"=",
"MRI",
"->",
"use_nodbg_end",
"(",
")",
";",
"if",
"(",
"std",
"::",
"next",
"(",
"I",
")",
"!=",
"End",
"||",
"!",
"I",
"->",
"getParent",
"(",
")",
"->",
"isPHI",
"(",
")",
")",
"return",
"false",
";",
"MachineInstr",
"*",
"OnePhi",
"=",
"I",
"->",
"getParent",
"(",
")",
";",
"for",
"(",
"unsigned",
"j",
"=",
"0",
",",
"f",
"=",
"OnePhi",
"->",
"getNumOperands",
"(",
")",
";",
"j",
"!=",
"f",
";",
"++",
"j",
")",
"{",
"const",
"MachineOperand",
"&",
"OPO",
"=",
"OnePhi",
"->",
"getOperand",
"(",
"j",
")",
";",
"if",
"(",
"!",
"OPO",
".",
"isReg",
"(",
")",
"||",
"!",
"OPO",
".",
"isDef",
"(",
")",
")",
"continue",
";",
"unsigned",
"OPReg",
"=",
"OPO",
".",
"getReg",
"(",
")",
";",
"use_nodbg_iterator",
"nextJ",
";",
"for",
"(",
"use_nodbg_iterator",
"J",
"=",
"MRI",
"->",
"use_nodbg_begin",
"(",
"OPReg",
")",
";",
"J",
"!=",
"End",
";",
"J",
"=",
"nextJ",
")",
"{",
"nextJ",
"=",
"std",
"::",
"next",
"(",
"J",
")",
";",
"MachineOperand",
"&",
"Use",
"=",
"*",
"J",
";",
"MachineInstr",
"*",
"UseMI",
"=",
"Use",
".",
"getParent",
"(",
")",
";",
"if",
"(",
"MI",
"!=",
"UseMI",
")",
"return",
"false",
";",
"}",
"}",
"DeadPhis",
".",
"push_back",
"(",
"OnePhi",
")",
";",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"isDead",
"-",
"Returns",
"true",
"if",
"this",
"is",
"a",
"dead",
"def",
"kill",
"slot",
"."
] | [
"Hexagon",
"Hexagon",
"0",
"0"
] | HexagonHardwareLoops1 | isDead | Hexagon | DSP | LLVM | 29,225 | 289 | 1 | [] |
[
"<s>",
"SDValue",
"Cpu0TargetLowering",
"::",
"LowerReturn",
"(",
"SDValue",
"Chain",
",",
"CallingConv",
"::",
"ID",
"CallConv",
",",
"bool",
"isVarArg",
",",
"const",
"SmallVectorImpl",
"<",
"ISD",
"::",
"OutputArg",
">",
"&",
"Outs",
",",
"const",
"SmallVectorImpl",
"<",
"SDValue",
">",
"&",
"OutVals",
",",
"DebugLoc",
"dl",
",",
"SelectionDAG",
"&",
"DAG",
")",
"const",
"{",
"return",
"DAG",
".",
"getNode",
"(",
"Cpu0ISD",
"::",
"Ret",
",",
"dl",
",",
"MVT",
"::",
"Other",
",",
"Chain",
",",
"DAG",
".",
"getRegister",
"(",
"Cpu0",
"::",
"LR",
",",
"MVT",
"::",
"i32",
")",
")",
";",
"}",
"</s>"
] | [
"This",
"hook",
"must",
"be",
"implemented",
"to",
"lower",
"outgoing",
"return",
"values",
",",
"described",
"by",
"the",
"Outs",
"array",
",",
"into",
"the",
"specified",
"DAG",
"."
] | [
"Cpu0",
"Cpu0",
"ISD::OutputArg",
"Cpu0ISD::Ret",
"MVT::Other",
"Cpu0::LR",
"MVT::i32"
] | Cpu0ISelLowering2 | LowerReturn | Cpu0 | CPU | LLVM | 29,226 | 75 | 1 | [] |
[
"<s>",
"bool",
"X86AsmBackend",
"::",
"writeNopData",
"(",
"uint64_t",
"Count",
",",
"MCObjectWriter",
"*",
"OW",
")",
"const",
"{",
"static",
"const",
"uint8_t",
"Nops",
"[",
"10",
"]",
"[",
"10",
"]",
"=",
"{",
"{",
"0x90",
"}",
",",
"{",
"0x66",
",",
"0x90",
"}",
",",
"{",
"0x0f",
",",
"0x1f",
",",
"0x00",
"}",
",",
"{",
"0x0f",
",",
"0x1f",
",",
"0x40",
",",
"0x00",
"}",
",",
"{",
"0x0f",
",",
"0x1f",
",",
"0x44",
",",
"0x00",
",",
"0x00",
"}",
",",
"{",
"0x66",
",",
"0x0f",
",",
"0x1f",
",",
"0x44",
",",
"0x00",
",",
"0x00",
"}",
",",
"{",
"0x0f",
",",
"0x1f",
",",
"0x80",
",",
"0x00",
",",
"0x00",
",",
"0x00",
",",
"0x00",
"}",
",",
"{",
"0x0f",
",",
"0x1f",
",",
"0x84",
",",
"0x00",
",",
"0x00",
",",
"0x00",
",",
"0x00",
",",
"0x00",
"}",
",",
"{",
"0x66",
",",
"0x0f",
",",
"0x1f",
",",
"0x84",
",",
"0x00",
",",
"0x00",
",",
"0x00",
",",
"0x00",
",",
"0x00",
"}",
",",
"{",
"0x66",
",",
"0x2e",
",",
"0x0f",
",",
"0x1f",
",",
"0x84",
",",
"0x00",
",",
"0x00",
",",
"0x00",
",",
"0x00",
",",
"0x00",
"}",
",",
"}",
";",
"if",
"(",
"!",
"HasNopl",
")",
"{",
"for",
"(",
"uint64_t",
"i",
"=",
"0",
";",
"i",
"<",
"Count",
";",
"++",
"i",
")",
"OW",
"->",
"Write8",
"(",
"0x90",
")",
";",
"return",
"true",
";",
"}",
"do",
"{",
"const",
"uint8_t",
"ThisNopLength",
"=",
"(",
"uint8_t",
")",
"std",
"::",
"min",
"(",
"Count",
",",
"(",
"uint64_t",
")",
"15",
")",
";",
"const",
"uint8_t",
"Prefixes",
"=",
"ThisNopLength",
"<=",
"10",
"?",
"0",
":",
"ThisNopLength",
"-",
"10",
";",
"for",
"(",
"uint8_t",
"i",
"=",
"0",
";",
"i",
"<",
"Prefixes",
";",
"i",
"++",
")",
"OW",
"->",
"Write8",
"(",
"0x66",
")",
";",
"const",
"uint8_t",
"Rest",
"=",
"ThisNopLength",
"-",
"Prefixes",
";",
"for",
"(",
"uint8_t",
"i",
"=",
"0",
";",
"i",
"<",
"Rest",
";",
"i",
"++",
")",
"OW",
"->",
"Write8",
"(",
"Nops",
"[",
"Rest",
"-",
"1",
"]",
"[",
"i",
"]",
")",
";",
"Count",
"-=",
"ThisNopLength",
";",
"}",
"while",
"(",
"Count",
"!=",
"0",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Write",
"an",
"(",
"optimal",
")",
"nop",
"sequence",
"of",
"Count",
"bytes",
"to",
"the",
"given",
"output",
"."
] | [
"X86",
"X86",
"10",
"10",
"0x90",
"0x66",
"0x90",
"0x0f",
"0x1f",
"0x00",
"0x0f",
"0x1f",
"0x40",
"0x00",
"0x0f",
"0x1f",
"0x44",
"0x00",
"0x00",
"0x66",
"0x0f",
"0x1f",
"0x44",
"0x00",
"0x00",
"0x0f",
"0x1f",
"0x80",
"0x00",
"0x00",
"0x00",
"0x00",
"0x0f",
"0x1f",
"0x84",
"0x00",
"0x00",
"0x00",
"0x00",
"0x00",
"0x66",
"0x0f",
"0x1f",
"0x84",
"0x00",
"0x00",
"0x00",
"0x00",
"0x00",
"0x66",
"0x2e",
"0x0f",
"0x1f",
"0x84",
"0x00",
"0x00",
"0x00",
"0x00",
"0x00",
"0",
"0x90",
"15",
"10",
"0",
"10",
"0",
"0x66",
"0",
"1",
"0"
] | X86AsmBackend27 | writeNopData | X86 | CPU | LLVM | 29,227 | 298 | 1 | [] |
[
"<s>",
"bool",
"HexagonExpandCondsets",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"if",
"(",
"skipFunction",
"(",
"MF",
".",
"getFunction",
"(",
")",
")",
")",
"return",
"false",
";",
"HII",
"=",
"static_cast",
"<",
"const",
"HexagonInstrInfo",
"*",
">",
"(",
"MF",
".",
"getSubtarget",
"(",
")",
".",
"getInstrInfo",
"(",
")",
")",
";",
"TRI",
"=",
"MF",
".",
"getSubtarget",
"(",
")",
".",
"getRegisterInfo",
"(",
")",
";",
"MDT",
"=",
"&",
"getAnalysis",
"<",
"MachineDominatorTree",
">",
"(",
")",
";",
"LIS",
"=",
"&",
"getAnalysis",
"<",
"LiveIntervals",
">",
"(",
")",
";",
"MRI",
"=",
"&",
"MF",
".",
"getRegInfo",
"(",
")",
";",
"DEBUG",
"(",
"LIS",
"->",
"print",
"(",
"dbgs",
"(",
")",
"<<",
"\"Before expand-condsets\\n\"",
",",
"MF",
".",
"getFunction",
"(",
")",
".",
"getParent",
"(",
")",
")",
")",
";",
"bool",
"Changed",
"=",
"false",
";",
"std",
"::",
"set",
"<",
"unsigned",
">",
"CoalUpd",
",",
"PredUpd",
";",
"SmallVector",
"<",
"MachineInstr",
"*",
",",
"16",
">",
"Condsets",
";",
"for",
"(",
"auto",
"&",
"B",
":",
"MF",
")",
"for",
"(",
"auto",
"&",
"I",
":",
"B",
")",
"if",
"(",
"isCondset",
"(",
"I",
")",
")",
"Condsets",
".",
"push_back",
"(",
"&",
"I",
")",
";",
"Changed",
"|=",
"coalesceSegments",
"(",
"Condsets",
",",
"CoalUpd",
")",
";",
"std",
"::",
"set",
"<",
"unsigned",
">",
"KillUpd",
";",
"for",
"(",
"MachineInstr",
"*",
"MI",
":",
"Condsets",
")",
"for",
"(",
"MachineOperand",
"&",
"Op",
":",
"MI",
"->",
"operands",
"(",
")",
")",
"if",
"(",
"Op",
".",
"isReg",
"(",
")",
"&&",
"Op",
".",
"isUse",
"(",
")",
")",
"if",
"(",
"!",
"CoalUpd",
".",
"count",
"(",
"Op",
".",
"getReg",
"(",
")",
")",
")",
"KillUpd",
".",
"insert",
"(",
"Op",
".",
"getReg",
"(",
")",
")",
";",
"updateLiveness",
"(",
"KillUpd",
",",
"false",
",",
"true",
",",
"false",
")",
";",
"DEBUG",
"(",
"LIS",
"->",
"print",
"(",
"dbgs",
"(",
")",
"<<",
"\"After coalescing\\n\"",
",",
"MF",
".",
"getFunction",
"(",
")",
".",
"getParent",
"(",
")",
")",
")",
";",
"for",
"(",
"MachineInstr",
"*",
"MI",
":",
"Condsets",
")",
"Changed",
"|=",
"split",
"(",
"*",
"MI",
",",
"PredUpd",
")",
";",
"Condsets",
".",
"clear",
"(",
")",
";",
"DEBUG",
"(",
"LIS",
"->",
"print",
"(",
"dbgs",
"(",
")",
"<<",
"\"After splitting\\n\"",
",",
"MF",
".",
"getFunction",
"(",
")",
".",
"getParent",
"(",
")",
")",
")",
";",
"for",
"(",
"auto",
"&",
"B",
":",
"MF",
")",
"Changed",
"|=",
"predicateInBlock",
"(",
"B",
",",
"PredUpd",
")",
";",
"DEBUG",
"(",
"LIS",
"->",
"print",
"(",
"dbgs",
"(",
")",
"<<",
"\"After predicating\\n\"",
",",
"MF",
".",
"getFunction",
"(",
")",
".",
"getParent",
"(",
")",
")",
")",
";",
"PredUpd",
".",
"insert",
"(",
"CoalUpd",
".",
"begin",
"(",
")",
",",
"CoalUpd",
".",
"end",
"(",
")",
")",
";",
"updateLiveness",
"(",
"PredUpd",
",",
"true",
",",
"true",
",",
"true",
")",
";",
"DEBUG",
"(",
"{",
"if",
"(",
"Changed",
")",
"LIS",
"->",
"print",
"(",
"dbgs",
"(",
")",
"<<",
"\"After expand-condsets\\n\"",
",",
"MF",
".",
"getFunction",
"(",
")",
".",
"getParent",
"(",
")",
")",
";",
"}",
")",
";",
"return",
"Changed",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"Hexagon",
"Hexagon",
"Hexagon",
"\"Before expand-condsets\\n\"",
"16",
"\"After coalescing\\n\"",
"\"After splitting\\n\"",
"\"After predicating\\n\"",
"\"After expand-condsets\\n\""
] | HexagonExpandCondsets | runOnMachineFunction | Hexagon | DSP | LLVM | 29,228 | 427 | 1 | [] |
[
"<s>",
"unsigned",
"X86TargetLowering",
"::",
"getAddressSpace",
"(",
")",
"const",
"{",
"if",
"(",
"Subtarget",
".",
"is64Bit",
"(",
")",
")",
"return",
"(",
"getTargetMachine",
"(",
")",
".",
"getCodeModel",
"(",
")",
"==",
"CodeModel",
"::",
"Kernel",
")",
"?",
"256",
":",
"257",
";",
"return",
"256",
";",
"}",
"</s>"
] | [
"Return",
"the",
"address",
"space",
"of",
"the",
"Pointer",
"type",
"."
] | [
"X86",
"X86",
"256",
"257",
"256"
] | X86ISelLowering (2)5 | getAddressSpace | X86 | CPU | LLVM | 29,229 | 39 | 1 | [] |
[
"<s>",
"void",
"X86PassConfig",
"::",
"addIRPasses",
"(",
")",
"{",
"addPass",
"(",
"createX86AtomicExpandPass",
"(",
"&",
"getX86TargetMachine",
"(",
")",
")",
")",
";",
"TargetPassConfig",
"::",
"addIRPasses",
"(",
")",
";",
"}",
"</s>"
] | [
"Add",
"common",
"target",
"configurable",
"passes",
"that",
"perform",
"LLVM",
"IR",
"to",
"IR",
"transforms",
"following",
"machine",
"independent",
"optimization",
"."
] | [
"X86",
"X86",
"X86",
"X86"
] | X86TargetMachine | addIRPasses | X86 | CPU | LLVM | 29,230 | 25 | 1 | [] |
[
"<s>",
"int",
"mmix_use_simple_return",
"(",
"void",
")",
"{",
"int",
"regno",
";",
"int",
"stack_space_to_allocate",
"=",
"(",
"crtl",
"->",
"outgoing_args_size",
"+",
"crtl",
"->",
"args",
".",
"pretend_args_size",
"+",
"get_frame_size",
"(",
")",
"+",
"7",
")",
"&",
"~",
"7",
";",
"if",
"(",
"!",
"TARGET_USE_RETURN_INSN",
"||",
"!",
"reload_completed",
")",
"return",
"0",
";",
"for",
"(",
"regno",
"=",
"255",
";",
"regno",
">=",
"MMIX_FIRST_GLOBAL_REGNUM",
";",
"regno",
"--",
")",
"if",
"(",
"(",
"(",
"(",
"regno",
"!=",
"MMIX_FRAME_POINTER_REGNUM",
"||",
"!",
"frame_pointer_needed",
")",
"&&",
"df_regs_ever_live_p",
"(",
"regno",
")",
"&&",
"!",
"call_used_or_fixed_reg_p",
"(",
"regno",
")",
")",
")",
"||",
"IS_MMIX_EH_RETURN_DATA_REG",
"(",
"regno",
")",
")",
"return",
"0",
";",
"if",
"(",
"frame_pointer_needed",
")",
"stack_space_to_allocate",
"+=",
"8",
";",
"if",
"(",
"MMIX_CFUN_HAS_LANDING_PAD",
")",
"stack_space_to_allocate",
"+=",
"16",
";",
"else",
"if",
"(",
"MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS",
")",
"stack_space_to_allocate",
"+=",
"8",
";",
"return",
"stack_space_to_allocate",
"==",
"0",
";",
"}",
"</s>"
] | [
"Nonzero",
"when",
"the",
"function",
"epilogue",
"is",
"simple",
"enough",
"that",
"a",
"single",
"``",
"POP",
"%",
"d,0",
"''",
"should",
"be",
"used",
"even",
"within",
"the",
"function",
"."
] | [
"mmix",
"7",
"7",
"0",
"255",
"0",
"8",
"16",
"8",
"0"
] | mmix | mmix_use_simple_return | mmix | CPU | GCC | 29,231 | 122 | 1 | [] |
[
"<s>",
"bool",
"SIInstrInfo",
"::",
"shouldClusterMemOps",
"(",
"ArrayRef",
"<",
"const",
"MachineOperand",
"*",
">",
"BaseOps1",
",",
"ArrayRef",
"<",
"const",
"MachineOperand",
"*",
">",
"BaseOps2",
",",
"unsigned",
"NumLoads",
")",
"const",
"{",
"assert",
"(",
"BaseOps1",
".",
"size",
"(",
")",
"==",
"1",
"&&",
"BaseOps2",
".",
"size",
"(",
")",
"==",
"1",
")",
";",
"const",
"MachineOperand",
"&",
"BaseOp1",
"=",
"*",
"BaseOps1",
".",
"front",
"(",
")",
";",
"const",
"MachineOperand",
"&",
"BaseOp2",
"=",
"*",
"BaseOps2",
".",
"front",
"(",
")",
";",
"const",
"MachineInstr",
"&",
"FirstLdSt",
"=",
"*",
"BaseOp1",
".",
"getParent",
"(",
")",
";",
"const",
"MachineInstr",
"&",
"SecondLdSt",
"=",
"*",
"BaseOp2",
".",
"getParent",
"(",
")",
";",
"if",
"(",
"!",
"memOpsHaveSameBasePtr",
"(",
"FirstLdSt",
",",
"BaseOp1",
",",
"SecondLdSt",
",",
"BaseOp2",
")",
")",
"return",
"false",
";",
"const",
"MachineOperand",
"*",
"FirstDst",
"=",
"nullptr",
";",
"const",
"MachineOperand",
"*",
"SecondDst",
"=",
"nullptr",
";",
"if",
"(",
"(",
"isMUBUF",
"(",
"FirstLdSt",
")",
"&&",
"isMUBUF",
"(",
"SecondLdSt",
")",
")",
"||",
"(",
"isMTBUF",
"(",
"FirstLdSt",
")",
"&&",
"isMTBUF",
"(",
"SecondLdSt",
")",
")",
"||",
"(",
"isFLAT",
"(",
"FirstLdSt",
")",
"&&",
"isFLAT",
"(",
"SecondLdSt",
")",
")",
")",
"{",
"const",
"unsigned",
"MaxGlobalLoadCluster",
"=",
"6",
";",
"if",
"(",
"NumLoads",
">",
"MaxGlobalLoadCluster",
")",
"return",
"false",
";",
"FirstDst",
"=",
"getNamedOperand",
"(",
"FirstLdSt",
",",
"AMDGPU",
"::",
"OpName",
"::",
"vdata",
")",
";",
"if",
"(",
"!",
"FirstDst",
")",
"FirstDst",
"=",
"getNamedOperand",
"(",
"FirstLdSt",
",",
"AMDGPU",
"::",
"OpName",
"::",
"vdst",
")",
";",
"SecondDst",
"=",
"getNamedOperand",
"(",
"SecondLdSt",
",",
"AMDGPU",
"::",
"OpName",
"::",
"vdata",
")",
";",
"if",
"(",
"!",
"SecondDst",
")",
"SecondDst",
"=",
"getNamedOperand",
"(",
"SecondLdSt",
",",
"AMDGPU",
"::",
"OpName",
"::",
"vdst",
")",
";",
"}",
"else",
"if",
"(",
"isSMRD",
"(",
"FirstLdSt",
")",
"&&",
"isSMRD",
"(",
"SecondLdSt",
")",
")",
"{",
"FirstDst",
"=",
"getNamedOperand",
"(",
"FirstLdSt",
",",
"AMDGPU",
"::",
"OpName",
"::",
"sdst",
")",
";",
"SecondDst",
"=",
"getNamedOperand",
"(",
"SecondLdSt",
",",
"AMDGPU",
"::",
"OpName",
"::",
"sdst",
")",
";",
"}",
"else",
"if",
"(",
"isDS",
"(",
"FirstLdSt",
")",
"&&",
"isDS",
"(",
"SecondLdSt",
")",
")",
"{",
"FirstDst",
"=",
"getNamedOperand",
"(",
"FirstLdSt",
",",
"AMDGPU",
"::",
"OpName",
"::",
"vdst",
")",
";",
"SecondDst",
"=",
"getNamedOperand",
"(",
"SecondLdSt",
",",
"AMDGPU",
"::",
"OpName",
"::",
"vdst",
")",
";",
"}",
"if",
"(",
"!",
"FirstDst",
"||",
"!",
"SecondDst",
")",
"return",
"false",
";",
"unsigned",
"LoadClusterThreshold",
"=",
"16",
";",
"const",
"MachineRegisterInfo",
"&",
"MRI",
"=",
"FirstLdSt",
".",
"getParent",
"(",
")",
"->",
"getParent",
"(",
")",
"->",
"getRegInfo",
"(",
")",
";",
"const",
"Register",
"Reg",
"=",
"FirstDst",
"->",
"getReg",
"(",
")",
";",
"const",
"TargetRegisterClass",
"*",
"DstRC",
"=",
"Register",
"::",
"isVirtualRegister",
"(",
"Reg",
")",
"?",
"MRI",
".",
"getRegClass",
"(",
"Reg",
")",
":",
"RI",
".",
"getPhysRegClass",
"(",
"Reg",
")",
";",
"return",
"(",
"NumLoads",
"*",
"(",
"RI",
".",
"getRegSizeInBits",
"(",
"*",
"DstRC",
")",
"/",
"8",
")",
")",
"<=",
"LoadClusterThreshold",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"the",
"two",
"given",
"memory",
"operations",
"should",
"be",
"scheduled",
"adjacent",
"."
] | [
"AMDGPU",
"SI",
"1",
"1",
"6",
"AMDGPU::OpName",
"AMDGPU::OpName",
"AMDGPU::OpName",
"AMDGPU::OpName",
"AMDGPU::OpName",
"AMDGPU::OpName",
"AMDGPU::OpName",
"AMDGPU::OpName",
"16",
"8"
] | SIInstrInfo143 | shouldClusterMemOps | AMDGPU | GPU | LLVM | 29,232 | 414 | 1 | [] |
[
"<s>",
"static",
"void",
"sparc_solaris_elf_asm_named_section",
"(",
"const",
"char",
"*",
"name",
",",
"unsigned",
"int",
"flags",
",",
"tree",
"decl",
"ATTRIBUTE_UNUSED",
")",
"{",
"if",
"(",
"HAVE_COMDAT_GROUP",
"&&",
"flags",
"&",
"SECTION_LINKONCE",
")",
"{",
"solaris_elf_asm_comdat_section",
"(",
"name",
",",
"flags",
",",
"decl",
")",
";",
"return",
";",
"}",
"fprintf",
"(",
"asm_out_file",
",",
"\"\\t.section\\t\\\"%s\\\"\"",
",",
"name",
")",
";",
"if",
"(",
"!",
"(",
"flags",
"&",
"SECTION_DEBUG",
")",
")",
"fputs",
"(",
"\",#alloc\"",
",",
"asm_out_file",
")",
";",
"if",
"(",
"flags",
"&",
"SECTION_WRITE",
")",
"fputs",
"(",
"\",#write\"",
",",
"asm_out_file",
")",
";",
"if",
"(",
"flags",
"&",
"SECTION_TLS",
")",
"fputs",
"(",
"\",#tls\"",
",",
"asm_out_file",
")",
";",
"if",
"(",
"flags",
"&",
"SECTION_CODE",
")",
"fputs",
"(",
"\",#execinstr\"",
",",
"asm_out_file",
")",
";",
"if",
"(",
"flags",
"&",
"SECTION_NOTYPE",
")",
";",
"else",
"if",
"(",
"flags",
"&",
"SECTION_BSS",
")",
"fputs",
"(",
"\",#nobits\"",
",",
"asm_out_file",
")",
";",
"else",
"fputs",
"(",
"\",#progbits\"",
",",
"asm_out_file",
")",
";",
"fputc",
"(",
"'\\n'",
",",
"asm_out_file",
")",
";",
"}",
"</s>"
] | [
"Solaris",
"implementation",
"of",
"TARGET_ASM_NAMED_SECTION",
"."
] | [
"sparc",
"\"\\t.section\\t\\\"%s\\\"\"",
"\",#alloc\"",
"\",#write\"",
"\",#tls\"",
"\",#execinstr\"",
"\",#nobits\"",
"\",#progbits\""
] | sparc5 | sparc_solaris_elf_asm_named_section | sparc | CPU | GCC | 29,233 | 140 | 1 | [] |
[
"<s>",
"SMLoc",
"getStartLoc",
"(",
")",
"const",
"override",
"{",
"return",
"Start",
";",
"}",
"</s>"
] | [
"getStartLoc",
"-",
"Get",
"the",
"location",
"of",
"the",
"first",
"token",
"of",
"this",
"operand",
"."
] | [
"MOS"
] | MOSAsmParser | getStartLoc | MOS | MPU | LLVM | 29,234 | 11 | 1 | [] |
[
"<s>",
"SMLoc",
"getLoc",
"(",
")",
"const",
"{",
"return",
"getParser",
"(",
")",
".",
"getTok",
"(",
")",
".",
"getLoc",
"(",
")",
";",
"}",
"</s>"
] | [
"Get",
"the",
"source",
"location",
"of",
"the",
"point",
"where",
"the",
"field",
"was",
"defined",
"."
] | [
"RISCV"
] | RISCVAsmParser (2) | getLoc | RISCV | CPU | LLVM | 29,235 | 20 | 1 | [] |
[
"<s>",
"SDValue",
"LM32TargetLowering",
"::",
"LowerOperation",
"(",
"SDValue",
"Op",
",",
"SelectionDAG",
"&",
"DAG",
")",
"const",
"{",
"switch",
"(",
"Op",
".",
"getOpcode",
"(",
")",
")",
"{",
"case",
"ISD",
"::",
"ConstantPool",
":",
"return",
"LowerConstantPool",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"GlobalAddress",
":",
"return",
"LowerGlobalAddress",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"GlobalTLSAddress",
":",
"return",
"LowerGlobalTLSAddress",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"JumpTable",
":",
"return",
"LowerJumpTable",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"SELECT_CC",
":",
"return",
"LowerSELECT_CC",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"VASTART",
":",
"return",
"LowerVASTART",
"(",
"Op",
",",
"DAG",
")",
";",
"}",
"return",
"SDValue",
"(",
")",
";",
"}",
"</s>"
] | [
"LowerOperation",
"-",
"Provide",
"custom",
"lowering",
"hooks",
"for",
"some",
"operations",
"."
] | [
"LM32",
"LM32",
"ISD::ConstantPool",
"ISD::GlobalAddress",
"ISD::GlobalTLSAddress",
"ISD::JumpTable",
"ISD::SELECT_CC",
"ISD::VASTART"
] | LM32ISelLowering | LowerOperation | LM32 | MPU | LLVM | 29,236 | 108 | 1 | [] |
[
"<s>",
"unsigned",
"WebAssemblyFastISel",
"::",
"fastMaterializeConstant",
"(",
"const",
"Constant",
"*",
"C",
")",
"{",
"if",
"(",
"const",
"GlobalValue",
"*",
"GV",
"=",
"dyn_cast",
"<",
"GlobalValue",
">",
"(",
"C",
")",
")",
"{",
"unsigned",
"ResultReg",
"=",
"createResultReg",
"(",
"Subtarget",
"->",
"hasAddr64",
"(",
")",
"?",
"&",
"WebAssembly",
"::",
"I64RegClass",
":",
"&",
"WebAssembly",
"::",
"I32RegClass",
")",
";",
"unsigned",
"Opc",
"=",
"Subtarget",
"->",
"hasAddr64",
"(",
")",
"?",
"WebAssembly",
"::",
"CONST_I64",
":",
"WebAssembly",
"::",
"CONST_I32",
";",
"BuildMI",
"(",
"*",
"FuncInfo",
".",
"MBB",
",",
"FuncInfo",
".",
"InsertPt",
",",
"DbgLoc",
",",
"TII",
".",
"get",
"(",
"Opc",
")",
",",
"ResultReg",
")",
".",
"addGlobalAddress",
"(",
"GV",
")",
";",
"return",
"ResultReg",
";",
"}",
"return",
"0",
";",
"}",
"</s>"
] | [
"Emit",
"a",
"constant",
"in",
"a",
"register",
"using",
"target-specific",
"logic",
",",
"such",
"as",
"constant",
"pool",
"loads",
"."
] | [
"WebAssembly",
"WebAssembly",
"WebAssembly::I64RegClass",
"WebAssembly::I32RegClass",
"WebAssembly::CONST_I64",
"WebAssembly::CONST_I32",
"0"
] | WebAssemblyFastISel | fastMaterializeConstant | WebAssembly | Virtual ISA | LLVM | 29,237 | 102 | 1 | [] |
[
"<s>",
"void",
"BPFInstrInfo",
"::",
"copyPhysReg",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"I",
",",
"const",
"DebugLoc",
"&",
"DL",
",",
"MCRegister",
"DestReg",
",",
"MCRegister",
"SrcReg",
",",
"bool",
"KillSrc",
")",
"const",
"{",
"if",
"(",
"BPF",
"::",
"GPRRegClass",
".",
"contains",
"(",
"DestReg",
",",
"SrcReg",
")",
")",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"BPF",
"::",
"MOV_rr",
")",
",",
"DestReg",
")",
".",
"addReg",
"(",
"SrcReg",
",",
"getKillRegState",
"(",
"KillSrc",
")",
")",
";",
"else",
"if",
"(",
"BPF",
"::",
"GPR32RegClass",
".",
"contains",
"(",
"DestReg",
",",
"SrcReg",
")",
")",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"BPF",
"::",
"MOV_rr_32",
")",
",",
"DestReg",
")",
".",
"addReg",
"(",
"SrcReg",
",",
"getKillRegState",
"(",
"KillSrc",
")",
")",
";",
"else",
"llvm_unreachable",
"(",
"\"Impossible reg-to-reg copy\"",
")",
";",
"}",
"</s>"
] | [
"}",
"Branch",
"Analysis",
"&",
"Modification"
] | [
"BPF",
"BPF",
"BPF::GPRRegClass",
"BPF::MOV_rr",
"BPF::GPR32RegClass",
"BPF::MOV_rr_32",
"\"Impossible reg-to-reg copy\""
] | BPFInstrInfo14 | copyPhysReg | BPF | Virtual ISA | LLVM | 29,238 | 120 | 1 | [] |
[
"<s>",
"void",
"xtensa_va_start",
"(",
"tree",
"valist",
",",
"rtx",
"nextarg",
"ATTRIBUTE_UNUSED",
")",
"{",
"tree",
"f_stk",
",",
"stk",
";",
"tree",
"f_reg",
",",
"reg",
";",
"tree",
"f_ndx",
",",
"ndx",
";",
"tree",
"t",
",",
"u",
";",
"int",
"arg_words",
";",
"arg_words",
"=",
"current_function_args_info",
".",
"arg_words",
";",
"f_stk",
"=",
"TYPE_FIELDS",
"(",
"va_list_type_node",
")",
";",
"f_reg",
"=",
"TREE_CHAIN",
"(",
"f_stk",
")",
";",
"f_ndx",
"=",
"TREE_CHAIN",
"(",
"f_reg",
")",
";",
"stk",
"=",
"build",
"(",
"COMPONENT_REF",
",",
"TREE_TYPE",
"(",
"f_stk",
")",
",",
"valist",
",",
"f_stk",
",",
"NULL_TREE",
")",
";",
"reg",
"=",
"build",
"(",
"COMPONENT_REF",
",",
"TREE_TYPE",
"(",
"f_reg",
")",
",",
"valist",
",",
"f_reg",
",",
"NULL_TREE",
")",
";",
"ndx",
"=",
"build",
"(",
"COMPONENT_REF",
",",
"TREE_TYPE",
"(",
"f_ndx",
")",
",",
"valist",
",",
"f_ndx",
",",
"NULL_TREE",
")",
";",
"u",
"=",
"make_tree",
"(",
"ptr_type_node",
",",
"expand_builtin_saveregs",
"(",
")",
")",
";",
"t",
"=",
"build",
"(",
"MODIFY_EXPR",
",",
"ptr_type_node",
",",
"reg",
",",
"u",
")",
";",
"TREE_SIDE_EFFECTS",
"(",
"t",
")",
"=",
"1",
";",
"expand_expr",
"(",
"t",
",",
"const0_rtx",
",",
"VOIDmode",
",",
"EXPAND_NORMAL",
")",
";",
"u",
"=",
"make_tree",
"(",
"ptr_type_node",
",",
"virtual_incoming_args_rtx",
")",
";",
"u",
"=",
"fold",
"(",
"build",
"(",
"PLUS_EXPR",
",",
"ptr_type_node",
",",
"u",
",",
"build_int_cst",
"(",
"NULL_TREE",
",",
"-",
"32",
")",
")",
")",
";",
"t",
"=",
"build",
"(",
"MODIFY_EXPR",
",",
"ptr_type_node",
",",
"stk",
",",
"u",
")",
";",
"TREE_SIDE_EFFECTS",
"(",
"t",
")",
"=",
"1",
";",
"expand_expr",
"(",
"t",
",",
"const0_rtx",
",",
"VOIDmode",
",",
"EXPAND_NORMAL",
")",
";",
"if",
"(",
"arg_words",
">=",
"MAX_ARGS_IN_REGISTERS",
")",
"arg_words",
"+=",
"2",
";",
"u",
"=",
"build_int_cst",
"(",
"NULL_TREE",
",",
"arg_words",
"*",
"UNITS_PER_WORD",
")",
";",
"t",
"=",
"build",
"(",
"MODIFY_EXPR",
",",
"integer_type_node",
",",
"ndx",
",",
"u",
")",
";",
"TREE_SIDE_EFFECTS",
"(",
"t",
")",
"=",
"1",
";",
"expand_expr",
"(",
"t",
",",
"const0_rtx",
",",
"VOIDmode",
",",
"EXPAND_NORMAL",
")",
";",
"}",
"</s>"
] | [
"Implement",
"`",
"va_start",
"'",
"for",
"varargs",
"and",
"stdarg",
".",
"We",
"look",
"at",
"the",
"current",
"function",
"to",
"fill",
"in",
"an",
"initial",
"va_list",
"."
] | [
"xtensa",
"1",
"32",
"1",
"2",
"1"
] | xtensa3 | xtensa_va_start | xtensa | MPU | GCC | 29,239 | 272 | 1 | [] |
[
"<s>",
"unsigned",
"Tile64RegisterInfo",
"::",
"getFrameRegister",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"return",
"T64",
"::",
"FramePointer",
";",
"}",
"</s>"
] | [
"Debug",
"information",
"queries",
"."
] | [
"Tile64",
"T64::FramePointer"
] | Tile64RegisterInfo | getFrameRegister | Tile64 | VLIW | LLVM | 29,240 | 18 | 1 | [] |
[
"<s>",
"void",
"ConvergingVLIWScheduler",
"::",
"initialize",
"(",
"ScheduleDAGMI",
"*",
"dag",
")",
"{",
"DAG",
"=",
"static_cast",
"<",
"VLIWMachineScheduler",
"*",
">",
"(",
"dag",
")",
";",
"SchedModel",
"=",
"DAG",
"->",
"getSchedModel",
"(",
")",
";",
"Top",
".",
"init",
"(",
"DAG",
",",
"SchedModel",
")",
";",
"Bot",
".",
"init",
"(",
"DAG",
",",
"SchedModel",
")",
";",
"const",
"InstrItineraryData",
"*",
"Itin",
"=",
"DAG",
"->",
"getSchedModel",
"(",
")",
"->",
"getInstrItineraries",
"(",
")",
";",
"const",
"TargetMachine",
"&",
"TM",
"=",
"DAG",
"->",
"MF",
".",
"getTarget",
"(",
")",
";",
"delete",
"Top",
".",
"HazardRec",
";",
"delete",
"Bot",
".",
"HazardRec",
";",
"Top",
".",
"HazardRec",
"=",
"TM",
".",
"getInstrInfo",
"(",
")",
"->",
"CreateTargetMIHazardRecognizer",
"(",
"Itin",
",",
"DAG",
")",
";",
"Bot",
".",
"HazardRec",
"=",
"TM",
".",
"getInstrInfo",
"(",
")",
"->",
"CreateTargetMIHazardRecognizer",
"(",
"Itin",
",",
"DAG",
")",
";",
"delete",
"Top",
".",
"ResourceModel",
";",
"delete",
"Bot",
".",
"ResourceModel",
";",
"Top",
".",
"ResourceModel",
"=",
"new",
"VLIWResourceModel",
"(",
"TM",
",",
"DAG",
"->",
"getSchedModel",
"(",
")",
")",
";",
"Bot",
".",
"ResourceModel",
"=",
"new",
"VLIWResourceModel",
"(",
"TM",
",",
"DAG",
"->",
"getSchedModel",
"(",
")",
")",
";",
"assert",
"(",
"(",
"!",
"llvm",
"::",
"ForceTopDown",
"||",
"!",
"llvm",
"::",
"ForceBottomUp",
")",
"&&",
"\"-misched-topdown incompatible with -misched-bottomup\"",
")",
";",
"}",
"</s>"
] | [
"Initialize",
"the",
"strategy",
"after",
"building",
"the",
"DAG",
"for",
"a",
"new",
"region",
"."
] | [
"Hexagon",
"\"-misched-topdown incompatible with -misched-bottomup\""
] | HexagonMachineScheduler | initialize | Hexagon | DSP | LLVM | 29,241 | 179 | 1 | [] |
[
"<s>",
"bool",
"load_single_p",
"(",
"rtx_insn",
"*",
"insn",
")",
"{",
"if",
"(",
"get_attr_type",
"(",
"insn",
")",
"!=",
"TYPE_LOAD",
")",
"return",
"false",
";",
"if",
"(",
"INSN_CODE",
"(",
"insn",
")",
"==",
"CODE_FOR_move_di",
"||",
"INSN_CODE",
"(",
"insn",
")",
"==",
"CODE_FOR_move_df",
")",
"return",
"false",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Functions",
"to",
"determine",
"whether",
"INSN",
"is",
"single-word",
",",
"double-word",
"or",
"partial-word",
"load/store",
"insn",
"."
] | [
"nds32"
] | nds32-utils | load_single_p | nds32 | CPU | GCC | 29,242 | 43 | 1 | [] |
[
"<s>",
"virtual",
"bool",
"doFinalization",
"(",
"Module",
"&",
"M",
")",
"{",
"return",
"false",
";",
"}",
"</s>"
] | [
"doFinalization",
"-",
"Virtual",
"method",
"overriden",
"by",
"subclasses",
"to",
"do",
"any",
"necessary",
"clean",
"up",
"after",
"all",
"passes",
"have",
"run",
"."
] | [
"Patmos"
] | PatmosSPMark | doFinalization | Patmos | VLIW | LLVM | 29,243 | 13 | 1 | [] |
[
"<s>",
"bool",
"n9_2r1w_consumed_by_ex_dep_p",
"(",
"rtx_insn",
"*",
"consumer",
",",
"rtx",
"def_reg",
")",
"{",
"rtx",
"use_rtx",
";",
"switch",
"(",
"get_attr_type",
"(",
"consumer",
")",
")",
"{",
"case",
"TYPE_ALU",
":",
"if",
"(",
"movd44_even_dep_p",
"(",
"consumer",
",",
"def_reg",
")",
")",
"return",
"true",
";",
"use_rtx",
"=",
"SET_SRC",
"(",
"PATTERN",
"(",
"consumer",
")",
")",
";",
"break",
";",
"case",
"TYPE_PBSAD",
":",
"case",
"TYPE_MUL",
":",
"use_rtx",
"=",
"SET_SRC",
"(",
"PATTERN",
"(",
"consumer",
")",
")",
";",
"break",
";",
"case",
"TYPE_ALU_SHIFT",
":",
"use_rtx",
"=",
"extract_shift_reg",
"(",
"consumer",
")",
";",
"break",
";",
"case",
"TYPE_PBSADA",
":",
"return",
"pbsada_insn_ra_rb_dep_reg_p",
"(",
"consumer",
",",
"def_reg",
")",
";",
"case",
"TYPE_MAC",
":",
"use_rtx",
"=",
"PATTERN",
"(",
"consumer",
")",
";",
"break",
";",
"case",
"TYPE_DIV",
":",
"if",
"(",
"divmod_p",
"(",
"consumer",
")",
")",
"use_rtx",
"=",
"SET_SRC",
"(",
"parallel_element",
"(",
"consumer",
",",
"0",
")",
")",
";",
"else",
"use_rtx",
"=",
"SET_SRC",
"(",
"PATTERN",
"(",
"consumer",
")",
")",
";",
"break",
";",
"case",
"TYPE_MMU",
":",
"if",
"(",
"GET_CODE",
"(",
"PATTERN",
"(",
"consumer",
")",
")",
"==",
"SET",
")",
"use_rtx",
"=",
"SET_SRC",
"(",
"PATTERN",
"(",
"consumer",
")",
")",
";",
"else",
"return",
"true",
";",
"break",
";",
"case",
"TYPE_LOAD",
":",
"if",
"(",
"post_update_insn_p",
"(",
"consumer",
")",
")",
"use_rtx",
"=",
"extract_base_reg",
"(",
"consumer",
")",
";",
"else",
"use_rtx",
"=",
"extract_mem_rtx",
"(",
"consumer",
")",
";",
"break",
";",
"case",
"TYPE_STORE",
":",
"if",
"(",
"post_update_insn_p",
"(",
"consumer",
")",
")",
"use_rtx",
"=",
"extract_base_reg",
"(",
"consumer",
")",
";",
"else",
"use_rtx",
"=",
"extract_mem_rtx",
"(",
"consumer",
")",
";",
"if",
"(",
"reg_overlap_p",
"(",
"def_reg",
",",
"use_rtx",
")",
")",
"return",
"true",
";",
"if",
"(",
"!",
"post_update_insn_p",
"(",
"consumer",
")",
"&&",
"!",
"immed_offset_p",
"(",
"extract_mem_rtx",
"(",
"consumer",
")",
")",
")",
"return",
"false",
";",
"use_rtx",
"=",
"SET_SRC",
"(",
"PATTERN",
"(",
"consumer",
")",
")",
";",
"break",
";",
"case",
"TYPE_LOAD_MULTIPLE",
":",
"use_rtx",
"=",
"extract_base_reg",
"(",
"consumer",
")",
";",
"break",
";",
"case",
"TYPE_STORE_MULTIPLE",
":",
"use_rtx",
"=",
"extract_base_reg",
"(",
"consumer",
")",
";",
"if",
"(",
"reg_overlap_p",
"(",
"def_reg",
",",
"use_rtx",
")",
")",
"return",
"true",
";",
"use_rtx",
"=",
"extract_nth_access_rtx",
"(",
"consumer",
",",
"0",
")",
";",
"break",
";",
"case",
"TYPE_BRANCH",
":",
"use_rtx",
"=",
"PATTERN",
"(",
"consumer",
")",
";",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"if",
"(",
"reg_overlap_p",
"(",
"def_reg",
",",
"use_rtx",
")",
")",
"return",
"true",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Check",
"the",
"dependency",
"between",
"the",
"producer",
"defining",
"DEF_REG",
"and",
"CONSUMER",
"requiring",
"input",
"operand",
"at",
"EX",
"."
] | [
"nds32",
"0",
"0"
] | nds32-pipelines-auxiliary | n9_2r1w_consumed_by_ex_dep_p | nds32 | CPU | GCC | 29,244 | 344 | 1 | [] |
[
"<s>",
"static",
"rtx",
"rs6000_debug_legitimize_reload_address",
"(",
"rtx",
"x",
",",
"machine_mode",
"mode",
",",
"int",
"opnum",
",",
"int",
"type",
",",
"int",
"ind_levels",
",",
"int",
"*",
"win",
")",
"{",
"rtx",
"ret",
"=",
"rs6000_legitimize_reload_address",
"(",
"x",
",",
"mode",
",",
"opnum",
",",
"type",
",",
"ind_levels",
",",
"win",
")",
";",
"fprintf",
"(",
"stderr",
",",
"\"\\nrs6000_legitimize_reload_address: mode = %s, opnum = %d, \"",
"\"type = %d, ind_levels = %d, win = %d, original addr:\\n\"",
",",
"GET_MODE_NAME",
"(",
"mode",
")",
",",
"opnum",
",",
"type",
",",
"ind_levels",
",",
"*",
"win",
")",
";",
"debug_rtx",
"(",
"x",
")",
";",
"if",
"(",
"x",
"==",
"ret",
")",
"fprintf",
"(",
"stderr",
",",
"\"Same address returned\\n\"",
")",
";",
"else",
"if",
"(",
"!",
"ret",
")",
"fprintf",
"(",
"stderr",
",",
"\"NULL returned\\n\"",
")",
";",
"else",
"{",
"fprintf",
"(",
"stderr",
",",
"\"New address:\\n\"",
")",
";",
"debug_rtx",
"(",
"ret",
")",
";",
"}",
"return",
"ret",
";",
"}",
"</s>"
] | [
"Debug",
"version",
"of",
"rs6000_legitimize_reload_address",
"."
] | [
"powerpcspe",
"\"\\nrs6000_legitimize_reload_address: mode = %s, opnum = %d, \"",
"\"type = %d, ind_levels = %d, win = %d, original addr:\\n\"",
"\"Same address returned\\n\"",
"\"NULL returned\\n\"",
"\"New address:\\n\""
] | powerpcspe | rs6000_debug_legitimize_reload_address | powerpcspe | CPU | GCC | 29,245 | 114 | 1 | [] |
[
"<s>",
"static",
"enum",
"flt_eval_method",
"arm_excess_precision",
"(",
"enum",
"excess_precision_type",
"type",
")",
"{",
"switch",
"(",
"type",
")",
"{",
"case",
"EXCESS_PRECISION_TYPE_FAST",
":",
"case",
"EXCESS_PRECISION_TYPE_STANDARD",
":",
"return",
"(",
"TARGET_VFP_FP16INST",
"?",
"FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16",
":",
"FLT_EVAL_METHOD_PROMOTE_TO_FLOAT",
")",
";",
"case",
"EXCESS_PRECISION_TYPE_IMPLICIT",
":",
"case",
"EXCESS_PRECISION_TYPE_FLOAT16",
":",
"return",
"FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"return",
"FLT_EVAL_METHOD_UNPREDICTABLE",
";",
"}",
"</s>"
] | [
"Set",
"the",
"value",
"of",
"FLT_EVAL_METHOD",
".",
"ISO/IEC",
"TS",
"18661-3",
"defines",
"two",
"values",
"that",
"we",
"'d",
"like",
"to",
"make",
"use",
"of",
":",
"0",
":",
"evaluate",
"all",
"operations",
"and",
"constants",
",",
"whose",
"semantic",
"type",
"has",
"at",
"most",
"the",
"range",
"and",
"precision",
"of",
"type",
"float",
",",
"to",
"the",
"range",
"and",
"precision",
"of",
"float",
";",
"evaluate",
"all",
"other",
"operations",
"and",
"constants",
"to",
"the",
"range",
"and",
"precision",
"of",
"the",
"semantic",
"type",
";",
"N",
",",
"where",
"_FloatN",
"is",
"a",
"supported",
"interchange",
"floating",
"type",
"evaluate",
"all",
"operations",
"and",
"constants",
",",
"whose",
"semantic",
"type",
"has",
"at",
"most",
"the",
"range",
"and",
"precision",
"of",
"_FloatN",
"type",
",",
"to",
"the",
"range",
"and",
"precision",
"of",
"the",
"_FloatN",
"type",
";",
"evaluate",
"all",
"other",
"operations",
"and",
"constants",
"to",
"the",
"range",
"and",
"precision",
"of",
"the",
"semantic",
"type",
";",
"If",
"we",
"have",
"the",
"ARMv8.2-A",
"extensions",
"then",
"we",
"support",
"_Float16",
"in",
"native",
"precision",
",",
"so",
"we",
"should",
"set",
"this",
"to",
"16",
".",
"Otherwise",
",",
"we",
"support",
"the",
"type",
",",
"but",
"want",
"to",
"evaluate",
"expressions",
"in",
"float",
"precision",
",",
"so",
"set",
"this",
"to",
"0",
"."
] | [
"arm"
] | arm | arm_excess_precision | arm | CPU | GCC | 29,246 | 50 | 1 | [] |
[
"<s>",
"static",
"void",
"ix86_emit_save_regs_using_mov",
"(",
"HOST_WIDE_INT",
"cfa_offset",
")",
"{",
"unsigned",
"int",
"regno",
";",
"for",
"(",
"regno",
"=",
"0",
";",
"regno",
"<",
"FIRST_PSEUDO_REGISTER",
";",
"regno",
"++",
")",
"if",
"(",
"GENERAL_REGNO_P",
"(",
"regno",
")",
"&&",
"ix86_save_reg",
"(",
"regno",
",",
"true",
",",
"true",
")",
")",
"{",
"ix86_emit_save_reg_using_mov",
"(",
"word_mode",
",",
"regno",
",",
"cfa_offset",
")",
";",
"cfa_offset",
"-=",
"UNITS_PER_WORD",
";",
"}",
"}",
"</s>"
] | [
"Emit",
"code",
"to",
"save",
"registers",
"using",
"MOV",
"insns",
".",
"First",
"register",
"is",
"restored",
"from",
"POINTER",
"+",
"OFFSET",
"."
] | [
"i386",
"0"
] | i386 | ix86_emit_save_regs_using_mov | i386 | CPU | GCC | 29,247 | 57 | 1 | [] |
[
"<s>",
"static",
"void",
"loongarch_prepare_builtin_arg",
"(",
"struct",
"expand_operand",
"*",
"op",
",",
"tree",
"exp",
",",
"unsigned",
"int",
"argno",
")",
"{",
"tree",
"arg",
";",
"rtx",
"value",
";",
"arg",
"=",
"CALL_EXPR_ARG",
"(",
"exp",
",",
"argno",
")",
";",
"value",
"=",
"expand_normal",
"(",
"arg",
")",
";",
"create_input_operand",
"(",
"op",
",",
"value",
",",
"TYPE_MODE",
"(",
"TREE_TYPE",
"(",
"arg",
")",
")",
")",
";",
"}",
"</s>"
] | [
"Take",
"argument",
"ARGNO",
"from",
"EXP",
"'s",
"argument",
"list",
"and",
"convert",
"it",
"into",
"an",
"expand",
"operand",
".",
"Store",
"the",
"operand",
"in",
"*",
"OP",
"."
] | [
"loongarch"
] | loongarch-builtins | loongarch_prepare_builtin_arg | loongarch | CPU | GCC | 29,248 | 55 | 1 | [] |
[
"<s>",
"std",
"::",
"vector",
"<",
"std",
"::",
"string",
">",
"swap",
"(",
"SwapType",
"swap",
")",
"{",
"std",
"::",
"string",
"desc",
";",
"switch",
"(",
"swap",
".",
"GetName",
"(",
")",
")",
"{",
"case",
"SwapTypeValue",
"::",
"a0b0",
":",
"desc",
"=",
"\"a0<->b0\"",
";",
"break",
";",
"case",
"SwapTypeValue",
"::",
"a0b1",
":",
"desc",
"=",
"\"a0<->b1\"",
";",
"break",
";",
"case",
"SwapTypeValue",
"::",
"a1b0",
":",
"desc",
"=",
"\"a1<->b0\"",
";",
"break",
";",
"case",
"SwapTypeValue",
"::",
"a1b1",
":",
"desc",
"=",
"\"a1<->b1\"",
";",
"break",
";",
"case",
"SwapTypeValue",
"::",
"a0b0a1b1",
":",
"desc",
"=",
"\"a<->b\"",
";",
"break",
";",
"case",
"SwapTypeValue",
"::",
"a0b1a1b0",
":",
"desc",
"=",
"\"a-x-b\"",
";",
"break",
";",
"case",
"SwapTypeValue",
"::",
"a0b0a1",
":",
"desc",
"=",
"\"a0->b0->a1\"",
";",
"break",
";",
"case",
"SwapTypeValue",
"::",
"a0b1a1",
":",
"desc",
"=",
"\"a0->b1->a1\"",
";",
"break",
";",
"case",
"SwapTypeValue",
"::",
"a1b0a0",
":",
"desc",
"=",
"\"a1->b0->a0\"",
";",
"break",
";",
"case",
"SwapTypeValue",
"::",
"a1b1a0",
":",
"desc",
"=",
"\"a1->b1->a0\"",
";",
"break",
";",
"case",
"SwapTypeValue",
"::",
"b0a0b1",
":",
"desc",
"=",
"\"b0->a0->b1\"",
";",
"break",
";",
"case",
"SwapTypeValue",
"::",
"b0a1b1",
":",
"desc",
"=",
"\"b0->a1->b1\"",
";",
"break",
";",
"case",
"SwapTypeValue",
"::",
"b1a0b0",
":",
"desc",
"=",
"\"b1->a0->b0\"",
";",
"break",
";",
"case",
"SwapTypeValue",
"::",
"b1a1b0",
":",
"desc",
"=",
"\"b1->a1->b0\"",
";",
"break",
";",
"default",
":",
"desc",
"=",
"\"[ERROR]\"",
";",
"}",
"return",
"D",
"(",
"\"swap\"",
",",
"desc",
")",
";",
"}",
"</s>"
] | [
"Provide",
"a",
"fast",
"substitute",
"to",
"std",
":",
":swap",
"<",
"Use",
">",
"that",
"also",
"works",
"with",
"less",
"standard-compliant",
"compilers",
"."
] | [
"Teak",
"\"a0<->b0\"",
"\"a0<->b1\"",
"\"a1<->b0\"",
"\"a1<->b1\"",
"\"a<->b\"",
"\"a-x-b\"",
"\"a0->b0->a1\"",
"\"a0->b1->a1\"",
"\"a1->b0->a0\"",
"\"a1->b1->a0\"",
"\"b0->a0->b1\"",
"\"b0->a1->b1\"",
"\"b1->a0->b0\"",
"\"b1->a1->b0\"",
"\"[ERROR]\"",
"\"swap\""
] | disassembler | swap | Teak | DSP | LLVM | 29,249 | 198 | 1 | [] |
[
"<s>",
"MachineBasicBlock",
"*",
"RISCVTargetLowering",
"::",
"EmitInstrWithCustomInserter",
"(",
"MachineInstr",
"&",
"MI",
",",
"MachineBasicBlock",
"*",
"MBB",
")",
"const",
"{",
"switch",
"(",
"MI",
".",
"getOpcode",
"(",
")",
")",
"{",
"case",
"RISCV",
"::",
"SELECT_CC",
":",
"case",
"RISCV",
"::",
"SELECT_CC64",
":",
"case",
"RISCV",
"::",
"FSELECT_CC_F",
":",
"case",
"RISCV",
"::",
"FSELECT_CC_D",
":",
"return",
"emitSelectCC",
"(",
"MI",
",",
"MBB",
")",
";",
"case",
"RISCV",
"::",
"CALL",
":",
"case",
"RISCV",
"::",
"CALLREG",
":",
"case",
"RISCV",
"::",
"CALL64",
":",
"case",
"RISCV",
"::",
"CALLREG64",
":",
"return",
"emitCALL",
"(",
"MI",
",",
"MBB",
")",
";",
"case",
"RISCV",
"::",
"PEXTRACT_PSEUDO",
":",
"case",
"RISCV",
"::",
"PEXTRACT_PSEUDO_REV",
":",
"return",
"emitPEXTRACT",
"(",
"MI",
",",
"MBB",
",",
"false",
")",
";",
"case",
"RISCV",
"::",
"PEXTRACTU_PSEUDO",
":",
"case",
"RISCV",
"::",
"PEXTRACTU_PSEUDO_REV",
":",
"return",
"emitPEXTRACT",
"(",
"MI",
",",
"MBB",
",",
"true",
")",
";",
"case",
"RISCV",
"::",
"PINSERT_PSEUDO",
":",
"return",
"emitPINSERT",
"(",
"MI",
",",
"MBB",
")",
";",
"case",
"RISCV",
"::",
"PBCLR_PSEUDO",
":",
"return",
"emitPBCLRSET",
"(",
"MI",
",",
"MBB",
",",
"false",
")",
";",
"case",
"RISCV",
"::",
"PBSET_PSEUDO",
":",
"return",
"emitPBCLRSET",
"(",
"MI",
",",
"MBB",
",",
"true",
")",
";",
"case",
"RISCV",
"::",
"PADDRN_PSEUDO",
":",
"case",
"RISCV",
"::",
"PADDURN_PSEUDO",
":",
"case",
"RISCV",
"::",
"PSUBRN_PSEUDO",
":",
"case",
"RISCV",
"::",
"PSUBURN_PSEUDO",
":",
"return",
"emitPRN",
"(",
"MI",
",",
"MBB",
")",
";",
"default",
":",
"llvm_unreachable",
"(",
"\"Unexpected instr type to insert\"",
")",
";",
"}",
"}",
"</s>"
] | [
"This",
"method",
"should",
"be",
"implemented",
"by",
"targets",
"that",
"mark",
"instructions",
"with",
"the",
"'usesCustomInserter",
"'",
"flag",
"."
] | [
"RISCV",
"RISCV",
"RISCV::SELECT_CC",
"RISCV::SELECT_CC64",
"RISCV::FSELECT_CC_F",
"RISCV::FSELECT_CC_D",
"RISCV::CALL",
"RISCV::CALLREG",
"RISCV::CALL64",
"RISCV::CALLREG64",
"RISCV::PEXTRACT_PSEUDO",
"RISCV::PEXTRACT_PSEUDO_REV",
"RISCV::PEXTRACTU_PSEUDO",
"RISCV::PEXTRACTU_PSEUDO_REV",
"RISCV::PINSERT_PSEUDO",
"RISCV::PBCLR_PSEUDO",
"RISCV::PBSET_PSEUDO",
"RISCV::PADDRN_PSEUDO",
"RISCV::PADDURN_PSEUDO",
"RISCV::PSUBRN_PSEUDO",
"RISCV::PSUBURN_PSEUDO",
"\"Unexpected instr type to insert\""
] | RISCVISelLowering75 | EmitInstrWithCustomInserter | RISCV | CPU | LLVM | 29,250 | 201 | 1 | [] |
[
"<s>",
"void",
"HexagonDAGToDAGISel",
"::",
"Select",
"(",
"SDNode",
"*",
"N",
")",
"{",
"if",
"(",
"N",
"->",
"isMachineOpcode",
"(",
")",
")",
"return",
"N",
"->",
"setNodeId",
"(",
"-",
"1",
")",
";",
"switch",
"(",
"N",
"->",
"getOpcode",
"(",
")",
")",
"{",
"case",
"ISD",
"::",
"Constant",
":",
"return",
"SelectConstant",
"(",
"N",
")",
";",
"case",
"ISD",
"::",
"ConstantFP",
":",
"return",
"SelectConstantFP",
"(",
"N",
")",
";",
"case",
"ISD",
"::",
"FrameIndex",
":",
"return",
"SelectFrameIndex",
"(",
"N",
")",
";",
"case",
"ISD",
"::",
"SHL",
":",
"return",
"SelectSHL",
"(",
"N",
")",
";",
"case",
"ISD",
"::",
"LOAD",
":",
"return",
"SelectLoad",
"(",
"N",
")",
";",
"case",
"ISD",
"::",
"STORE",
":",
"return",
"SelectStore",
"(",
"N",
")",
";",
"case",
"ISD",
"::",
"INTRINSIC_W_CHAIN",
":",
"return",
"SelectIntrinsicWChain",
"(",
"N",
")",
";",
"case",
"ISD",
"::",
"INTRINSIC_WO_CHAIN",
":",
"return",
"SelectIntrinsicWOChain",
"(",
"N",
")",
";",
"case",
"HexagonISD",
"::",
"ADDC",
":",
"case",
"HexagonISD",
"::",
"SUBC",
":",
"return",
"SelectAddSubCarry",
"(",
"N",
")",
";",
"case",
"HexagonISD",
"::",
"VALIGN",
":",
"return",
"SelectVAlign",
"(",
"N",
")",
";",
"case",
"HexagonISD",
"::",
"VALIGNADDR",
":",
"return",
"SelectVAlignAddr",
"(",
"N",
")",
";",
"case",
"HexagonISD",
"::",
"TYPECAST",
":",
"return",
"SelectTypecast",
"(",
"N",
")",
";",
"case",
"HexagonISD",
"::",
"P2D",
":",
"return",
"SelectP2D",
"(",
"N",
")",
";",
"case",
"HexagonISD",
"::",
"D2P",
":",
"return",
"SelectD2P",
"(",
"N",
")",
";",
"case",
"HexagonISD",
"::",
"Q2V",
":",
"return",
"SelectQ2V",
"(",
"N",
")",
";",
"case",
"HexagonISD",
"::",
"V2Q",
":",
"return",
"SelectV2Q",
"(",
"N",
")",
";",
"}",
"if",
"(",
"HST",
"->",
"useHVXOps",
"(",
")",
")",
"{",
"switch",
"(",
"N",
"->",
"getOpcode",
"(",
")",
")",
"{",
"case",
"ISD",
"::",
"VECTOR_SHUFFLE",
":",
"return",
"SelectHvxShuffle",
"(",
"N",
")",
";",
"case",
"HexagonISD",
"::",
"VROR",
":",
"return",
"SelectHvxRor",
"(",
"N",
")",
";",
"}",
"}",
"SelectCode",
"(",
"N",
")",
";",
"}",
"</s>"
] | [
"Main",
"hook",
"for",
"targets",
"to",
"transform",
"nodes",
"into",
"machine",
"nodes",
"."
] | [
"Hexagon",
"Hexagon",
"1",
"ISD::Constant",
"ISD::ConstantFP",
"ISD::FrameIndex",
"ISD::SHL",
"ISD::LOAD",
"ISD::STORE",
"ISD::INTRINSIC_W_CHAIN",
"ISD::INTRINSIC_WO_CHAIN",
"HexagonISD::ADDC",
"HexagonISD::SUBC",
"HexagonISD::VALIGN",
"HexagonISD::VALIGNADDR",
"HexagonISD::TYPECAST",
"HexagonISD::P2D",
"HexagonISD::D2P",
"HexagonISD::Q2V",
"HexagonISD::V2Q",
"ISD::VECTOR_SHUFFLE",
"HexagonISD::VROR"
] | HexagonISelDAGToDAG1 | Select | Hexagon | DSP | LLVM | 29,251 | 266 | 1 | [] |
[
"<s>",
"int",
"ARMBaseInstrInfo",
"::",
"getOperandLatency",
"(",
"const",
"InstrItineraryData",
"*",
"ItinData",
",",
"const",
"MachineInstr",
"*",
"DefMI",
",",
"unsigned",
"DefIdx",
",",
"const",
"MachineInstr",
"*",
"UseMI",
",",
"unsigned",
"UseIdx",
")",
"const",
"{",
"if",
"(",
"!",
"ItinData",
"||",
"ItinData",
"->",
"isEmpty",
"(",
")",
")",
"return",
"-",
"1",
";",
"const",
"MachineOperand",
"&",
"DefMO",
"=",
"DefMI",
"->",
"getOperand",
"(",
"DefIdx",
")",
";",
"unsigned",
"Reg",
"=",
"DefMO",
".",
"getReg",
"(",
")",
";",
"const",
"MCInstrDesc",
"*",
"DefMCID",
"=",
"&",
"DefMI",
"->",
"getDesc",
"(",
")",
";",
"const",
"MCInstrDesc",
"*",
"UseMCID",
"=",
"&",
"UseMI",
"->",
"getDesc",
"(",
")",
";",
"unsigned",
"DefAdj",
"=",
"0",
";",
"if",
"(",
"DefMI",
"->",
"isBundle",
"(",
")",
")",
"{",
"DefMI",
"=",
"getBundledDefMI",
"(",
"&",
"getRegisterInfo",
"(",
")",
",",
"DefMI",
",",
"Reg",
",",
"DefIdx",
",",
"DefAdj",
")",
";",
"DefMCID",
"=",
"&",
"DefMI",
"->",
"getDesc",
"(",
")",
";",
"}",
"if",
"(",
"DefMI",
"->",
"isCopyLike",
"(",
")",
"||",
"DefMI",
"->",
"isInsertSubreg",
"(",
")",
"||",
"DefMI",
"->",
"isRegSequence",
"(",
")",
"||",
"DefMI",
"->",
"isImplicitDef",
"(",
")",
")",
"{",
"return",
"1",
";",
"}",
"unsigned",
"UseAdj",
"=",
"0",
";",
"if",
"(",
"UseMI",
"->",
"isBundle",
"(",
")",
")",
"{",
"unsigned",
"NewUseIdx",
";",
"const",
"MachineInstr",
"*",
"NewUseMI",
"=",
"getBundledUseMI",
"(",
"&",
"getRegisterInfo",
"(",
")",
",",
"UseMI",
",",
"Reg",
",",
"NewUseIdx",
",",
"UseAdj",
")",
";",
"if",
"(",
"!",
"NewUseMI",
")",
"return",
"-",
"1",
";",
"UseMI",
"=",
"NewUseMI",
";",
"UseIdx",
"=",
"NewUseIdx",
";",
"UseMCID",
"=",
"&",
"UseMI",
"->",
"getDesc",
"(",
")",
";",
"}",
"if",
"(",
"Reg",
"==",
"ARM",
"::",
"CPSR",
")",
"{",
"if",
"(",
"DefMI",
"->",
"getOpcode",
"(",
")",
"==",
"ARM",
"::",
"FMSTAT",
")",
"{",
"return",
"Subtarget",
".",
"isCortexA9",
"(",
")",
"?",
"1",
":",
"20",
";",
"}",
"if",
"(",
"UseMI",
"->",
"isBranch",
"(",
")",
")",
"return",
"0",
";",
"unsigned",
"Latency",
"=",
"getInstrLatency",
"(",
"ItinData",
",",
"DefMI",
")",
";",
"if",
"(",
"Latency",
">",
"0",
"&&",
"Subtarget",
".",
"isThumb2",
"(",
")",
")",
"{",
"const",
"MachineFunction",
"*",
"MF",
"=",
"DefMI",
"->",
"getParent",
"(",
")",
"->",
"getParent",
"(",
")",
";",
"if",
"(",
"MF",
"->",
"getFunction",
"(",
")",
"->",
"hasFnAttr",
"(",
"Attribute",
"::",
"OptimizeForSize",
")",
")",
"--",
"Latency",
";",
"}",
"return",
"Latency",
";",
"}",
"if",
"(",
"DefMO",
".",
"isImplicit",
"(",
")",
"||",
"UseMI",
"->",
"getOperand",
"(",
"UseIdx",
")",
".",
"isImplicit",
"(",
")",
")",
"return",
"-",
"1",
";",
"unsigned",
"DefAlign",
"=",
"DefMI",
"->",
"hasOneMemOperand",
"(",
")",
"?",
"(",
"*",
"DefMI",
"->",
"memoperands_begin",
"(",
")",
")",
"->",
"getAlignment",
"(",
")",
":",
"0",
";",
"unsigned",
"UseAlign",
"=",
"UseMI",
"->",
"hasOneMemOperand",
"(",
")",
"?",
"(",
"*",
"UseMI",
"->",
"memoperands_begin",
"(",
")",
")",
"->",
"getAlignment",
"(",
")",
":",
"0",
";",
"int",
"Latency",
"=",
"getOperandLatency",
"(",
"ItinData",
",",
"*",
"DefMCID",
",",
"DefIdx",
",",
"DefAlign",
",",
"*",
"UseMCID",
",",
"UseIdx",
",",
"UseAlign",
")",
";",
"if",
"(",
"Latency",
"<",
"0",
")",
"return",
"Latency",
";",
"int",
"Adj",
"=",
"DefAdj",
"+",
"UseAdj",
";",
"Adj",
"+=",
"adjustDefLatency",
"(",
"Subtarget",
",",
"DefMI",
",",
"DefMCID",
",",
"DefAlign",
")",
";",
"if",
"(",
"Adj",
">=",
"0",
"||",
"(",
"int",
")",
"Latency",
">",
"-",
"Adj",
")",
"{",
"return",
"Latency",
"+",
"Adj",
";",
"}",
"return",
"Latency",
";",
"}",
"</s>"
] | [
"Compute",
"and",
"return",
"the",
"use",
"operand",
"latency",
"of",
"a",
"given",
"pair",
"of",
"def",
"and",
"use",
"."
] | [
"ARM",
"ARM",
"1",
"0",
"1",
"0",
"1",
"ARM::CPSR",
"ARM::FMSTAT",
"1",
"20",
"0",
"0",
"1",
"0",
"0",
"0",
"0"
] | ARMBaseInstrInfo47 | getOperandLatency | ARM | CPU | LLVM | 29,252 | 479 | 1 | [] |
[
"<s>",
"bool",
"PPCFastISel",
"::",
"fastLowerArguments",
"(",
")",
"{",
"return",
"false",
";",
"}",
"</s>"
] | [
"This",
"method",
"is",
"called",
"by",
"target-independent",
"code",
"to",
"do",
"target-",
"specific",
"argument",
"lowering",
"."
] | [
"PowerPC",
"PPC"
] | PPCFastISel (2) | fastLowerArguments | PowerPC | CPU | LLVM | 29,253 | 11 | 1 | [] |
[
"<s>",
"void",
"Mips16TargetLowering",
"::",
"getOpndList",
"(",
"SmallVectorImpl",
"<",
"SDValue",
">",
"&",
"Ops",
",",
"std",
"::",
"deque",
"<",
"std",
"::",
"pair",
"<",
"unsigned",
",",
"SDValue",
">",
">",
"&",
"RegsToPass",
",",
"bool",
"IsPICCall",
",",
"bool",
"GlobalOrExternal",
",",
"bool",
"InternalLinkage",
",",
"CallLoweringInfo",
"&",
"CLI",
",",
"SDValue",
"Callee",
",",
"SDValue",
"Chain",
")",
"const",
"{",
"SelectionDAG",
"&",
"DAG",
"=",
"CLI",
".",
"DAG",
";",
"const",
"char",
"*",
"Mips16HelperFunction",
"=",
"0",
";",
"bool",
"NeedMips16Helper",
"=",
"false",
";",
"if",
"(",
"getTargetMachine",
"(",
")",
".",
"Options",
".",
"UseSoftFloat",
"&&",
"Subtarget",
"->",
"inMips16HardFloat",
"(",
")",
")",
"{",
"bool",
"LookupHelper",
"=",
"true",
";",
"if",
"(",
"ExternalSymbolSDNode",
"*",
"S",
"=",
"dyn_cast",
"<",
"ExternalSymbolSDNode",
">",
"(",
"CLI",
".",
"Callee",
")",
")",
"{",
"Mips16Libcall",
"Find",
"=",
"{",
"RTLIB",
"::",
"UNKNOWN_LIBCALL",
",",
"S",
"->",
"getSymbol",
"(",
")",
"}",
";",
"if",
"(",
"std",
"::",
"binary_search",
"(",
"HardFloatLibCalls",
",",
"array_endof",
"(",
"HardFloatLibCalls",
")",
",",
"Find",
")",
")",
"LookupHelper",
"=",
"false",
";",
"else",
"{",
"Mips16IntrinsicHelperType",
"IntrinsicFind",
"=",
"{",
"S",
"->",
"getSymbol",
"(",
")",
",",
"\"\"",
"}",
";",
"if",
"(",
"std",
"::",
"binary_search",
"(",
"Mips16IntrinsicHelper",
",",
"array_endof",
"(",
"Mips16IntrinsicHelper",
")",
",",
"IntrinsicFind",
")",
")",
"{",
"const",
"Mips16IntrinsicHelperType",
"*",
"h",
"=",
"(",
"std",
"::",
"find",
"(",
"Mips16IntrinsicHelper",
",",
"array_endof",
"(",
"Mips16IntrinsicHelper",
")",
",",
"IntrinsicFind",
")",
")",
";",
"Mips16HelperFunction",
"=",
"h",
"->",
"Helper",
";",
"NeedMips16Helper",
"=",
"true",
";",
"LookupHelper",
"=",
"false",
";",
"}",
"}",
"}",
"else",
"if",
"(",
"GlobalAddressSDNode",
"*",
"G",
"=",
"dyn_cast",
"<",
"GlobalAddressSDNode",
">",
"(",
"CLI",
".",
"Callee",
")",
")",
"{",
"Mips16Libcall",
"Find",
"=",
"{",
"RTLIB",
"::",
"UNKNOWN_LIBCALL",
",",
"G",
"->",
"getGlobal",
"(",
")",
"->",
"getName",
"(",
")",
".",
"data",
"(",
")",
"}",
";",
"if",
"(",
"std",
"::",
"binary_search",
"(",
"HardFloatLibCalls",
",",
"array_endof",
"(",
"HardFloatLibCalls",
")",
",",
"Find",
")",
")",
"LookupHelper",
"=",
"false",
";",
"}",
"if",
"(",
"LookupHelper",
")",
"Mips16HelperFunction",
"=",
"getMips16HelperFunction",
"(",
"CLI",
".",
"RetTy",
",",
"CLI",
".",
"Args",
",",
"NeedMips16Helper",
")",
";",
"}",
"SDValue",
"JumpTarget",
"=",
"Callee",
";",
"if",
"(",
"IsPICCall",
"||",
"!",
"GlobalOrExternal",
")",
"{",
"unsigned",
"V0Reg",
"=",
"Mips",
"::",
"V0",
";",
"if",
"(",
"NeedMips16Helper",
")",
"{",
"RegsToPass",
".",
"push_front",
"(",
"std",
"::",
"make_pair",
"(",
"V0Reg",
",",
"Callee",
")",
")",
";",
"JumpTarget",
"=",
"DAG",
".",
"getExternalSymbol",
"(",
"Mips16HelperFunction",
",",
"getPointerTy",
"(",
")",
")",
";",
"JumpTarget",
"=",
"getAddrGlobal",
"(",
"JumpTarget",
",",
"DAG",
",",
"MipsII",
"::",
"MO_GOT",
")",
";",
"}",
"else",
"RegsToPass",
".",
"push_front",
"(",
"std",
"::",
"make_pair",
"(",
"(",
"unsigned",
")",
"Mips",
"::",
"T9",
",",
"Callee",
")",
")",
";",
"}",
"Ops",
".",
"push_back",
"(",
"JumpTarget",
")",
";",
"MipsTargetLowering",
"::",
"getOpndList",
"(",
"Ops",
",",
"RegsToPass",
",",
"IsPICCall",
",",
"GlobalOrExternal",
",",
"InternalLinkage",
",",
"CLI",
",",
"Callee",
",",
"Chain",
")",
";",
"}",
"</s>"
] | [
"This",
"function",
"fills",
"Ops",
",",
"which",
"is",
"the",
"list",
"of",
"operands",
"that",
"will",
"later",
"be",
"used",
"when",
"a",
"function",
"call",
"node",
"is",
"created",
"."
] | [
"Mips",
"Mips",
"Mips",
"0",
"Mips",
"Mips",
"Mips",
"Mips",
"\"\"",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips::V0",
"Mips",
"Mips",
"MipsII::MO_GOT",
"Mips::T9",
"Mips"
] | Mips16ISelLowering3 | getOpndList | Mips | CPU | LLVM | 29,254 | 411 | 1 | [] |
[
"<s>",
"bool",
"HexagonTTIImpl",
"::",
"shouldBuildLookupTables",
"(",
")",
"const",
"{",
"return",
"EmitLookupTables",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"switches",
"should",
"be",
"turned",
"into",
"lookup",
"tables",
"for",
"the",
"target",
"."
] | [
"Hexagon",
"Hexagon"
] | HexagonTargetTransformInfo | shouldBuildLookupTables | Hexagon | DSP | LLVM | 29,255 | 12 | 1 | [] |
[
"<s>",
"bool",
"ARMAsmParser",
"::",
"ParseDirective",
"(",
"AsmToken",
"DirectiveID",
")",
"{",
"StringRef",
"IDVal",
"=",
"DirectiveID",
".",
"getIdentifier",
"(",
")",
";",
"if",
"(",
"IDVal",
"==",
"\".word\"",
")",
"return",
"parseDirectiveWord",
"(",
"4",
",",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".thumb\"",
")",
"return",
"parseDirectiveThumb",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".arm\"",
")",
"return",
"parseDirectiveARM",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".thumb_func\"",
")",
"return",
"parseDirectiveThumbFunc",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".code\"",
")",
"return",
"parseDirectiveCode",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".syntax\"",
")",
"return",
"parseDirectiveSyntax",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".unreq\"",
")",
"return",
"parseDirectiveUnreq",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".arch\"",
")",
"return",
"parseDirectiveArch",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".eabi_attribute\"",
")",
"return",
"parseDirectiveEabiAttr",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".cpu\"",
")",
"return",
"parseDirectiveCPU",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".fpu\"",
")",
"return",
"parseDirectiveFPU",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".fnstart\"",
")",
"return",
"parseDirectiveFnStart",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".fnend\"",
")",
"return",
"parseDirectiveFnEnd",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".cantunwind\"",
")",
"return",
"parseDirectiveCantUnwind",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".personality\"",
")",
"return",
"parseDirectivePersonality",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".handlerdata\"",
")",
"return",
"parseDirectiveHandlerData",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".setfp\"",
")",
"return",
"parseDirectiveSetFP",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".pad\"",
")",
"return",
"parseDirectivePad",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".save\"",
")",
"return",
"parseDirectiveRegSave",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
",",
"false",
")",
";",
"else",
"if",
"(",
"IDVal",
"==",
"\".vsave\"",
")",
"return",
"parseDirectiveRegSave",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
",",
"true",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"ParseDirective",
"-",
"Parse",
"a",
"target",
"specific",
"assembler",
"directive",
"This",
"method",
"is",
"deprecated",
",",
"use",
"'parseDirective",
"'",
"instead",
"."
] | [
"ARM",
"ARM",
"\".word\"",
"4",
"\".thumb\"",
"\".arm\"",
"ARM",
"\".thumb_func\"",
"\".code\"",
"\".syntax\"",
"\".unreq\"",
"\".arch\"",
"\".eabi_attribute\"",
"\".cpu\"",
"\".fpu\"",
"\".fnstart\"",
"\".fnend\"",
"\".cantunwind\"",
"\".personality\"",
"\".handlerdata\"",
"\".setfp\"",
"\".pad\"",
"\".save\"",
"\".vsave\""
] | ARMAsmParser102 | ParseDirective | ARM | CPU | LLVM | 29,256 | 367 | 1 | [] |
[
"<s>",
"static",
"int",
"parse_devices_csv",
"(",
"const",
"char",
"*",
"mcu_name",
")",
"{",
"if",
"(",
"msp430_devices_csv_loc",
"!=",
"NULL",
")",
"return",
"parse_devices_csv_1",
"(",
"msp430_devices_csv_loc",
",",
"mcu_name",
")",
";",
"else",
"if",
"(",
"derived_devices_csv_loc",
"!=",
"NULL",
")",
"return",
"parse_devices_csv_1",
"(",
"derived_devices_csv_loc",
",",
"mcu_name",
")",
";",
"if",
"(",
"msp430_check_env_var_for_devices",
"(",
"&",
"derived_devices_csv_loc",
")",
")",
"return",
"2",
";",
"return",
"parse_devices_csv_1",
"(",
"derived_devices_csv_loc",
",",
"mcu_name",
")",
";",
"}",
"</s>"
] | [
"Wrapper",
"for",
"the",
"parse_devices_csv_1",
"work",
"function",
".",
"A",
"return",
"code",
"of",
"0",
"indicates",
"that",
"the",
"MCU",
"data",
"has",
"been",
"successfully",
"extracted",
"into",
"extracted_mcu_data",
".",
"A",
"return",
"code",
"of",
"1",
"indicates",
"that",
"the",
"specified",
"MCU",
"was",
"n't",
"found",
"in",
"devices.csv",
".",
"A",
"return",
"code",
"of",
"2",
"indicates",
"that",
"devices.csv",
"was",
"n't",
"found",
"at",
"all",
"."
] | [
"msp430",
"2"
] | msp430-devices | parse_devices_csv | msp430 | MPU | GCC | 29,257 | 59 | 1 | [] |
[
"<s>",
"static",
"bool",
"avr_is_casesi_sequence",
"(",
"basic_block",
"bb",
",",
"rtx_insn",
"*",
"insn",
",",
"rtx_insn",
"*",
"insns",
"[",
"5",
"]",
")",
"{",
"rtx",
"set_4",
",",
"set_0",
";",
"if",
"(",
"!",
"(",
"JUMP_P",
"(",
"insns",
"[",
"4",
"]",
"=",
"insn",
")",
"&&",
"(",
"set_4",
"=",
"single_set",
"(",
"insns",
"[",
"4",
"]",
")",
")",
"&&",
"UNSPEC",
"==",
"GET_CODE",
"(",
"SET_SRC",
"(",
"set_4",
")",
")",
"&&",
"UNSPEC_INDEX_JMP",
"==",
"XINT",
"(",
"SET_SRC",
"(",
"set_4",
")",
",",
"1",
")",
"&&",
"(",
"insns",
"[",
"3",
"]",
"=",
"prev_real_insn",
"(",
"insns",
"[",
"4",
"]",
")",
")",
"&&",
"(",
"insns",
"[",
"2",
"]",
"=",
"prev_real_insn",
"(",
"insns",
"[",
"3",
"]",
")",
")",
"&&",
"(",
"insns",
"[",
"1",
"]",
"=",
"prev_real_insn",
"(",
"insns",
"[",
"2",
"]",
")",
")",
"&&",
"(",
"insns",
"[",
"0",
"]",
"=",
"prev_real_insn",
"(",
"insns",
"[",
"1",
"]",
")",
")",
"&&",
"(",
"set_0",
"=",
"single_set",
"(",
"insns",
"[",
"0",
"]",
")",
")",
"&&",
"extend_operator",
"(",
"SET_SRC",
"(",
"set_0",
")",
",",
"SImode",
")",
")",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"dump_file",
")",
"{",
"fprintf",
"(",
"dump_file",
",",
"\";; Sequence from casesi in \"",
"\"[bb %d]:\\n\\n\"",
",",
"bb",
"->",
"index",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"5",
";",
"i",
"++",
")",
"print_rtl_single",
"(",
"dump_file",
",",
"insns",
"[",
"i",
"]",
")",
";",
"}",
"rtx_insn",
"*",
"xinsn",
"=",
"avr_parallel_insn_from_insns",
"(",
"insns",
")",
";",
"INSN_CODE",
"(",
"xinsn",
")",
"=",
"recog",
"(",
"PATTERN",
"(",
"xinsn",
")",
",",
"xinsn",
",",
"NULL",
")",
";",
"if",
"(",
"INSN_CODE",
"(",
"xinsn",
")",
"<",
"0",
")",
"{",
"if",
"(",
"dump_file",
")",
"fprintf",
"(",
"dump_file",
",",
"\";; Sequence not recognized, giving up.\\n\\n\"",
")",
";",
"return",
"false",
";",
"}",
"gcc_assert",
"(",
"CODE_FOR_casesi_qi_sequence",
"==",
"INSN_CODE",
"(",
"xinsn",
")",
"||",
"CODE_FOR_casesi_hi_sequence",
"==",
"INSN_CODE",
"(",
"xinsn",
")",
")",
";",
"extract_insn",
"(",
"xinsn",
")",
";",
"gcc_assert",
"(",
"recog_data",
".",
"n_operands",
"==",
"11",
")",
";",
"gcc_assert",
"(",
"recog_data",
".",
"n_dups",
"==",
"4",
")",
";",
"if",
"(",
"dump_file",
")",
"{",
"fprintf",
"(",
"dump_file",
",",
"\";; Operands extracted:\\n\"",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"recog_data",
".",
"n_operands",
";",
"i",
"++",
")",
"avr_fdump",
"(",
"dump_file",
",",
"\";; $%d = %r\\n\"",
",",
"i",
",",
"recog_data",
".",
"operand",
"[",
"i",
"]",
")",
";",
"fprintf",
"(",
"dump_file",
",",
"\"\\n\"",
")",
";",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"we",
"see",
"an",
"insn",
"stream",
"generated",
"by",
"casesi",
"expander",
"together",
"with",
"an",
"extension",
"to",
"SImode",
"of",
"the",
"switch",
"value",
".",
"If",
"this",
"is",
"the",
"case",
",",
"fill",
"in",
"the",
"insns",
"from",
"casesi",
"to",
"INSNS",
"[",
"1",
"..",
"5",
"]",
"and",
"the",
"SImode",
"extension",
"to",
"INSNS",
"[",
"0",
"]",
".",
"Moreover",
",",
"extract",
"the",
"operands",
"of",
"pattern",
"casesi_",
"<",
"mode",
">",
"_sequence",
"forged",
"from",
"the",
"sequence",
"to",
"recog_data",
"."
] | [
"avr",
"5",
"4",
"4",
"1",
"3",
"4",
"2",
"3",
"1",
"2",
"0",
"1",
"0",
"\";; Sequence from casesi in \"",
"\"[bb %d]:\\n\\n\"",
"0",
"5",
"0",
"\";; Sequence not recognized, giving up.\\n\\n\"",
"11",
"4",
"\";; Operands extracted:\\n\"",
"0",
"\";; $%d = %r\\n\"",
"\"\\n\""
] | avr | avr_is_casesi_sequence | avr | MPU | GCC | 29,258 | 349 | 1 | [] |
[
"<s>",
"DecodeStatus",
"Mips64Disassembler",
"::",
"getInstruction",
"(",
"MCInst",
"&",
"instr",
",",
"uint64_t",
"&",
"Size",
",",
"const",
"MemoryObject",
"&",
"Region",
",",
"uint64_t",
"Address",
",",
"raw_ostream",
"&",
"vStream",
",",
"raw_ostream",
"&",
"cStream",
")",
"const",
"{",
"uint32_t",
"Insn",
";",
"DecodeStatus",
"Result",
"=",
"readInstruction32",
"(",
"Region",
",",
"Address",
",",
"Size",
",",
"Insn",
",",
"isBigEndian",
",",
"false",
")",
";",
"if",
"(",
"Result",
"==",
"MCDisassembler",
"::",
"Fail",
")",
"return",
"MCDisassembler",
"::",
"Fail",
";",
"Result",
"=",
"decodeInstruction",
"(",
"DecoderTableMips6432",
",",
"instr",
",",
"Insn",
",",
"Address",
",",
"this",
",",
"STI",
")",
";",
"if",
"(",
"Result",
"!=",
"MCDisassembler",
"::",
"Fail",
")",
"{",
"Size",
"=",
"4",
";",
"return",
"Result",
";",
"}",
"Result",
"=",
"decodeInstruction",
"(",
"DecoderTableMips32",
",",
"instr",
",",
"Insn",
",",
"Address",
",",
"this",
",",
"STI",
")",
";",
"if",
"(",
"Result",
"!=",
"MCDisassembler",
"::",
"Fail",
")",
"{",
"Size",
"=",
"4",
";",
"return",
"Result",
";",
"}",
"return",
"MCDisassembler",
"::",
"Fail",
";",
"}",
"</s>"
] | [
"Returns",
"the",
"disassembly",
"of",
"a",
"single",
"instruction",
"."
] | [
"Mips",
"Mips",
"Mips",
"4",
"Mips",
"4"
] | MipsDisassembler10 | getInstruction | Mips | CPU | LLVM | 29,259 | 139 | 1 | [] |
[
"<s>",
"void",
"arm_expand_vcond",
"(",
"rtx",
"*",
"operands",
",",
"machine_mode",
"cmp_result_mode",
")",
"{",
"rtx",
"mask",
"=",
"gen_reg_rtx",
"(",
"cmp_result_mode",
")",
";",
"bool",
"inverted",
"=",
"arm_expand_vector_compare",
"(",
"mask",
",",
"GET_CODE",
"(",
"operands",
"[",
"3",
"]",
")",
",",
"operands",
"[",
"4",
"]",
",",
"operands",
"[",
"5",
"]",
",",
"true",
")",
";",
"if",
"(",
"inverted",
")",
"std",
"::",
"swap",
"(",
"operands",
"[",
"1",
"]",
",",
"operands",
"[",
"2",
"]",
")",
";",
"emit_insn",
"(",
"gen_neon_vbsl",
"(",
"GET_MODE",
"(",
"operands",
"[",
"0",
"]",
")",
",",
"operands",
"[",
"0",
"]",
",",
"mask",
",",
"operands",
"[",
"1",
"]",
",",
"operands",
"[",
"2",
"]",
")",
")",
";",
"}",
"</s>"
] | [
"Expand",
"a",
"vcond",
"or",
"vcondu",
"pattern",
"with",
"operands",
"OPERANDS",
".",
"CMP_RESULT_MODE",
"is",
"the",
"mode",
"of",
"the",
"comparison",
"result",
"."
] | [
"arm",
"3",
"4",
"5",
"1",
"2",
"0",
"0",
"1",
"2"
] | arm1 | arm_expand_vcond | arm | CPU | GCC | 29,260 | 98 | 1 | [] |
[
"<s>",
"void",
"assignValueToAddress",
"(",
"const",
"CallLowering",
"::",
"ArgInfo",
"&",
"Arg",
",",
"Register",
"Addr",
",",
"uint64_t",
"Size",
",",
"MachinePointerInfo",
"&",
"MPO",
",",
"CCValAssign",
"&",
"VA",
")",
"override",
"{",
"unsigned",
"MaxSize",
"=",
"Size",
"*",
"8",
";",
"if",
"(",
"!",
"Arg",
".",
"IsFixed",
")",
"MaxSize",
"=",
"0",
";",
"Register",
"ValVReg",
"=",
"VA",
".",
"getLocInfo",
"(",
")",
"!=",
"CCValAssign",
"::",
"LocInfo",
"::",
"FPExt",
"?",
"extendRegister",
"(",
"Arg",
".",
"Regs",
"[",
"0",
"]",
",",
"VA",
",",
"MaxSize",
")",
":",
"Arg",
".",
"Regs",
"[",
"0",
"]",
";",
"const",
"LLT",
"RegTy",
"=",
"MRI",
".",
"getType",
"(",
"ValVReg",
")",
";",
"if",
"(",
"RegTy",
".",
"getSizeInBytes",
"(",
")",
">",
"Size",
")",
"Size",
"=",
"RegTy",
".",
"getSizeInBytes",
"(",
")",
";",
"assignValueToAddress",
"(",
"ValVReg",
",",
"Addr",
",",
"Size",
",",
"MPO",
",",
"VA",
")",
";",
"}",
"</s>"
] | [
"An",
"overload",
"which",
"takes",
"an",
"ArgInfo",
"if",
"additional",
"information",
"about",
"the",
"arg",
"is",
"needed",
"."
] | [
"AArch64",
"8",
"0",
"0",
"0"
] | AArch64CallLowering16 | assignValueToAddress | AArch64 | CPU | LLVM | 29,261 | 123 | 1 | [] |
[
"<s>",
"bool",
"X86TargetLowering",
"::",
"isTypeDesirableForOp",
"(",
"unsigned",
"Opc",
",",
"EVT",
"VT",
")",
"const",
"{",
"if",
"(",
"!",
"isTypeLegal",
"(",
"VT",
")",
")",
"return",
"false",
";",
"if",
"(",
"Opc",
"==",
"ISD",
"::",
"SHL",
"&&",
"VT",
".",
"isVector",
"(",
")",
"&&",
"VT",
".",
"getVectorElementType",
"(",
")",
"==",
"MVT",
"::",
"i8",
")",
"return",
"false",
";",
"if",
"(",
"Opc",
"==",
"ISD",
"::",
"MUL",
"&&",
"VT",
"==",
"MVT",
"::",
"i8",
")",
"return",
"false",
";",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"i16",
")",
"{",
"switch",
"(",
"Opc",
")",
"{",
"default",
":",
"break",
";",
"case",
"ISD",
"::",
"LOAD",
":",
"case",
"ISD",
"::",
"SIGN_EXTEND",
":",
"case",
"ISD",
"::",
"ZERO_EXTEND",
":",
"case",
"ISD",
"::",
"ANY_EXTEND",
":",
"case",
"ISD",
"::",
"SHL",
":",
"case",
"ISD",
"::",
"SRL",
":",
"case",
"ISD",
"::",
"SUB",
":",
"case",
"ISD",
"::",
"ADD",
":",
"case",
"ISD",
"::",
"MUL",
":",
"case",
"ISD",
"::",
"AND",
":",
"case",
"ISD",
"::",
"OR",
":",
"case",
"ISD",
"::",
"XOR",
":",
"return",
"false",
";",
"}",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"the",
"target",
"has",
"native",
"support",
"for",
"the",
"specified",
"value",
"type",
"and",
"it",
"is",
"'desirable",
"'",
"to",
"use",
"the",
"type",
"for",
"the",
"given",
"node",
"type",
"."
] | [
"X86",
"X86",
"ISD::SHL",
"MVT::i8",
"ISD::MUL",
"MVT::i8",
"MVT::i16",
"ISD::LOAD",
"ISD::SIGN_EXTEND",
"ISD::ZERO_EXTEND",
"ISD::ANY_EXTEND",
"ISD::SHL",
"ISD::SRL",
"ISD::SUB",
"ISD::ADD",
"ISD::MUL",
"ISD::AND",
"ISD::OR",
"ISD::XOR"
] | X86ISelLowering (2)8 | isTypeDesirableForOp | X86 | CPU | LLVM | 29,262 | 155 | 1 | [] |
[
"<s>",
"bool",
"PPCAsmParser",
"::",
"ParseDirective",
"(",
"AsmToken",
"DirectiveID",
")",
"{",
"StringRef",
"IDVal",
"=",
"DirectiveID",
".",
"getIdentifier",
"(",
")",
";",
"if",
"(",
"IDVal",
"==",
"\".word\"",
")",
"return",
"ParseDirectiveWord",
"(",
"2",
",",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"if",
"(",
"IDVal",
"==",
"\".llong\"",
")",
"return",
"ParseDirectiveWord",
"(",
"8",
",",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"if",
"(",
"IDVal",
"==",
"\".tc\"",
")",
"return",
"ParseDirectiveTC",
"(",
"isPPC64",
"(",
")",
"?",
"8",
":",
"4",
",",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"if",
"(",
"IDVal",
"==",
"\".machine\"",
")",
"return",
"ParseDirectiveMachine",
"(",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"ParseDirective",
"-",
"Parse",
"a",
"target",
"specific",
"assembler",
"directive",
"This",
"method",
"is",
"deprecated",
",",
"use",
"'parseDirective",
"'",
"instead",
"."
] | [
"PowerPC",
"PPC",
"\".word\"",
"2",
"\".llong\"",
"8",
"\".tc\"",
"PPC",
"8",
"4",
"\".machine\""
] | PPCAsmParser14 | ParseDirective | PowerPC | CPU | LLVM | 29,263 | 98 | 1 | [] |
[
"<s>",
"void",
"LM32MCInstLower",
"::",
"lower",
"(",
"const",
"MachineInstr",
"*",
"MI",
",",
"MCInst",
"&",
"OutMI",
")",
"const",
"{",
"OutMI",
".",
"setOpcode",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
";",
"for",
"(",
"unsigned",
"I",
"=",
"0",
",",
"E",
"=",
"MI",
"->",
"getNumOperands",
"(",
")",
";",
"I",
"!=",
"E",
";",
"++",
"I",
")",
"{",
"const",
"MachineOperand",
"&",
"MO",
"=",
"MI",
"->",
"getOperand",
"(",
"I",
")",
";",
"if",
"(",
"!",
"MO",
".",
"isReg",
"(",
")",
"||",
"!",
"MO",
".",
"isImplicit",
"(",
")",
")",
"OutMI",
".",
"addOperand",
"(",
"lowerOperand",
"(",
"MO",
")",
")",
";",
"}",
"}",
"</s>"
] | [
"The",
"instruction",
"is",
"lowered",
"."
] | [
"LM32",
"LM32",
"0"
] | LM32MCInstLower | lower | LM32 | MPU | LLVM | 29,264 | 90 | 1 | [] |
[
"<s>",
"bool",
"ARMTargetLowering",
"::",
"isFMAFasterThanFMulAndFAdd",
"(",
"const",
"MachineFunction",
"&",
"MF",
",",
"EVT",
"VT",
")",
"const",
"{",
"if",
"(",
"!",
"VT",
".",
"isSimple",
"(",
")",
")",
"return",
"false",
";",
"switch",
"(",
"VT",
".",
"getSimpleVT",
"(",
")",
".",
"SimpleTy",
")",
"{",
"case",
"MVT",
"::",
"v4f32",
":",
"case",
"MVT",
"::",
"v8f16",
":",
"return",
"Subtarget",
"->",
"hasMVEFloatOps",
"(",
")",
";",
"case",
"MVT",
"::",
"f16",
":",
"return",
"Subtarget",
"->",
"useFPVFMx16",
"(",
")",
";",
"case",
"MVT",
"::",
"f32",
":",
"return",
"Subtarget",
"->",
"useFPVFMx",
"(",
")",
";",
"case",
"MVT",
"::",
"f64",
":",
"return",
"Subtarget",
"->",
"useFPVFMx64",
"(",
")",
";",
"default",
":",
"break",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"an",
"FMA",
"operation",
"is",
"faster",
"than",
"a",
"pair",
"of",
"fmul",
"and",
"fadd",
"instructions",
"."
] | [
"ARM",
"ARM",
"MVT::v4f32",
"MVT::v8f16",
"MVT::f16",
"MVT::f32",
"MVT::f64"
] | ARMISelLowering (2)5 | isFMAFasterThanFMulAndFAdd | ARM | CPU | LLVM | 29,265 | 100 | 1 | [] |
[
"<s>",
"bool",
"P2AsmPrinter",
"::",
"PrintAsmMemoryOperand",
"(",
"const",
"MachineInstr",
"*",
"MI",
",",
"unsigned",
"OpNum",
",",
"const",
"char",
"*",
"ExtraCode",
",",
"raw_ostream",
"&",
"O",
")",
"{",
"if",
"(",
"ExtraCode",
")",
"{",
"return",
"true",
";",
"}",
"const",
"MachineOperand",
"&",
"MO",
"=",
"MI",
"->",
"getOperand",
"(",
"OpNum",
")",
";",
"assert",
"(",
"MO",
".",
"isReg",
"(",
")",
"&&",
"\"unexpected inline asm memory operand\"",
")",
";",
"O",
"<<",
"P2InstPrinter",
"::",
"getRegisterName",
"(",
"MO",
".",
"getReg",
"(",
")",
")",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Print",
"the",
"specified",
"operand",
"of",
"MI",
",",
"an",
"INLINEASM",
"instruction",
",",
"using",
"the",
"specified",
"assembler",
"variant",
"as",
"an",
"address",
"."
] | [
"P2",
"P2",
"\"unexpected inline asm memory operand\"",
"P2"
] | P2AsmPrinter | PrintAsmMemoryOperand | P2 | MPU | LLVM | 29,266 | 72 | 1 | [] |
[
"<s>",
"unsigned",
"getReg",
"(",
")",
"const",
"override",
"{",
"llvm_unreachable",
"(",
"\"Invalid type access!\"",
")",
";",
"}",
"</s>"
] | [
"Returns",
"the",
"register",
"associated",
"with",
"this",
"edge",
"."
] | [
"AGC",
"\"Invalid type access!\""
] | AGCAsmParser | getReg | AGC | MPU | LLVM | 29,267 | 13 | 1 | [] |
[
"<s>",
"bool",
"BPFAsmPrinter",
"::",
"doInitialization",
"(",
"Module",
"&",
"M",
")",
"{",
"AsmPrinter",
"::",
"doInitialization",
"(",
"M",
")",
";",
"if",
"(",
"MAI",
"->",
"doesSupportDebugInformation",
"(",
")",
"&&",
"!",
"M",
".",
"debug_compile_units",
"(",
")",
".",
"empty",
"(",
")",
")",
"{",
"Handlers",
".",
"emplace_back",
"(",
"llvm",
"::",
"make_unique",
"<",
"BTFDebug",
">",
"(",
"this",
")",
",",
"\"emit\"",
",",
"\"Debug Info Emission\"",
",",
"\"BTF\"",
",",
"\"BTF Emission\"",
")",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"Set",
"up",
"the",
"AsmPrinter",
"when",
"we",
"are",
"working",
"on",
"a",
"new",
"module",
"."
] | [
"BPF",
"BPF",
"\"emit\"",
"\"Debug Info Emission\"",
"\"BTF\"",
"\"BTF Emission\""
] | BPFAsmPrinter20 | doInitialization | BPF | Virtual ISA | LLVM | 29,268 | 65 | 1 | [] |
[
"<s>",
"X86DCModule",
"&",
"getParent",
"(",
")",
"{",
"return",
"static_cast",
"<",
"X86DCModule",
"&",
">",
"(",
"DCFunction",
"::",
"getParent",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"getParent",
"-",
"Return",
"the",
"last",
"analyzed",
"interval",
"."
] | [
"X86",
"X86",
"X86"
] | X86DCFunction | getParent | X86 | CPU | LLVM | 29,269 | 21 | 1 | [] |
[
"<s>",
"bool",
"ARMFrameLowering",
"::",
"canSimplifyCallFramePseudos",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"return",
"hasReservedCallFrame",
"(",
"MF",
")",
"||",
"MF",
".",
"getFrameInfo",
"(",
")",
"->",
"hasVarSizedObjects",
"(",
")",
";",
"}",
"</s>"
] | [
"canSimplifyCallFramePseudos",
"-",
"If",
"there",
"is",
"a",
"reserved",
"call",
"frame",
",",
"the",
"call",
"frame",
"pseudos",
"can",
"be",
"simplified",
"."
] | [
"ARM",
"ARM"
] | ARMFrameLowering (2) | canSimplifyCallFramePseudos | ARM | CPU | LLVM | 29,270 | 29 | 1 | [] |
[
"<s>",
"void",
"ARMFrameLowering",
"::",
"getCalleeSaves",
"(",
"const",
"MachineFunction",
"&",
"MF",
",",
"BitVector",
"&",
"SavedRegs",
")",
"const",
"{",
"TargetFrameLowering",
"::",
"getCalleeSaves",
"(",
"MF",
",",
"SavedRegs",
")",
";",
"const",
"ARMFunctionInfo",
"*",
"AFI",
"=",
"MF",
".",
"getInfo",
"<",
"ARMFunctionInfo",
">",
"(",
")",
";",
"if",
"(",
"AFI",
"->",
"getPreservesR0",
"(",
")",
")",
"SavedRegs",
".",
"set",
"(",
"ARM",
"::",
"R0",
")",
";",
"}",
"</s>"
] | [
"Returns",
"the",
"callee-saved",
"registers",
"as",
"computed",
"by",
"determineCalleeSaves",
"in",
"the",
"BitVector",
"SavedRegs",
"."
] | [
"ARM",
"ARM",
"ARM",
"ARM",
"ARM::R0"
] | ARMFrameLowering100 | getCalleeSaves | ARM | CPU | LLVM | 29,271 | 57 | 1 | [] |
[
"<s>",
"const",
"unsigned",
"*",
"X86RegisterInfo",
"::",
"getCalleeSavedRegs",
"(",
"const",
"MachineFunction",
"*",
"MF",
")",
"const",
"{",
"bool",
"callsEHReturn",
"=",
"false",
";",
"if",
"(",
"MF",
")",
"{",
"const",
"MachineFrameInfo",
"*",
"MFI",
"=",
"MF",
"->",
"getFrameInfo",
"(",
")",
";",
"const",
"MachineModuleInfo",
"*",
"MMI",
"=",
"MFI",
"->",
"getMachineModuleInfo",
"(",
")",
";",
"callsEHReturn",
"=",
"(",
"MMI",
"?",
"MMI",
"->",
"callsEHReturn",
"(",
")",
":",
"false",
")",
";",
"}",
"static",
"const",
"unsigned",
"CalleeSavedRegs32Bit",
"[",
"]",
"=",
"{",
"X86",
"::",
"ESI",
",",
"X86",
"::",
"EDI",
",",
"X86",
"::",
"EBX",
",",
"X86",
"::",
"EBP",
",",
"0",
"}",
";",
"static",
"const",
"unsigned",
"CalleeSavedRegs32EHRet",
"[",
"]",
"=",
"{",
"X86",
"::",
"EAX",
",",
"X86",
"::",
"EDX",
",",
"X86",
"::",
"ESI",
",",
"X86",
"::",
"EDI",
",",
"X86",
"::",
"EBX",
",",
"X86",
"::",
"EBP",
",",
"0",
"}",
";",
"static",
"const",
"unsigned",
"CalleeSavedRegs64Bit",
"[",
"]",
"=",
"{",
"X86",
"::",
"RBX",
",",
"X86",
"::",
"R12",
",",
"X86",
"::",
"R13",
",",
"X86",
"::",
"R14",
",",
"X86",
"::",
"R15",
",",
"X86",
"::",
"RBP",
",",
"0",
"}",
";",
"static",
"const",
"unsigned",
"CalleeSavedRegs64EHRet",
"[",
"]",
"=",
"{",
"X86",
"::",
"RAX",
",",
"X86",
"::",
"RDX",
",",
"X86",
"::",
"RBX",
",",
"X86",
"::",
"R12",
",",
"X86",
"::",
"R13",
",",
"X86",
"::",
"R14",
",",
"X86",
"::",
"R15",
",",
"X86",
"::",
"RBP",
",",
"0",
"}",
";",
"static",
"const",
"unsigned",
"CalleeSavedRegsWin64",
"[",
"]",
"=",
"{",
"X86",
"::",
"RBX",
",",
"X86",
"::",
"RBP",
",",
"X86",
"::",
"RDI",
",",
"X86",
"::",
"RSI",
",",
"X86",
"::",
"R12",
",",
"X86",
"::",
"R13",
",",
"X86",
"::",
"R14",
",",
"X86",
"::",
"R15",
",",
"X86",
"::",
"XMM6",
",",
"X86",
"::",
"XMM7",
",",
"X86",
"::",
"XMM8",
",",
"X86",
"::",
"XMM9",
",",
"X86",
"::",
"XMM10",
",",
"X86",
"::",
"XMM11",
",",
"X86",
"::",
"XMM12",
",",
"X86",
"::",
"XMM13",
",",
"X86",
"::",
"XMM14",
",",
"X86",
"::",
"XMM15",
",",
"0",
"}",
";",
"if",
"(",
"Is64Bit",
")",
"{",
"if",
"(",
"IsWin64",
")",
"return",
"CalleeSavedRegsWin64",
";",
"else",
"return",
"(",
"callsEHReturn",
"?",
"CalleeSavedRegs64EHRet",
":",
"CalleeSavedRegs64Bit",
")",
";",
"}",
"else",
"{",
"return",
"(",
"callsEHReturn",
"?",
"CalleeSavedRegs32EHRet",
":",
"CalleeSavedRegs32Bit",
")",
";",
"}",
"}",
"</s>"
] | [
"Code",
"Generation",
"virtual",
"methods",
"..."
] | [
"X86",
"X86",
"X86::ESI",
"X86::EDI",
"X86::EBX",
"X86::EBP",
"0",
"X86::EAX",
"X86::EDX",
"X86::ESI",
"X86::EDI",
"X86::EBX",
"X86::EBP",
"0",
"X86::RBX",
"X86::R12",
"X86::R13",
"X86::R14",
"X86::R15",
"X86::RBP",
"0",
"X86::RAX",
"X86::RDX",
"X86::RBX",
"X86::R12",
"X86::R13",
"X86::R14",
"X86::R15",
"X86::RBP",
"0",
"X86::RBX",
"X86::RBP",
"X86::RDI",
"X86::RSI",
"X86::R12",
"X86::R13",
"X86::R14",
"X86::R15",
"X86::XMM6",
"X86::XMM7",
"X86::XMM8",
"X86::XMM9",
"X86::XMM10",
"X86::XMM11",
"X86::XMM12",
"X86::XMM13",
"X86::XMM14",
"X86::XMM15",
"0"
] | X86RegisterInfo33 | getCalleeSavedRegs | X86 | CPU | LLVM | 29,272 | 320 | 1 | [] |
[
"<s>",
"void",
"LanaiAsmPrinter",
"::",
"emitInstruction",
"(",
"const",
"MachineInstr",
"*",
"MI",
")",
"{",
"MachineBasicBlock",
"::",
"const_instr_iterator",
"I",
"=",
"MI",
"->",
"getIterator",
"(",
")",
";",
"MachineBasicBlock",
"::",
"const_instr_iterator",
"E",
"=",
"MI",
"->",
"getParent",
"(",
")",
"->",
"instr_end",
"(",
")",
";",
"do",
"{",
"if",
"(",
"I",
"->",
"isCall",
"(",
")",
")",
"{",
"emitCallInstruction",
"(",
"&",
"*",
"I",
")",
";",
"continue",
";",
"}",
"customEmitInstruction",
"(",
"&",
"*",
"I",
")",
";",
"}",
"while",
"(",
"(",
"++",
"I",
"!=",
"E",
")",
"&&",
"I",
"->",
"isInsideBundle",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"Targets",
"should",
"implement",
"this",
"to",
"emit",
"instructions",
"."
] | [
"Lanai",
"Lanai"
] | LanaiAsmPrinter3 | emitInstruction | Lanai | CPU | LLVM | 29,273 | 83 | 1 | [] |
[
"<s>",
"unsigned",
"X86TTI",
"::",
"getScalarizationOverhead",
"(",
"Type",
"*",
"Ty",
",",
"bool",
"Insert",
",",
"bool",
"Extract",
")",
"const",
"{",
"assert",
"(",
"Ty",
"->",
"isVectorTy",
"(",
")",
"&&",
"\"Can only scalarize vectors\"",
")",
";",
"unsigned",
"Cost",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
",",
"e",
"=",
"Ty",
"->",
"getVectorNumElements",
"(",
")",
";",
"i",
"<",
"e",
";",
"++",
"i",
")",
"{",
"if",
"(",
"Insert",
")",
"Cost",
"+=",
"TopTTI",
"->",
"getVectorInstrCost",
"(",
"Instruction",
"::",
"InsertElement",
",",
"Ty",
",",
"i",
")",
";",
"if",
"(",
"Extract",
")",
"Cost",
"+=",
"TopTTI",
"->",
"getVectorInstrCost",
"(",
"Instruction",
"::",
"ExtractElement",
",",
"Ty",
",",
"i",
")",
";",
"}",
"return",
"Cost",
";",
"}",
"</s>"
] | [
"Estimate",
"the",
"overhead",
"of",
"scalarizing",
"an",
"instruction",
"."
] | [
"X86",
"X86",
"\"Can only scalarize vectors\"",
"0",
"0"
] | X86TargetTransformInfo112 | getScalarizationOverhead | X86 | CPU | LLVM | 29,274 | 99 | 1 | [] |
[
"<s>",
"static",
"bool",
"rs6000_cannot_force_const_mem",
"(",
"machine_mode",
"mode",
"ATTRIBUTE_UNUSED",
",",
"rtx",
"x",
")",
"{",
"if",
"(",
"GET_CODE",
"(",
"x",
")",
"==",
"HIGH",
"&&",
"GET_CODE",
"(",
"XEXP",
"(",
"x",
",",
"0",
")",
")",
"==",
"UNSPEC",
")",
"return",
"true",
";",
"if",
"(",
"GET_CODE",
"(",
"x",
")",
"==",
"CONST",
"&&",
"GET_CODE",
"(",
"XEXP",
"(",
"x",
",",
"0",
")",
")",
"==",
"PLUS",
"&&",
"SYMBOL_REF_P",
"(",
"XEXP",
"(",
"XEXP",
"(",
"x",
",",
"0",
")",
",",
"0",
")",
")",
"&&",
"SYMBOL_REF_TLS_MODEL",
"(",
"XEXP",
"(",
"XEXP",
"(",
"x",
",",
"0",
")",
",",
"0",
")",
")",
"!=",
"0",
")",
"return",
"true",
";",
"return",
"TARGET_ELF",
"&&",
"tls_referenced_p",
"(",
"x",
")",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_CANNOT_FORCE_CONST_MEM",
"."
] | [
"rs6000",
"0",
"0",
"0",
"0",
"0",
"0",
"0"
] | rs6000 | rs6000_cannot_force_const_mem | rs6000 | CPU | GCC | 29,275 | 101 | 1 | [] |
[
"<s>",
"void",
"sparc_emit_call_insn",
"(",
"rtx",
"pat",
",",
"rtx",
"addr",
")",
"{",
"rtx_insn",
"*",
"insn",
";",
"insn",
"=",
"emit_call_insn",
"(",
"pat",
")",
";",
"if",
"(",
"TARGET_VXWORKS_RTP",
"&&",
"flag_pic",
"&&",
"GET_CODE",
"(",
"addr",
")",
"==",
"SYMBOL_REF",
"&&",
"(",
"SYMBOL_REF_DECL",
"(",
"addr",
")",
"?",
"!",
"targetm",
".",
"binds_local_p",
"(",
"SYMBOL_REF_DECL",
"(",
"addr",
")",
")",
":",
"!",
"SYMBOL_REF_LOCAL_P",
"(",
"addr",
")",
")",
")",
"{",
"use_reg",
"(",
"&",
"CALL_INSN_FUNCTION_USAGE",
"(",
"insn",
")",
",",
"pic_offset_table_rtx",
")",
";",
"crtl",
"->",
"uses_pic_offset_table",
"=",
"1",
";",
"}",
"}",
"</s>"
] | [
"Emit",
"a",
"call",
"instruction",
"with",
"the",
"pattern",
"given",
"by",
"PAT",
".",
"ADDR",
"is",
"the",
"address",
"of",
"the",
"call",
"target",
"."
] | [
"sparc",
"1"
] | sparc | sparc_emit_call_insn | sparc | CPU | GCC | 29,276 | 78 | 1 | [] |
[
"<s>",
"bool",
"RISCVAsmParser",
"::",
"processInstruction",
"(",
"MCInst",
"&",
"Inst",
",",
"SMLoc",
"IDLoc",
",",
"MCStreamer",
"&",
"Out",
")",
"{",
"Inst",
".",
"setLoc",
"(",
"IDLoc",
")",
";",
"switch",
"(",
"Inst",
".",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"break",
";",
"case",
"RISCV",
"::",
"PseudoLI",
":",
"{",
"unsigned",
"Reg",
"=",
"Inst",
".",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
";",
"const",
"MCOperand",
"&",
"Op1",
"=",
"Inst",
".",
"getOperand",
"(",
"1",
")",
";",
"if",
"(",
"Op1",
".",
"isExpr",
"(",
")",
")",
"{",
"emitToStreamer",
"(",
"Out",
",",
"MCInstBuilder",
"(",
"RISCV",
"::",
"ADDI",
")",
".",
"addReg",
"(",
"Reg",
")",
".",
"addReg",
"(",
"RISCV",
"::",
"X0",
")",
".",
"addExpr",
"(",
"Op1",
".",
"getExpr",
"(",
")",
")",
")",
";",
"return",
"false",
";",
"}",
"int64_t",
"Imm",
"=",
"Inst",
".",
"getOperand",
"(",
"1",
")",
".",
"getImm",
"(",
")",
";",
"if",
"(",
"!",
"isRV64",
"(",
")",
")",
"Imm",
"=",
"SignExtend64",
"<",
"32",
">",
"(",
"Imm",
")",
";",
"emitLoadImm",
"(",
"Reg",
",",
"Imm",
",",
"Out",
")",
";",
"return",
"false",
";",
"}",
"case",
"RISCV",
"::",
"PseudoLLA",
":",
"emitLoadLocalAddress",
"(",
"Inst",
",",
"IDLoc",
",",
"Out",
")",
";",
"return",
"false",
";",
"case",
"RISCV",
"::",
"PseudoLA",
":",
"emitLoadAddress",
"(",
"Inst",
",",
"IDLoc",
",",
"Out",
")",
";",
"return",
"false",
";",
"}",
"emitToStreamer",
"(",
"Out",
",",
"Inst",
")",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Process",
"a",
"single",
"instruction",
"and",
"collect",
"debug",
"info",
"anchors",
"."
] | [
"RISCV",
"RISCV",
"RISCV::PseudoLI",
"0",
"1",
"RISCV::ADDI",
"RISCV::X0",
"1",
"32",
"RISCV::PseudoLLA",
"RISCV::PseudoLA"
] | RISCVAsmParser38 | processInstruction | RISCV | CPU | LLVM | 29,277 | 205 | 1 | [] |
[
"<s>",
"bool",
"TeakAsmParser",
"::",
"ParseDirective",
"(",
"AsmToken",
"DirectiveID",
")",
"{",
"return",
"true",
";",
"}",
"</s>"
] | [
"ParseDirective",
"-",
"Parse",
"a",
"target",
"specific",
"assembler",
"directive",
"This",
"method",
"is",
"deprecated",
",",
"use",
"'parseDirective",
"'",
"instead",
"."
] | [
"Teak",
"Teak"
] | TeakAsmParser | ParseDirective | Teak | DSP | LLVM | 29,278 | 13 | 1 | [] |
[
"<s>",
"unsigned",
"char",
"AArch64Subtarget",
"::",
"ClassifyGlobalReference",
"(",
"const",
"GlobalValue",
"*",
"GV",
",",
"const",
"TargetMachine",
"&",
"TM",
")",
"const",
"{",
"if",
"(",
"TM",
".",
"getCodeModel",
"(",
")",
"==",
"CodeModel",
"::",
"Large",
"&&",
"isTargetMachO",
"(",
")",
")",
"return",
"AArch64II",
"::",
"MO_GOT",
";",
"unsigned",
"Flags",
"=",
"GV",
"->",
"hasDLLImportStorageClass",
"(",
")",
"?",
"AArch64II",
"::",
"MO_DLLIMPORT",
":",
"AArch64II",
"::",
"MO_NO_FLAG",
";",
"if",
"(",
"!",
"TM",
".",
"shouldAssumeDSOLocal",
"(",
"*",
"GV",
"->",
"getParent",
"(",
")",
",",
"GV",
")",
")",
"return",
"AArch64II",
"::",
"MO_GOT",
"|",
"Flags",
";",
"if",
"(",
"(",
"useSmallAddressing",
"(",
")",
"||",
"TM",
".",
"getCodeModel",
"(",
")",
"==",
"CodeModel",
"::",
"Tiny",
")",
"&&",
"GV",
"->",
"hasExternalWeakLinkage",
"(",
")",
")",
"return",
"AArch64II",
"::",
"MO_GOT",
"|",
"Flags",
";",
"return",
"Flags",
";",
"}",
"</s>"
] | [
"ClassifyGlobalReference",
"-",
"Find",
"the",
"target",
"operand",
"flags",
"that",
"describe",
"how",
"a",
"global",
"value",
"should",
"be",
"referenced",
"for",
"the",
"current",
"subtarget",
"."
] | [
"AArch64",
"AArch64",
"AArch64II::MO_GOT",
"AArch64II::MO_DLLIMPORT",
"AArch64II::MO_NO_FLAG",
"AArch64II::MO_GOT",
"AArch64II::MO_GOT"
] | AArch64Subtarget32 | ClassifyGlobalReference | AArch64 | CPU | LLVM | 29,279 | 115 | 1 | [] |
[
"<s>",
"static",
"bool",
"harmless_null_pointer_p",
"(",
"rtx",
"mem",
",",
"int",
"np_reg",
")",
"{",
"mem",
"=",
"XEXP",
"(",
"mem",
",",
"0",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"mem",
")",
"==",
"POST_INC",
"||",
"GET_CODE",
"(",
"mem",
")",
"==",
"POST_DEC",
")",
"mem",
"=",
"XEXP",
"(",
"mem",
",",
"0",
")",
";",
"if",
"(",
"REG_P",
"(",
"mem",
")",
"&&",
"(",
"int",
")",
"REGNO",
"(",
"mem",
")",
"==",
"np_reg",
")",
"return",
"true",
";",
"if",
"(",
"GET_CODE",
"(",
"mem",
")",
"==",
"PLUS",
"&&",
"REG_P",
"(",
"XEXP",
"(",
"mem",
",",
"0",
")",
")",
"&&",
"(",
"int",
")",
"REGNO",
"(",
"XEXP",
"(",
"mem",
",",
"0",
")",
")",
"==",
"np_reg",
")",
"{",
"mem",
"=",
"XEXP",
"(",
"mem",
",",
"1",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"mem",
")",
"==",
"CONST_INT",
"&&",
"INTVAL",
"(",
"mem",
")",
">",
"0",
")",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"Return",
"true",
"iff",
"the",
"address",
"found",
"in",
"MEM",
"is",
"based",
"on",
"the",
"register",
"NP_REG",
"and",
"optionally",
"has",
"a",
"positive",
"offset",
"."
] | [
"bfin",
"0",
"0",
"0",
"0",
"1",
"0"
] | bfin | harmless_null_pointer_p | bfin | DSP | GCC | 29,280 | 133 | 1 | [] |
[
"<s>",
"int",
"RISCVTTIImpl",
"::",
"getIntImmCostInst",
"(",
"unsigned",
"Opcode",
",",
"unsigned",
"Idx",
",",
"const",
"APInt",
"&",
"Imm",
",",
"Type",
"*",
"Ty",
",",
"TTI",
"::",
"TargetCostKind",
"CostKind",
",",
"Instruction",
"*",
"Inst",
")",
"{",
"assert",
"(",
"Ty",
"->",
"isIntegerTy",
"(",
")",
"&&",
"\"getIntImmCost can only estimate cost of materialising integers\"",
")",
";",
"if",
"(",
"Imm",
"==",
"0",
")",
"return",
"TTI",
"::",
"TCC_Free",
";",
"bool",
"Takes12BitImm",
"=",
"false",
";",
"unsigned",
"ImmArgIdx",
"=",
"~",
"0U",
";",
"switch",
"(",
"Opcode",
")",
"{",
"case",
"Instruction",
"::",
"GetElementPtr",
":",
"return",
"TTI",
"::",
"TCC_Free",
";",
"case",
"Instruction",
"::",
"Add",
":",
"case",
"Instruction",
"::",
"And",
":",
"case",
"Instruction",
"::",
"Or",
":",
"case",
"Instruction",
"::",
"Xor",
":",
"case",
"Instruction",
"::",
"Mul",
":",
"Takes12BitImm",
"=",
"true",
";",
"break",
";",
"case",
"Instruction",
"::",
"Sub",
":",
"case",
"Instruction",
"::",
"Shl",
":",
"case",
"Instruction",
"::",
"LShr",
":",
"case",
"Instruction",
"::",
"AShr",
":",
"Takes12BitImm",
"=",
"true",
";",
"ImmArgIdx",
"=",
"1",
";",
"break",
";",
"default",
":",
"break",
";",
"}",
"if",
"(",
"Takes12BitImm",
")",
"{",
"if",
"(",
"Instruction",
"::",
"isCommutative",
"(",
"Opcode",
")",
"||",
"Idx",
"==",
"ImmArgIdx",
")",
"{",
"if",
"(",
"Imm",
".",
"getMinSignedBits",
"(",
")",
"<=",
"64",
"&&",
"getTLI",
"(",
")",
"->",
"isLegalAddImmediate",
"(",
"Imm",
".",
"getSExtValue",
"(",
")",
")",
")",
"{",
"return",
"TTI",
"::",
"TCC_Free",
";",
"}",
"}",
"return",
"getIntImmCost",
"(",
"Imm",
",",
"Ty",
",",
"CostKind",
")",
";",
"}",
"return",
"TTI",
"::",
"TCC_Free",
";",
"}",
"</s>"
] | [
"Return",
"the",
"expected",
"cost",
"of",
"materialization",
"for",
"the",
"given",
"integer",
"immediate",
"of",
"the",
"specified",
"type",
"for",
"a",
"given",
"instruction",
"."
] | [
"RI5CY",
"RISCV",
"\"getIntImmCost can only estimate cost of materialising integers\"",
"0",
"0U",
"1",
"64"
] | RISCVTargetTransformInfo | getIntImmCostInst | RI5CY | CPU | LLVM | 29,281 | 211 | 1 | [] |
[
"<s>",
"static",
"void",
"detect_caches_cpuid2",
"(",
"bool",
"xeon_mp",
",",
"struct",
"cache_desc",
"*",
"level1",
",",
"struct",
"cache_desc",
"*",
"level2",
")",
"{",
"unsigned",
"regs",
"[",
"4",
"]",
";",
"int",
"nreps",
",",
"i",
";",
"__cpuid",
"(",
"2",
",",
"regs",
"[",
"0",
"]",
",",
"regs",
"[",
"1",
"]",
",",
"regs",
"[",
"2",
"]",
",",
"regs",
"[",
"3",
"]",
")",
";",
"nreps",
"=",
"regs",
"[",
"0",
"]",
"&",
"0x0f",
";",
"regs",
"[",
"0",
"]",
"&=",
"~",
"0x0f",
";",
"while",
"(",
"--",
"nreps",
">=",
"0",
")",
"{",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"4",
";",
"i",
"++",
")",
"if",
"(",
"regs",
"[",
"i",
"]",
"&&",
"!",
"(",
"(",
"regs",
"[",
"i",
"]",
">>",
"31",
")",
"&",
"1",
")",
")",
"decode_caches_intel",
"(",
"regs",
"[",
"i",
"]",
",",
"xeon_mp",
",",
"level1",
",",
"level2",
")",
";",
"if",
"(",
"nreps",
")",
"__cpuid",
"(",
"2",
",",
"regs",
"[",
"0",
"]",
",",
"regs",
"[",
"1",
"]",
",",
"regs",
"[",
"2",
"]",
",",
"regs",
"[",
"3",
"]",
")",
";",
"}",
"}",
"</s>"
] | [
"Detect",
"cache",
"parameters",
"using",
"CPUID",
"function",
"2",
"."
] | [
"i386",
"4",
"2",
"0",
"1",
"2",
"3",
"0",
"0x0f",
"0",
"0x0f",
"0",
"0",
"4",
"31",
"1",
"2",
"0",
"1",
"2",
"3"
] | driver-i386 | detect_caches_cpuid2 | i386 | CPU | GCC | 29,282 | 158 | 1 | [] |
[
"<s>",
"void",
"MipsSEFrameLowering",
"::",
"determineCalleeSaves",
"(",
"MachineFunction",
"&",
"MF",
",",
"BitVector",
"&",
"SavedRegs",
",",
"RegScavenger",
"*",
"RS",
")",
"const",
"{",
"TargetFrameLowering",
"::",
"determineCalleeSaves",
"(",
"MF",
",",
"SavedRegs",
",",
"RS",
")",
";",
"MipsFunctionInfo",
"*",
"MipsFI",
"=",
"MF",
".",
"getInfo",
"<",
"MipsFunctionInfo",
">",
"(",
")",
";",
"MipsABIInfo",
"ABI",
"=",
"STI",
".",
"getABI",
"(",
")",
";",
"unsigned",
"FP",
"=",
"ABI",
".",
"GetFramePtr",
"(",
")",
";",
"unsigned",
"BP",
"=",
"ABI",
".",
"IsN64",
"(",
")",
"?",
"Mips",
"::",
"S7_64",
":",
"Mips",
"::",
"S7",
";",
"if",
"(",
"hasFP",
"(",
"MF",
")",
")",
"setAliasRegs",
"(",
"MF",
",",
"SavedRegs",
",",
"FP",
")",
";",
"if",
"(",
"hasBP",
"(",
"MF",
")",
")",
"setAliasRegs",
"(",
"MF",
",",
"SavedRegs",
",",
"BP",
")",
";",
"if",
"(",
"MipsFI",
"->",
"callsEhReturn",
"(",
")",
")",
"MipsFI",
"->",
"createEhDataRegsFI",
"(",
")",
";",
"if",
"(",
"MipsFI",
"->",
"isISR",
"(",
")",
")",
"MipsFI",
"->",
"createISRRegFI",
"(",
")",
";",
"if",
"(",
"ExpandPseudo",
"(",
"MF",
")",
".",
"expand",
"(",
")",
")",
"{",
"const",
"TargetRegisterClass",
"*",
"RC",
"=",
"STI",
".",
"hasMips64",
"(",
")",
"?",
"&",
"Mips",
"::",
"GPR64RegClass",
":",
"&",
"Mips",
"::",
"GPR32RegClass",
";",
"int",
"FI",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
".",
"CreateStackObject",
"(",
"RC",
"->",
"getSize",
"(",
")",
",",
"RC",
"->",
"getAlignment",
"(",
")",
",",
"false",
")",
";",
"RS",
"->",
"addScavengingFrameIndex",
"(",
"FI",
")",
";",
"}",
"uint64_t",
"MaxSPOffset",
"=",
"MF",
".",
"getInfo",
"<",
"MipsFunctionInfo",
">",
"(",
")",
"->",
"getIncomingArgSize",
"(",
")",
"+",
"estimateStackSize",
"(",
"MF",
")",
";",
"if",
"(",
"isInt",
"<",
"16",
">",
"(",
"MaxSPOffset",
")",
")",
"return",
";",
"const",
"TargetRegisterClass",
"*",
"RC",
"=",
"ABI",
".",
"ArePtrs64bit",
"(",
")",
"?",
"&",
"Mips",
"::",
"GPR64RegClass",
":",
"&",
"Mips",
"::",
"GPR32RegClass",
";",
"int",
"FI",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
".",
"CreateStackObject",
"(",
"RC",
"->",
"getSize",
"(",
")",
",",
"RC",
"->",
"getAlignment",
"(",
")",
",",
"false",
")",
";",
"RS",
"->",
"addScavengingFrameIndex",
"(",
"FI",
")",
";",
"}",
"</s>"
] | [
"This",
"method",
"determines",
"which",
"of",
"the",
"registers",
"reported",
"by",
"TargetRegisterInfo",
":",
":getCalleeSavedRegs",
"(",
")",
"should",
"actually",
"get",
"saved",
"."
] | [
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips::S7_64",
"Mips::S7",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips::GPR64RegClass",
"Mips::GPR32RegClass",
"Mips",
"16",
"Mips::GPR64RegClass",
"Mips::GPR32RegClass"
] | MipsSEFrameLowering53 | determineCalleeSaves | Mips | CPU | LLVM | 29,283 | 293 | 1 | [] |
[
"<s>",
"static",
"bool",
"c6x_vector_mode_supported_p",
"(",
"machine_mode",
"mode",
")",
"{",
"switch",
"(",
"mode",
")",
"{",
"case",
"E_V2HImode",
":",
"case",
"E_V4QImode",
":",
"case",
"E_V2SImode",
":",
"case",
"E_V4HImode",
":",
"case",
"E_V8QImode",
":",
"return",
"true",
";",
"default",
":",
"return",
"false",
";",
"}",
"}",
"</s>"
] | [
"Implements",
"target",
"hook",
"vector_mode_supported_p",
"."
] | [
"c6x"
] | c6x | c6x_vector_mode_supported_p | c6x | VLIW | GCC | 29,284 | 38 | 1 | [] |
[
"<s>",
"static",
"void",
"arm_set_current_function",
"(",
"tree",
"fndecl",
")",
"{",
"if",
"(",
"!",
"fndecl",
"||",
"fndecl",
"==",
"arm_previous_fndecl",
")",
"return",
";",
"tree",
"old_tree",
"=",
"(",
"arm_previous_fndecl",
"?",
"DECL_FUNCTION_SPECIFIC_TARGET",
"(",
"arm_previous_fndecl",
")",
":",
"NULL_TREE",
")",
";",
"tree",
"new_tree",
"=",
"DECL_FUNCTION_SPECIFIC_TARGET",
"(",
"fndecl",
")",
";",
"if",
"(",
"!",
"new_tree",
"&&",
"old_tree",
")",
"new_tree",
"=",
"target_option_default_node",
";",
"if",
"(",
"old_tree",
"==",
"new_tree",
")",
"return",
";",
"arm_previous_fndecl",
"=",
"fndecl",
";",
"cl_target_option_restore",
"(",
"&",
"global_options",
",",
"&",
"global_options_set",
",",
"TREE_TARGET_OPTION",
"(",
"new_tree",
")",
")",
";",
"save_restore_target_globals",
"(",
"new_tree",
")",
";",
"arm_override_options_after_change_1",
"(",
"&",
"global_options",
",",
"&",
"global_options_set",
")",
";",
"}",
"</s>"
] | [
"Establish",
"appropriate",
"back-end",
"context",
"for",
"processing",
"the",
"function",
"FNDECL",
".",
"The",
"argument",
"might",
"be",
"NULL",
"to",
"indicate",
"processing",
"at",
"top",
"level",
",",
"outside",
"of",
"any",
"function",
"scope",
"."
] | [
"arm"
] | arm | arm_set_current_function | arm | CPU | GCC | 29,285 | 93 | 1 | [] |
[
"<s>",
"unsigned",
"HexagonGenInsert",
"::",
"distance",
"(",
"const",
"MachineBasicBlock",
"*",
"FromB",
",",
"const",
"MachineBasicBlock",
"*",
"ToB",
",",
"const",
"UnsignedMap",
"&",
"RPO",
",",
"PairMapType",
"&",
"M",
")",
"const",
"{",
"assert",
"(",
"FromB",
"!=",
"ToB",
")",
";",
"unsigned",
"FromN",
"=",
"FromB",
"->",
"getNumber",
"(",
")",
",",
"ToN",
"=",
"ToB",
"->",
"getNumber",
"(",
")",
";",
"PairMapType",
"::",
"iterator",
"F",
"=",
"M",
".",
"find",
"(",
"std",
"::",
"make_pair",
"(",
"FromN",
",",
"ToN",
")",
")",
";",
"if",
"(",
"F",
"!=",
"M",
".",
"end",
"(",
")",
")",
"return",
"F",
"->",
"second",
";",
"unsigned",
"ToRPO",
"=",
"RPO",
".",
"lookup",
"(",
"ToN",
")",
";",
"unsigned",
"MaxD",
"=",
"0",
";",
"using",
"pred_iterator",
"=",
"MachineBasicBlock",
"::",
"const_pred_iterator",
";",
"for",
"(",
"pred_iterator",
"I",
"=",
"ToB",
"->",
"pred_begin",
"(",
")",
",",
"E",
"=",
"ToB",
"->",
"pred_end",
"(",
")",
";",
"I",
"!=",
"E",
";",
"++",
"I",
")",
"{",
"const",
"MachineBasicBlock",
"*",
"PB",
"=",
"*",
"I",
";",
"if",
"(",
"PB",
"==",
"FromB",
"||",
"RPO",
".",
"lookup",
"(",
"PB",
"->",
"getNumber",
"(",
")",
")",
">=",
"ToRPO",
")",
"continue",
";",
"unsigned",
"D",
"=",
"PB",
"->",
"size",
"(",
")",
"+",
"distance",
"(",
"FromB",
",",
"PB",
",",
"RPO",
",",
"M",
")",
";",
"if",
"(",
"D",
">",
"MaxD",
")",
"MaxD",
"=",
"D",
";",
"}",
"M",
".",
"insert",
"(",
"std",
"::",
"make_pair",
"(",
"std",
"::",
"make_pair",
"(",
"FromN",
",",
"ToN",
")",
",",
"MaxD",
")",
")",
";",
"return",
"MaxD",
";",
"}",
"</s>"
] | [
"Return",
"the",
"distance",
"from",
"this",
"index",
"to",
"the",
"given",
"one",
"."
] | [
"Hexagon",
"Hexagon",
"0"
] | HexagonGenInsert11 | distance | Hexagon | DSP | LLVM | 29,286 | 218 | 1 | [] |
[
"<s>",
"registered_function",
"&",
"function_builder",
"::",
"add_function",
"(",
"const",
"function_instance",
"&",
"instance",
",",
"const",
"char",
"*",
"name",
",",
"tree",
"fntype",
",",
"tree",
"attrs",
",",
"bool",
"placeholder_p",
")",
"{",
"unsigned",
"int",
"code",
"=",
"vec_safe_length",
"(",
"registered_functions",
")",
";",
"code",
"=",
"(",
"code",
"<<",
"RISCV_BUILTIN_SHIFT",
")",
"+",
"RISCV_BUILTIN_VECTOR",
";",
"tree",
"decl",
"=",
"placeholder_p",
"?",
"integer_zero_node",
":",
"simulate_builtin_function_decl",
"(",
"input_location",
",",
"name",
",",
"fntype",
",",
"code",
",",
"NULL",
",",
"attrs",
")",
";",
"registered_function",
"&",
"rfn",
"=",
"*",
"ggc_alloc",
"<",
"registered_function",
">",
"(",
")",
";",
"rfn",
".",
"instance",
"=",
"instance",
";",
"rfn",
".",
"decl",
"=",
"decl",
";",
"vec_safe_push",
"(",
"registered_functions",
",",
"&",
"rfn",
")",
";",
"return",
"rfn",
";",
"}",
"</s>"
] | [
"Add",
"a",
"function",
"called",
"NAME",
"with",
"type",
"FNTYPE",
"and",
"attributes",
"ATTRS",
".",
"INSTANCE",
"describes",
"what",
"the",
"function",
"does",
"."
] | [
"riscv"
] | riscv-vector-builtins | add_function | riscv | CPU | GCC | 29,287 | 103 | 1 | [] |
[
"<s>",
"bool",
"MipsDAGToDAGISel",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"bool",
"Ret",
"=",
"SelectionDAGISel",
"::",
"runOnMachineFunction",
"(",
"MF",
")",
";",
"processFunctionAfterISel",
"(",
"MF",
")",
";",
"return",
"Ret",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"Mips",
"Mips"
] | MipsISelDAGToDAG | runOnMachineFunction | Mips | CPU | LLVM | 29,288 | 29 | 1 | [] |
[
"<s>",
"void",
"AArch64TargetLowering",
"::",
"computeKnownBitsForTargetNode",
"(",
"const",
"SDValue",
"Op",
",",
"KnownBits",
"&",
"Known",
",",
"const",
"APInt",
"&",
"DemandedElts",
",",
"const",
"SelectionDAG",
"&",
"DAG",
",",
"unsigned",
"Depth",
")",
"const",
"{",
"switch",
"(",
"Op",
".",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"break",
";",
"case",
"AArch64ISD",
"::",
"CSEL",
":",
"{",
"KnownBits",
"Known2",
";",
"Known",
"=",
"DAG",
".",
"computeKnownBits",
"(",
"Op",
"->",
"getOperand",
"(",
"0",
")",
",",
"Depth",
"+",
"1",
")",
";",
"Known2",
"=",
"DAG",
".",
"computeKnownBits",
"(",
"Op",
"->",
"getOperand",
"(",
"1",
")",
",",
"Depth",
"+",
"1",
")",
";",
"Known",
".",
"Zero",
"&=",
"Known2",
".",
"Zero",
";",
"Known",
".",
"One",
"&=",
"Known2",
".",
"One",
";",
"break",
";",
"}",
"case",
"ISD",
"::",
"INTRINSIC_W_CHAIN",
":",
"{",
"ConstantSDNode",
"*",
"CN",
"=",
"cast",
"<",
"ConstantSDNode",
">",
"(",
"Op",
"->",
"getOperand",
"(",
"1",
")",
")",
";",
"Intrinsic",
"::",
"ID",
"IntID",
"=",
"static_cast",
"<",
"Intrinsic",
"::",
"ID",
">",
"(",
"CN",
"->",
"getZExtValue",
"(",
")",
")",
";",
"switch",
"(",
"IntID",
")",
"{",
"default",
":",
"return",
";",
"case",
"Intrinsic",
"::",
"aarch64_ldaxr",
":",
"case",
"Intrinsic",
"::",
"aarch64_ldxr",
":",
"{",
"unsigned",
"BitWidth",
"=",
"Known",
".",
"getBitWidth",
"(",
")",
";",
"EVT",
"VT",
"=",
"cast",
"<",
"MemIntrinsicSDNode",
">",
"(",
"Op",
")",
"->",
"getMemoryVT",
"(",
")",
";",
"unsigned",
"MemBits",
"=",
"VT",
".",
"getScalarSizeInBits",
"(",
")",
";",
"Known",
".",
"Zero",
"|=",
"APInt",
"::",
"getHighBitsSet",
"(",
"BitWidth",
",",
"BitWidth",
"-",
"MemBits",
")",
";",
"return",
";",
"}",
"}",
"break",
";",
"}",
"case",
"ISD",
"::",
"INTRINSIC_WO_CHAIN",
":",
"case",
"ISD",
"::",
"INTRINSIC_VOID",
":",
"{",
"unsigned",
"IntNo",
"=",
"cast",
"<",
"ConstantSDNode",
">",
"(",
"Op",
".",
"getOperand",
"(",
"0",
")",
")",
"->",
"getZExtValue",
"(",
")",
";",
"switch",
"(",
"IntNo",
")",
"{",
"default",
":",
"break",
";",
"case",
"Intrinsic",
"::",
"aarch64_neon_umaxv",
":",
"case",
"Intrinsic",
"::",
"aarch64_neon_uminv",
":",
"{",
"MVT",
"VT",
"=",
"Op",
".",
"getOperand",
"(",
"1",
")",
".",
"getValueType",
"(",
")",
".",
"getSimpleVT",
"(",
")",
";",
"unsigned",
"BitWidth",
"=",
"Known",
".",
"getBitWidth",
"(",
")",
";",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"v8i8",
"||",
"VT",
"==",
"MVT",
"::",
"v16i8",
")",
"{",
"assert",
"(",
"BitWidth",
">=",
"8",
"&&",
"\"Unexpected width!\"",
")",
";",
"APInt",
"Mask",
"=",
"APInt",
"::",
"getHighBitsSet",
"(",
"BitWidth",
",",
"BitWidth",
"-",
"8",
")",
";",
"Known",
".",
"Zero",
"|=",
"Mask",
";",
"}",
"else",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"v4i16",
"||",
"VT",
"==",
"MVT",
"::",
"v8i16",
")",
"{",
"assert",
"(",
"BitWidth",
">=",
"16",
"&&",
"\"Unexpected width!\"",
")",
";",
"APInt",
"Mask",
"=",
"APInt",
"::",
"getHighBitsSet",
"(",
"BitWidth",
",",
"BitWidth",
"-",
"16",
")",
";",
"Known",
".",
"Zero",
"|=",
"Mask",
";",
"}",
"break",
";",
"}",
"break",
";",
"}",
"}",
"}",
"}",
"</s>"
] | [
"Determine",
"which",
"of",
"the",
"bits",
"specified",
"in",
"Mask",
"are",
"known",
"to",
"be",
"either",
"zero",
"or",
"one",
"and",
"return",
"them",
"in",
"the",
"KnownZero/KnownOne",
"bitsets",
"."
] | [
"AArch64",
"AArch64",
"AArch64ISD::CSEL",
"0",
"1",
"1",
"1",
"ISD::INTRINSIC_W_CHAIN",
"1",
"Intrinsic::ID",
"Intrinsic::ID",
"Intrinsic::aarch64_ldaxr",
"Intrinsic::aarch64_ldxr",
"ISD::INTRINSIC_WO_CHAIN",
"ISD::INTRINSIC_VOID",
"0",
"Intrinsic::aarch64_neon_umaxv",
"Intrinsic::aarch64_neon_uminv",
"1",
"MVT::v8i8",
"MVT::v16i8",
"8",
"\"Unexpected width!\"",
"8",
"MVT::v4i16",
"MVT::v8i16",
"16",
"\"Unexpected width!\"",
"16"
] | AArch64ISelLowering104 | computeKnownBitsForTargetNode | AArch64 | CPU | LLVM | 29,289 | 400 | 1 | [] |
[
"<s>",
"void",
"push",
"(",
"int",
"rn",
",",
"enum",
"machine_mode",
"mode",
")",
"{",
"emit_insn",
"(",
"gen_push",
"(",
"gen_rtx_REG",
"(",
"mode",
",",
"rn",
")",
",",
"mode",
")",
")",
";",
"}",
"</s>"
] | [
"Output",
"RTL",
"to",
"push",
"register",
"RN",
"onto",
"the",
"stack",
"."
] | [
"z8k"
] | z8k | push | z8k | MPU | GCC | 29,290 | 27 | 1 | [] |
[
"<s>",
"static",
"void",
"tilegx_va_start",
"(",
"tree",
"valist",
",",
"rtx",
"nextarg",
"ATTRIBUTE_UNUSED",
")",
"{",
"tree",
"f_args",
",",
"f_skip",
";",
"tree",
"args",
",",
"skip",
",",
"t",
";",
"f_args",
"=",
"TYPE_FIELDS",
"(",
"TREE_TYPE",
"(",
"valist",
")",
")",
";",
"f_skip",
"=",
"TREE_CHAIN",
"(",
"f_args",
")",
";",
"args",
"=",
"build3",
"(",
"COMPONENT_REF",
",",
"TREE_TYPE",
"(",
"f_args",
")",
",",
"valist",
",",
"f_args",
",",
"NULL_TREE",
")",
";",
"skip",
"=",
"build3",
"(",
"COMPONENT_REF",
",",
"TREE_TYPE",
"(",
"f_skip",
")",
",",
"valist",
",",
"f_skip",
",",
"NULL_TREE",
")",
";",
"t",
"=",
"make_tree",
"(",
"TREE_TYPE",
"(",
"args",
")",
",",
"virtual_incoming_args_rtx",
")",
";",
"t",
"=",
"fold_build_pointer_plus_hwi",
"(",
"t",
",",
"UNITS_PER_WORD",
"*",
"(",
"crtl",
"->",
"args",
".",
"info",
"-",
"TILEGX_NUM_ARG_REGS",
")",
")",
";",
"if",
"(",
"crtl",
"->",
"args",
".",
"pretend_args_size",
">",
"0",
")",
"t",
"=",
"fold_build_pointer_plus_hwi",
"(",
"t",
",",
"-",
"STACK_POINTER_OFFSET",
")",
";",
"t",
"=",
"build2",
"(",
"MODIFY_EXPR",
",",
"TREE_TYPE",
"(",
"args",
")",
",",
"args",
",",
"t",
")",
";",
"TREE_SIDE_EFFECTS",
"(",
"t",
")",
"=",
"1",
";",
"expand_expr",
"(",
"t",
",",
"const0_rtx",
",",
"VOIDmode",
",",
"EXPAND_NORMAL",
")",
";",
"t",
"=",
"make_tree",
"(",
"TREE_TYPE",
"(",
"skip",
")",
",",
"virtual_incoming_args_rtx",
")",
";",
"t",
"=",
"fold_build_pointer_plus_hwi",
"(",
"t",
",",
"-",
"STACK_POINTER_OFFSET",
")",
";",
"t",
"=",
"build2",
"(",
"MODIFY_EXPR",
",",
"TREE_TYPE",
"(",
"skip",
")",
",",
"skip",
",",
"t",
")",
";",
"TREE_SIDE_EFFECTS",
"(",
"t",
")",
"=",
"1",
";",
"expand_expr",
"(",
"t",
",",
"const0_rtx",
",",
"VOIDmode",
",",
"EXPAND_NORMAL",
")",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_EXPAND_BUILTIN_VA_START",
"."
] | [
"tilegx",
"0",
"1",
"1"
] | tilegx | tilegx_va_start | tilegx | VLIW | GCC | 29,291 | 219 | 1 | [] |
[
"<s>",
"void",
"mips_expand_synci_loop",
"(",
"rtx",
"begin",
",",
"rtx",
"end",
")",
"{",
"rtx",
"inc",
",",
"cmp_result",
",",
"mask",
",",
"length",
";",
"rtx_code_label",
"*",
"label",
",",
"*",
"end_label",
";",
"end_label",
"=",
"gen_label_rtx",
"(",
")",
";",
"cmp_result",
"=",
"gen_rtx_EQ",
"(",
"VOIDmode",
",",
"begin",
",",
"end",
")",
";",
"emit_jump_insn",
"(",
"gen_condjump",
"(",
"cmp_result",
",",
"end_label",
")",
")",
";",
"inc",
"=",
"gen_reg_rtx",
"(",
"Pmode",
")",
";",
"emit_insn",
"(",
"PMODE_INSN",
"(",
"gen_rdhwr_synci_step",
",",
"(",
"inc",
")",
")",
")",
";",
"cmp_result",
"=",
"gen_rtx_EQ",
"(",
"VOIDmode",
",",
"inc",
",",
"const0_rtx",
")",
";",
"emit_jump_insn",
"(",
"gen_condjump",
"(",
"cmp_result",
",",
"end_label",
")",
")",
";",
"mask",
"=",
"mips_force_unary",
"(",
"Pmode",
",",
"NEG",
",",
"inc",
")",
";",
"begin",
"=",
"mips_force_binary",
"(",
"Pmode",
",",
"AND",
",",
"begin",
",",
"mask",
")",
";",
"length",
"=",
"mips_force_binary",
"(",
"Pmode",
",",
"MINUS",
",",
"end",
",",
"begin",
")",
";",
"label",
"=",
"gen_label_rtx",
"(",
")",
";",
"emit_label",
"(",
"label",
")",
";",
"emit_insn",
"(",
"gen_synci",
"(",
"begin",
")",
")",
";",
"mips_emit_binary",
"(",
"MINUS",
",",
"length",
",",
"length",
",",
"inc",
")",
";",
"mips_emit_binary",
"(",
"PLUS",
",",
"begin",
",",
"begin",
",",
"inc",
")",
";",
"cmp_result",
"=",
"gen_rtx_GT",
"(",
"VOIDmode",
",",
"length",
",",
"const0_rtx",
")",
";",
"emit_jump_insn",
"(",
"gen_condjump",
"(",
"cmp_result",
",",
"label",
")",
")",
";",
"emit_label",
"(",
"end_label",
")",
";",
"}",
"</s>"
] | [
"Expand",
"a",
"loop",
"of",
"synci",
"insns",
"for",
"the",
"address",
"range",
"[",
"BEGIN",
",",
"END",
")",
"."
] | [
"mips"
] | mips | mips_expand_synci_loop | mips | CPU | GCC | 29,292 | 198 | 1 | [] |
[
"<s>",
"static",
"bool",
"mips_expand_vselect_vconcat",
"(",
"rtx",
"target",
",",
"rtx",
"op0",
",",
"rtx",
"op1",
",",
"const",
"unsigned",
"char",
"*",
"perm",
",",
"unsigned",
"nelt",
")",
"{",
"machine_mode",
"v2mode",
";",
"rtx",
"x",
";",
"v2mode",
"=",
"GET_MODE_2XWIDER_MODE",
"(",
"GET_MODE",
"(",
"op0",
")",
")",
";",
"x",
"=",
"gen_rtx_VEC_CONCAT",
"(",
"v2mode",
",",
"op0",
",",
"op1",
")",
";",
"return",
"mips_expand_vselect",
"(",
"target",
",",
"x",
",",
"perm",
",",
"nelt",
")",
";",
"}",
"</s>"
] | [
"Similar",
",",
"but",
"generate",
"a",
"vec_concat",
"from",
"op0",
"and",
"op1",
"as",
"well",
"."
] | [
"mips"
] | mips4 | mips_expand_vselect_vconcat | mips | CPU | GCC | 29,293 | 63 | 1 | [] |
[
"<s>",
"static",
"int",
"gen_v9_scc",
"(",
"rtx",
"dest",
",",
"enum",
"rtx_code",
"compare_code",
",",
"rtx",
"x",
",",
"rtx",
"y",
")",
"{",
"if",
"(",
"!",
"TARGET_ARCH64",
"&&",
"(",
"GET_MODE",
"(",
"x",
")",
"==",
"DImode",
"||",
"GET_MODE",
"(",
"dest",
")",
"==",
"DImode",
")",
")",
"return",
"0",
";",
"if",
"(",
"TARGET_ARCH64",
"&&",
"GET_MODE_CLASS",
"(",
"GET_MODE",
"(",
"x",
")",
")",
"==",
"MODE_INT",
"&&",
"y",
"==",
"const0_rtx",
"&&",
"v9_regcmp_p",
"(",
"compare_code",
")",
")",
"{",
"rtx",
"op0",
"=",
"x",
";",
"rtx",
"temp",
";",
"if",
"(",
"compare_code",
"==",
"NE",
"&&",
"GET_MODE",
"(",
"dest",
")",
"==",
"DImode",
"&&",
"rtx_equal_p",
"(",
"op0",
",",
"dest",
")",
")",
"{",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"dest",
",",
"gen_rtx_IF_THEN_ELSE",
"(",
"DImode",
",",
"gen_rtx_fmt_ee",
"(",
"compare_code",
",",
"DImode",
",",
"op0",
",",
"const0_rtx",
")",
",",
"const1_rtx",
",",
"dest",
")",
")",
")",
";",
"return",
"1",
";",
"}",
"if",
"(",
"reg_overlap_mentioned_p",
"(",
"dest",
",",
"op0",
")",
")",
"{",
"op0",
"=",
"gen_reg_rtx",
"(",
"GET_MODE",
"(",
"x",
")",
")",
";",
"emit_move_insn",
"(",
"op0",
",",
"x",
")",
";",
"}",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"dest",
",",
"const0_rtx",
")",
")",
";",
"if",
"(",
"GET_MODE",
"(",
"op0",
")",
"!=",
"DImode",
")",
"{",
"temp",
"=",
"gen_reg_rtx",
"(",
"DImode",
")",
";",
"convert_move",
"(",
"temp",
",",
"op0",
",",
"0",
")",
";",
"}",
"else",
"temp",
"=",
"op0",
";",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"dest",
",",
"gen_rtx_IF_THEN_ELSE",
"(",
"GET_MODE",
"(",
"dest",
")",
",",
"gen_rtx_fmt_ee",
"(",
"compare_code",
",",
"DImode",
",",
"temp",
",",
"const0_rtx",
")",
",",
"const1_rtx",
",",
"dest",
")",
")",
")",
";",
"return",
"1",
";",
"}",
"else",
"{",
"x",
"=",
"gen_compare_reg_1",
"(",
"compare_code",
",",
"x",
",",
"y",
")",
";",
"y",
"=",
"const0_rtx",
";",
"gcc_assert",
"(",
"GET_MODE",
"(",
"x",
")",
"!=",
"CC_NOOVmode",
"&&",
"GET_MODE",
"(",
"x",
")",
"!=",
"CCX_NOOVmode",
")",
";",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"dest",
",",
"const0_rtx",
")",
")",
";",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"dest",
",",
"gen_rtx_IF_THEN_ELSE",
"(",
"GET_MODE",
"(",
"dest",
")",
",",
"gen_rtx_fmt_ee",
"(",
"compare_code",
",",
"GET_MODE",
"(",
"x",
")",
",",
"x",
",",
"y",
")",
",",
"const1_rtx",
",",
"dest",
")",
")",
")",
";",
"return",
"1",
";",
"}",
"}",
"</s>"
] | [
"This",
"function",
"is",
"used",
"for",
"v9",
"only",
".",
"CODE",
"is",
"the",
"code",
"for",
"an",
"Scc",
"'s",
"comparison",
".",
"OPERANDS",
"[",
"0",
"]",
"is",
"the",
"target",
"of",
"the",
"Scc",
"insn",
".",
"OPERANDS",
"[",
"1",
"]",
"is",
"the",
"value",
"we",
"compare",
"against",
"const0_rtx",
"(",
"which",
"has",
"n't",
"been",
"generated",
"yet",
")",
".",
"This",
"function",
"is",
"needed",
"to",
"turn",
"(",
"set",
"(",
"reg",
":",
"SI",
"110",
")",
"(",
"gt",
"(",
"reg",
":",
"CCX",
"100",
"%",
"icc",
")",
"(",
"const_int",
"0",
")",
")",
")",
"into",
"(",
"set",
"(",
"reg",
":",
"SI",
"110",
")",
"(",
"gt",
":",
"DI",
"(",
"reg",
":",
"CCX",
"100",
"%",
"icc",
")",
"(",
"const_int",
"0",
")",
")",
")",
"IE",
":",
"The",
"instruction",
"recognizer",
"needs",
"to",
"see",
"the",
"mode",
"of",
"the",
"comparison",
"to",
"find",
"the",
"right",
"instruction",
".",
"We",
"could",
"use",
"``",
"gt",
":",
"DI",
"''",
"right",
"in",
"the",
"define_expand",
",",
"but",
"leaving",
"it",
"out",
"allows",
"us",
"to",
"handle",
"DI",
",",
"SI",
",",
"etc",
".",
"We",
"refer",
"to",
"the",
"global",
"sparc",
"compare",
"operands",
"sparc_compare_op0",
"and",
"sparc_compare_op1",
"."
] | [
"sparc",
"0",
"1",
"0",
"1",
"1"
] | sparc5 | gen_v9_scc | sparc | CPU | GCC | 29,294 | 315 | 1 | [] |
[
"<s>",
"void",
"rs6000_sibcall_aix",
"(",
"rtx",
"value",
",",
"rtx",
"func_desc",
",",
"rtx",
"flag",
",",
"rtx",
"cookie",
")",
"{",
"rtx",
"call",
"[",
"2",
"]",
";",
"rtx",
"insn",
";",
"gcc_assert",
"(",
"INTVAL",
"(",
"cookie",
")",
"==",
"0",
")",
";",
"call",
"[",
"0",
"]",
"=",
"gen_rtx_CALL",
"(",
"VOIDmode",
",",
"gen_rtx_MEM",
"(",
"SImode",
",",
"func_desc",
")",
",",
"flag",
")",
";",
"if",
"(",
"value",
"!=",
"NULL_RTX",
")",
"call",
"[",
"0",
"]",
"=",
"gen_rtx_SET",
"(",
"value",
",",
"call",
"[",
"0",
"]",
")",
";",
"call",
"[",
"1",
"]",
"=",
"simple_return_rtx",
";",
"insn",
"=",
"gen_rtx_PARALLEL",
"(",
"VOIDmode",
",",
"gen_rtvec_v",
"(",
"2",
",",
"call",
")",
")",
";",
"insn",
"=",
"emit_call_insn",
"(",
"insn",
")",
";",
"use_reg",
"(",
"&",
"CALL_INSN_FUNCTION_USAGE",
"(",
"insn",
")",
",",
"gen_rtx_REG",
"(",
"Pmode",
",",
"TOC_REGNUM",
")",
")",
";",
"use_reg",
"(",
"&",
"CALL_INSN_FUNCTION_USAGE",
"(",
"insn",
")",
",",
"gen_rtx_REG",
"(",
"Pmode",
",",
"LR_REGNO",
")",
")",
";",
"}",
"</s>"
] | [
"Expand",
"code",
"to",
"perform",
"a",
"sibling",
"call",
"under",
"the",
"AIX",
"or",
"ELFv2",
"ABI",
"."
] | [
"rs6000",
"2",
"0",
"0",
"0",
"0",
"1",
"2"
] | rs60005 | rs6000_sibcall_aix | rs6000 | CPU | GCC | 29,295 | 136 | 1 | [] |
[
"<s>",
"void",
"AArch64PassConfig",
"::",
"addPostRegAlloc",
"(",
")",
"{",
"if",
"(",
"TM",
"->",
"getOptLevel",
"(",
")",
"!=",
"CodeGenOpt",
"::",
"None",
"&&",
"EnableRedundantCopyElimination",
")",
"addPass",
"(",
"createAArch64RedundantCopyEliminationPass",
"(",
")",
")",
";",
"if",
"(",
"TM",
"->",
"getOptLevel",
"(",
")",
"!=",
"CodeGenOpt",
"::",
"None",
"&&",
"usingDefaultRegAlloc",
"(",
")",
")",
"addPass",
"(",
"createAArch64A57FPLoadBalancing",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"This",
"method",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"after",
"register",
"allocation",
"pass",
"pipeline",
"but",
"before",
"prolog-epilog",
"insertion",
"."
] | [
"AArch64",
"AArch64",
"AArch64",
"AArch64"
] | AArch64TargetMachine (2)3 | addPostRegAlloc | AArch64 | CPU | LLVM | 29,296 | 52 | 1 | [] |
[
"<s>",
"static",
"enum",
"riscv_symbol_type",
"riscv_classify_symbol",
"(",
"const_rtx",
"x",
")",
"{",
"if",
"(",
"riscv_tls_symbol_p",
"(",
"x",
")",
")",
"return",
"SYMBOL_TLS",
";",
"if",
"(",
"GET_CODE",
"(",
"x",
")",
"==",
"SYMBOL_REF",
"&&",
"flag_pic",
"&&",
"!",
"riscv_symbol_binds_local_p",
"(",
"x",
")",
")",
"return",
"SYMBOL_GOT_DISP",
";",
"return",
"riscv_cmodel",
"==",
"CM_MEDLOW",
"?",
"SYMBOL_ABSOLUTE",
":",
"SYMBOL_PCREL",
";",
"}",
"</s>"
] | [
"Return",
"the",
"method",
"that",
"should",
"be",
"used",
"to",
"access",
"SYMBOL_REF",
"or",
"LABEL_REF",
"X",
"."
] | [
"riscv"
] | riscv | riscv_classify_symbol | riscv | CPU | GCC | 29,297 | 49 | 1 | [] |
[
"<s>",
"tree",
"i386_pe_mangle_assembler_name",
"(",
"const",
"char",
"*",
"name",
")",
"{",
"const",
"char",
"*",
"skipped",
"=",
"name",
"+",
"(",
"*",
"name",
"==",
"'*'",
"?",
"1",
":",
"0",
")",
";",
"const",
"char",
"*",
"stripped",
"=",
"targetm",
".",
"strip_name_encoding",
"(",
"skipped",
")",
";",
"if",
"(",
"*",
"name",
"!=",
"'*'",
"&&",
"*",
"user_label_prefix",
"&&",
"*",
"stripped",
"!=",
"FASTCALL_PREFIX",
")",
"stripped",
"=",
"ACONCAT",
"(",
"(",
"user_label_prefix",
",",
"stripped",
",",
"NULL",
")",
")",
";",
"return",
"get_identifier",
"(",
"stripped",
")",
";",
"}",
"</s>"
] | [
"This",
"hook",
"behaves",
"the",
"same",
"as",
"varasm.cc/assemble_name",
"(",
")",
",",
"but",
"generates",
"the",
"name",
"into",
"memory",
"rather",
"than",
"outputting",
"it",
"to",
"a",
"file",
"stream",
"."
] | [
"i386",
"1",
"0"
] | winnt | i386_pe_mangle_assembler_name | i386 | CPU | GCC | 29,298 | 74 | 1 | [] |
[
"<s>",
"static",
"bool",
"nvptx_needs_shared_bcast",
"(",
"unsigned",
"mask",
")",
"{",
"bool",
"worker",
"=",
"mask",
"&",
"GOMP_DIM_MASK",
"(",
"GOMP_DIM_WORKER",
")",
";",
"bool",
"large_vector",
"=",
"(",
"mask",
"&",
"GOMP_DIM_MASK",
"(",
"GOMP_DIM_VECTOR",
")",
")",
"&&",
"nvptx_mach_vector_length",
"(",
")",
"!=",
"PTX_WARP_SIZE",
";",
"return",
"worker",
"||",
"large_vector",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"MASK",
"contains",
"parallelism",
"that",
"requires",
"shared",
"memory",
"to",
"broadcast",
"."
] | [
"nvptx"
] | nvptx | nvptx_needs_shared_bcast | nvptx | GPU | GCC | 29,299 | 42 | 1 | [] |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.