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>",
"bool",
"hasBranchDivergence",
"(",
")",
"{",
"return",
"true",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"branch",
"divergence",
"exists",
"."
] | [
"AMDGPU"
] | AMDGPUTargetTransformInfo (2) | hasBranchDivergence | AMDGPU | GPU | LLVM | 10,100 | 9 | 1 | [] |
[
"<s>",
"void",
"nds32_expand_epilogue_v3pop",
"(",
"bool",
"sibcall_p",
")",
"{",
"int",
"sp_adjust",
";",
"rtx",
"Rb",
",",
"Re",
";",
"rtx",
"sp_adjust_insn",
";",
"nds32_compute_stack_frame",
"(",
")",
";",
"emit_insn",
"(",
"gen_blockage",
"(",
")",
")",
";",
"if",
"(",
"cfun",
"->",
"machine",
"->",
"naked_p",
")",
"{",
"if",
"(",
"!",
"sibcall_p",
")",
"emit_jump_insn",
"(",
"gen_return_internal",
"(",
")",
")",
";",
"return",
";",
"}",
"Rb",
"=",
"gen_rtx_REG",
"(",
"SImode",
",",
"cfun",
"->",
"machine",
"->",
"callee_saved_first_gpr_regno",
")",
";",
"Re",
"=",
"gen_rtx_REG",
"(",
"SImode",
",",
"cfun",
"->",
"machine",
"->",
"callee_saved_last_gpr_regno",
")",
";",
"sp_adjust",
"=",
"cfun",
"->",
"machine",
"->",
"local_size",
"+",
"cfun",
"->",
"machine",
"->",
"out_args_size",
"+",
"cfun",
"->",
"machine",
"->",
"callee_saved_area_gpr_padding_bytes",
";",
"if",
"(",
"satisfies_constraint_Iu08",
"(",
"GEN_INT",
"(",
"sp_adjust",
")",
")",
"&&",
"NDS32_DOUBLE_WORD_ALIGN_P",
"(",
"sp_adjust",
")",
"&&",
"!",
"cfun",
"->",
"calls_alloca",
")",
"{",
"nds32_emit_stack_v3pop",
"(",
"Rb",
",",
"Re",
",",
"GEN_INT",
"(",
"14",
")",
",",
"GEN_INT",
"(",
"sp_adjust",
")",
")",
";",
"}",
"else",
"{",
"if",
"(",
"frame_pointer_needed",
")",
"{",
"sp_adjust",
"=",
"cfun",
"->",
"machine",
"->",
"fp_size",
"+",
"cfun",
"->",
"machine",
"->",
"gp_size",
"+",
"cfun",
"->",
"machine",
"->",
"lp_size",
"+",
"cfun",
"->",
"machine",
"->",
"callee_saved_gpr_regs_size",
";",
"sp_adjust_insn",
"=",
"gen_addsi3",
"(",
"stack_pointer_rtx",
",",
"hard_frame_pointer_rtx",
",",
"GEN_INT",
"(",
"-",
"1",
"*",
"sp_adjust",
")",
")",
";",
"sp_adjust_insn",
"=",
"emit_insn",
"(",
"sp_adjust_insn",
")",
";",
"}",
"else",
"{",
"sp_adjust",
"=",
"cfun",
"->",
"machine",
"->",
"local_size",
"+",
"cfun",
"->",
"machine",
"->",
"out_args_size",
"+",
"cfun",
"->",
"machine",
"->",
"callee_saved_area_gpr_padding_bytes",
";",
"sp_adjust",
"=",
"nds32_force_addi_stack_int",
"(",
"sp_adjust",
")",
";",
"if",
"(",
"sp_adjust",
")",
"{",
"sp_adjust_insn",
"=",
"gen_addsi3",
"(",
"stack_pointer_rtx",
",",
"stack_pointer_rtx",
",",
"GEN_INT",
"(",
"sp_adjust",
")",
")",
";",
"sp_adjust_insn",
"=",
"emit_insn",
"(",
"sp_adjust_insn",
")",
";",
"}",
"}",
"nds32_emit_stack_v3pop",
"(",
"Rb",
",",
"Re",
",",
"GEN_INT",
"(",
"14",
")",
",",
"GEN_INT",
"(",
"0",
")",
")",
";",
"}",
"emit_jump_insn",
"(",
"gen_pop25return",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"Function",
"for",
"v3pop",
"epilogue",
"."
] | [
"nds32",
"14",
"1",
"14",
"0"
] | nds322 | nds32_expand_epilogue_v3pop | nds32 | CPU | GCC | 10,101 | 279 | 1 | [] |
[
"<s>",
"void",
"SystemZInstrInfo",
"::",
"copyPhysReg",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"MBBI",
",",
"const",
"DebugLoc",
"&",
"DL",
",",
"unsigned",
"DestReg",
",",
"unsigned",
"SrcReg",
",",
"bool",
"KillSrc",
")",
"const",
"{",
"if",
"(",
"SystemZ",
"::",
"GR128BitRegClass",
".",
"contains",
"(",
"DestReg",
",",
"SrcReg",
")",
")",
"{",
"copyPhysReg",
"(",
"MBB",
",",
"MBBI",
",",
"DL",
",",
"RI",
".",
"getSubReg",
"(",
"DestReg",
",",
"SystemZ",
"::",
"subreg_h64",
")",
",",
"RI",
".",
"getSubReg",
"(",
"SrcReg",
",",
"SystemZ",
"::",
"subreg_h64",
")",
",",
"KillSrc",
")",
";",
"copyPhysReg",
"(",
"MBB",
",",
"MBBI",
",",
"DL",
",",
"RI",
".",
"getSubReg",
"(",
"DestReg",
",",
"SystemZ",
"::",
"subreg_l64",
")",
",",
"RI",
".",
"getSubReg",
"(",
"SrcReg",
",",
"SystemZ",
"::",
"subreg_l64",
")",
",",
"KillSrc",
")",
";",
"return",
";",
"}",
"if",
"(",
"SystemZ",
"::",
"GRX32BitRegClass",
".",
"contains",
"(",
"DestReg",
",",
"SrcReg",
")",
")",
"{",
"emitGRX32Move",
"(",
"MBB",
",",
"MBBI",
",",
"DL",
",",
"DestReg",
",",
"SrcReg",
",",
"SystemZ",
"::",
"LR",
",",
"32",
",",
"KillSrc",
")",
";",
"return",
";",
"}",
"unsigned",
"Opcode",
";",
"if",
"(",
"SystemZ",
"::",
"GR64BitRegClass",
".",
"contains",
"(",
"DestReg",
",",
"SrcReg",
")",
")",
"Opcode",
"=",
"SystemZ",
"::",
"LGR",
";",
"else",
"if",
"(",
"SystemZ",
"::",
"FP32BitRegClass",
".",
"contains",
"(",
"DestReg",
",",
"SrcReg",
")",
")",
"Opcode",
"=",
"STI",
".",
"hasVector",
"(",
")",
"?",
"SystemZ",
"::",
"LDR32",
":",
"SystemZ",
"::",
"LER",
";",
"else",
"if",
"(",
"SystemZ",
"::",
"FP64BitRegClass",
".",
"contains",
"(",
"DestReg",
",",
"SrcReg",
")",
")",
"Opcode",
"=",
"SystemZ",
"::",
"LDR",
";",
"else",
"if",
"(",
"SystemZ",
"::",
"FP128BitRegClass",
".",
"contains",
"(",
"DestReg",
",",
"SrcReg",
")",
")",
"Opcode",
"=",
"SystemZ",
"::",
"LXR",
";",
"else",
"if",
"(",
"SystemZ",
"::",
"VR32BitRegClass",
".",
"contains",
"(",
"DestReg",
",",
"SrcReg",
")",
")",
"Opcode",
"=",
"SystemZ",
"::",
"VLR32",
";",
"else",
"if",
"(",
"SystemZ",
"::",
"VR64BitRegClass",
".",
"contains",
"(",
"DestReg",
",",
"SrcReg",
")",
")",
"Opcode",
"=",
"SystemZ",
"::",
"VLR64",
";",
"else",
"if",
"(",
"SystemZ",
"::",
"VR128BitRegClass",
".",
"contains",
"(",
"DestReg",
",",
"SrcReg",
")",
")",
"Opcode",
"=",
"SystemZ",
"::",
"VLR",
";",
"else",
"llvm_unreachable",
"(",
"\"Impossible reg-to-reg copy\"",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"MBBI",
",",
"DL",
",",
"get",
"(",
"Opcode",
")",
",",
"DestReg",
")",
".",
"addReg",
"(",
"SrcReg",
",",
"getKillRegState",
"(",
"KillSrc",
")",
")",
";",
"}",
"</s>"
] | [
"}",
"Branch",
"Analysis",
"&",
"Modification"
] | [
"SystemZ",
"SystemZ",
"SystemZ::GR128BitRegClass",
"SystemZ::subreg_h64",
"SystemZ::subreg_h64",
"SystemZ::subreg_l64",
"SystemZ::subreg_l64",
"SystemZ::GRX32BitRegClass",
"SystemZ::LR",
"32",
"SystemZ::GR64BitRegClass",
"SystemZ::LGR",
"SystemZ::FP32BitRegClass",
"SystemZ::LDR32",
"SystemZ::LER",
"SystemZ::FP64BitRegClass",
"SystemZ::LDR",
"SystemZ::FP128BitRegClass",
"SystemZ::LXR",
"SystemZ::VR32BitRegClass",
"SystemZ::VLR32",
"SystemZ::VR64BitRegClass",
"SystemZ::VLR64",
"SystemZ::VR128BitRegClass",
"SystemZ::VLR",
"\"Impossible reg-to-reg copy\""
] | SystemZInstrInfo18 | copyPhysReg | SystemZ | CPU | LLVM | 10,102 | 336 | 1 | [] |
[
"<s>",
"bool",
"HexagonTargetLowering",
"::",
"isFPImmLegal",
"(",
"const",
"APFloat",
"&",
"Imm",
",",
"EVT",
"VT",
")",
"const",
"{",
"return",
"Subtarget",
"->",
"hasV5TOps",
"(",
")",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"the",
"target",
"can",
"instruction",
"select",
"the",
"specified",
"FP",
"immediate",
"natively",
"."
] | [
"Hexagon",
"Hexagon"
] | HexagonISelLowering (2)2 | isFPImmLegal | Hexagon | DSP | LLVM | 10,103 | 23 | 1 | [] |
[
"<s>",
"bool",
"HexagonPacketizer",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"Fn",
")",
"{",
"const",
"TargetInstrInfo",
"*",
"TII",
"=",
"Fn",
".",
"getTarget",
"(",
")",
".",
"getInstrInfo",
"(",
")",
";",
"MachineLoopInfo",
"&",
"MLI",
"=",
"getAnalysis",
"<",
"MachineLoopInfo",
">",
"(",
")",
";",
"MachineDominatorTree",
"&",
"MDT",
"=",
"getAnalysis",
"<",
"MachineDominatorTree",
">",
"(",
")",
";",
"const",
"MachineBranchProbabilityInfo",
"*",
"MBPI",
"=",
"&",
"getAnalysis",
"<",
"MachineBranchProbabilityInfo",
">",
"(",
")",
";",
"HexagonPacketizerList",
"Packetizer",
"(",
"Fn",
",",
"MLI",
",",
"MDT",
",",
"MBPI",
")",
";",
"assert",
"(",
"Packetizer",
".",
"getResourceTracker",
"(",
")",
"&&",
"\"Empty DFA table!\"",
")",
";",
"for",
"(",
"MachineFunction",
"::",
"iterator",
"MBB",
"=",
"Fn",
".",
"begin",
"(",
")",
",",
"MBBe",
"=",
"Fn",
".",
"end",
"(",
")",
";",
"MBB",
"!=",
"MBBe",
";",
"++",
"MBB",
")",
"{",
"MachineBasicBlock",
"::",
"iterator",
"End",
"=",
"MBB",
"->",
"end",
"(",
")",
";",
"MachineBasicBlock",
"::",
"iterator",
"MI",
"=",
"MBB",
"->",
"begin",
"(",
")",
";",
"while",
"(",
"MI",
"!=",
"End",
")",
"{",
"if",
"(",
"MI",
"->",
"isKill",
"(",
")",
")",
"{",
"MachineBasicBlock",
"::",
"iterator",
"DeleteMI",
"=",
"MI",
";",
"++",
"MI",
";",
"MBB",
"->",
"erase",
"(",
"DeleteMI",
")",
";",
"End",
"=",
"MBB",
"->",
"end",
"(",
")",
";",
"continue",
";",
"}",
"++",
"MI",
";",
"}",
"}",
"for",
"(",
"MachineFunction",
"::",
"iterator",
"MBB",
"=",
"Fn",
".",
"begin",
"(",
")",
",",
"MBBe",
"=",
"Fn",
".",
"end",
"(",
")",
";",
"MBB",
"!=",
"MBBe",
";",
"++",
"MBB",
")",
"{",
"unsigned",
"RemainingCount",
"=",
"MBB",
"->",
"size",
"(",
")",
";",
"for",
"(",
"MachineBasicBlock",
"::",
"iterator",
"RegionEnd",
"=",
"MBB",
"->",
"end",
"(",
")",
";",
"RegionEnd",
"!=",
"MBB",
"->",
"begin",
"(",
")",
";",
")",
"{",
"MachineBasicBlock",
"::",
"iterator",
"I",
"=",
"RegionEnd",
";",
"for",
"(",
";",
"I",
"!=",
"MBB",
"->",
"begin",
"(",
")",
";",
"--",
"I",
",",
"--",
"RemainingCount",
")",
"{",
"if",
"(",
"TII",
"->",
"isSchedulingBoundary",
"(",
"std",
"::",
"prev",
"(",
"I",
")",
",",
"MBB",
",",
"Fn",
")",
")",
"break",
";",
"}",
"I",
"=",
"MBB",
"->",
"begin",
"(",
")",
";",
"if",
"(",
"I",
"==",
"RegionEnd",
")",
"{",
"RegionEnd",
"=",
"std",
"::",
"prev",
"(",
"RegionEnd",
")",
";",
"--",
"RemainingCount",
";",
"continue",
";",
"}",
"if",
"(",
"I",
"==",
"std",
"::",
"prev",
"(",
"RegionEnd",
")",
")",
"{",
"RegionEnd",
"=",
"std",
"::",
"prev",
"(",
"RegionEnd",
")",
";",
"continue",
";",
"}",
"Packetizer",
".",
"PacketizeMIs",
"(",
"MBB",
",",
"I",
",",
"RegionEnd",
")",
";",
"RegionEnd",
"=",
"I",
";",
"}",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"Hexagon",
"Hexagon",
"Hexagon",
"\"Empty DFA table!\""
] | HexagonVLIWPacketizer15 | runOnMachineFunction | Hexagon | DSP | LLVM | 10,104 | 365 | 1 | [] |
[
"<s>",
"void",
"ARMTargetLowering",
"::",
"LowerAsmOperandForConstraint",
"(",
"SDValue",
"Op",
",",
"char",
"Constraint",
",",
"bool",
"hasMemory",
",",
"std",
"::",
"vector",
"<",
"SDValue",
">",
"&",
"Ops",
",",
"SelectionDAG",
"&",
"DAG",
")",
"const",
"{",
"SDValue",
"Result",
"(",
"0",
",",
"0",
")",
";",
"switch",
"(",
"Constraint",
")",
"{",
"default",
":",
"break",
";",
"case",
"'I'",
":",
"case",
"'J'",
":",
"case",
"'K'",
":",
"case",
"'L'",
":",
"case",
"'M'",
":",
"case",
"'N'",
":",
"case",
"'O'",
":",
"ConstantSDNode",
"*",
"C",
"=",
"dyn_cast",
"<",
"ConstantSDNode",
">",
"(",
"Op",
")",
";",
"if",
"(",
"!",
"C",
")",
"return",
";",
"int64_t",
"CVal64",
"=",
"C",
"->",
"getSExtValue",
"(",
")",
";",
"int",
"CVal",
"=",
"(",
"int",
")",
"CVal64",
";",
"if",
"(",
"CVal",
"!=",
"CVal64",
")",
"return",
";",
"switch",
"(",
"Constraint",
")",
"{",
"case",
"'I'",
":",
"if",
"(",
"Subtarget",
"->",
"isThumb",
"(",
")",
")",
"{",
"if",
"(",
"CVal",
">=",
"0",
"&&",
"CVal",
"<=",
"255",
")",
"break",
";",
"}",
"else",
"{",
"if",
"(",
"ARM_AM",
"::",
"getSOImmVal",
"(",
"CVal",
")",
"!=",
"-",
"1",
")",
"break",
";",
"}",
"return",
";",
"case",
"'J'",
":",
"if",
"(",
"Subtarget",
"->",
"isThumb",
"(",
")",
")",
"{",
"if",
"(",
"CVal",
">=",
"-",
"255",
"&&",
"CVal",
"<=",
"-",
"1",
")",
"break",
";",
"}",
"else",
"{",
"if",
"(",
"CVal",
">=",
"-",
"4095",
"&&",
"CVal",
"<=",
"4095",
")",
"break",
";",
"}",
"return",
";",
"case",
"'K'",
":",
"if",
"(",
"Subtarget",
"->",
"isThumb",
"(",
")",
")",
"{",
"if",
"(",
"CVal",
"!=",
"0",
"&&",
"ARM_AM",
"::",
"isThumbImmShiftedVal",
"(",
"CVal",
")",
")",
"break",
";",
"}",
"else",
"{",
"if",
"(",
"ARM_AM",
"::",
"getSOImmVal",
"(",
"~",
"CVal",
")",
"!=",
"-",
"1",
")",
"break",
";",
"}",
"return",
";",
"case",
"'L'",
":",
"if",
"(",
"Subtarget",
"->",
"isThumb",
"(",
")",
")",
"{",
"if",
"(",
"CVal",
">=",
"-",
"7",
"&&",
"CVal",
"<",
"7",
")",
"break",
";",
"}",
"else",
"{",
"if",
"(",
"ARM_AM",
"::",
"getSOImmVal",
"(",
"-",
"CVal",
")",
"!=",
"-",
"1",
")",
"break",
";",
"}",
"return",
";",
"case",
"'M'",
":",
"if",
"(",
"Subtarget",
"->",
"isThumb",
"(",
")",
")",
"{",
"if",
"(",
"(",
"CVal",
">=",
"0",
"&&",
"CVal",
"<=",
"1020",
")",
"&&",
"(",
"(",
"CVal",
"&",
"3",
")",
"==",
"0",
")",
")",
"break",
";",
"}",
"else",
"{",
"if",
"(",
"(",
"CVal",
">=",
"0",
"&&",
"CVal",
"<=",
"32",
")",
"||",
"(",
"(",
"CVal",
"&",
"(",
"CVal",
"-",
"1",
")",
")",
"==",
"0",
")",
")",
"break",
";",
"}",
"return",
";",
"case",
"'N'",
":",
"if",
"(",
"Subtarget",
"->",
"isThumb",
"(",
")",
")",
"{",
"if",
"(",
"CVal",
">=",
"0",
"&&",
"CVal",
"<=",
"31",
")",
"break",
";",
"}",
"return",
";",
"case",
"'O'",
":",
"if",
"(",
"Subtarget",
"->",
"isThumb",
"(",
")",
")",
"{",
"if",
"(",
"(",
"CVal",
">=",
"-",
"508",
"&&",
"CVal",
"<=",
"508",
")",
"&&",
"(",
"(",
"CVal",
"&",
"3",
")",
"==",
"0",
")",
")",
"break",
";",
"}",
"return",
";",
"}",
"Result",
"=",
"DAG",
".",
"getTargetConstant",
"(",
"CVal",
",",
"Op",
".",
"getValueType",
"(",
")",
")",
";",
"break",
";",
"}",
"if",
"(",
"Result",
".",
"getNode",
"(",
")",
")",
"{",
"Ops",
".",
"push_back",
"(",
"Result",
")",
";",
"return",
";",
"}",
"return",
"TargetLowering",
"::",
"LowerAsmOperandForConstraint",
"(",
"Op",
",",
"Constraint",
",",
"hasMemory",
",",
"Ops",
",",
"DAG",
")",
";",
"}",
"</s>"
] | [
"Lower",
"the",
"specified",
"operand",
"into",
"the",
"Ops",
"vector",
"."
] | [
"ARM",
"ARM",
"0",
"0",
"0",
"255",
"ARM_AM::getSOImmVal",
"1",
"255",
"1",
"4095",
"4095",
"0",
"ARM_AM::isThumbImmShiftedVal",
"ARM_AM::getSOImmVal",
"1",
"7",
"7",
"ARM_AM::getSOImmVal",
"1",
"0",
"1020",
"3",
"0",
"0",
"32",
"1",
"0",
"0",
"31",
"508",
"508",
"3",
"0"
] | ARMISelLowering57 | LowerAsmOperandForConstraint | ARM | CPU | LLVM | 10,105 | 491 | 1 | [] |
[
"<s>",
"void",
"SIWholeQuadMode",
"::",
"processBlock",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"unsigned",
"LiveMaskReg",
",",
"bool",
"isEntry",
")",
"{",
"auto",
"BII",
"=",
"Blocks",
".",
"find",
"(",
"&",
"MBB",
")",
";",
"if",
"(",
"BII",
"==",
"Blocks",
".",
"end",
"(",
")",
")",
"return",
";",
"const",
"BlockInfo",
"&",
"BI",
"=",
"BII",
"->",
"second",
";",
"if",
"(",
"!",
"(",
"BI",
".",
"InNeeds",
"&",
"StateWQM",
")",
")",
"return",
";",
"if",
"(",
"!",
"isEntry",
"&&",
"!",
"(",
"BI",
".",
"Needs",
"&",
"StateExact",
")",
"&&",
"BI",
".",
"OutNeeds",
"!=",
"StateExact",
")",
"return",
";",
"unsigned",
"SavedWQMReg",
"=",
"0",
";",
"bool",
"WQMFromExec",
"=",
"isEntry",
";",
"char",
"State",
"=",
"isEntry",
"?",
"StateExact",
":",
"StateWQM",
";",
"auto",
"II",
"=",
"MBB",
".",
"getFirstNonPHI",
"(",
")",
",",
"IE",
"=",
"MBB",
".",
"end",
"(",
")",
";",
"while",
"(",
"II",
"!=",
"IE",
")",
"{",
"MachineInstr",
"&",
"MI",
"=",
"*",
"II",
";",
"++",
"II",
";",
"if",
"(",
"MI",
".",
"getDesc",
"(",
")",
".",
"TSFlags",
"&",
"(",
"SIInstrFlags",
"::",
"SALU",
"|",
"SIInstrFlags",
"::",
"SMRD",
")",
"&&",
"!",
"MI",
".",
"isBranch",
"(",
")",
"&&",
"!",
"MI",
".",
"isTerminator",
"(",
")",
")",
"continue",
";",
"if",
"(",
"TargetInstrInfo",
"::",
"isGenericOpcode",
"(",
"MI",
".",
"getOpcode",
"(",
")",
")",
")",
"{",
"if",
"(",
"MI",
".",
"getNumExplicitOperands",
"(",
")",
">=",
"1",
")",
"{",
"const",
"MachineOperand",
"&",
"Op",
"=",
"MI",
".",
"getOperand",
"(",
"0",
")",
";",
"if",
"(",
"Op",
".",
"isReg",
"(",
")",
")",
"{",
"if",
"(",
"TRI",
"->",
"isSGPRReg",
"(",
"*",
"MRI",
",",
"Op",
".",
"getReg",
"(",
")",
")",
")",
"{",
"continue",
";",
"}",
"}",
"}",
"}",
"char",
"Needs",
"=",
"0",
";",
"char",
"OutNeeds",
"=",
"0",
";",
"auto",
"InstrInfoIt",
"=",
"Instructions",
".",
"find",
"(",
"&",
"MI",
")",
";",
"if",
"(",
"InstrInfoIt",
"!=",
"Instructions",
".",
"end",
"(",
")",
")",
"{",
"Needs",
"=",
"InstrInfoIt",
"->",
"second",
".",
"Needs",
";",
"OutNeeds",
"=",
"InstrInfoIt",
"->",
"second",
".",
"OutNeeds",
";",
"if",
"(",
"OutNeeds",
"==",
"StateExact",
"&&",
"(",
"MI",
".",
"isBranch",
"(",
")",
"||",
"MI",
".",
"isTerminator",
"(",
")",
")",
")",
"{",
"assert",
"(",
"Needs",
"==",
"0",
")",
";",
"Needs",
"=",
"StateExact",
";",
"}",
"}",
"if",
"(",
"Needs",
"&&",
"State",
"!=",
"Needs",
")",
"{",
"if",
"(",
"Needs",
"==",
"StateExact",
")",
"{",
"assert",
"(",
"!",
"SavedWQMReg",
")",
";",
"if",
"(",
"!",
"WQMFromExec",
"&&",
"(",
"OutNeeds",
"&",
"StateWQM",
")",
")",
"SavedWQMReg",
"=",
"MRI",
"->",
"createVirtualRegister",
"(",
"&",
"AMDGPU",
"::",
"SReg_64RegClass",
")",
";",
"toExact",
"(",
"MBB",
",",
"&",
"MI",
",",
"SavedWQMReg",
",",
"LiveMaskReg",
")",
";",
"}",
"else",
"{",
"assert",
"(",
"WQMFromExec",
"==",
"(",
"SavedWQMReg",
"==",
"0",
")",
")",
";",
"toWQM",
"(",
"MBB",
",",
"&",
"MI",
",",
"SavedWQMReg",
")",
";",
"SavedWQMReg",
"=",
"0",
";",
"}",
"State",
"=",
"Needs",
";",
"}",
"if",
"(",
"MI",
".",
"getOpcode",
"(",
")",
"==",
"AMDGPU",
"::",
"SI_KILL",
")",
"WQMFromExec",
"=",
"false",
";",
"}",
"if",
"(",
"(",
"BI",
".",
"OutNeeds",
"&",
"StateWQM",
")",
"&&",
"State",
"!=",
"StateWQM",
")",
"{",
"assert",
"(",
"WQMFromExec",
"==",
"(",
"SavedWQMReg",
"==",
"0",
")",
")",
";",
"toWQM",
"(",
"MBB",
",",
"MBB",
".",
"end",
"(",
")",
",",
"SavedWQMReg",
")",
";",
"}",
"else",
"if",
"(",
"BI",
".",
"OutNeeds",
"==",
"StateExact",
"&&",
"State",
"!=",
"StateExact",
")",
"{",
"toExact",
"(",
"MBB",
",",
"MBB",
".",
"end",
"(",
")",
",",
"0",
",",
"LiveMaskReg",
")",
";",
"}",
"}",
"</s>"
] | [
"processBlock",
"-",
"If",
"there",
"are",
"any",
"predecessors",
"whose",
"control",
"can",
"be",
"threaded",
"through",
"to",
"a",
"successor",
",",
"transform",
"them",
"now",
"."
] | [
"AMDGPU",
"SI",
"0",
"SIInstrFlags::SALU",
"SIInstrFlags::SMRD",
"1",
"0",
"0",
"0",
"0",
"AMDGPU::SReg_64RegClass",
"0",
"0",
"AMDGPU::SI_KILL",
"0",
"0"
] | SIWholeQuadMode25 | processBlock | AMDGPU | GPU | LLVM | 10,106 | 502 | 1 | [] |
[
"<s>",
"static",
"bool",
"moxie_legitimate_address_p",
"(",
"machine_mode",
"mode",
"ATTRIBUTE_UNUSED",
",",
"rtx",
"x",
",",
"bool",
"strict_p",
",",
"addr_space_t",
"as",
")",
"{",
"gcc_assert",
"(",
"ADDR_SPACE_GENERIC_P",
"(",
"as",
")",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"x",
")",
"==",
"PLUS",
"&&",
"REG_P",
"(",
"XEXP",
"(",
"x",
",",
"0",
")",
")",
"&&",
"moxie_reg_ok_for_base_p",
"(",
"XEXP",
"(",
"x",
",",
"0",
")",
",",
"strict_p",
")",
"&&",
"CONST_INT_P",
"(",
"XEXP",
"(",
"x",
",",
"1",
")",
")",
"&&",
"IN_RANGE",
"(",
"INTVAL",
"(",
"XEXP",
"(",
"x",
",",
"1",
")",
")",
",",
"-",
"32768",
",",
"32767",
")",
")",
"return",
"true",
";",
"if",
"(",
"REG_P",
"(",
"x",
")",
"&&",
"moxie_reg_ok_for_base_p",
"(",
"x",
",",
"strict_p",
")",
")",
"return",
"true",
";",
"if",
"(",
"GET_CODE",
"(",
"x",
")",
"==",
"SYMBOL_REF",
"||",
"GET_CODE",
"(",
"x",
")",
"==",
"LABEL_REF",
"||",
"GET_CODE",
"(",
"x",
")",
"==",
"CONST",
")",
"return",
"true",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Worker",
"function",
"for",
"TARGET_LEGITIMATE_ADDRESS_P",
"."
] | [
"moxie",
"0",
"0",
"1",
"1",
"32768",
"32767"
] | moxie | moxie_legitimate_address_p | moxie | CPU | GCC | 10,107 | 135 | 1 | [] |
[
"<s>",
"static",
"const",
"char",
"*",
"arm_shift_nmem",
"(",
"enum",
"rtx_code",
"code",
")",
"{",
"switch",
"(",
"code",
")",
"{",
"case",
"ASHIFT",
":",
"return",
"ARM_LSL_NAME",
";",
"case",
"ASHIFTRT",
":",
"return",
"\"asr\"",
";",
"case",
"LSHIFTRT",
":",
"return",
"\"lsr\"",
";",
"case",
"ROTATERT",
":",
"return",
"\"ror\"",
";",
"default",
":",
"abort",
"(",
")",
";",
"}",
"}",
"</s>"
] | [
"Return",
"the",
"name",
"of",
"a",
"shifter",
"operation",
"."
] | [
"arm",
"\"asr\"",
"\"lsr\"",
"\"ror\""
] | arm | arm_shift_nmem | arm | CPU | GCC | 10,108 | 48 | 1 | [] |
[
"<s>",
"void",
"J2ConstantPoolValue",
"::",
"print",
"(",
"raw_ostream",
"&",
"O",
")",
"const",
"{",
"O",
"<<",
"Value",
";",
"}",
"</s>"
] | [
"print",
"-",
"Print",
"a",
"debug",
"representation",
"of",
"the",
"operand",
"to",
"the",
"given",
"stream",
"."
] | [
"J2",
"J2"
] | J2ConstantPoolValue | print | J2 | MPU | LLVM | 10,109 | 16 | 1 | [] |
[
"<s>",
"SDValue",
"NyuziTargetLowering",
"::",
"LowerReturn",
"(",
"SDValue",
"Chain",
",",
"CallingConv",
"::",
"ID",
"CallConv",
",",
"bool",
"IsVarArg",
",",
"const",
"SmallVectorImpl",
"<",
"ISD",
"::",
"OutputArg",
">",
"&",
"Outs",
",",
"const",
"SmallVectorImpl",
"<",
"SDValue",
">",
"&",
"OutVals",
",",
"const",
"SDLoc",
"&",
"DL",
",",
"SelectionDAG",
"&",
"DAG",
")",
"const",
"{",
"MachineFunction",
"&",
"MF",
"=",
"DAG",
".",
"getMachineFunction",
"(",
")",
";",
"SmallVector",
"<",
"CCValAssign",
",",
"16",
">",
"RVLocs",
";",
"CCState",
"CCInfo",
"(",
"CallConv",
",",
"IsVarArg",
",",
"DAG",
".",
"getMachineFunction",
"(",
")",
",",
"RVLocs",
",",
"*",
"DAG",
".",
"getContext",
"(",
")",
")",
";",
"CCInfo",
".",
"AnalyzeReturn",
"(",
"Outs",
",",
"RetCC_Nyuzi32",
")",
";",
"SDValue",
"Flag",
";",
"SmallVector",
"<",
"SDValue",
",",
"4",
">",
"RetOps",
"(",
"1",
",",
"Chain",
")",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"!=",
"RVLocs",
".",
"size",
"(",
")",
";",
"++",
"i",
")",
"{",
"CCValAssign",
"&",
"VA",
"=",
"RVLocs",
"[",
"i",
"]",
";",
"assert",
"(",
"VA",
".",
"isRegLoc",
"(",
")",
"&&",
"\"Can only return in registers!\"",
")",
";",
"Chain",
"=",
"DAG",
".",
"getCopyToReg",
"(",
"Chain",
",",
"DL",
",",
"VA",
".",
"getLocReg",
"(",
")",
",",
"OutVals",
"[",
"i",
"]",
",",
"Flag",
")",
";",
"Flag",
"=",
"Chain",
".",
"getValue",
"(",
"1",
")",
";",
"RetOps",
".",
"push_back",
"(",
"DAG",
".",
"getRegister",
"(",
"VA",
".",
"getLocReg",
"(",
")",
",",
"VA",
".",
"getLocVT",
"(",
")",
")",
")",
";",
"}",
"if",
"(",
"MF",
".",
"getFunction",
"(",
")",
".",
"hasStructRetAttr",
"(",
")",
")",
"{",
"NyuziMachineFunctionInfo",
"*",
"VFI",
"=",
"MF",
".",
"getInfo",
"<",
"NyuziMachineFunctionInfo",
">",
"(",
")",
";",
"unsigned",
"Reg",
"=",
"VFI",
"->",
"getSRetReturnReg",
"(",
")",
";",
"if",
"(",
"!",
"Reg",
")",
"llvm_unreachable",
"(",
"\"sret virtual register not created in the entry block\"",
")",
";",
"SDValue",
"Val",
"=",
"DAG",
".",
"getCopyFromReg",
"(",
"Chain",
",",
"DL",
",",
"Reg",
",",
"getPointerTy",
"(",
"DAG",
".",
"getDataLayout",
"(",
")",
")",
")",
";",
"Chain",
"=",
"DAG",
".",
"getCopyToReg",
"(",
"Chain",
",",
"DL",
",",
"Nyuzi",
"::",
"S0",
",",
"Val",
",",
"Flag",
")",
";",
"Flag",
"=",
"Chain",
".",
"getValue",
"(",
"1",
")",
";",
"RetOps",
".",
"push_back",
"(",
"DAG",
".",
"getRegister",
"(",
"Nyuzi",
"::",
"S0",
",",
"getPointerTy",
"(",
"DAG",
".",
"getDataLayout",
"(",
")",
")",
")",
")",
";",
"}",
"RetOps",
"[",
"0",
"]",
"=",
"Chain",
";",
"if",
"(",
"Flag",
".",
"getNode",
"(",
")",
")",
"RetOps",
".",
"push_back",
"(",
"Flag",
")",
";",
"return",
"DAG",
".",
"getNode",
"(",
"NyuziISD",
"::",
"RET_FLAG",
",",
"DL",
",",
"MVT",
"::",
"Other",
",",
"RetOps",
")",
";",
"}",
"</s>"
] | [
"This",
"hook",
"must",
"be",
"implemented",
"to",
"lower",
"outgoing",
"return",
"values",
",",
"described",
"by",
"the",
"Outs",
"array",
",",
"into",
"the",
"specified",
"DAG",
"."
] | [
"Nyuzi",
"Nyuzi",
"ISD::OutputArg",
"16",
"Nyuzi",
"4",
"1",
"0",
"\"Can only return in registers!\"",
"1",
"Nyuzi",
"Nyuzi",
"\"sret virtual register not created in the entry block\"",
"Nyuzi::S0",
"1",
"Nyuzi::S0",
"0",
"NyuziISD::RET_FLAG",
"MVT::Other"
] | NyuziISelLowering | LowerReturn | Nyuzi | GPU | LLVM | 10,110 | 367 | 1 | [] |
[
"<s>",
"std",
"::",
"pair",
"<",
"const",
"TargetRegisterClass",
"*",
",",
"uint8_t",
">",
"ARMTargetLowering",
"::",
"findRepresentativeClass",
"(",
"EVT",
"VT",
")",
"const",
"{",
"const",
"TargetRegisterClass",
"*",
"RRC",
"=",
"0",
";",
"uint8_t",
"Cost",
"=",
"1",
";",
"switch",
"(",
"VT",
".",
"getSimpleVT",
"(",
")",
".",
"SimpleTy",
")",
"{",
"default",
":",
"return",
"TargetLowering",
"::",
"findRepresentativeClass",
"(",
"VT",
")",
";",
"case",
"MVT",
"::",
"f32",
":",
"case",
"MVT",
"::",
"f64",
":",
"case",
"MVT",
"::",
"v8i8",
":",
"case",
"MVT",
"::",
"v4i16",
":",
"case",
"MVT",
"::",
"v2i32",
":",
"case",
"MVT",
"::",
"v1i64",
":",
"case",
"MVT",
"::",
"v2f32",
":",
"RRC",
"=",
"ARM",
"::",
"DPRRegisterClass",
";",
"if",
"(",
"Subtarget",
"->",
"useNEONForSinglePrecisionFP",
"(",
")",
")",
"Cost",
"=",
"2",
";",
"break",
";",
"case",
"MVT",
"::",
"v16i8",
":",
"case",
"MVT",
"::",
"v8i16",
":",
"case",
"MVT",
"::",
"v4i32",
":",
"case",
"MVT",
"::",
"v2i64",
":",
"case",
"MVT",
"::",
"v4f32",
":",
"case",
"MVT",
"::",
"v2f64",
":",
"RRC",
"=",
"ARM",
"::",
"DPRRegisterClass",
";",
"Cost",
"=",
"2",
";",
"break",
";",
"case",
"MVT",
"::",
"v4i64",
":",
"RRC",
"=",
"ARM",
"::",
"DPRRegisterClass",
";",
"Cost",
"=",
"4",
";",
"break",
";",
"case",
"MVT",
"::",
"v8i64",
":",
"RRC",
"=",
"ARM",
"::",
"DPRRegisterClass",
";",
"Cost",
"=",
"8",
";",
"break",
";",
"}",
"return",
"std",
"::",
"make_pair",
"(",
"RRC",
",",
"Cost",
")",
";",
"}",
"</s>"
] | [
"Return",
"the",
"largest",
"legal",
"super-reg",
"register",
"class",
"of",
"the",
"register",
"class",
"for",
"the",
"specified",
"type",
"and",
"its",
"associated",
"``",
"cost",
"''",
"."
] | [
"ARM",
"ARM",
"0",
"1",
"MVT::f32",
"MVT::f64",
"MVT::v8i8",
"MVT::v4i16",
"MVT::v2i32",
"MVT::v1i64",
"MVT::v2f32",
"ARM::DPRRegisterClass",
"2",
"MVT::v16i8",
"MVT::v8i16",
"MVT::v4i32",
"MVT::v2i64",
"MVT::v4f32",
"MVT::v2f64",
"ARM::DPRRegisterClass",
"2",
"MVT::v4i64",
"ARM::DPRRegisterClass",
"4",
"MVT::v8i64",
"ARM::DPRRegisterClass",
"8"
] | ARMISelLowering114 | findRepresentativeClass | ARM | CPU | LLVM | 10,111 | 195 | 1 | [] |
[
"<s>",
"static",
"HOST_WIDE_INT",
"rotate_right",
"(",
"HOST_WIDE_INT",
"n",
",",
"int",
"count",
")",
"{",
"unsigned",
"HOST_WIDE_INT",
"x",
"=",
"n",
"&",
"0xFFFFFFFFFFFFFFFFULL",
";",
"if",
"(",
"count",
"==",
"0",
")",
"return",
"x",
";",
"return",
"(",
"(",
"x",
">>",
"count",
")",
"|",
"(",
"x",
"<<",
"(",
"64",
"-",
"count",
")",
")",
")",
"&",
"0xFFFFFFFFFFFFFFFFULL",
";",
"}",
"</s>"
] | [
"Implement",
"SImode",
"rotatert",
"."
] | [
"tilegx",
"0xFFFFFFFFFFFFFFFFULL",
"0",
"64",
"0xFFFFFFFFFFFFFFFFULL"
] | tilegx | rotate_right | tilegx | VLIW | GCC | 10,112 | 50 | 1 | [] |
[
"<s>",
"unsigned",
"SparcInstrInfo",
"::",
"isStoreToStackSlot",
"(",
"const",
"MachineInstr",
"*",
"MI",
",",
"int",
"&",
"FrameIndex",
")",
"const",
"{",
"if",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
"==",
"SP",
"::",
"STri",
"||",
"MI",
"->",
"getOpcode",
"(",
")",
"==",
"SP",
"::",
"STXri",
"||",
"MI",
"->",
"getOpcode",
"(",
")",
"==",
"SP",
"::",
"STFri",
"||",
"MI",
"->",
"getOpcode",
"(",
")",
"==",
"SP",
"::",
"STDFri",
")",
"{",
"if",
"(",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"isFI",
"(",
")",
"&&",
"MI",
"->",
"getOperand",
"(",
"1",
")",
".",
"isImm",
"(",
")",
"&&",
"MI",
"->",
"getOperand",
"(",
"1",
")",
".",
"getImm",
"(",
")",
"==",
"0",
")",
"{",
"FrameIndex",
"=",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"getIndex",
"(",
")",
";",
"return",
"MI",
"->",
"getOperand",
"(",
"2",
")",
".",
"getReg",
"(",
")",
";",
"}",
"}",
"return",
"0",
";",
"}",
"</s>"
] | [
"isStoreToStackSlot",
"-",
"If",
"the",
"specified",
"machine",
"instruction",
"is",
"a",
"direct",
"store",
"to",
"a",
"stack",
"slot",
",",
"return",
"the",
"virtual",
"or",
"physical",
"register",
"number",
"of",
"the",
"source",
"reg",
"along",
"with",
"the",
"FrameIndex",
"of",
"the",
"loaded",
"stack",
"slot",
"."
] | [
"Sparc",
"Sparc",
"SP::STri",
"SP::STXri",
"SP::STFri",
"SP::STDFri",
"0",
"1",
"1",
"0",
"0",
"2",
"0"
] | SparcInstrInfo2 | isStoreToStackSlot | Sparc | CPU | LLVM | 10,113 | 128 | 1 | [] |
[
"<s>",
"virtual",
"const",
"char",
"*",
"getPassName",
"(",
")",
"const",
"{",
"return",
"\"PowerPC Branch Selector\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"PowerPC",
"\"PowerPC Branch Selector\""
] | PPCBranchSelector1 | getPassName | PowerPC | CPU | LLVM | 10,114 | 13 | 1 | [] |
[
"<s>",
"std",
"::",
"unique_ptr",
"<",
"MCObjectWriter",
">",
"BPFAsmBackend",
"::",
"createObjectWriter",
"(",
"raw_pwrite_stream",
"&",
"OS",
")",
"const",
"{",
"return",
"createBPFELFObjectWriter",
"(",
"OS",
",",
"0",
",",
"IsLittleEndian",
")",
";",
"}",
"</s>"
] | [
"Create",
"a",
"new",
"MCObjectWriter",
"instance",
"for",
"use",
"by",
"the",
"assembler",
"backend",
"to",
"emit",
"the",
"final",
"object",
"file",
"."
] | [
"BPF",
"BPF",
"BPF",
"0"
] | BPFAsmBackend18 | createObjectWriter | BPF | Virtual ISA | LLVM | 10,115 | 27 | 1 | [] |
[
"<s>",
"bool",
"MVEGatherScatterLowering",
"::",
"runOnFunction",
"(",
"Function",
"&",
"F",
")",
"{",
"if",
"(",
"!",
"EnableMaskedGatherScatters",
")",
"return",
"false",
";",
"auto",
"&",
"TPC",
"=",
"getAnalysis",
"<",
"TargetPassConfig",
">",
"(",
")",
";",
"auto",
"&",
"TM",
"=",
"TPC",
".",
"getTM",
"<",
"TargetMachine",
">",
"(",
")",
";",
"auto",
"*",
"ST",
"=",
"&",
"TM",
".",
"getSubtarget",
"<",
"ARMSubtarget",
">",
"(",
"F",
")",
";",
"if",
"(",
"!",
"ST",
"->",
"hasMVEIntegerOps",
"(",
")",
")",
"return",
"false",
";",
"LI",
"=",
"&",
"getAnalysis",
"<",
"LoopInfoWrapperPass",
">",
"(",
")",
".",
"getLoopInfo",
"(",
")",
";",
"SmallVector",
"<",
"IntrinsicInst",
"*",
",",
"4",
">",
"Gathers",
";",
"SmallVector",
"<",
"IntrinsicInst",
"*",
",",
"4",
">",
"Scatters",
";",
"bool",
"Changed",
"=",
"false",
";",
"for",
"(",
"BasicBlock",
"&",
"BB",
":",
"F",
")",
"{",
"for",
"(",
"Instruction",
"&",
"I",
":",
"BB",
")",
"{",
"IntrinsicInst",
"*",
"II",
"=",
"dyn_cast",
"<",
"IntrinsicInst",
">",
"(",
"&",
"I",
")",
";",
"if",
"(",
"II",
"&&",
"II",
"->",
"getIntrinsicID",
"(",
")",
"==",
"Intrinsic",
"::",
"masked_gather",
"&&",
"isa",
"<",
"FixedVectorType",
">",
"(",
"II",
"->",
"getType",
"(",
")",
")",
")",
"{",
"Gathers",
".",
"push_back",
"(",
"II",
")",
";",
"Changed",
"|=",
"optimiseAddress",
"(",
"II",
"->",
"getArgOperand",
"(",
"0",
")",
",",
"II",
"->",
"getParent",
"(",
")",
",",
"LI",
")",
";",
"}",
"else",
"if",
"(",
"II",
"&&",
"II",
"->",
"getIntrinsicID",
"(",
")",
"==",
"Intrinsic",
"::",
"masked_scatter",
"&&",
"isa",
"<",
"FixedVectorType",
">",
"(",
"II",
"->",
"getArgOperand",
"(",
"0",
")",
"->",
"getType",
"(",
")",
")",
")",
"{",
"Scatters",
".",
"push_back",
"(",
"II",
")",
";",
"Changed",
"|=",
"optimiseAddress",
"(",
"II",
"->",
"getArgOperand",
"(",
"1",
")",
",",
"II",
"->",
"getParent",
"(",
")",
",",
"LI",
")",
";",
"}",
"}",
"}",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"<",
"Gathers",
".",
"size",
"(",
")",
";",
"i",
"++",
")",
"{",
"IntrinsicInst",
"*",
"I",
"=",
"Gathers",
"[",
"i",
"]",
";",
"Value",
"*",
"L",
"=",
"lowerGather",
"(",
"I",
")",
";",
"if",
"(",
"L",
"==",
"nullptr",
")",
"continue",
";",
"SimplifyInstructionsInBlock",
"(",
"cast",
"<",
"Instruction",
">",
"(",
"L",
")",
"->",
"getParent",
"(",
")",
")",
";",
"Changed",
"=",
"true",
";",
"}",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"<",
"Scatters",
".",
"size",
"(",
")",
";",
"i",
"++",
")",
"{",
"IntrinsicInst",
"*",
"I",
"=",
"Scatters",
"[",
"i",
"]",
";",
"Value",
"*",
"S",
"=",
"lowerScatter",
"(",
"I",
")",
";",
"if",
"(",
"S",
"==",
"nullptr",
")",
"continue",
";",
"SimplifyInstructionsInBlock",
"(",
"cast",
"<",
"Instruction",
">",
"(",
"S",
")",
"->",
"getParent",
"(",
")",
")",
";",
"Changed",
"=",
"true",
";",
"}",
"return",
"Changed",
";",
"}",
"</s>"
] | [
"runOnFunction",
"-",
"Virtual",
"method",
"overriden",
"by",
"subclasses",
"to",
"do",
"the",
"per-function",
"processing",
"of",
"the",
"pass",
"."
] | [
"ARM",
"ARM",
"4",
"4",
"Intrinsic::masked_gather",
"0",
"Intrinsic::masked_scatter",
"0",
"1",
"0",
"0"
] | MVEGatherScatterLowering | runOnFunction | ARM | CPU | LLVM | 10,116 | 389 | 1 | [] |
[
"<s>",
"void",
"SIFrameLowering",
"::",
"emitEpilogue",
"(",
"MachineFunction",
"&",
"MF",
",",
"MachineBasicBlock",
"&",
"MBB",
")",
"const",
"{",
"const",
"SIMachineFunctionInfo",
"*",
"FuncInfo",
"=",
"MF",
".",
"getInfo",
"<",
"SIMachineFunctionInfo",
">",
"(",
")",
";",
"if",
"(",
"FuncInfo",
"->",
"isEntryFunction",
"(",
")",
")",
"return",
";",
"const",
"GCNSubtarget",
"&",
"ST",
"=",
"MF",
".",
"getSubtarget",
"<",
"GCNSubtarget",
">",
"(",
")",
";",
"const",
"SIInstrInfo",
"*",
"TII",
"=",
"ST",
".",
"getInstrInfo",
"(",
")",
";",
"MachineBasicBlock",
"::",
"iterator",
"MBBI",
"=",
"MBB",
".",
"getFirstTerminator",
"(",
")",
";",
"DebugLoc",
"DL",
";",
"unsigned",
"ScratchExecCopy",
"=",
"AMDGPU",
"::",
"NoRegister",
";",
"for",
"(",
"const",
"SIMachineFunctionInfo",
"::",
"SGPRSpillVGPRCSR",
"&",
"Reg",
":",
"FuncInfo",
"->",
"getSGPRSpillVGPRs",
"(",
")",
")",
"{",
"if",
"(",
"!",
"Reg",
".",
"FI",
".",
"hasValue",
"(",
")",
")",
"continue",
";",
"const",
"SIRegisterInfo",
"&",
"TRI",
"=",
"TII",
"->",
"getRegisterInfo",
"(",
")",
";",
"if",
"(",
"ScratchExecCopy",
"==",
"AMDGPU",
"::",
"NoRegister",
")",
"{",
"LivePhysRegs",
"LiveRegs",
"(",
"*",
"ST",
".",
"getRegisterInfo",
"(",
")",
")",
";",
"LiveRegs",
".",
"addLiveOuts",
"(",
"MBB",
")",
";",
"LiveRegs",
".",
"stepBackward",
"(",
"*",
"MBBI",
")",
";",
"ScratchExecCopy",
"=",
"findScratchNonCalleeSaveRegister",
"(",
"MF",
",",
"LiveRegs",
",",
"*",
"TRI",
".",
"getWaveMaskRegClass",
"(",
")",
")",
";",
"const",
"unsigned",
"OrSaveExec",
"=",
"ST",
".",
"isWave32",
"(",
")",
"?",
"AMDGPU",
"::",
"S_OR_SAVEEXEC_B32",
":",
"AMDGPU",
"::",
"S_OR_SAVEEXEC_B64",
";",
"BuildMI",
"(",
"MBB",
",",
"MBBI",
",",
"DL",
",",
"TII",
"->",
"get",
"(",
"OrSaveExec",
")",
",",
"ScratchExecCopy",
")",
".",
"addImm",
"(",
"-",
"1",
")",
";",
"}",
"TII",
"->",
"loadRegFromStackSlot",
"(",
"MBB",
",",
"MBBI",
",",
"Reg",
".",
"VGPR",
",",
"Reg",
".",
"FI",
".",
"getValue",
"(",
")",
",",
"&",
"AMDGPU",
"::",
"VGPR_32RegClass",
",",
"&",
"TII",
"->",
"getRegisterInfo",
"(",
")",
")",
";",
"}",
"if",
"(",
"ScratchExecCopy",
"!=",
"AMDGPU",
"::",
"NoRegister",
")",
"{",
"unsigned",
"ExecMov",
"=",
"ST",
".",
"isWave32",
"(",
")",
"?",
"AMDGPU",
"::",
"S_MOV_B32",
":",
"AMDGPU",
"::",
"S_MOV_B64",
";",
"unsigned",
"Exec",
"=",
"ST",
".",
"isWave32",
"(",
")",
"?",
"AMDGPU",
"::",
"EXEC_LO",
":",
"AMDGPU",
"::",
"EXEC",
";",
"BuildMI",
"(",
"MBB",
",",
"MBBI",
",",
"DL",
",",
"TII",
"->",
"get",
"(",
"ExecMov",
")",
",",
"Exec",
")",
".",
"addReg",
"(",
"ScratchExecCopy",
")",
";",
"}",
"const",
"MachineFrameInfo",
"&",
"MFI",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
";",
"uint32_t",
"NumBytes",
"=",
"MFI",
".",
"getStackSize",
"(",
")",
";",
"uint32_t",
"RoundedSize",
"=",
"FuncInfo",
"->",
"isStackRealigned",
"(",
")",
"?",
"NumBytes",
"+",
"MFI",
".",
"getMaxAlignment",
"(",
")",
":",
"NumBytes",
";",
"if",
"(",
"RoundedSize",
"!=",
"0",
"&&",
"hasFP",
"(",
"MF",
")",
")",
"{",
"const",
"unsigned",
"StackPtrReg",
"=",
"FuncInfo",
"->",
"getStackPtrOffsetReg",
"(",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"MBBI",
",",
"DL",
",",
"TII",
"->",
"get",
"(",
"AMDGPU",
"::",
"S_SUB_U32",
")",
",",
"StackPtrReg",
")",
".",
"addReg",
"(",
"StackPtrReg",
")",
".",
"addImm",
"(",
"RoundedSize",
"*",
"ST",
".",
"getWavefrontSize",
"(",
")",
")",
".",
"setMIFlag",
"(",
"MachineInstr",
"::",
"FrameDestroy",
")",
";",
"}",
"}",
"</s>"
] | [
"Insert",
"epilog",
"code",
"into",
"the",
"function",
"."
] | [
"AMDGPU",
"SI",
"SI",
"SI",
"SI",
"AMDGPU::NoRegister",
"SI",
"SI",
"AMDGPU::NoRegister",
"AMDGPU::S_OR_SAVEEXEC_B32",
"AMDGPU::S_OR_SAVEEXEC_B64",
"1",
"AMDGPU::VGPR_32RegClass",
"AMDGPU::NoRegister",
"AMDGPU::S_MOV_B32",
"AMDGPU::S_MOV_B64",
"AMDGPU::EXEC_LO",
"AMDGPU::EXEC",
"0",
"AMDGPU::S_SUB_U32"
] | SIFrameLowering26 | emitEpilogue | AMDGPU | GPU | LLVM | 10,117 | 426 | 1 | [] |
[
"<s>",
"bool",
"R600InstrInfo",
"::",
"isPredicated",
"(",
"const",
"MachineInstr",
"*",
"MI",
")",
"const",
"{",
"int",
"idx",
"=",
"MI",
"->",
"findFirstPredOperandIdx",
"(",
")",
";",
"if",
"(",
"idx",
"<",
"0",
")",
"return",
"false",
";",
"unsigned",
"Reg",
"=",
"MI",
"->",
"getOperand",
"(",
"idx",
")",
".",
"getReg",
"(",
")",
";",
"switch",
"(",
"Reg",
")",
"{",
"default",
":",
"return",
"false",
";",
"case",
"AMDGPU",
"::",
"PRED_SEL_ONE",
":",
"case",
"AMDGPU",
"::",
"PRED_SEL_ZERO",
":",
"case",
"AMDGPU",
"::",
"PREDICATE_BIT",
":",
"return",
"true",
";",
"}",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"the",
"instruction",
"is",
"already",
"predicated",
"."
] | [
"AMDGPU",
"R600",
"0",
"AMDGPU::PRED_SEL_ONE",
"AMDGPU::PRED_SEL_ZERO",
"AMDGPU::PREDICATE_BIT"
] | R600InstrInfo (2) | isPredicated | AMDGPU | GPU | LLVM | 10,118 | 74 | 1 | [] |
[
"<s>",
"void",
"AVRPassConfig",
"::",
"addPreSched2",
"(",
")",
"{",
"addPass",
"(",
"createAVRRelaxMemPass",
"(",
")",
")",
";",
"addPass",
"(",
"createAVRExpandPseudoPass",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"This",
"method",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"after",
"prolog-epilog",
"insertion",
"and",
"before",
"the",
"second",
"instruction",
"scheduling",
"pass",
"."
] | [
"AVR",
"AVR",
"AVR",
"AVR"
] | AVRTargetMachine | addPreSched2 | AVR | MPU | LLVM | 10,119 | 22 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"getPassName",
"(",
")",
"const",
"override",
"{",
"return",
"AARCH64_COLLECT_LOH_NAME",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"AArch64"
] | AArch64CollectLOH | getPassName | AArch64 | CPU | LLVM | 10,120 | 13 | 1 | [] |
[
"<s>",
"bool",
"AArch64DummyPA",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"STI",
"=",
"&",
"MF",
".",
"getSubtarget",
"<",
"AArch64Subtarget",
">",
"(",
")",
";",
"TII",
"=",
"STI",
"->",
"getInstrInfo",
"(",
")",
";",
"TRI",
"=",
"STI",
"->",
"getRegisterInfo",
"(",
")",
";",
"bool",
"Changed",
"=",
"false",
";",
"for",
"(",
"auto",
"&",
"MBB",
":",
"MF",
")",
"{",
"for",
"(",
"auto",
"MBBI",
"=",
"MBB",
".",
"begin",
"(",
")",
",",
"End",
"=",
"MBB",
".",
"end",
"(",
")",
";",
"MBBI",
"!=",
"End",
";",
")",
"{",
"auto",
"&",
"MI",
"=",
"*",
"MBBI",
"++",
";",
"switch",
"(",
"MI",
".",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"break",
";",
"case",
"AArch64",
"::",
"PACIA",
":",
"case",
"AArch64",
"::",
"PACIB",
":",
"case",
"AArch64",
"::",
"PACDA",
":",
"case",
"AArch64",
"::",
"PACDB",
":",
"case",
"AArch64",
"::",
"AUTIA",
":",
"case",
"AArch64",
"::",
"AUTIB",
":",
"case",
"AArch64",
"::",
"AUTDA",
":",
"case",
"AArch64",
"::",
"AUTDB",
":",
"Changed",
"=",
"convertBasicPAInstr",
"(",
"MBB",
",",
"MI",
")",
"|",
"Changed",
";",
"break",
";",
"case",
"AArch64",
"::",
"PACIASP",
":",
"case",
"AArch64",
"::",
"PACIBSP",
":",
"case",
"AArch64",
"::",
"AUTIASP",
":",
"case",
"AArch64",
"::",
"AUTIBSP",
":",
"Changed",
"=",
"convertSpPAInstr",
"(",
"MBB",
",",
"MI",
")",
"|",
"Changed",
";",
"break",
";",
"case",
"AArch64",
"::",
"RETAA",
":",
"case",
"AArch64",
"::",
"RETAB",
":",
"Changed",
"=",
"convertRetPAInstr",
"(",
"MBB",
",",
"MI",
")",
"|",
"Changed",
";",
"break",
";",
"case",
"AArch64",
"::",
"PACGA",
":",
"case",
"AArch64",
"::",
"PACDZA",
":",
"case",
"AArch64",
"::",
"PACDZB",
":",
"case",
"AArch64",
"::",
"PACIZA",
":",
"case",
"AArch64",
"::",
"PACIZB",
":",
"case",
"AArch64",
"::",
"PACIA1716",
":",
"case",
"AArch64",
"::",
"PACIAZ",
":",
"case",
"AArch64",
"::",
"PACIB1716",
":",
"case",
"AArch64",
"::",
"PACIBZ",
":",
"case",
"AArch64",
"::",
"AUTDZA",
":",
"case",
"AArch64",
"::",
"AUTDZB",
":",
"case",
"AArch64",
"::",
"AUTIZA",
":",
"case",
"AArch64",
"::",
"AUTIZB",
":",
"case",
"AArch64",
"::",
"AUTIA1716",
":",
"case",
"AArch64",
"::",
"AUTIAZ",
":",
"case",
"AArch64",
"::",
"AUTIB1716",
":",
"case",
"AArch64",
"::",
"AUTIBZ",
":",
"llvm_unreachable",
"(",
"\"unsupported\"",
")",
";",
"}",
"}",
"}",
"return",
"Changed",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"AArch64",
"AArch64",
"AArch64",
"AArch64::PACIA",
"AArch64::PACIB",
"AArch64::PACDA",
"AArch64::PACDB",
"AArch64::AUTIA",
"AArch64::AUTIB",
"AArch64::AUTDA",
"AArch64::AUTDB",
"AArch64::PACIASP",
"AArch64::PACIBSP",
"AArch64::AUTIASP",
"AArch64::AUTIBSP",
"AArch64::RETAA",
"AArch64::RETAB",
"AArch64::PACGA",
"AArch64::PACDZA",
"AArch64::PACDZB",
"AArch64::PACIZA",
"AArch64::PACIZB",
"AArch64::PACIA1716",
"AArch64::PACIAZ",
"AArch64::PACIB1716",
"AArch64::PACIBZ",
"AArch64::AUTDZA",
"AArch64::AUTDZB",
"AArch64::AUTIZA",
"AArch64::AUTIZB",
"AArch64::AUTIA1716",
"AArch64::AUTIAZ",
"AArch64::AUTIB1716",
"AArch64::AUTIBZ",
"\"unsupported\""
] | AArch64DummyPA | runOnMachineFunction | AArch64 | CPU | LLVM | 10,121 | 304 | 1 | [] |
[
"<s>",
"static",
"bool",
"aarch64_handle_attr_isa_flags",
"(",
"char",
"*",
"str",
",",
"const",
"char",
"*",
"pragma_or_attr",
")",
"{",
"enum",
"aarch64_parse_opt_result",
"parse_res",
";",
"unsigned",
"long",
"isa_flags",
"=",
"aarch64_isa_flags",
";",
"if",
"(",
"strncmp",
"(",
"\"+nothing\"",
",",
"str",
",",
"8",
")",
"==",
"0",
")",
"{",
"isa_flags",
"=",
"0",
";",
"str",
"+=",
"8",
";",
"}",
"parse_res",
"=",
"aarch64_parse_extension",
"(",
"str",
",",
"&",
"isa_flags",
")",
";",
"if",
"(",
"parse_res",
"==",
"AARCH64_PARSE_OK",
")",
"{",
"aarch64_isa_flags",
"=",
"isa_flags",
";",
"return",
"true",
";",
"}",
"switch",
"(",
"parse_res",
")",
"{",
"case",
"AARCH64_PARSE_MISSING_ARG",
":",
"error",
"(",
"\"missing feature modifier in target %s %qs\"",
",",
"pragma_or_attr",
",",
"str",
")",
";",
"break",
";",
"case",
"AARCH64_PARSE_INVALID_FEATURE",
":",
"error",
"(",
"\"invalid feature modifier in target %s %qs\"",
",",
"pragma_or_attr",
",",
"str",
")",
";",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"Parse",
"an",
"architecture",
"extensions",
"target",
"attribute",
"string",
"specified",
"in",
"STR",
".",
"For",
"example",
"``",
"+fp+nosimd",
"''",
".",
"Show",
"any",
"errors",
"if",
"needed",
".",
"Return",
"TRUE",
"if",
"successful",
".",
"Update",
"aarch64_isa_flags",
"to",
"reflect",
"the",
"ISA",
"features",
"modified",
".",
"PRAGMA_OR_ATTR",
"is",
"used",
"in",
"potential",
"error",
"messages",
"."
] | [
"aarch64",
"\"+nothing\"",
"8",
"0",
"0",
"8",
"\"missing feature modifier in target %s %qs\"",
"\"invalid feature modifier in target %s %qs\""
] | aarch643 | aarch64_handle_attr_isa_flags | aarch64 | CPU | GCC | 10,122 | 116 | 1 | [] |
[
"<s>",
"void",
"arm_gen_unlikely_cbranch",
"(",
"enum",
"rtx_code",
"code",
",",
"machine_mode",
"cc_mode",
",",
"rtx",
"label_ref",
")",
"{",
"rtx",
"x",
";",
"x",
"=",
"gen_rtx_fmt_ee",
"(",
"code",
",",
"VOIDmode",
",",
"gen_rtx_REG",
"(",
"cc_mode",
",",
"CC_REGNUM",
")",
",",
"const0_rtx",
")",
";",
"x",
"=",
"gen_rtx_IF_THEN_ELSE",
"(",
"VOIDmode",
",",
"x",
",",
"gen_rtx_LABEL_REF",
"(",
"VOIDmode",
",",
"label_ref",
")",
",",
"pc_rtx",
")",
";",
"emit_unlikely_jump",
"(",
"gen_rtx_SET",
"(",
"pc_rtx",
",",
"x",
")",
")",
";",
"}",
"</s>"
] | [
"Generate",
"RTL",
"for",
"a",
"conditional",
"branch",
"with",
"rtx",
"comparison",
"CODE",
"in",
"mode",
"CC_MODE",
".",
"The",
"destination",
"of",
"the",
"unlikely",
"conditional",
"branch",
"is",
"LABEL_REF",
"."
] | [
"arm"
] | arm | arm_gen_unlikely_cbranch | arm | CPU | GCC | 10,123 | 64 | 1 | [] |
[
"<s>",
"static",
"int",
"elf_dcachebsize",
"(",
"void",
")",
"{",
"int",
"fd",
";",
"fd",
"=",
"open",
"(",
"\"/proc/self/auxv\"",
",",
"O_RDONLY",
")",
";",
"if",
"(",
"fd",
"!=",
"-",
"1",
")",
"{",
"char",
"buf",
"[",
"1024",
"]",
";",
"ElfW",
"(",
"auxv_t",
")",
"*",
"av",
";",
"ssize_t",
"n",
";",
"n",
"=",
"read",
"(",
"fd",
",",
"buf",
",",
"sizeof",
"(",
"buf",
")",
")",
";",
"close",
"(",
"fd",
")",
";",
"if",
"(",
"n",
">",
"0",
")",
"{",
"for",
"(",
"av",
"=",
"(",
"ElfW",
"(",
"auxv_t",
")",
"*",
")",
"buf",
";",
"av",
"->",
"a_type",
"!=",
"AT_NULL",
";",
"++",
"av",
")",
"switch",
"(",
"av",
"->",
"a_type",
")",
"{",
"case",
"AT_DCACHEBSIZE",
":",
"return",
"av",
"->",
"a_un",
".",
"a_val",
";",
"default",
":",
"break",
";",
"}",
"}",
"}",
"</s>"
] | [
"Returns",
"AT_DCACHEBSIZE",
"if",
"present",
",",
"otherwise",
"generic",
"32",
"."
] | [
"powerpcspe",
"\"/proc/self/auxv\"",
"1",
"1024",
"0"
] | driver-powerpcspe | elf_dcachebsize | powerpcspe | CPU | GCC | 10,124 | 115 | 1 | [] |
[
"<s>",
"TargetPassConfig",
"*",
"RISCVTargetMachine",
"::",
"createPassConfig",
"(",
"PassManagerBase",
"&",
"PM",
")",
"{",
"return",
"new",
"TargetPassConfig",
"(",
"*",
"this",
",",
"PM",
")",
";",
"}",
"</s>"
] | [
"Create",
"a",
"pass",
"configuration",
"object",
"to",
"be",
"used",
"by",
"addPassToEmitX",
"methods",
"for",
"generating",
"a",
"pipeline",
"of",
"CodeGen",
"passes",
"."
] | [
"RISCV",
"RISCV"
] | RISCVTargetMachine11 | createPassConfig | RISCV | CPU | LLVM | 10,125 | 22 | 1 | [] |
[
"<s>",
"bool",
"SITargetLowering",
"::",
"mayBeEmittedAsTailCall",
"(",
"const",
"CallInst",
"*",
"CI",
")",
"const",
"{",
"if",
"(",
"!",
"CI",
"->",
"isTailCall",
"(",
")",
")",
"return",
"false",
";",
"const",
"Function",
"*",
"ParentFn",
"=",
"CI",
"->",
"getParent",
"(",
")",
"->",
"getParent",
"(",
")",
";",
"if",
"(",
"AMDGPU",
"::",
"isEntryFunctionCC",
"(",
"ParentFn",
"->",
"getCallingConv",
"(",
")",
")",
")",
"return",
"false",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"the",
"target",
"may",
"be",
"able",
"emit",
"the",
"call",
"instruction",
"as",
"a",
"tail",
"call",
"."
] | [
"AMDGPU",
"SI",
"AMDGPU::isEntryFunctionCC"
] | SIISelLowering10 | mayBeEmittedAsTailCall | AMDGPU | GPU | LLVM | 10,126 | 59 | 1 | [] |
[
"<s>",
"unsigned",
"AMDGPUCFGStructurizer",
"::",
"getLoopDepth",
"(",
"MachineLoop",
"*",
"LoopRep",
")",
"{",
"return",
"LoopRep",
"?",
"LoopRep",
"->",
"getLoopDepth",
"(",
")",
":",
"0",
";",
"}",
"</s>"
] | [
"Return",
"the",
"loop",
"nesting",
"level",
"of",
"the",
"specified",
"block",
"."
] | [
"R600",
"0"
] | AMDILCFGStructurizer1 | getLoopDepth | R600 | GPU | LLVM | 10,127 | 22 | 1 | [] |
[
"<s>",
"void",
"MipsSEInstrInfo",
"::",
"copyPhysReg",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"I",
",",
"DebugLoc",
"DL",
",",
"unsigned",
"DestReg",
",",
"unsigned",
"SrcReg",
",",
"bool",
"KillSrc",
")",
"const",
"{",
"unsigned",
"Opc",
"=",
"0",
",",
"ZeroReg",
"=",
"0",
";",
"if",
"(",
"Mips",
"::",
"GPR32RegClass",
".",
"contains",
"(",
"DestReg",
")",
")",
"{",
"if",
"(",
"Mips",
"::",
"GPR32RegClass",
".",
"contains",
"(",
"SrcReg",
")",
")",
"{",
"Opc",
"=",
"Mips",
"::",
"ADDu",
",",
"ZeroReg",
"=",
"Mips",
"::",
"ZERO",
";",
"}",
"else",
"if",
"(",
"Mips",
"::",
"FGR32RegClass",
".",
"contains",
"(",
"SrcReg",
")",
")",
"{",
"Opc",
"=",
"Mips",
"::",
"MFC1",
";",
"}",
"}",
"else",
"if",
"(",
"Mips",
"::",
"GPR32RegClass",
".",
"contains",
"(",
"SrcReg",
")",
")",
"{",
"if",
"(",
"Mips",
"::",
"FGR32RegClass",
".",
"contains",
"(",
"DestReg",
")",
")",
"{",
"Opc",
"=",
"Mips",
"::",
"MTC1",
";",
"}",
"}",
"else",
"if",
"(",
"Mips",
"::",
"FGR32RegClass",
".",
"contains",
"(",
"DestReg",
",",
"SrcReg",
")",
")",
"{",
"Opc",
"=",
"Mips",
"::",
"FMOV_S",
";",
"}",
"else",
"if",
"(",
"Mips",
"::",
"AFGR64RegClass",
".",
"contains",
"(",
"DestReg",
",",
"SrcReg",
")",
")",
"{",
"Opc",
"=",
"Mips",
"::",
"FMOV_D32",
";",
"}",
"assert",
"(",
"Opc",
"&&",
"\"Cannot copy registers\"",
")",
";",
"MachineInstrBuilder",
"MIB",
"=",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"Opc",
")",
")",
";",
"if",
"(",
"DestReg",
")",
"MIB",
".",
"addReg",
"(",
"DestReg",
",",
"RegState",
"::",
"Define",
")",
";",
"if",
"(",
"SrcReg",
")",
"MIB",
".",
"addReg",
"(",
"SrcReg",
",",
"getKillRegState",
"(",
"KillSrc",
")",
")",
";",
"if",
"(",
"ZeroReg",
")",
"MIB",
".",
"addReg",
"(",
"ZeroReg",
")",
";",
"}",
"</s>"
] | [
"}",
"Branch",
"Analysis",
"&",
"Modification"
] | [
"Mips",
"Mips",
"0",
"0",
"Mips::GPR32RegClass",
"Mips::GPR32RegClass",
"Mips::ADDu",
"Mips::ZERO",
"Mips::FGR32RegClass",
"Mips::MFC1",
"Mips::GPR32RegClass",
"Mips::FGR32RegClass",
"Mips::MTC1",
"Mips::FGR32RegClass",
"Mips::FMOV_S",
"Mips::AFGR64RegClass",
"Mips::FMOV_D32",
"\"Cannot copy registers\""
] | MipsSEInstrInfo25 | copyPhysReg | Mips | CPU | LLVM | 10,128 | 239 | 1 | [] |
[
"<s>",
"const",
"RegisterBankInfo",
"*",
"PPCSubtarget",
"::",
"getRegBankInfo",
"(",
")",
"const",
"{",
"return",
"RegBankInfo",
".",
"get",
"(",
")",
";",
"}",
"</s>"
] | [
"If",
"the",
"information",
"for",
"the",
"register",
"banks",
"is",
"available",
",",
"return",
"it",
"."
] | [
"PowerPC",
"PPC"
] | PPCSubtarget13 | getRegBankInfo | PowerPC | CPU | LLVM | 10,129 | 18 | 1 | [] |
[
"<s>",
"void",
"PatmosAsmPrinter",
"::",
"emitFunctionBodyEnd",
"(",
")",
"{",
"OutStreamer",
"->",
"emitLabel",
"(",
"CurrCodeEnd",
")",
";",
"}",
"</s>"
] | [
"Targets",
"can",
"override",
"this",
"to",
"emit",
"stuff",
"after",
"the",
"last",
"basic",
"block",
"in",
"the",
"function",
"."
] | [
"Patmos",
"Patmos"
] | PatmosAsmPrinter1 | emitFunctionBodyEnd | Patmos | VLIW | LLVM | 10,130 | 15 | 1 | [] |
[
"<s>",
"static",
"rtx_insn",
"*",
"get_next_active_insn",
"(",
"rtx_insn",
"*",
"insn",
",",
"rtx_insn",
"*",
"tail",
")",
"{",
"if",
"(",
"insn",
"==",
"NULL_RTX",
"||",
"insn",
"==",
"tail",
")",
"return",
"NULL",
";",
"while",
"(",
"1",
")",
"{",
"insn",
"=",
"NEXT_INSN",
"(",
"insn",
")",
";",
"if",
"(",
"insn",
"==",
"NULL_RTX",
"||",
"insn",
"==",
"tail",
")",
"return",
"NULL",
";",
"if",
"(",
"CALL_P",
"(",
"insn",
")",
"||",
"JUMP_P",
"(",
"insn",
")",
"||",
"JUMP_TABLE_DATA_P",
"(",
"insn",
")",
"||",
"(",
"NONJUMP_INSN_P",
"(",
"insn",
")",
"&&",
"GET_CODE",
"(",
"PATTERN",
"(",
"insn",
")",
")",
"!=",
"USE",
"&&",
"GET_CODE",
"(",
"PATTERN",
"(",
"insn",
")",
")",
"!=",
"CLOBBER",
"&&",
"INSN_CODE",
"(",
"insn",
")",
"!=",
"CODE_FOR_stack_tie",
")",
")",
"break",
";",
"}",
"return",
"insn",
";",
"}",
"</s>"
] | [
"Return",
"the",
"next",
"insn",
"after",
"INSN",
"that",
"is",
"found",
"before",
"TAIL",
"is",
"reached",
",",
"skipping",
"any",
"``",
"non-active",
"''",
"insns",
"-",
"insns",
"that",
"will",
"not",
"actually",
"occupy",
"an",
"issue",
"slot",
".",
"Return",
"NULL_RTX",
"if",
"such",
"an",
"insn",
"is",
"not",
"found",
"."
] | [
"rs6000",
"1"
] | rs6000 | get_next_active_insn | rs6000 | CPU | GCC | 10,131 | 110 | 1 | [] |
[
"<s>",
"bool",
"AMDGPUFrameLowering",
"::",
"hasFP",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"return",
"false",
";",
"}",
"</s>"
] | [
"hasFP",
"-",
"Return",
"true",
"if",
"the",
"specified",
"function",
"should",
"have",
"a",
"dedicated",
"frame",
"pointer",
"register",
"."
] | [
"AMDGPU",
"AMDGPU"
] | AMDGPUFrameLowering (2) | hasFP | AMDGPU | GPU | LLVM | 10,132 | 16 | 1 | [] |
[
"<s>",
"const",
"MCPhysReg",
"*",
"PPCRegisterInfo",
"::",
"getCalleeSavedRegs",
"(",
"const",
"MachineFunction",
"*",
"MF",
")",
"const",
"{",
"const",
"PPCSubtarget",
"&",
"Subtarget",
"=",
"MF",
"->",
"getSubtarget",
"<",
"PPCSubtarget",
">",
"(",
")",
";",
"if",
"(",
"MF",
"->",
"getFunction",
"(",
")",
".",
"getCallingConv",
"(",
")",
"==",
"CallingConv",
"::",
"AnyReg",
")",
"{",
"if",
"(",
"Subtarget",
".",
"hasVSX",
"(",
")",
")",
"return",
"CSR_64_AllRegs_VSX_SaveList",
";",
"if",
"(",
"Subtarget",
".",
"hasAltivec",
"(",
")",
")",
"return",
"CSR_64_AllRegs_Altivec_SaveList",
";",
"return",
"CSR_64_AllRegs_SaveList",
";",
"}",
"if",
"(",
"TM",
".",
"isPPC64",
"(",
")",
"&&",
"MF",
"->",
"getInfo",
"<",
"PPCFunctionInfo",
">",
"(",
")",
"->",
"isSplitCSR",
"(",
")",
")",
"return",
"CSR_SRV464_TLS_PE_SaveList",
";",
"bool",
"SaveR2",
"=",
"MF",
"->",
"getRegInfo",
"(",
")",
".",
"isAllocatable",
"(",
"PPC",
"::",
"X2",
")",
";",
"if",
"(",
"MF",
"->",
"getFunction",
"(",
")",
".",
"getCallingConv",
"(",
")",
"==",
"CallingConv",
"::",
"Cold",
")",
"{",
"if",
"(",
"TM",
".",
"isPPC64",
"(",
")",
")",
"{",
"if",
"(",
"Subtarget",
".",
"hasAltivec",
"(",
")",
")",
"return",
"SaveR2",
"?",
"CSR_SVR64_ColdCC_R2_Altivec_SaveList",
":",
"CSR_SVR64_ColdCC_Altivec_SaveList",
";",
"return",
"SaveR2",
"?",
"CSR_SVR64_ColdCC_R2_SaveList",
":",
"CSR_SVR64_ColdCC_SaveList",
";",
"}",
"if",
"(",
"Subtarget",
".",
"hasAltivec",
"(",
")",
")",
"return",
"CSR_SVR32_ColdCC_Altivec_SaveList",
";",
"else",
"if",
"(",
"Subtarget",
".",
"hasSPE",
"(",
")",
")",
"return",
"CSR_SVR32_ColdCC_SPE_SaveList",
";",
"return",
"CSR_SVR32_ColdCC_SaveList",
";",
"}",
"if",
"(",
"TM",
".",
"isPPC64",
"(",
")",
")",
"{",
"if",
"(",
"Subtarget",
".",
"hasAltivec",
"(",
")",
")",
"return",
"SaveR2",
"?",
"CSR_SVR464_R2_Altivec_SaveList",
":",
"CSR_SVR464_Altivec_SaveList",
";",
"return",
"SaveR2",
"?",
"CSR_SVR464_R2_SaveList",
":",
"CSR_SVR464_SaveList",
";",
"}",
"if",
"(",
"Subtarget",
".",
"hasAltivec",
"(",
")",
")",
"return",
"CSR_SVR432_Altivec_SaveList",
";",
"else",
"if",
"(",
"Subtarget",
".",
"hasSPE",
"(",
")",
")",
"return",
"CSR_SVR432_SPE_SaveList",
";",
"return",
"CSR_SVR432_SaveList",
";",
"}",
"</s>"
] | [
"Code",
"Generation",
"virtual",
"methods",
"..."
] | [
"PowerPC",
"PPC",
"PPC",
"PPC",
"PPC",
"PPC",
"PPC::X2",
"PPC",
"PPC"
] | PPCRegisterInfo11 | getCalleeSavedRegs | PowerPC | CPU | LLVM | 10,133 | 246 | 1 | [] |
[
"<s>",
"bool",
"ARMBaseInstrInfo",
"::",
"isProfitableToIfCvt",
"(",
"MachineBasicBlock",
"&",
"TBB",
",",
"unsigned",
"TCycles",
",",
"unsigned",
"TExtra",
",",
"MachineBasicBlock",
"&",
"FBB",
",",
"unsigned",
"FCycles",
",",
"unsigned",
"FExtra",
",",
"BranchProbability",
"Probability",
")",
"const",
"{",
"if",
"(",
"!",
"TCycles",
")",
"return",
"false",
";",
"const",
"unsigned",
"ScalingUpFactor",
"=",
"1024",
";",
"unsigned",
"PredCost",
"=",
"(",
"TCycles",
"+",
"FCycles",
"+",
"TExtra",
"+",
"FExtra",
")",
"*",
"ScalingUpFactor",
";",
"unsigned",
"UnpredCost",
";",
"if",
"(",
"!",
"Subtarget",
".",
"hasBranchPredictor",
"(",
")",
")",
"{",
"unsigned",
"NotTakenBranchCost",
"=",
"1",
";",
"unsigned",
"TakenBranchCost",
"=",
"Subtarget",
".",
"getMispredictionPenalty",
"(",
")",
";",
"unsigned",
"TUnpredCycles",
",",
"FUnpredCycles",
";",
"if",
"(",
"!",
"FCycles",
")",
"{",
"TUnpredCycles",
"=",
"TCycles",
"+",
"NotTakenBranchCost",
";",
"FUnpredCycles",
"=",
"TakenBranchCost",
";",
"}",
"else",
"{",
"TUnpredCycles",
"=",
"TCycles",
"+",
"TakenBranchCost",
";",
"FUnpredCycles",
"=",
"FCycles",
"+",
"NotTakenBranchCost",
";",
"}",
"unsigned",
"TUnpredCost",
"=",
"Probability",
".",
"scale",
"(",
"TUnpredCycles",
"*",
"ScalingUpFactor",
")",
";",
"unsigned",
"FUnpredCost",
"=",
"Probability",
".",
"getCompl",
"(",
")",
".",
"scale",
"(",
"FUnpredCycles",
"*",
"ScalingUpFactor",
")",
";",
"UnpredCost",
"=",
"TUnpredCost",
"+",
"FUnpredCost",
";",
"if",
"(",
"Subtarget",
".",
"isThumb2",
"(",
")",
"&&",
"TCycles",
"+",
"FCycles",
">",
"4",
")",
"{",
"PredCost",
"+=",
"(",
"(",
"TCycles",
"+",
"FCycles",
"-",
"4",
")",
"/",
"4",
")",
"*",
"ScalingUpFactor",
";",
"}",
"}",
"else",
"{",
"unsigned",
"TUnpredCost",
"=",
"Probability",
".",
"scale",
"(",
"TCycles",
"*",
"ScalingUpFactor",
")",
";",
"unsigned",
"FUnpredCost",
"=",
"Probability",
".",
"getCompl",
"(",
")",
".",
"scale",
"(",
"FCycles",
"*",
"ScalingUpFactor",
")",
";",
"UnpredCost",
"=",
"TUnpredCost",
"+",
"FUnpredCost",
";",
"UnpredCost",
"+=",
"1",
"*",
"ScalingUpFactor",
";",
"UnpredCost",
"+=",
"Subtarget",
".",
"getMispredictionPenalty",
"(",
")",
"*",
"ScalingUpFactor",
"/",
"10",
";",
"}",
"return",
"PredCost",
"<=",
"UnpredCost",
";",
"}",
"</s>"
] | [
"Second",
"variant",
"of",
"isProfitableToIfCvt",
"."
] | [
"ARM",
"ARM",
"1024",
"1",
"4",
"4",
"4",
"1",
"10"
] | ARMBaseInstrInfo37 | isProfitableToIfCvt | ARM | CPU | LLVM | 10,134 | 251 | 1 | [] |
[
"<s>",
"static",
"tree",
"arm_promoted_type",
"(",
"const_tree",
"t",
")",
"{",
"if",
"(",
"SCALAR_FLOAT_TYPE_P",
"(",
"t",
")",
"&&",
"TYPE_PRECISION",
"(",
"t",
")",
"==",
"16",
")",
"return",
"float_type_node",
";",
"return",
"NULL_TREE",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_PROMOTED_TYPE",
"."
] | [
"arm",
"16"
] | arm4 | arm_promoted_type | arm | CPU | GCC | 10,135 | 29 | 1 | [] |
[
"<s>",
"MachineInstr",
"*",
"SPUInstrInfo",
"::",
"foldMemoryOperandImpl",
"(",
"MachineFunction",
"&",
"MF",
",",
"MachineInstr",
"*",
"MI",
",",
"const",
"SmallVectorImpl",
"<",
"unsigned",
">",
"&",
"Ops",
",",
"int",
"FrameIndex",
")",
"const",
"{",
"if",
"(",
"Ops",
".",
"size",
"(",
")",
"!=",
"1",
")",
"return",
"0",
";",
"unsigned",
"OpNum",
"=",
"Ops",
"[",
"0",
"]",
";",
"unsigned",
"Opc",
"=",
"MI",
"->",
"getOpcode",
"(",
")",
";",
"MachineInstr",
"*",
"NewMI",
"=",
"0",
";",
"switch",
"(",
"Opc",
")",
"{",
"case",
"SPU",
"::",
"ORv16i8",
":",
"case",
"SPU",
"::",
"ORv8i16",
":",
"case",
"SPU",
"::",
"ORv4i32",
":",
"case",
"SPU",
"::",
"ORv2i64",
":",
"case",
"SPU",
"::",
"ORr8",
":",
"case",
"SPU",
"::",
"ORr16",
":",
"case",
"SPU",
"::",
"ORr32",
":",
"case",
"SPU",
"::",
"ORr64",
":",
"case",
"SPU",
"::",
"ORf32",
":",
"case",
"SPU",
"::",
"ORf64",
":",
"if",
"(",
"OpNum",
"==",
"0",
")",
"{",
"unsigned",
"InReg",
"=",
"MI",
"->",
"getOperand",
"(",
"1",
")",
".",
"getReg",
"(",
")",
";",
"bool",
"isKill",
"=",
"MI",
"->",
"getOperand",
"(",
"1",
")",
".",
"isKill",
"(",
")",
";",
"if",
"(",
"FrameIndex",
"<",
"SPUFrameInfo",
"::",
"maxFrameOffset",
"(",
")",
")",
"{",
"MachineInstrBuilder",
"MIB",
"=",
"BuildMI",
"(",
"MF",
",",
"MI",
"->",
"getDebugLoc",
"(",
")",
",",
"get",
"(",
"SPU",
"::",
"STQDr32",
")",
")",
";",
"MIB",
".",
"addReg",
"(",
"InReg",
",",
"false",
",",
"false",
",",
"isKill",
")",
";",
"NewMI",
"=",
"addFrameReference",
"(",
"MIB",
",",
"FrameIndex",
")",
";",
"}",
"}",
"else",
"{",
"unsigned",
"OutReg",
"=",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
";",
"bool",
"isDead",
"=",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"isDead",
"(",
")",
";",
"MachineInstrBuilder",
"MIB",
"=",
"BuildMI",
"(",
"MF",
",",
"MI",
"->",
"getDebugLoc",
"(",
")",
",",
"get",
"(",
"Opc",
")",
")",
";",
"MIB",
".",
"addReg",
"(",
"OutReg",
",",
"true",
",",
"false",
",",
"false",
",",
"isDead",
")",
";",
"Opc",
"=",
"(",
"FrameIndex",
"<",
"SPUFrameInfo",
"::",
"maxFrameOffset",
"(",
")",
")",
"?",
"SPU",
"::",
"STQDr32",
":",
"SPU",
"::",
"STQXr32",
";",
"NewMI",
"=",
"addFrameReference",
"(",
"MIB",
",",
"FrameIndex",
")",
";",
"break",
";",
"}",
"}",
"return",
"NewMI",
";",
"}",
"</s>"
] | [
"foldMemoryOperand",
"-",
"Same",
"as",
"the",
"previous",
"version",
"except",
"it",
"allows",
"folding",
"of",
"any",
"load",
"and",
"store",
"from",
"/",
"to",
"any",
"address",
",",
"not",
"just",
"from",
"a",
"specific",
"stack",
"slot",
"."
] | [
"CellSPU",
"SPU",
"1",
"0",
"0",
"0",
"SPU::ORv16i8",
"SPU::ORv8i16",
"SPU::ORv4i32",
"SPU::ORv2i64",
"SPU::ORr8",
"SPU::ORr16",
"SPU::ORr32",
"SPU::ORr64",
"SPU::ORf32",
"SPU::ORf64",
"0",
"1",
"1",
"SPU",
"SPU::STQDr32",
"0",
"0",
"SPU",
"SPU::STQDr32",
"SPU::STQXr32"
] | SPUInstrInfo9 | foldMemoryOperandImpl | CellSPU | MPU | LLVM | 10,136 | 310 | 1 | [] |
[
"<s>",
"const",
"MCExpr",
"*",
"WebAssemblyAsmPrinter",
"::",
"lowerConstant",
"(",
"const",
"Constant",
"*",
"CV",
")",
"{",
"if",
"(",
"const",
"GlobalValue",
"*",
"GV",
"=",
"dyn_cast",
"<",
"GlobalValue",
">",
"(",
"CV",
")",
")",
"if",
"(",
"GV",
"->",
"getValueType",
"(",
")",
"->",
"isFunctionTy",
"(",
")",
")",
"return",
"MCSymbolRefExpr",
"::",
"create",
"(",
"getSymbol",
"(",
"GV",
")",
",",
"MCSymbolRefExpr",
"::",
"VK_WebAssembly_FUNCTION",
",",
"OutContext",
")",
";",
"return",
"AsmPrinter",
"::",
"lowerConstant",
"(",
"CV",
")",
";",
"}",
"</s>"
] | [
"Lower",
"the",
"specified",
"LLVM",
"Constant",
"to",
"an",
"MCExpr",
"."
] | [
"WebAssembly",
"WebAssembly",
"WebAssembly"
] | WebAssemblyAsmPrinter14 | lowerConstant | WebAssembly | Virtual ISA | LLVM | 10,137 | 66 | 1 | [] |
[
"<s>",
"unsigned",
"AMDGPURegisterBankInfo",
"::",
"getBreakDownCost",
"(",
"const",
"ValueMapping",
"&",
"ValMapping",
",",
"const",
"RegisterBank",
"*",
"CurBank",
")",
"const",
"{",
"if",
"(",
"ValMapping",
".",
"NumBreakDowns",
">=",
"2",
"||",
"ValMapping",
".",
"BreakDown",
"[",
"0",
"]",
".",
"Length",
">=",
"64",
")",
"return",
"10",
";",
"assert",
"(",
"ValMapping",
".",
"NumBreakDowns",
"==",
"2",
"&&",
"ValMapping",
".",
"BreakDown",
"[",
"0",
"]",
".",
"Length",
"==",
"32",
"&&",
"ValMapping",
".",
"BreakDown",
"[",
"0",
"]",
".",
"StartIdx",
"==",
"0",
"&&",
"ValMapping",
".",
"BreakDown",
"[",
"1",
"]",
".",
"Length",
"==",
"32",
"&&",
"ValMapping",
".",
"BreakDown",
"[",
"1",
"]",
".",
"StartIdx",
"==",
"32",
"&&",
"ValMapping",
".",
"BreakDown",
"[",
"0",
"]",
".",
"RegBank",
"==",
"ValMapping",
".",
"BreakDown",
"[",
"1",
"]",
".",
"RegBank",
")",
";",
"return",
"1",
";",
"}",
"</s>"
] | [
"Get",
"the",
"cost",
"of",
"using",
"ValMapping",
"to",
"decompose",
"a",
"register",
"."
] | [
"AMDGPU",
"AMDGPU",
"2",
"0",
"64",
"10",
"2",
"0",
"32",
"0",
"0",
"1",
"32",
"1",
"32",
"0",
"1",
"1"
] | AMDGPURegisterBankInfo (2) | getBreakDownCost | AMDGPU | GPU | LLVM | 10,138 | 114 | 1 | [] |
[
"<s>",
"bool",
"AArch64PassConfig",
"::",
"addPreRegAlloc",
"(",
")",
"{",
"if",
"(",
"TM",
"->",
"getOptLevel",
"(",
")",
"!=",
"CodeGenOpt",
"::",
"None",
"&&",
"EnableAdvSIMDScalar",
")",
"addPass",
"(",
"createAArch64AdvSIMDScalar",
"(",
")",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"This",
"method",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"immediately",
"before",
"register",
"allocation",
"."
] | [
"AArch64",
"AArch64",
"AArch64"
] | AArch64TargetMachine3 | addPreRegAlloc | AArch64 | CPU | LLVM | 10,139 | 32 | 1 | [] |
[
"<s>",
"StringRef",
"getPassName",
"(",
")",
"const",
"override",
"{",
"return",
"\"TPC Set Spill Base\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"TPC",
"\"TPC Set Spill Base\""
] | TPCSetSpillBase | getPassName | TPC | Virtual ISA | LLVM | 10,140 | 11 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"output_move_vfp",
"(",
"rtx",
"*",
"operands",
")",
"{",
"rtx",
"reg",
",",
"mem",
",",
"addr",
",",
"ops",
"[",
"2",
"]",
";",
"int",
"load",
"=",
"REG_P",
"(",
"operands",
"[",
"0",
"]",
")",
";",
"int",
"dp",
"=",
"GET_MODE_SIZE",
"(",
"GET_MODE",
"(",
"operands",
"[",
"0",
"]",
")",
")",
"==",
"8",
";",
"int",
"integer_p",
"=",
"GET_MODE_CLASS",
"(",
"GET_MODE",
"(",
"operands",
"[",
"0",
"]",
")",
")",
"==",
"MODE_INT",
";",
"const",
"char",
"*",
"templ",
";",
"char",
"buff",
"[",
"50",
"]",
";",
"machine_mode",
"mode",
";",
"reg",
"=",
"operands",
"[",
"!",
"load",
"]",
";",
"mem",
"=",
"operands",
"[",
"load",
"]",
";",
"mode",
"=",
"GET_MODE",
"(",
"reg",
")",
";",
"gcc_assert",
"(",
"REG_P",
"(",
"reg",
")",
")",
";",
"gcc_assert",
"(",
"IS_VFP_REGNUM",
"(",
"REGNO",
"(",
"reg",
")",
")",
")",
";",
"gcc_assert",
"(",
"mode",
"==",
"SFmode",
"||",
"mode",
"==",
"DFmode",
"||",
"mode",
"==",
"SImode",
"||",
"mode",
"==",
"DImode",
"||",
"(",
"TARGET_NEON",
"&&",
"VALID_NEON_DREG_MODE",
"(",
"mode",
")",
")",
")",
";",
"gcc_assert",
"(",
"MEM_P",
"(",
"mem",
")",
")",
";",
"addr",
"=",
"XEXP",
"(",
"mem",
",",
"0",
")",
";",
"switch",
"(",
"GET_CODE",
"(",
"addr",
")",
")",
"{",
"case",
"PRE_DEC",
":",
"templ",
"=",
"\"v%smdb%%?.%s\\t%%0!, {%%%s1}%s\"",
";",
"ops",
"[",
"0",
"]",
"=",
"XEXP",
"(",
"addr",
",",
"0",
")",
";",
"ops",
"[",
"1",
"]",
"=",
"reg",
";",
"break",
";",
"case",
"POST_INC",
":",
"templ",
"=",
"\"v%smia%%?.%s\\t%%0!, {%%%s1}%s\"",
";",
"ops",
"[",
"0",
"]",
"=",
"XEXP",
"(",
"addr",
",",
"0",
")",
";",
"ops",
"[",
"1",
"]",
"=",
"reg",
";",
"break",
";",
"default",
":",
"templ",
"=",
"\"v%sr%%?.%s\\t%%%s0, %%1%s\"",
";",
"ops",
"[",
"0",
"]",
"=",
"reg",
";",
"ops",
"[",
"1",
"]",
"=",
"mem",
";",
"break",
";",
"}",
"sprintf",
"(",
"buff",
",",
"templ",
",",
"load",
"?",
"\"ld\"",
":",
"\"st\"",
",",
"dp",
"?",
"\"64\"",
":",
"\"32\"",
",",
"dp",
"?",
"\"P\"",
":",
"\"\"",
",",
"integer_p",
"?",
"\"\\t%@ int\"",
":",
"\"\"",
")",
";",
"output_asm_insn",
"(",
"buff",
",",
"ops",
")",
";",
"return",
"\"\"",
";",
"}",
"</s>"
] | [
"Output",
"a",
"VFP",
"load",
"or",
"store",
"instruction",
"."
] | [
"arm",
"2",
"0",
"0",
"8",
"0",
"50",
"0",
"\"v%smdb%%?.%s\\t%%0!, {%%%s1}%s\"",
"0",
"0",
"1",
"\"v%smia%%?.%s\\t%%0!, {%%%s1}%s\"",
"0",
"0",
"1",
"\"v%sr%%?.%s\\t%%%s0, %%1%s\"",
"0",
"1",
"\"ld\"",
"\"st\"",
"\"64\"",
"\"32\"",
"\"P\"",
"\"\"",
"\"\\t%@ int\"",
"\"\"",
"\"\""
] | arm4 | output_move_vfp | arm | CPU | GCC | 10,141 | 294 | 1 | [] |
[
"<s>",
"static",
"uint8_t",
"name",
"(",
"struct",
"InternalInstruction",
"*",
"insn",
",",
"\\",
"OperandType",
"type",
",",
"\\",
"uint8_t",
"index",
",",
"\\",
"uint8_t",
"*",
"valid",
")",
"{",
"\\",
"*",
"valid",
"=",
"1",
";",
"\\",
"switch",
"(",
"type",
")",
"{",
"\\",
"default",
":",
"\\",
"debug",
"(",
"\"Unhandled register type\"",
")",
";",
"\\",
"*",
"valid",
"=",
"0",
";",
"\\",
"return",
"0",
";",
"\\",
"case",
"TYPE_Rv",
":",
"\\",
"return",
"base",
"+",
"index",
";",
"\\",
"case",
"TYPE_R8",
":",
"\\",
"if",
"(",
"insn",
"->",
"rexPrefix",
"&&",
"\\",
"index",
">=",
"4",
"&&",
"index",
"<=",
"7",
")",
"{",
"\\",
"return",
"prefix",
"##",
"_SPL",
"+",
"(",
"index",
"-",
"4",
")",
";",
"\\",
"}",
"else",
"{",
"\\",
"return",
"prefix",
"##",
"_AL",
"+",
"index",
";",
"\\",
"}",
"\\",
"case",
"TYPE_R16",
":",
"\\",
"return",
"prefix",
"##",
"_AX",
"+",
"index",
";",
"\\",
"case",
"TYPE_R32",
":",
"\\",
"return",
"prefix",
"##",
"_EAX",
"+",
"index",
";",
"\\",
"case",
"TYPE_R64",
":",
"\\",
"return",
"prefix",
"##",
"_RAX",
"+",
"index",
";",
"\\",
"case",
"TYPE_XMM512",
":",
"\\",
"return",
"prefix",
"##",
"_ZMM0",
"+",
"index",
";",
"\\",
"case",
"TYPE_XMM256",
":",
"\\",
"return",
"prefix",
"##",
"_YMM0",
"+",
"index",
";",
"\\",
"case",
"TYPE_XMM128",
":",
"\\",
"case",
"TYPE_XMM64",
":",
"\\",
"case",
"TYPE_XMM32",
":",
"\\",
"case",
"TYPE_XMM",
":",
"\\",
"return",
"prefix",
"##",
"_XMM0",
"+",
"index",
";",
"\\",
"case",
"TYPE_VK1",
":",
"\\",
"case",
"TYPE_VK8",
":",
"\\",
"case",
"TYPE_VK16",
":",
"\\",
"if",
"(",
"index",
">",
"7",
")",
"\\",
"*",
"valid",
"=",
"0",
";",
"\\",
"return",
"prefix",
"##",
"_K0",
"+",
"index",
";",
"\\",
"case",
"TYPE_MM64",
":",
"\\",
"return",
"prefix",
"##",
"_MM0",
"+",
"(",
"index",
"&",
"0x7",
")",
";",
"\\",
"case",
"TYPE_SEGMENTREG",
":",
"\\",
"if",
"(",
"index",
">",
"5",
")",
"\\",
"*",
"valid",
"=",
"0",
";",
"\\",
"return",
"prefix",
"##",
"_ES",
"+",
"index",
";",
"\\",
"case",
"TYPE_DEBUGREG",
":",
"\\",
"return",
"prefix",
"##",
"_DR0",
"+",
"index",
";",
"\\",
"case",
"TYPE_CONTROLREG",
":",
"\\",
"return",
"prefix",
"##",
"_CR0",
"+",
"index",
";",
"\\",
"}",
"\\",
"}",
"</s>"
] | [
"Gets",
"the",
"name",
"of",
"the",
"pass",
"we",
"are",
"mixed",
"into",
"."
] | [
"X86",
"1",
"\"Unhandled register type\"",
"0",
"0",
"4",
"7",
"4",
"7",
"0",
"0x7",
"5",
"0"
] | X86DisassemblerDecoder21 | name | X86 | CPU | LLVM | 10,142 | 297 | 1 | [] |
[
"<s>",
"bool",
"TeakRegisterInfo",
"::",
"requiresVirtualBaseRegisters",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"return",
"false",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"the",
"target",
"wants",
"the",
"LocalStackAllocation",
"pass",
"to",
"be",
"run",
"and",
"virtual",
"base",
"registers",
"used",
"for",
"more",
"efficient",
"stack",
"access",
"."
] | [
"Teak",
"Teak"
] | TeakRegisterInfo | requiresVirtualBaseRegisters | Teak | DSP | LLVM | 10,143 | 16 | 1 | [] |
[
"<s>",
"DiagnosticInfoUnsupported",
"(",
"SDLoc",
"DLoc",
",",
"const",
"Function",
"&",
"Fn",
",",
"const",
"Twine",
"&",
"Desc",
",",
"SDValue",
"Value",
")",
":",
"DiagnosticInfo",
"(",
"getKindID",
"(",
")",
",",
"DS_Error",
")",
",",
"DLoc",
"(",
"DLoc",
".",
"getDebugLoc",
"(",
")",
")",
",",
"Description",
"(",
"Desc",
")",
",",
"Fn",
"(",
"Fn",
")",
",",
"Value",
"(",
"Value",
")",
"{",
"}",
"</s>"
] | [
"Fn",
"is",
"the",
"function",
"where",
"the",
"diagnostic",
"is",
"being",
"emitted",
"."
] | [
"BPF"
] | BPFISelLowering (2) | DiagnosticInfoUnsupported | BPF | Virtual ISA | LLVM | 10,144 | 53 | 1 | [] |
[
"<s>",
"bool",
"isReg",
"(",
")",
"const",
"override",
"{",
"return",
"Kind",
"==",
"Register",
";",
"}",
"</s>"
] | [
"isReg",
"-",
"Is",
"this",
"a",
"register",
"operand",
"?"
] | [
"RISCV"
] | RISCVAsmParser | isReg | RISCV | CPU | LLVM | 10,145 | 13 | 1 | [] |
[
"<s>",
"void",
"HexagonPassConfig",
"::",
"addPreRegAlloc",
"(",
")",
"{",
"if",
"(",
"getOptLevel",
"(",
")",
"!=",
"CodeGenOpt",
"::",
"None",
")",
"{",
"if",
"(",
"!",
"DisableStoreWidening",
")",
"addPass",
"(",
"createHexagonStoreWidening",
"(",
")",
",",
"false",
")",
";",
"if",
"(",
"!",
"DisableHardwareLoops",
")",
"addPass",
"(",
"createHexagonHardwareLoops",
"(",
")",
",",
"false",
")",
";",
"}",
"}",
"</s>"
] | [
"This",
"method",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"immediately",
"before",
"register",
"allocation",
"."
] | [
"Hexagon",
"Hexagon",
"Hexagon",
"Hexagon"
] | HexagonTargetMachine (2)3 | addPreRegAlloc | Hexagon | DSP | LLVM | 10,146 | 48 | 1 | [] |
[
"<s>",
"tree",
"s390_valid_target_attribute_tree",
"(",
"tree",
"args",
",",
"struct",
"gcc_options",
"*",
"opts",
",",
"const",
"struct",
"gcc_options",
"*",
"opts_set",
",",
"bool",
"force_pragma",
")",
"{",
"tree",
"t",
"=",
"NULL_TREE",
";",
"struct",
"gcc_options",
"new_opts_set",
";",
"memset",
"(",
"&",
"new_opts_set",
",",
"0",
",",
"sizeof",
"(",
"new_opts_set",
")",
")",
";",
"if",
"(",
"!",
"s390_valid_target_attribute_inner_p",
"(",
"args",
",",
"opts",
",",
"&",
"new_opts_set",
",",
"force_pragma",
")",
")",
"return",
"error_mark_node",
";",
"if",
"(",
"new_opts_set",
".",
"x_target_flags",
"||",
"new_opts_set",
".",
"x_s390_arch",
"||",
"new_opts_set",
".",
"x_s390_tune",
"||",
"new_opts_set",
".",
"x_s390_stack_guard",
"||",
"new_opts_set",
".",
"x_s390_stack_size",
"||",
"new_opts_set",
".",
"x_s390_branch_cost",
"||",
"new_opts_set",
".",
"x_s390_warn_framesize",
"||",
"new_opts_set",
".",
"x_s390_warn_dynamicstack_p",
")",
"{",
"const",
"unsigned",
"char",
"*",
"src",
"=",
"(",
"const",
"unsigned",
"char",
"*",
")",
"opts_set",
";",
"unsigned",
"char",
"*",
"dest",
"=",
"(",
"unsigned",
"char",
"*",
")",
"&",
"new_opts_set",
";",
"unsigned",
"int",
"i",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"sizeof",
"(",
"*",
"opts_set",
")",
";",
"i",
"++",
")",
"dest",
"[",
"i",
"]",
"|=",
"src",
"[",
"i",
"]",
";",
"s390_option_override_internal",
"(",
"opts",
",",
"&",
"new_opts_set",
")",
";",
"t",
"=",
"build_target_option_node",
"(",
"opts",
",",
"&",
"new_opts_set",
")",
";",
"}",
"return",
"t",
";",
"}",
"</s>"
] | [
"Return",
"a",
"TARGET_OPTION_NODE",
"tree",
"of",
"the",
"target",
"options",
"listed",
"or",
"NULL",
"."
] | [
"s390",
"0",
"0"
] | s390 | s390_valid_target_attribute_tree | s390 | MPU | GCC | 10,147 | 177 | 1 | [] |
[
"<s>",
"bool",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"override",
"{",
"STI",
"=",
"&",
"MF",
".",
"getSubtarget",
"<",
"M68kSubtarget",
">",
"(",
")",
";",
"TII",
"=",
"STI",
"->",
"getInstrInfo",
"(",
")",
";",
"TRI",
"=",
"STI",
"->",
"getRegisterInfo",
"(",
")",
";",
"MFI",
"=",
"MF",
".",
"getInfo",
"<",
"M68kMachineFunctionInfo",
">",
"(",
")",
";",
"FL",
"=",
"STI",
"->",
"getFrameLowering",
"(",
")",
";",
"bool",
"Modified",
"=",
"false",
";",
"MOVEMState",
"State",
";",
"unsigned",
"Mask",
"=",
"0",
";",
"unsigned",
"Reg",
"=",
"0",
";",
"int",
"Offset",
"=",
"0",
";",
"for",
"(",
"auto",
"&",
"MBB",
":",
"MF",
")",
"{",
"auto",
"MI",
"=",
"MBB",
".",
"begin",
"(",
")",
",",
"E",
"=",
"MBB",
".",
"end",
"(",
")",
";",
"while",
"(",
"MI",
"!=",
"E",
")",
"{",
"auto",
"NMI",
"=",
"std",
"::",
"next",
"(",
"MI",
")",
";",
"switch",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"if",
"(",
"State",
".",
"hasBase",
"(",
")",
")",
"{",
"State",
".",
"setEnd",
"(",
"MI",
")",
";",
"Finish",
"(",
"MBB",
",",
"State",
")",
";",
"Modified",
"=",
"true",
";",
"}",
"break",
";",
"case",
"M68k",
"::",
"MOVM32jm",
":",
"Mask",
"=",
"MI",
"->",
"getOperand",
"(",
"1",
")",
".",
"getImm",
"(",
")",
";",
"Reg",
"=",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
";",
"Offset",
"=",
"0",
";",
"Modified",
"|=",
"ProcessMI",
"(",
"MBB",
",",
"MI",
",",
"State",
",",
"Mask",
",",
"Offset",
",",
"Reg",
",",
"true",
")",
";",
"break",
";",
"case",
"M68k",
"::",
"MOVM32pm",
":",
"Mask",
"=",
"MI",
"->",
"getOperand",
"(",
"2",
")",
".",
"getImm",
"(",
")",
";",
"Reg",
"=",
"MI",
"->",
"getOperand",
"(",
"1",
")",
".",
"getReg",
"(",
")",
";",
"Offset",
"=",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"getImm",
"(",
")",
";",
"Modified",
"|=",
"ProcessMI",
"(",
"MBB",
",",
"MI",
",",
"State",
",",
"Mask",
",",
"Offset",
",",
"Reg",
",",
"true",
")",
";",
"break",
";",
"case",
"M68k",
"::",
"MOVM32mj",
":",
"Mask",
"=",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"getImm",
"(",
")",
";",
"Reg",
"=",
"MI",
"->",
"getOperand",
"(",
"1",
")",
".",
"getReg",
"(",
")",
";",
"Offset",
"=",
"0",
";",
"Modified",
"|=",
"ProcessMI",
"(",
"MBB",
",",
"MI",
",",
"State",
",",
"Mask",
",",
"Offset",
",",
"Reg",
",",
"false",
")",
";",
"break",
";",
"case",
"M68k",
"::",
"MOVM32mp",
":",
"Mask",
"=",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"getImm",
"(",
")",
";",
"Reg",
"=",
"MI",
"->",
"getOperand",
"(",
"2",
")",
".",
"getReg",
"(",
")",
";",
"Offset",
"=",
"MI",
"->",
"getOperand",
"(",
"1",
")",
".",
"getImm",
"(",
")",
";",
"Modified",
"|=",
"ProcessMI",
"(",
"MBB",
",",
"MI",
",",
"State",
",",
"Mask",
",",
"Offset",
",",
"Reg",
",",
"false",
")",
";",
"break",
";",
"}",
"MI",
"=",
"NMI",
";",
"}",
"if",
"(",
"State",
".",
"hasBase",
"(",
")",
")",
"{",
"State",
".",
"setEnd",
"(",
"MI",
")",
";",
"Finish",
"(",
"MBB",
",",
"State",
")",
";",
"}",
"}",
"return",
"Modified",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"M68k",
"M68k",
"M68k",
"0",
"0",
"0",
"M68k::MOVM32jm",
"1",
"0",
"0",
"M68k::MOVM32pm",
"2",
"1",
"0",
"M68k::MOVM32mj",
"0",
"1",
"0",
"M68k::MOVM32mp",
"0",
"2",
"1"
] | M68kCollapseMOVEMPass1 | runOnMachineFunction | M68k | MPU | LLVM | 10,148 | 440 | 1 | [] |
[
"<s>",
"static",
"machine_mode",
"get_mode_wider_vector",
"(",
"machine_mode",
"o",
")",
"{",
"machine_mode",
"n",
"=",
"GET_MODE_NEXT_MODE",
"(",
"o",
")",
".",
"require",
"(",
")",
";",
"gcc_assert",
"(",
"GET_MODE_NUNITS",
"(",
"o",
")",
"==",
"GET_MODE_NUNITS",
"(",
"n",
")",
"*",
"2",
")",
";",
"gcc_assert",
"(",
"GET_MODE_SIZE",
"(",
"o",
")",
"==",
"GET_MODE_SIZE",
"(",
"n",
")",
")",
";",
"return",
"n",
";",
"}",
"</s>"
] | [
"Get",
"a",
"vector",
"mode",
"of",
"the",
"same",
"size",
"as",
"the",
"original",
"but",
"with",
"elements",
"twice",
"as",
"wide",
".",
"This",
"is",
"only",
"guaranteed",
"to",
"apply",
"to",
"integral",
"vectors",
"."
] | [
"i386",
"2"
] | i386-expand1 | get_mode_wider_vector | i386 | CPU | GCC | 10,149 | 52 | 1 | [] |
[
"<s>",
"bool",
"MSP430TargetLowering",
"::",
"isLegalICmpImmediate",
"(",
"int64_t",
"Immed",
")",
"const",
"{",
"if",
"(",
"MSP430NoLegalImmediate",
")",
"return",
"Immed",
">=",
"-",
"32",
"&&",
"Immed",
"<",
"32",
";",
"return",
"TargetLowering",
"::",
"isLegalICmpImmediate",
"(",
"Immed",
")",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"the",
"specified",
"immediate",
"is",
"legal",
"icmp",
"immediate",
",",
"that",
"is",
"the",
"target",
"has",
"icmp",
"instructions",
"which",
"can",
"compare",
"a",
"register",
"against",
"the",
"immediate",
"without",
"having",
"to",
"materialize",
"the",
"immediate",
"into",
"a",
"register",
"."
] | [
"MSP430",
"MSP430",
"MSP430",
"32",
"32"
] | MSP430ISelLowering (2)1 | isLegalICmpImmediate | MSP430 | MPU | LLVM | 10,150 | 33 | 1 | [] |
[
"<s>",
"unsigned",
"X86FastISel",
"::",
"fastMaterializeConstant",
"(",
"const",
"Constant",
"*",
"C",
")",
"{",
"EVT",
"CEVT",
"=",
"TLI",
".",
"getValueType",
"(",
"DL",
",",
"C",
"->",
"getType",
"(",
")",
",",
"true",
")",
";",
"if",
"(",
"!",
"CEVT",
".",
"isSimple",
"(",
")",
")",
"return",
"0",
";",
"MVT",
"VT",
"=",
"CEVT",
".",
"getSimpleVT",
"(",
")",
";",
"if",
"(",
"const",
"auto",
"*",
"CI",
"=",
"dyn_cast",
"<",
"ConstantInt",
">",
"(",
"C",
")",
")",
"return",
"X86MaterializeInt",
"(",
"CI",
",",
"VT",
")",
";",
"else",
"if",
"(",
"const",
"ConstantFP",
"*",
"CFP",
"=",
"dyn_cast",
"<",
"ConstantFP",
">",
"(",
"C",
")",
")",
"return",
"X86MaterializeFP",
"(",
"CFP",
",",
"VT",
")",
";",
"else",
"if",
"(",
"const",
"GlobalValue",
"*",
"GV",
"=",
"dyn_cast",
"<",
"GlobalValue",
">",
"(",
"C",
")",
")",
"return",
"X86MaterializeGV",
"(",
"GV",
",",
"VT",
")",
";",
"else",
"if",
"(",
"isa",
"<",
"UndefValue",
">",
"(",
"C",
")",
")",
"{",
"unsigned",
"Opc",
"=",
"0",
";",
"switch",
"(",
"VT",
".",
"SimpleTy",
")",
"{",
"default",
":",
"break",
";",
"case",
"MVT",
"::",
"f32",
":",
"if",
"(",
"!",
"X86ScalarSSEf32",
")",
"Opc",
"=",
"X86",
"::",
"LD_Fp032",
";",
"break",
";",
"case",
"MVT",
"::",
"f64",
":",
"if",
"(",
"!",
"X86ScalarSSEf64",
")",
"Opc",
"=",
"X86",
"::",
"LD_Fp064",
";",
"break",
";",
"case",
"MVT",
"::",
"f80",
":",
"Opc",
"=",
"X86",
"::",
"LD_Fp080",
";",
"break",
";",
"}",
"if",
"(",
"Opc",
")",
"{",
"Register",
"ResultReg",
"=",
"createResultReg",
"(",
"TLI",
".",
"getRegClassFor",
"(",
"VT",
")",
")",
";",
"BuildMI",
"(",
"*",
"FuncInfo",
".",
"MBB",
",",
"FuncInfo",
".",
"InsertPt",
",",
"DbgLoc",
",",
"TII",
".",
"get",
"(",
"Opc",
")",
",",
"ResultReg",
")",
";",
"return",
"ResultReg",
";",
"}",
"}",
"return",
"0",
";",
"}",
"</s>"
] | [
"Emit",
"a",
"constant",
"in",
"a",
"register",
"using",
"target-specific",
"logic",
",",
"such",
"as",
"constant",
"pool",
"loads",
"."
] | [
"X86",
"X86",
"0",
"X86",
"X86",
"X86",
"0",
"MVT::f32",
"X86",
"X86::LD_Fp032",
"MVT::f64",
"X86",
"X86::LD_Fp064",
"MVT::f80",
"X86::LD_Fp080",
"0"
] | X86FastISel59 | fastMaterializeConstant | X86 | CPU | LLVM | 10,151 | 249 | 1 | [] |
[
"<s>",
"static",
"tree",
"nios2_merge_decl_attributes",
"(",
"tree",
"olddecl",
",",
"tree",
"newdecl",
")",
"{",
"tree",
"oldopts",
"=",
"lookup_attribute",
"(",
"\"target\"",
",",
"DECL_ATTRIBUTES",
"(",
"olddecl",
")",
")",
";",
"tree",
"newopts",
"=",
"lookup_attribute",
"(",
"\"target\"",
",",
"DECL_ATTRIBUTES",
"(",
"newdecl",
")",
")",
";",
"if",
"(",
"newopts",
"&&",
"oldopts",
"&&",
"newopts",
"!=",
"oldopts",
")",
"{",
"tree",
"oldtree",
"=",
"DECL_FUNCTION_SPECIFIC_TARGET",
"(",
"olddecl",
")",
";",
"tree",
"newtree",
"=",
"DECL_FUNCTION_SPECIFIC_TARGET",
"(",
"newdecl",
")",
";",
"if",
"(",
"oldtree",
"&&",
"newtree",
"&&",
"oldtree",
"!=",
"newtree",
")",
"{",
"struct",
"cl_target_option",
"*",
"olddata",
"=",
"TREE_TARGET_OPTION",
"(",
"oldtree",
")",
";",
"struct",
"cl_target_option",
"*",
"newdata",
"=",
"TREE_TARGET_OPTION",
"(",
"newtree",
")",
";",
"if",
"(",
"olddata",
"!=",
"newdata",
"&&",
"memcmp",
"(",
"olddata",
",",
"newdata",
",",
"sizeof",
"(",
"struct",
"cl_target_option",
")",
")",
")",
"error",
"(",
"\"%qE redeclared with conflicting %qs attributes\"",
",",
"DECL_NAME",
"(",
"newdecl",
")",
",",
"\"target\"",
")",
";",
"}",
"}",
"return",
"merge_attributes",
"(",
"DECL_ATTRIBUTES",
"(",
"olddecl",
")",
",",
"DECL_ATTRIBUTES",
"(",
"newdecl",
")",
")",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_MERGE_DECL_ATTRIBUTES",
".",
"We",
"are",
"just",
"using",
"this",
"hook",
"to",
"add",
"some",
"additional",
"error",
"checking",
"to",
"the",
"default",
"behavior",
".",
"GCC",
"does",
"not",
"provide",
"a",
"target",
"hook",
"for",
"merging",
"the",
"target",
"options",
",",
"and",
"only",
"correctly",
"handles",
"merging",
"empty",
"vs",
"non-empty",
"option",
"data",
";",
"see",
"merge_decls",
"(",
")",
"in",
"c-decl.cc",
".",
"So",
"here",
"we",
"require",
"either",
"that",
"at",
"least",
"one",
"of",
"the",
"decls",
"has",
"empty",
"target",
"options",
",",
"or",
"that",
"the",
"target",
"options/data",
"be",
"identical",
"."
] | [
"nios2",
"\"target\"",
"\"target\"",
"\"%qE redeclared with conflicting %qs attributes\"",
"\"target\""
] | nios2 | nios2_merge_decl_attributes | nios2 | MPU | GCC | 10,152 | 143 | 1 | [] |
[
"<s>",
"std",
"::",
"pair",
"<",
"unsigned",
",",
"const",
"TargetRegisterClass",
"*",
">",
"PPCTargetLowering",
"::",
"getRegForInlineAsmConstraint",
"(",
"const",
"std",
"::",
"string",
"&",
"Constraint",
",",
"MVT",
"VT",
")",
"const",
"{",
"if",
"(",
"Constraint",
".",
"size",
"(",
")",
"==",
"1",
")",
"{",
"switch",
"(",
"Constraint",
"[",
"0",
"]",
")",
"{",
"case",
"'b'",
":",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"i64",
"&&",
"Subtarget",
".",
"isPPC64",
"(",
")",
")",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"&",
"PPC",
"::",
"G8RC_NOX0RegClass",
")",
";",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"&",
"PPC",
"::",
"GPRC_NOR0RegClass",
")",
";",
"case",
"'r'",
":",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"i64",
"&&",
"Subtarget",
".",
"isPPC64",
"(",
")",
")",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"&",
"PPC",
"::",
"G8RCRegClass",
")",
";",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"&",
"PPC",
"::",
"GPRCRegClass",
")",
";",
"case",
"'f'",
":",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"f32",
"||",
"VT",
"==",
"MVT",
"::",
"i32",
")",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"&",
"PPC",
"::",
"F4RCRegClass",
")",
";",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"f64",
"||",
"VT",
"==",
"MVT",
"::",
"i64",
")",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"&",
"PPC",
"::",
"F8RCRegClass",
")",
";",
"break",
";",
"case",
"'v'",
":",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"&",
"PPC",
"::",
"VRRCRegClass",
")",
";",
"case",
"'y'",
":",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"&",
"PPC",
"::",
"CRRCRegClass",
")",
";",
"}",
"}",
"else",
"if",
"(",
"Constraint",
"==",
"\"wc\"",
")",
"{",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"&",
"PPC",
"::",
"CRBITRCRegClass",
")",
";",
"}",
"else",
"if",
"(",
"Constraint",
"==",
"\"wa\"",
"||",
"Constraint",
"==",
"\"wd\"",
"||",
"Constraint",
"==",
"\"wf\"",
")",
"{",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"&",
"PPC",
"::",
"VSRCRegClass",
")",
";",
"}",
"else",
"if",
"(",
"Constraint",
"==",
"\"ws\"",
")",
"{",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"&",
"PPC",
"::",
"VSFRCRegClass",
")",
";",
"}",
"std",
"::",
"pair",
"<",
"unsigned",
",",
"const",
"TargetRegisterClass",
"*",
">",
"R",
"=",
"TargetLowering",
"::",
"getRegForInlineAsmConstraint",
"(",
"Constraint",
",",
"VT",
")",
";",
"if",
"(",
"R",
".",
"first",
"&&",
"VT",
"==",
"MVT",
"::",
"i64",
"&&",
"Subtarget",
".",
"isPPC64",
"(",
")",
"&&",
"PPC",
"::",
"GPRCRegClass",
".",
"contains",
"(",
"R",
".",
"first",
")",
")",
"{",
"const",
"TargetRegisterInfo",
"*",
"TRI",
"=",
"getTargetMachine",
"(",
")",
".",
"getSubtargetImpl",
"(",
")",
"->",
"getRegisterInfo",
"(",
")",
";",
"return",
"std",
"::",
"make_pair",
"(",
"TRI",
"->",
"getMatchingSuperReg",
"(",
"R",
".",
"first",
",",
"PPC",
"::",
"sub_32",
",",
"&",
"PPC",
"::",
"G8RCRegClass",
")",
",",
"&",
"PPC",
"::",
"G8RCRegClass",
")",
";",
"}",
"return",
"R",
";",
"}",
"</s>"
] | [
"Given",
"a",
"physical",
"register",
"constraint",
"(",
"e.g",
"."
] | [
"PowerPC",
"PPC",
"1",
"0",
"MVT::i64",
"PPC",
"0U",
"PPC::G8RC_NOX0RegClass",
"0U",
"PPC::GPRC_NOR0RegClass",
"MVT::i64",
"PPC",
"0U",
"PPC::G8RCRegClass",
"0U",
"PPC::GPRCRegClass",
"MVT::f32",
"MVT::i32",
"0U",
"PPC::F4RCRegClass",
"MVT::f64",
"MVT::i64",
"0U",
"PPC::F8RCRegClass",
"0U",
"PPC::VRRCRegClass",
"0U",
"PPC::CRRCRegClass",
"\"wc\"",
"0U",
"PPC::CRBITRCRegClass",
"\"wa\"",
"\"wd\"",
"\"wf\"",
"0U",
"PPC::VSRCRegClass",
"\"ws\"",
"0U",
"PPC::VSFRCRegClass",
"MVT::i64",
"PPC",
"PPC::GPRCRegClass",
"PPC::sub_32",
"PPC::G8RCRegClass",
"PPC::G8RCRegClass"
] | PPCISelLowering148 | getRegForInlineAsmConstraint | PowerPC | CPU | LLVM | 10,153 | 400 | 1 | [] |
[
"<s>",
"void",
"TeakAsmBackend",
"::",
"applyFixup",
"(",
"const",
"MCAssembler",
"&",
"Asm",
",",
"const",
"MCFixup",
"&",
"Fixup",
",",
"const",
"MCValue",
"&",
"Target",
",",
"MutableArrayRef",
"<",
"char",
">",
"Data",
",",
"uint64_t",
"Value",
",",
"bool",
"IsResolved",
",",
"const",
"MCSubtargetInfo",
"*",
"STI",
")",
"const",
"{",
"unsigned",
"Offset",
"=",
"Fixup",
".",
"getOffset",
"(",
")",
";",
"unsigned",
"Kind",
"=",
"Fixup",
".",
"getKind",
"(",
")",
";",
"switch",
"(",
"Kind",
")",
"{",
"case",
"Teak",
"::",
"fixup_teak_call_imm18",
":",
"write16le",
"(",
"&",
"Data",
"[",
"Offset",
"]",
",",
"(",
"read16le",
"(",
"&",
"Data",
"[",
"Offset",
"]",
")",
"&",
"~",
"0x30",
")",
"|",
"(",
"(",
"(",
"Value",
">>",
"16",
")",
"&",
"3",
")",
"<<",
"4",
")",
")",
";",
"write16le",
"(",
"&",
"Data",
"[",
"Offset",
"+",
"2",
"]",
",",
"Value",
"&",
"0xFFFF",
")",
";",
"break",
";",
"case",
"Teak",
"::",
"fixup_teak_rel7",
":",
"write16le",
"(",
"&",
"Data",
"[",
"Offset",
"]",
",",
"(",
"read16le",
"(",
"&",
"Data",
"[",
"Offset",
"]",
")",
"&",
"~",
"0x7F0",
")",
"|",
"(",
"(",
"(",
"(",
"Value",
">>",
"1",
")",
"-",
"1",
")",
"&",
"0x7F",
")",
"<<",
"4",
")",
")",
";",
"break",
";",
"case",
"Teak",
"::",
"fixup_teak_ptr_imm16",
":",
"write16le",
"(",
"&",
"Data",
"[",
"Offset",
"+",
"2",
"]",
",",
"Value",
")",
";",
"break",
";",
"case",
"Teak",
"::",
"fixup_teak_bkrep_reg",
":",
"Value",
"--",
";",
"write16le",
"(",
"&",
"Data",
"[",
"Offset",
"]",
",",
"(",
"read16le",
"(",
"&",
"Data",
"[",
"Offset",
"]",
")",
"&",
"~",
"0x60",
")",
"|",
"(",
"(",
"(",
"Value",
">>",
"16",
")",
"&",
"3",
")",
"<<",
"5",
")",
")",
";",
"write16le",
"(",
"&",
"Data",
"[",
"Offset",
"+",
"2",
"]",
",",
"Value",
"&",
"0xFFFF",
")",
";",
"break",
";",
"case",
"Teak",
"::",
"fixup_teak_bkrep_r6",
":",
"Value",
"--",
";",
"write16le",
"(",
"&",
"Data",
"[",
"Offset",
"]",
",",
"(",
"read16le",
"(",
"&",
"Data",
"[",
"Offset",
"]",
")",
"&",
"~",
"3",
")",
"|",
"(",
"(",
"Value",
">>",
"16",
")",
"&",
"3",
")",
")",
";",
"write16le",
"(",
"&",
"Data",
"[",
"Offset",
"+",
"2",
"]",
",",
"Value",
"&",
"0xFFFF",
")",
";",
"break",
";",
"}",
"}",
"</s>"
] | [
"Apply",
"the",
"Value",
"for",
"given",
"Fixup",
"into",
"the",
"provided",
"data",
"fragment",
",",
"at",
"the",
"offset",
"specified",
"by",
"the",
"fixup",
"and",
"following",
"the",
"fixup",
"kind",
"as",
"appropriate",
"."
] | [
"Teak",
"Teak",
"Teak::fixup_teak_call_imm18",
"0x30",
"16",
"3",
"4",
"2",
"0xFFFF",
"Teak::fixup_teak_rel7",
"0x7F0",
"1",
"1",
"0x7F",
"4",
"Teak::fixup_teak_ptr_imm16",
"2",
"Teak::fixup_teak_bkrep_reg",
"0x60",
"16",
"3",
"5",
"2",
"0xFFFF",
"Teak::fixup_teak_bkrep_r6",
"3",
"16",
"3",
"2",
"0xFFFF"
] | TeakAsmBackend | applyFixup | Teak | DSP | LLVM | 10,154 | 311 | 1 | [] |
[
"<s>",
"static",
"tree",
"c4x_gimplify_va_arg_expr",
"(",
"tree",
"valist",
",",
"tree",
"type",
",",
"tree",
"*",
"pre_p",
"ATTRIBUTE_UNUSED",
",",
"tree",
"*",
"post_p",
"ATTRIBUTE_UNUSED",
")",
"{",
"tree",
"t",
";",
"bool",
"indirect",
";",
"indirect",
"=",
"pass_by_reference",
"(",
"NULL",
",",
"TYPE_MODE",
"(",
"type",
")",
",",
"type",
",",
"false",
")",
";",
"if",
"(",
"indirect",
")",
"type",
"=",
"build_pointer_type",
"(",
"type",
")",
";",
"t",
"=",
"build",
"(",
"PREDECREMENT_EXPR",
",",
"TREE_TYPE",
"(",
"valist",
")",
",",
"valist",
",",
"build_int_cst",
"(",
"NULL_TREE",
",",
"int_size_in_bytes",
"(",
"type",
")",
")",
")",
";",
"t",
"=",
"fold_convert",
"(",
"build_pointer_type",
"(",
"type",
")",
",",
"t",
")",
";",
"t",
"=",
"build_va_arg_indirect_ref",
"(",
"t",
")",
";",
"if",
"(",
"indirect",
")",
"t",
"=",
"build_va_arg_indirect_ref",
"(",
"t",
")",
";",
"return",
"t",
";",
"}",
"</s>"
] | [
"C",
"[",
"34",
"]",
"x",
"arguments",
"grow",
"in",
"weird",
"ways",
"(",
"downwards",
")",
"that",
"the",
"standard",
"varargs",
"stuff",
"ca",
"n't",
"handle",
".."
] | [
"c4x"
] | c4x1 | c4x_gimplify_va_arg_expr | c4x | DSP | GCC | 10,155 | 112 | 1 | [] |
[
"<s>",
"static",
"void",
"tilepro_setup_incoming_varargs",
"(",
"cumulative_args_t",
"cum",
",",
"machine_mode",
"mode",
",",
"tree",
"type",
",",
"int",
"*",
"pretend_args",
",",
"int",
"no_rtl",
")",
"{",
"CUMULATIVE_ARGS",
"local_cum",
"=",
"*",
"get_cumulative_args",
"(",
"cum",
")",
";",
"int",
"first_reg",
";",
"targetm",
".",
"calls",
".",
"function_arg_advance",
"(",
"pack_cumulative_args",
"(",
"&",
"local_cum",
")",
",",
"mode",
",",
"type",
",",
"true",
")",
";",
"first_reg",
"=",
"local_cum",
";",
"if",
"(",
"local_cum",
"<",
"TILEPRO_NUM_ARG_REGS",
")",
"{",
"*",
"pretend_args",
"=",
"UNITS_PER_WORD",
"*",
"(",
"TILEPRO_NUM_ARG_REGS",
"-",
"first_reg",
")",
";",
"if",
"(",
"!",
"no_rtl",
")",
"{",
"alias_set_type",
"set",
"=",
"get_varargs_alias_set",
"(",
")",
";",
"rtx",
"tmp",
"=",
"gen_rtx_MEM",
"(",
"BLKmode",
",",
"plus_constant",
"(",
"Pmode",
",",
"\\",
"virtual_incoming_args_rtx",
",",
"-",
"STACK_POINTER_OFFSET",
"-",
"UNITS_PER_WORD",
"*",
"(",
"TILEPRO_NUM_ARG_REGS",
"-",
"first_reg",
")",
")",
")",
";",
"MEM_NOTRAP_P",
"(",
"tmp",
")",
"=",
"1",
";",
"set_mem_alias_set",
"(",
"tmp",
",",
"set",
")",
";",
"move_block_from_reg",
"(",
"first_reg",
",",
"tmp",
",",
"TILEPRO_NUM_ARG_REGS",
"-",
"first_reg",
")",
";",
"}",
"}",
"else",
"*",
"pretend_args",
"=",
"0",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_SETUP_INCOMING_VARARGS",
"."
] | [
"tilepro",
"1",
"0"
] | tilepro2 | tilepro_setup_incoming_varargs | tilepro | VLIW | GCC | 10,156 | 148 | 1 | [] |
[
"<s>",
"PreservedAnalyses",
"NVVMIntrRangePass",
"::",
"run",
"(",
"Function",
"&",
"F",
",",
"FunctionAnalysisManager",
"&",
"AM",
")",
"{",
"return",
"runNVVMIntrRange",
"(",
"F",
",",
"SmVersion",
")",
"?",
"PreservedAnalyses",
"::",
"none",
"(",
")",
":",
"PreservedAnalyses",
"::",
"all",
"(",
")",
";",
"}",
"</s>"
] | [
"Run",
"the",
"analysis",
"pass",
"over",
"a",
"function",
"and",
"produce",
"a",
"dominator",
"tree",
"."
] | [
"NVPTX"
] | NVVMIntrRange1 | run | NVPTX | GPU | LLVM | 10,157 | 35 | 1 | [] |
[
"<s>",
"static",
"int",
"h8300_os_task_function_p",
"(",
"tree",
"func",
")",
"{",
"tree",
"a",
";",
"if",
"(",
"TREE_CODE",
"(",
"func",
")",
"!=",
"FUNCTION_DECL",
")",
"return",
"0",
";",
"a",
"=",
"lookup_attribute",
"(",
"\"OS_Task\"",
",",
"DECL_ATTRIBUTES",
"(",
"func",
")",
")",
";",
"return",
"a",
"!=",
"NULL_TREE",
";",
"}",
"</s>"
] | [
"Return",
"nonzero",
"if",
"FUNC",
"is",
"an",
"OS_Task",
"function",
"as",
"specified",
"by",
"the",
"``",
"OS_Task",
"''",
"attribute",
"."
] | [
"h8300",
"0",
"\"OS_Task\""
] | h8300 | h8300_os_task_function_p | h8300 | MPU | GCC | 10,158 | 41 | 1 | [] |
[
"<s>",
"EVT",
"ARMTargetLowering",
"::",
"getOptimalMemOpType",
"(",
"uint64_t",
"Size",
",",
"unsigned",
"DstAlign",
",",
"unsigned",
"SrcAlign",
",",
"bool",
"IsMemset",
",",
"bool",
"ZeroMemset",
",",
"bool",
"MemcpyStrSrc",
",",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"const",
"Function",
"&",
"F",
"=",
"MF",
".",
"getFunction",
"(",
")",
";",
"if",
"(",
"(",
"!",
"IsMemset",
"||",
"ZeroMemset",
")",
"&&",
"Subtarget",
"->",
"hasNEON",
"(",
")",
"&&",
"!",
"F",
".",
"hasFnAttribute",
"(",
"Attribute",
"::",
"NoImplicitFloat",
")",
")",
"{",
"bool",
"Fast",
";",
"if",
"(",
"Size",
">=",
"16",
"&&",
"(",
"memOpAlign",
"(",
"SrcAlign",
",",
"DstAlign",
",",
"16",
")",
"||",
"(",
"allowsMisalignedMemoryAccesses",
"(",
"MVT",
"::",
"v2f64",
",",
"0",
",",
"1",
",",
"&",
"Fast",
")",
"&&",
"Fast",
")",
")",
")",
"{",
"return",
"MVT",
"::",
"v2f64",
";",
"}",
"else",
"if",
"(",
"Size",
">=",
"8",
"&&",
"(",
"memOpAlign",
"(",
"SrcAlign",
",",
"DstAlign",
",",
"8",
")",
"||",
"(",
"allowsMisalignedMemoryAccesses",
"(",
"MVT",
"::",
"f64",
",",
"0",
",",
"1",
",",
"&",
"Fast",
")",
"&&",
"Fast",
")",
")",
")",
"{",
"return",
"MVT",
"::",
"f64",
";",
"}",
"}",
"return",
"MVT",
"::",
"Other",
";",
"}",
"</s>"
] | [
"It",
"returns",
"EVT",
":",
":Other",
"if",
"the",
"type",
"should",
"be",
"determined",
"using",
"generic",
"target-independent",
"logic",
"."
] | [
"ARM",
"ARM",
"16",
"16",
"MVT::v2f64",
"0",
"1",
"MVT::v2f64",
"8",
"8",
"MVT::f64",
"0",
"1",
"MVT::f64",
"MVT::Other"
] | ARMISelLowering (3) | getOptimalMemOpType | ARM | CPU | LLVM | 10,159 | 161 | 1 | [] |
[
"<s>",
"ScheduleHazardRecognizer",
"*",
"PPCInstrInfo",
"::",
"CreateTargetPostRAHazardRecognizer",
"(",
"const",
"InstrItineraryData",
"*",
"II",
",",
"const",
"ScheduleDAG",
"*",
"DAG",
")",
"const",
"{",
"unsigned",
"Directive",
"=",
"TM",
".",
"getSubtarget",
"<",
"PPCSubtarget",
">",
"(",
")",
".",
"getDarwinDirective",
"(",
")",
";",
"if",
"(",
"Directive",
"!=",
"PPC",
"::",
"DIR_440",
"&&",
"Directive",
"!=",
"PPC",
"::",
"DIR_A2",
"&&",
"Directive",
"!=",
"PPC",
"::",
"DIR_E500mc",
"&&",
"Directive",
"!=",
"PPC",
"::",
"DIR_E5500",
")",
"{",
"assert",
"(",
"TM",
".",
"getInstrInfo",
"(",
")",
"&&",
"\"No InstrInfo?\"",
")",
";",
"return",
"new",
"PPCHazardRecognizer970",
"(",
"TM",
")",
";",
"}",
"return",
"new",
"PPCScoreboardHazardRecognizer",
"(",
"II",
",",
"DAG",
")",
";",
"}",
"</s>"
] | [
"Allocate",
"and",
"return",
"a",
"hazard",
"recognizer",
"to",
"use",
"for",
"by",
"non-scheduling",
"passes",
"."
] | [
"PowerPC",
"PPC",
"PPC",
"PPC::DIR_440",
"PPC::DIR_A2",
"PPC::DIR_E500mc",
"PPC::DIR_E5500",
"\"No InstrInfo?\"",
"PPC",
"PPC"
] | PPCInstrInfo108 | CreateTargetPostRAHazardRecognizer | PowerPC | CPU | LLVM | 10,160 | 90 | 1 | [] |
[
"<s>",
"static",
"void",
"mips_rewrite_small_data_1",
"(",
"rtx",
"*",
"loc",
",",
"enum",
"mips_symbol_context",
"context",
")",
"{",
"subrtx_ptr_iterator",
"::",
"array_type",
"array",
";",
"FOR_EACH_SUBRTX_PTR",
"(",
"iter",
",",
"array",
",",
"loc",
",",
"ALL",
")",
"{",
"rtx",
"*",
"loc",
"=",
"*",
"iter",
";",
"if",
"(",
"MEM_P",
"(",
"*",
"loc",
")",
")",
"{",
"mips_rewrite_small_data_1",
"(",
"&",
"XEXP",
"(",
"*",
"loc",
",",
"0",
")",
",",
"SYMBOL_CONTEXT_MEM",
")",
";",
"iter",
".",
"skip_subrtxes",
"(",
")",
";",
"}",
"else",
"if",
"(",
"mips_rewrite_small_data_p",
"(",
"*",
"loc",
",",
"context",
")",
")",
"{",
"*",
"loc",
"=",
"gen_rtx_LO_SUM",
"(",
"Pmode",
",",
"pic_offset_table_rtx",
",",
"*",
"loc",
")",
";",
"iter",
".",
"skip_subrtxes",
"(",
")",
";",
"}",
"else",
"if",
"(",
"GET_CODE",
"(",
"*",
"loc",
")",
"==",
"LO_SUM",
")",
"iter",
".",
"skip_subrtxes",
"(",
")",
";",
"}",
"}",
"</s>"
] | [
"A",
"for_each_rtx",
"callback",
",",
"used",
"by",
"mips_rewrite_small_data",
"."
] | [
"mips",
"0"
] | mips | mips_rewrite_small_data_1 | mips | CPU | GCC | 10,161 | 117 | 1 | [] |
[
"<s>",
"void",
"emitInstruction",
"(",
"const",
"MCInst",
"&",
"Inst",
",",
"const",
"MCSubtargetInfo",
"&",
"STI",
")",
"override",
"{",
"const",
"MCInstrDesc",
"&",
"MID",
"=",
"MII",
".",
"get",
"(",
"Inst",
".",
"getOpcode",
"(",
")",
")",
";",
"count",
"++",
";",
"size",
"+=",
"MID",
".",
"getSize",
"(",
")",
";",
"call",
"|=",
"MID",
".",
"isCall",
"(",
")",
";",
"}",
"</s>"
] | [
"Targets",
"should",
"implement",
"this",
"to",
"emit",
"instructions",
"."
] | [
"Patmos"
] | PatmosInstrInfo1 | emitInstruction | Patmos | VLIW | LLVM | 10,162 | 51 | 1 | [] |
[
"<s>",
"unsigned",
"LanaiMachineFunctionInfo",
"::",
"getGlobalBaseReg",
"(",
")",
"{",
"if",
"(",
"GlobalBaseReg",
")",
"return",
"GlobalBaseReg",
";",
"return",
"GlobalBaseReg",
"=",
"MF",
".",
"getRegInfo",
"(",
")",
".",
"createVirtualRegister",
"(",
"&",
"Lanai",
"::",
"GPRRegClass",
")",
";",
"}",
"</s>"
] | [
"getGlobalBaseReg",
"-",
"Return",
"a",
"virtual",
"register",
"initialized",
"with",
"the",
"the",
"global",
"base",
"register",
"value",
"."
] | [
"Lanai",
"Lanai",
"Lanai::GPRRegClass"
] | LanaiMachineFunctionInfo | getGlobalBaseReg | Lanai | CPU | LLVM | 10,163 | 32 | 1 | [] |
[
"<s>",
"bool",
"XCoreRegisterInfo",
"::",
"needsFrameMoves",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"{",
"const",
"MachineFrameInfo",
"*",
"MFI",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
";",
"MachineModuleInfo",
"*",
"MMI",
"=",
"MFI",
"->",
"getMachineModuleInfo",
"(",
")",
";",
"return",
"(",
"MMI",
"&&",
"MMI",
"->",
"hasDebugInfo",
"(",
")",
")",
"||",
"!",
"MF",
".",
"getFunction",
"(",
")",
"->",
"doesNotThrow",
"(",
")",
"||",
"UnwindTablesMandatory",
";",
"}",
"</s>"
] | [
"Return",
"whether",
"to",
"emit",
"frame",
"moves",
"."
] | [
"XCore",
"XCore"
] | XCoreRegisterInfo11 | needsFrameMoves | XCore | MPU | LLVM | 10,164 | 57 | 1 | [] |
[
"<s>",
"void",
"AMDGPUPassConfig",
"::",
"addIRPasses",
"(",
")",
"{",
"const",
"AMDGPUTargetMachine",
"&",
"TM",
"=",
"getAMDGPUTargetMachine",
"(",
")",
";",
"disablePass",
"(",
"&",
"StackMapLivenessID",
")",
";",
"disablePass",
"(",
"&",
"FuncletLayoutID",
")",
";",
"disablePass",
"(",
"&",
"PatchableFunctionID",
")",
";",
"addPass",
"(",
"createAMDGPUPrintfRuntimeBinding",
"(",
")",
")",
";",
"addPass",
"(",
"createAMDGPUFixFunctionBitcastsPass",
"(",
")",
")",
";",
"addPass",
"(",
"createAMDGPUPropagateAttributesEarlyPass",
"(",
"&",
"TM",
")",
")",
";",
"addPass",
"(",
"createAMDGPULowerIntrinsicsPass",
"(",
")",
")",
";",
"addPass",
"(",
"createAMDGPUAlwaysInlinePass",
"(",
")",
")",
";",
"addPass",
"(",
"createAlwaysInlinerLegacyPass",
"(",
")",
")",
";",
"addPass",
"(",
"createBarrierNoopPass",
"(",
")",
")",
";",
"if",
"(",
"TM",
".",
"getTargetTriple",
"(",
")",
".",
"getArch",
"(",
")",
"==",
"Triple",
"::",
"r600",
")",
"addPass",
"(",
"createR600OpenCLImageTypeLoweringPass",
"(",
")",
")",
";",
"addPass",
"(",
"createAMDGPUOpenCLEnqueuedBlockLoweringPass",
"(",
")",
")",
";",
"if",
"(",
"EnableLowerModuleLDS",
")",
"{",
"if",
"(",
"EnableLDSReplaceWithPointer",
")",
"addPass",
"(",
"createAMDGPUReplaceLDSUseWithPointerPass",
"(",
")",
")",
";",
"addPass",
"(",
"createAMDGPULowerModuleLDSPass",
"(",
")",
")",
";",
"}",
"if",
"(",
"TM",
".",
"getOptLevel",
"(",
")",
">",
"CodeGenOpt",
"::",
"None",
")",
"addPass",
"(",
"createInferAddressSpacesPass",
"(",
")",
")",
";",
"addPass",
"(",
"createAtomicExpandPass",
"(",
")",
")",
";",
"if",
"(",
"TM",
".",
"getOptLevel",
"(",
")",
">",
"CodeGenOpt",
"::",
"None",
")",
"{",
"addPass",
"(",
"createAMDGPUPromoteAlloca",
"(",
")",
")",
";",
"if",
"(",
"EnableSROA",
")",
"addPass",
"(",
"createSROAPass",
"(",
")",
")",
";",
"if",
"(",
"isPassEnabled",
"(",
"EnableScalarIRPasses",
")",
")",
"addStraightLineScalarOptimizationPasses",
"(",
")",
";",
"if",
"(",
"EnableAMDGPUAliasAnalysis",
")",
"{",
"addPass",
"(",
"createAMDGPUAAWrapperPass",
"(",
")",
")",
";",
"addPass",
"(",
"createExternalAAWrapperPass",
"(",
"[",
"]",
"(",
"Pass",
"&",
"P",
",",
"Function",
"&",
",",
"AAResults",
"&",
"AAR",
")",
"{",
"if",
"(",
"auto",
"*",
"WrapperPass",
"=",
"P",
".",
"getAnalysisIfAvailable",
"<",
"AMDGPUAAWrapperPass",
">",
"(",
")",
")",
"AAR",
".",
"addAAResult",
"(",
"WrapperPass",
"->",
"getResult",
"(",
")",
")",
";",
"}",
")",
")",
";",
"}",
"if",
"(",
"TM",
".",
"getTargetTriple",
"(",
")",
".",
"getArch",
"(",
")",
"==",
"Triple",
"::",
"amdgcn",
")",
"{",
"addPass",
"(",
"createAMDGPUCodeGenPreparePass",
"(",
")",
")",
";",
"}",
"}",
"TargetPassConfig",
"::",
"addIRPasses",
"(",
")",
";",
"if",
"(",
"isPassEnabled",
"(",
"EnableScalarIRPasses",
")",
")",
"addEarlyCSEOrGVNPass",
"(",
")",
";",
"}",
"</s>"
] | [
"Add",
"common",
"target",
"configurable",
"passes",
"that",
"perform",
"LLVM",
"IR",
"to",
"IR",
"transforms",
"following",
"machine",
"independent",
"optimization",
"."
] | [
"AMDGPU",
"AMDGPU",
"AMDGPU",
"AMDGPU",
"AMDGPU",
"AMDGPU",
"AMDGPU",
"AMDGPU",
"AMDGPU",
"R600",
"AMDGPU",
"AMDGPU",
"AMDGPU",
"AMDGPU",
"AMDGPU",
"AMDGPU",
"AMDGPU",
"AMDGPU"
] | AMDGPUTargetMachine65 | addIRPasses | AMDGPU | GPU | LLVM | 10,165 | 313 | 1 | [] |
[
"<s>",
"static",
"void",
"microblaze_encode_section_info",
"(",
"tree",
"decl",
",",
"rtx",
"rtl",
",",
"int",
"first",
")",
"{",
"default_encode_section_info",
"(",
"decl",
",",
"rtl",
",",
"first",
")",
";",
"}",
"</s>"
] | [
"Encode",
"info",
"about",
"sections",
"into",
"the",
"RTL",
"based",
"on",
"a",
"symbol",
"'s",
"declaration",
".",
"The",
"default",
"definition",
"of",
"this",
"hook",
",",
"default_encode_section_info",
"in",
"`",
"varasm.cc",
"'",
",",
"sets",
"a",
"number",
"of",
"commonly-useful",
"bits",
"in",
"SYMBOL_REF_FLAGS",
"."
] | [
"microblaze"
] | microblaze | microblaze_encode_section_info | microblaze | MPU | GCC | 10,166 | 24 | 1 | [] |
[
"<s>",
"static",
"rtx",
"s390_prologue_plus_offset",
"(",
"rtx",
"target",
",",
"rtx",
"reg",
",",
"rtx",
"offset",
",",
"bool",
"frame_related_p",
")",
"{",
"rtx",
"insn",
";",
"rtx",
"orig_offset",
"=",
"offset",
";",
"gcc_assert",
"(",
"REG_P",
"(",
"target",
")",
")",
";",
"gcc_assert",
"(",
"REG_P",
"(",
"reg",
")",
")",
";",
"gcc_assert",
"(",
"CONST_INT_P",
"(",
"offset",
")",
")",
";",
"if",
"(",
"offset",
"==",
"const0_rtx",
")",
"{",
"insn",
"=",
"emit_move_insn",
"(",
"target",
",",
"reg",
")",
";",
"}",
"else",
"if",
"(",
"DISP_IN_RANGE",
"(",
"INTVAL",
"(",
"offset",
")",
")",
")",
"{",
"insn",
"=",
"emit_move_insn",
"(",
"target",
",",
"gen_rtx_PLUS",
"(",
"Pmode",
",",
"reg",
",",
"offset",
")",
")",
";",
"}",
"else",
"{",
"if",
"(",
"!",
"satisfies_constraint_K",
"(",
"offset",
")",
"&&",
"(",
"!",
"TARGET_EXTIMM",
"||",
"(",
"!",
"satisfies_constraint_Op",
"(",
"offset",
")",
"&&",
"!",
"satisfies_constraint_On",
"(",
"offset",
")",
")",
")",
")",
"offset",
"=",
"force_const_mem",
"(",
"Pmode",
",",
"offset",
")",
";",
"if",
"(",
"target",
"!=",
"reg",
")",
"{",
"insn",
"=",
"emit_move_insn",
"(",
"target",
",",
"reg",
")",
";",
"RTX_FRAME_RELATED_P",
"(",
"insn",
")",
"=",
"frame_related_p",
"?",
"1",
":",
"0",
";",
"}",
"insn",
"=",
"emit_insn",
"(",
"gen_add2_insn",
"(",
"target",
",",
"offset",
")",
")",
";",
"if",
"(",
"!",
"CONST_INT_P",
"(",
"offset",
")",
")",
"{",
"annotate_constant_pool_refs",
"(",
"&",
"PATTERN",
"(",
"insn",
")",
")",
";",
"if",
"(",
"frame_related_p",
")",
"add_reg_note",
"(",
"insn",
",",
"REG_FRAME_RELATED_EXPR",
",",
"gen_rtx_SET",
"(",
"target",
",",
"gen_rtx_PLUS",
"(",
"Pmode",
",",
"target",
",",
"orig_offset",
")",
")",
")",
";",
"}",
"}",
"RTX_FRAME_RELATED_P",
"(",
"insn",
")",
"=",
"frame_related_p",
"?",
"1",
":",
"0",
";",
"if",
"(",
"flag_stack_clash_protection",
"&&",
"target",
"==",
"stack_pointer_rtx",
")",
"add_reg_note",
"(",
"insn",
",",
"REG_STACK_CHECK",
",",
"const0_rtx",
")",
";",
"return",
"insn",
";",
"}",
"</s>"
] | [
"Calculate",
"TARGET",
"=",
"REG",
"+",
"OFFSET",
"as",
"s390_emit_prologue",
"would",
"do",
"it",
".",
"-",
"push",
"too",
"big",
"immediates",
"to",
"the",
"literal",
"pool",
"and",
"annotate",
"the",
"refs",
"-",
"emit",
"frame",
"related",
"notes",
"for",
"stack",
"pointer",
"changes",
"."
] | [
"s390",
"1",
"0",
"1",
"0"
] | s3907 | s390_prologue_plus_offset | s390 | MPU | GCC | 10,167 | 250 | 1 | [] |
[
"<s>",
"bool",
"ARMFrameLowering",
"::",
"assignCalleeSavedSpillSlots",
"(",
"MachineFunction",
"&",
"MF",
",",
"const",
"TargetRegisterInfo",
"*",
"TRI",
",",
"std",
"::",
"vector",
"<",
"CalleeSavedInfo",
">",
"&",
"CSI",
")",
"const",
"{",
"if",
"(",
"STI",
".",
"hasV8_1MMainlineOps",
"(",
")",
"&&",
"MF",
".",
"getInfo",
"<",
"ARMFunctionInfo",
">",
"(",
")",
"->",
"isCmseNSEntryFunction",
"(",
")",
")",
"{",
"CSI",
".",
"emplace_back",
"(",
"ARM",
"::",
"FPCXTNS",
")",
";",
"CSI",
".",
"back",
"(",
")",
".",
"setRestored",
"(",
"false",
")",
";",
"}",
"const",
"auto",
"&",
"AFI",
"=",
"*",
"MF",
".",
"getInfo",
"<",
"ARMFunctionInfo",
">",
"(",
")",
";",
"if",
"(",
"AFI",
".",
"shouldSignReturnAddress",
"(",
")",
")",
"{",
"CSI",
".",
"insert",
"(",
"find_if",
"(",
"CSI",
",",
"[",
"=",
"]",
"(",
"const",
"auto",
"&",
"CS",
")",
"{",
"Register",
"Reg",
"=",
"CS",
".",
"getReg",
"(",
")",
";",
"return",
"Reg",
"==",
"ARM",
"::",
"R10",
"||",
"Reg",
"==",
"ARM",
"::",
"R11",
"||",
"Reg",
"==",
"ARM",
"::",
"R8",
"||",
"Reg",
"==",
"ARM",
"::",
"R9",
"||",
"ARM",
"::",
"DPRRegClass",
".",
"contains",
"(",
"Reg",
")",
";",
"}",
")",
",",
"CalleeSavedInfo",
"(",
"ARM",
"::",
"R12",
")",
")",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"This",
"function",
"will",
"assign",
"callee",
"saved",
"gprs",
"to",
"volatile",
"vector",
"registers",
"for",
"prologue",
"spills",
"when",
"applicable",
"."
] | [
"ARM",
"ARM",
"ARM",
"ARM::FPCXTNS",
"ARM",
"ARM::R10",
"ARM::R11",
"ARM::R8",
"ARM::R9",
"ARM::DPRRegClass",
"ARM::R12"
] | ARMFrameLowering3 | assignCalleeSavedSpillSlots | ARM | CPU | LLVM | 10,168 | 169 | 1 | [] |
[
"<s>",
"static",
"rtx",
"nvptx_goacc_expand_var_decl",
"(",
"tree",
"var",
")",
"{",
"if",
"(",
"tree",
"attr",
"=",
"lookup_attribute",
"(",
"\"oacc gang-private\"",
",",
"DECL_ATTRIBUTES",
"(",
"var",
")",
")",
")",
"{",
"gcc_checking_assert",
"(",
"VAR_P",
"(",
"var",
")",
")",
";",
"unsigned",
"int",
"offset",
",",
"*",
"poffset",
";",
"poffset",
"=",
"gang_private_shared_hmap",
".",
"get",
"(",
"var",
")",
";",
"if",
"(",
"poffset",
")",
"offset",
"=",
"*",
"poffset",
";",
"else",
"{",
"unsigned",
"HOST_WIDE_INT",
"align",
"=",
"DECL_ALIGN",
"(",
"var",
")",
";",
"gang_private_shared_size",
"=",
"(",
"gang_private_shared_size",
"+",
"align",
"-",
"1",
")",
"&",
"~",
"(",
"align",
"-",
"1",
")",
";",
"if",
"(",
"gang_private_shared_align",
"<",
"align",
")",
"gang_private_shared_align",
"=",
"align",
";",
"offset",
"=",
"gang_private_shared_size",
";",
"bool",
"existed",
"=",
"gang_private_shared_hmap",
".",
"put",
"(",
"var",
",",
"offset",
")",
";",
"gcc_checking_assert",
"(",
"!",
"existed",
")",
";",
"gang_private_shared_size",
"+=",
"tree_to_uhwi",
"(",
"DECL_SIZE_UNIT",
"(",
"var",
")",
")",
";",
"location_t",
"loc",
"=",
"EXPR_LOCATION",
"(",
"TREE_VALUE",
"(",
"attr",
")",
")",
";",
"if",
"(",
"dump_enabled_p",
"(",
")",
")",
"{",
"dump_flags_t",
"l_dump_flags",
"=",
"get_openacc_privatization_dump_flags",
"(",
")",
";",
"const",
"dump_user_location_t",
"d_u_loc",
"=",
"dump_user_location_t",
"::",
"from_location_t",
"(",
"loc",
")",
";",
"dump_printf_loc",
"(",
"l_dump_flags",
",",
"d_u_loc",
",",
"\"variable %<%T%> adjusted for OpenACC\"",
"\" privatization level: %qs\\n\"",
",",
"var",
",",
"\"gang\"",
")",
";",
"}",
"if",
"(",
"param_openacc_privatization",
"!=",
"OPENACC_PRIVATIZATION_QUIET",
")",
"inform",
"(",
"loc",
",",
"\"variable %qD adjusted for OpenACC privatization level:\"",
"\" %qs\"",
",",
"var",
",",
"\"gang\"",
")",
";",
"if",
"(",
"dump_file",
"&&",
"(",
"dump_flags",
"&",
"TDF_DETAILS",
")",
")",
"{",
"fprintf",
"(",
"dump_file",
",",
"\"%s:%d:%d: \"",
",",
"LOCATION_FILE",
"(",
"loc",
")",
",",
"LOCATION_LINE",
"(",
"loc",
")",
",",
"LOCATION_COLUMN",
"(",
"loc",
")",
")",
";",
"fprintf",
"(",
"dump_file",
",",
"\"%s: \"",
",",
"\"note\"",
")",
";",
"fprintf",
"(",
"dump_file",
",",
"\"variable '\"",
")",
";",
"print_generic_expr",
"(",
"dump_file",
",",
"var",
",",
"TDF_SLIM",
")",
";",
"fprintf",
"(",
"dump_file",
",",
"\"' adjusted for OpenACC privatization level: '%s'\\n\"",
",",
"\"gang\"",
")",
";",
"}",
"}",
"rtx",
"addr",
"=",
"plus_constant",
"(",
"Pmode",
",",
"gang_private_shared_sym",
",",
"offset",
")",
";",
"return",
"gen_rtx_MEM",
"(",
"TYPE_MODE",
"(",
"TREE_TYPE",
"(",
"var",
")",
")",
",",
"addr",
")",
";",
"}",
"return",
"NULL_RTX",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_GOACC_EXPAND_VAR_DECL",
"."
] | [
"nvptx",
"\"oacc gang-private\"",
"1",
"1",
"\"variable %<%T%> adjusted for OpenACC\"",
"\" privatization level: %qs\\n\"",
"\"gang\"",
"\"variable %qD adjusted for OpenACC privatization level:\"",
"\" %qs\"",
"\"gang\"",
"\"%s:%d:%d: \"",
"\"%s: \"",
"\"note\"",
"\"variable '\"",
"\"' adjusted for OpenACC privatization level: '%s'\\n\"",
"\"gang\""
] | nvptx | nvptx_goacc_expand_var_decl | nvptx | GPU | GCC | 10,169 | 296 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"getPassName",
"(",
")",
"const",
"override",
"{",
"return",
"\"WebAssembly late peephole optimizer\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"WebAssembly",
"\"WebAssembly late peephole optimizer\""
] | WebAssemblyPeephole (2) | getPassName | WebAssembly | Virtual ISA | LLVM | 10,170 | 13 | 1 | [] |
[
"<s>",
"static",
"bool",
"can_use_cdx_ldstw",
"(",
"int",
"regno",
",",
"int",
"basereg",
",",
"int",
"offset",
")",
"{",
"if",
"(",
"CDX_REG_P",
"(",
"regno",
")",
"&&",
"CDX_REG_P",
"(",
"basereg",
")",
"&&",
"(",
"offset",
"&",
"0x3",
")",
"==",
"0",
"&&",
"0",
"<=",
"offset",
"&&",
"offset",
"<",
"0x40",
")",
"return",
"true",
";",
"else",
"if",
"(",
"basereg",
"==",
"SP_REGNO",
"&&",
"offset",
">=",
"0",
"&&",
"offset",
"<",
"0x80",
"&&",
"(",
"offset",
"&",
"0x3",
")",
"==",
"0",
")",
"return",
"true",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Helper",
"function",
":",
"return",
"true",
"if",
"a",
"load/store",
"using",
"REGNO",
"with",
"address",
"BASEREG",
"and",
"offset",
"OFFSET",
"meets",
"the",
"constraints",
"for",
"a",
"2-byte",
"CDX",
"ldw.n",
",",
"stw.n",
",",
"ldwsp.n",
",",
"or",
"stwsp.n",
"instruction",
"."
] | [
"nios2",
"0x3",
"0",
"0",
"0x40",
"0",
"0x80",
"0x3",
"0"
] | nios23 | can_use_cdx_ldstw | nios2 | MPU | GCC | 10,171 | 75 | 1 | [] |
[
"<s>",
"void",
"SIInstrInfo",
"::",
"loadRegFromStackSlot",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"MI",
",",
"unsigned",
"DestReg",
",",
"int",
"FrameIndex",
",",
"const",
"TargetRegisterClass",
"*",
"RC",
",",
"const",
"TargetRegisterInfo",
"*",
"TRI",
")",
"const",
"{",
"MachineFunction",
"*",
"MF",
"=",
"MBB",
".",
"getParent",
"(",
")",
";",
"const",
"SIMachineFunctionInfo",
"*",
"MFI",
"=",
"MF",
"->",
"getInfo",
"<",
"SIMachineFunctionInfo",
">",
"(",
")",
";",
"MachineFrameInfo",
"*",
"FrameInfo",
"=",
"MF",
"->",
"getFrameInfo",
"(",
")",
";",
"DebugLoc",
"DL",
"=",
"MBB",
".",
"findDebugLoc",
"(",
"MI",
")",
";",
"unsigned",
"Align",
"=",
"FrameInfo",
"->",
"getObjectAlignment",
"(",
"FrameIndex",
")",
";",
"unsigned",
"Size",
"=",
"FrameInfo",
"->",
"getObjectSize",
"(",
"FrameIndex",
")",
";",
"MachinePointerInfo",
"PtrInfo",
"=",
"MachinePointerInfo",
"::",
"getFixedStack",
"(",
"*",
"MF",
",",
"FrameIndex",
")",
";",
"MachineMemOperand",
"*",
"MMO",
"=",
"MF",
"->",
"getMachineMemOperand",
"(",
"PtrInfo",
",",
"MachineMemOperand",
"::",
"MOLoad",
",",
"Size",
",",
"Align",
")",
";",
"if",
"(",
"RI",
".",
"isSGPRClass",
"(",
"RC",
")",
")",
"{",
"unsigned",
"Opcode",
"=",
"getSGPRSpillRestoreOpcode",
"(",
"RC",
"->",
"getSize",
"(",
")",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"MI",
",",
"DL",
",",
"get",
"(",
"Opcode",
")",
",",
"DestReg",
")",
".",
"addFrameIndex",
"(",
"FrameIndex",
")",
".",
"addMemOperand",
"(",
"MMO",
")",
";",
"return",
";",
"}",
"if",
"(",
"!",
"ST",
".",
"isVGPRSpillingEnabled",
"(",
"MFI",
")",
")",
"{",
"LLVMContext",
"&",
"Ctx",
"=",
"MF",
"->",
"getFunction",
"(",
")",
"->",
"getContext",
"(",
")",
";",
"Ctx",
".",
"emitError",
"(",
"\"SIInstrInfo::loadRegFromStackSlot - Do not know how to\"",
"\" restore register\"",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"MI",
",",
"DL",
",",
"get",
"(",
"AMDGPU",
"::",
"IMPLICIT_DEF",
")",
",",
"DestReg",
")",
";",
"return",
";",
"}",
"assert",
"(",
"RI",
".",
"hasVGPRs",
"(",
"RC",
")",
"&&",
"\"Only VGPR spilling expected\"",
")",
";",
"unsigned",
"Opcode",
"=",
"getVGPRSpillRestoreOpcode",
"(",
"RC",
"->",
"getSize",
"(",
")",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"MI",
",",
"DL",
",",
"get",
"(",
"Opcode",
")",
",",
"DestReg",
")",
".",
"addFrameIndex",
"(",
"FrameIndex",
")",
".",
"addReg",
"(",
"MFI",
"->",
"getScratchRSrcReg",
"(",
")",
")",
".",
"addReg",
"(",
"MFI",
"->",
"getScratchWaveOffsetReg",
"(",
")",
")",
".",
"addImm",
"(",
"0",
")",
".",
"addMemOperand",
"(",
"MMO",
")",
";",
"}",
"</s>"
] | [
"Load",
"the",
"specified",
"register",
"of",
"the",
"given",
"register",
"class",
"from",
"the",
"specified",
"stack",
"frame",
"index",
"."
] | [
"AMDGPU",
"SI",
"SI",
"SI",
"\"SIInstrInfo::loadRegFromStackSlot - Do not know how to\"",
"\" restore register\"",
"AMDGPU::IMPLICIT_DEF",
"\"Only VGPR spilling expected\"",
"0"
] | SIInstrInfo19 | loadRegFromStackSlot | AMDGPU | GPU | LLVM | 10,172 | 307 | 1 | [] |
[
"<s>",
"static",
"rtx",
"altivec_expand_vec_ext_builtin",
"(",
"tree",
"exp",
",",
"rtx",
"target",
")",
"{",
"machine_mode",
"tmode",
",",
"mode0",
";",
"tree",
"arg0",
",",
"arg1",
";",
"rtx",
"op0",
";",
"rtx",
"op1",
";",
"arg0",
"=",
"CALL_EXPR_ARG",
"(",
"exp",
",",
"0",
")",
";",
"arg1",
"=",
"CALL_EXPR_ARG",
"(",
"exp",
",",
"1",
")",
";",
"op0",
"=",
"expand_normal",
"(",
"arg0",
")",
";",
"op1",
"=",
"expand_normal",
"(",
"arg1",
")",
";",
"if",
"(",
"TREE_CODE",
"(",
"arg1",
")",
"==",
"INTEGER_CST",
")",
"{",
"unsigned",
"HOST_WIDE_INT",
"elt",
";",
"unsigned",
"HOST_WIDE_INT",
"size",
"=",
"TYPE_VECTOR_SUBPARTS",
"(",
"TREE_TYPE",
"(",
"arg0",
")",
")",
";",
"unsigned",
"int",
"truncated_selector",
";",
"elt",
"=",
"TREE_INT_CST_LOW",
"(",
"arg1",
")",
";",
"truncated_selector",
"=",
"elt",
"%",
"size",
";",
"op1",
"=",
"GEN_INT",
"(",
"truncated_selector",
")",
";",
"}",
"tmode",
"=",
"TYPE_MODE",
"(",
"TREE_TYPE",
"(",
"TREE_TYPE",
"(",
"arg0",
")",
")",
")",
";",
"mode0",
"=",
"TYPE_MODE",
"(",
"TREE_TYPE",
"(",
"arg0",
")",
")",
";",
"gcc_assert",
"(",
"VECTOR_MODE_P",
"(",
"mode0",
")",
")",
";",
"op0",
"=",
"force_reg",
"(",
"mode0",
",",
"op0",
")",
";",
"if",
"(",
"optimize",
"||",
"!",
"target",
"||",
"!",
"register_operand",
"(",
"target",
",",
"tmode",
")",
")",
"target",
"=",
"gen_reg_rtx",
"(",
"tmode",
")",
";",
"rs6000_expand_vector_extract",
"(",
"target",
",",
"op0",
",",
"op1",
")",
";",
"return",
"target",
";",
"}",
"</s>"
] | [
"Expand",
"vec_ext",
"builtin",
"."
] | [
"rs6000",
"0",
"1"
] | rs6000-builtin | altivec_expand_vec_ext_builtin | rs6000 | CPU | GCC | 10,173 | 185 | 1 | [] |
[
"<s>",
"void",
"BT",
"::",
"run",
"(",
")",
"{",
"reset",
"(",
")",
";",
"assert",
"(",
"FlowQ",
".",
"empty",
"(",
")",
")",
";",
"using",
"MachineFlowGraphTraits",
"=",
"GraphTraits",
"<",
"const",
"MachineFunction",
"*",
">",
";",
"const",
"MachineBasicBlock",
"*",
"Entry",
"=",
"MachineFlowGraphTraits",
"::",
"getEntryNode",
"(",
"&",
"MF",
")",
";",
"unsigned",
"MaxBN",
"=",
"0",
";",
"for",
"(",
"MachineFunction",
"::",
"const_iterator",
"I",
"=",
"MF",
".",
"begin",
"(",
")",
",",
"E",
"=",
"MF",
".",
"end",
"(",
")",
";",
"I",
"!=",
"E",
";",
"++",
"I",
")",
"{",
"assert",
"(",
"I",
"->",
"getNumber",
"(",
")",
">=",
"0",
"&&",
"\"Disconnected block\"",
")",
";",
"unsigned",
"BN",
"=",
"I",
"->",
"getNumber",
"(",
")",
";",
"if",
"(",
"BN",
">",
"MaxBN",
")",
"MaxBN",
"=",
"BN",
";",
"}",
"BitVector",
"BlockScanned",
"(",
"MaxBN",
"+",
"1",
")",
";",
"int",
"EntryN",
"=",
"Entry",
"->",
"getNumber",
"(",
")",
";",
"FlowQ",
".",
"push",
"(",
"CFGEdge",
"(",
"-",
"1",
",",
"EntryN",
")",
")",
";",
"while",
"(",
"!",
"FlowQ",
".",
"empty",
"(",
")",
")",
"{",
"CFGEdge",
"Edge",
"=",
"FlowQ",
".",
"front",
"(",
")",
";",
"FlowQ",
".",
"pop",
"(",
")",
";",
"if",
"(",
"EdgeExec",
".",
"count",
"(",
"Edge",
")",
")",
"continue",
";",
"EdgeExec",
".",
"insert",
"(",
"Edge",
")",
";",
"ReachedBB",
".",
"insert",
"(",
"Edge",
".",
"second",
")",
";",
"const",
"MachineBasicBlock",
"&",
"B",
"=",
"*",
"MF",
".",
"getBlockNumbered",
"(",
"Edge",
".",
"second",
")",
";",
"MachineBasicBlock",
"::",
"const_iterator",
"It",
"=",
"B",
".",
"begin",
"(",
")",
",",
"End",
"=",
"B",
".",
"end",
"(",
")",
";",
"while",
"(",
"It",
"!=",
"End",
"&&",
"It",
"->",
"isPHI",
"(",
")",
")",
"{",
"const",
"MachineInstr",
"&",
"PI",
"=",
"*",
"It",
"++",
";",
"InstrExec",
".",
"insert",
"(",
"&",
"PI",
")",
";",
"visitPHI",
"(",
"PI",
")",
";",
"}",
"if",
"(",
"BlockScanned",
"[",
"Edge",
".",
"second",
"]",
")",
"continue",
";",
"BlockScanned",
"[",
"Edge",
".",
"second",
"]",
"=",
"true",
";",
"while",
"(",
"It",
"!=",
"End",
"&&",
"!",
"It",
"->",
"isBranch",
"(",
")",
")",
"{",
"const",
"MachineInstr",
"&",
"MI",
"=",
"*",
"It",
"++",
";",
"InstrExec",
".",
"insert",
"(",
"&",
"MI",
")",
";",
"visitNonBranch",
"(",
"MI",
")",
";",
"}",
"if",
"(",
"It",
"==",
"End",
")",
"{",
"MachineFunction",
"::",
"const_iterator",
"BIt",
"=",
"B",
".",
"getIterator",
"(",
")",
";",
"MachineFunction",
"::",
"const_iterator",
"Next",
"=",
"std",
"::",
"next",
"(",
"BIt",
")",
";",
"if",
"(",
"Next",
"!=",
"MF",
".",
"end",
"(",
")",
"&&",
"B",
".",
"isSuccessor",
"(",
"&",
"*",
"Next",
")",
")",
"{",
"int",
"ThisN",
"=",
"B",
".",
"getNumber",
"(",
")",
";",
"int",
"NextN",
"=",
"Next",
"->",
"getNumber",
"(",
")",
";",
"FlowQ",
".",
"push",
"(",
"CFGEdge",
"(",
"ThisN",
",",
"NextN",
")",
")",
";",
"}",
"}",
"else",
"{",
"visitBranchesFrom",
"(",
"*",
"It",
")",
";",
"}",
"}",
"if",
"(",
"Trace",
")",
"print_cells",
"(",
"dbgs",
"(",
")",
"<<",
"\"Cells after propagation:\\n\"",
")",
";",
"}",
"</s>"
] | [
"Run",
"the",
"analysis",
"pass",
"over",
"a",
"function",
"and",
"produce",
"a",
"dominator",
"tree",
"."
] | [
"Hexagon",
"0",
"0",
"\"Disconnected block\"",
"1",
"1",
"\"Cells after propagation:\\n\""
] | BitTracker7 | run | Hexagon | DSP | LLVM | 10,174 | 425 | 1 | [] |
[
"<s>",
"rtx",
"aarch64_ptrue_all",
"(",
"unsigned",
"int",
"elt_size",
")",
"{",
"rtx_vector_builder",
"builder",
"(",
"VNx16BImode",
",",
"elt_size",
",",
"1",
")",
";",
"builder",
".",
"quick_push",
"(",
"const1_rtx",
")",
";",
"for",
"(",
"unsigned",
"int",
"i",
"=",
"1",
";",
"i",
"<",
"elt_size",
";",
"++",
"i",
")",
"builder",
".",
"quick_push",
"(",
"const0_rtx",
")",
";",
"return",
"builder",
".",
"build",
"(",
")",
";",
"}",
"</s>"
] | [
"Return",
"a",
"VNx16BImode",
"constant",
"in",
"which",
"every",
"sequence",
"of",
"ELT_SIZE",
"bits",
"has",
"the",
"lowest",
"bit",
"set",
"and",
"the",
"upper",
"bits",
"clear",
".",
"This",
"is",
"the",
"VNx16BImode",
"equivalent",
"of",
"a",
"PTRUE",
"for",
"controlling",
"elements",
"of",
"ELT_SIZE",
"bytes",
".",
"However",
",",
"because",
"the",
"constant",
"is",
"VNx16BImode",
",",
"all",
"bits",
"are",
"significant",
",",
"even",
"the",
"upper",
"zeros",
"."
] | [
"aarch64",
"1",
"1"
] | aarch64 | aarch64_ptrue_all | aarch64 | CPU | GCC | 10,175 | 55 | 1 | [] |
[
"<s>",
"TargetTransformInfo",
"WebAssemblyTargetMachine",
"::",
"getTargetTransformInfo",
"(",
"const",
"Function",
"&",
"F",
")",
"{",
"return",
"TargetTransformInfo",
"(",
"WebAssemblyTTIImpl",
"(",
"this",
",",
"F",
")",
")",
";",
"}",
"</s>"
] | [
"Get",
"a",
"TargetTransformInfo",
"implementation",
"for",
"the",
"target",
"."
] | [
"WebAssembly",
"WebAssembly",
"WebAssembly"
] | WebAssemblyTargetMachine | getTargetTransformInfo | WebAssembly | Virtual ISA | LLVM | 10,176 | 23 | 1 | [] |
[
"<s>",
"bool",
"SIInstrInfo",
"::",
"isReallyTriviallyReMaterializable",
"(",
"const",
"MachineInstr",
"&",
"MI",
",",
"AAResults",
"*",
"AA",
")",
"const",
"{",
"switch",
"(",
"MI",
".",
"getOpcode",
"(",
")",
")",
"{",
"case",
"AMDGPU",
"::",
"V_MOV_B32_e32",
":",
"case",
"AMDGPU",
"::",
"V_MOV_B32_e64",
":",
"case",
"AMDGPU",
"::",
"V_MOV_B64_PSEUDO",
":",
"case",
"AMDGPU",
"::",
"V_ACCVGPR_READ_B32_e64",
":",
"case",
"AMDGPU",
"::",
"V_ACCVGPR_WRITE_B32_e64",
":",
"assert",
"(",
"MI",
".",
"getDesc",
"(",
")",
".",
"getNumOperands",
"(",
")",
"==",
"2",
")",
";",
"assert",
"(",
"MI",
".",
"getDesc",
"(",
")",
".",
"getNumImplicitDefs",
"(",
")",
"==",
"0",
")",
";",
"assert",
"(",
"MI",
".",
"getDesc",
"(",
")",
".",
"getNumImplicitUses",
"(",
")",
"==",
"1",
")",
";",
"return",
"MI",
".",
"getNumOperands",
"(",
")",
"==",
"3",
";",
"default",
":",
"return",
"false",
";",
"}",
"}",
"</s>"
] | [
"For",
"instructions",
"with",
"opcodes",
"for",
"which",
"the",
"M_REMATERIALIZABLE",
"flag",
"is",
"set",
",",
"this",
"hook",
"lets",
"the",
"target",
"specify",
"whether",
"the",
"instruction",
"is",
"actually",
"trivially",
"rematerializable",
",",
"taking",
"into",
"consideration",
"its",
"operands",
"."
] | [
"AMDGPU",
"SI",
"AMDGPU::V_MOV_B32_e32",
"AMDGPU::V_MOV_B32_e64",
"AMDGPU::V_MOV_B64_PSEUDO",
"AMDGPU::V_ACCVGPR_READ_B32_e64",
"AMDGPU::V_ACCVGPR_WRITE_B32_e64",
"2",
"0",
"1",
"3"
] | SIInstrInfo92 | isReallyTriviallyReMaterializable | AMDGPU | GPU | LLVM | 10,177 | 111 | 1 | [] |
[
"<s>",
"bool",
"fma_node",
"::",
"root_p",
"(",
")",
"{",
"return",
"this",
"->",
"m_root",
"==",
"this",
";",
"}",
"</s>"
] | [
"Return",
"whether",
"a",
"node",
"is",
"a",
"root",
"node",
"."
] | [
"aarch64"
] | cortex-a57-fma-steering | root_p | aarch64 | CPU | GCC | 10,178 | 15 | 1 | [] |
[
"<s>",
"bool",
"AArch64InstrInfo",
"::",
"optimizeCompareInstr",
"(",
"MachineInstr",
"&",
"CmpInstr",
",",
"Register",
"SrcReg",
",",
"Register",
"SrcReg2",
",",
"int",
"CmpMask",
",",
"int",
"CmpValue",
",",
"const",
"MachineRegisterInfo",
"*",
"MRI",
")",
"const",
"{",
"assert",
"(",
"CmpInstr",
".",
"getParent",
"(",
")",
")",
";",
"assert",
"(",
"MRI",
")",
";",
"int",
"DeadNZCVIdx",
"=",
"CmpInstr",
".",
"findRegisterDefOperandIdx",
"(",
"AArch64",
"::",
"NZCV",
",",
"true",
")",
";",
"if",
"(",
"DeadNZCVIdx",
"!=",
"-",
"1",
")",
"{",
"if",
"(",
"CmpInstr",
".",
"definesRegister",
"(",
"AArch64",
"::",
"WZR",
")",
"||",
"CmpInstr",
".",
"definesRegister",
"(",
"AArch64",
"::",
"XZR",
")",
")",
"{",
"CmpInstr",
".",
"eraseFromParent",
"(",
")",
";",
"return",
"true",
";",
"}",
"unsigned",
"Opc",
"=",
"CmpInstr",
".",
"getOpcode",
"(",
")",
";",
"unsigned",
"NewOpc",
"=",
"convertToNonFlagSettingOpc",
"(",
"CmpInstr",
")",
";",
"if",
"(",
"NewOpc",
"==",
"Opc",
")",
"return",
"false",
";",
"const",
"MCInstrDesc",
"&",
"MCID",
"=",
"get",
"(",
"NewOpc",
")",
";",
"CmpInstr",
".",
"setDesc",
"(",
"MCID",
")",
";",
"CmpInstr",
".",
"RemoveOperand",
"(",
"DeadNZCVIdx",
")",
";",
"bool",
"succeeded",
"=",
"UpdateOperandRegClass",
"(",
"CmpInstr",
")",
";",
"(",
"void",
")",
"succeeded",
";",
"assert",
"(",
"succeeded",
"&&",
"\"Some operands reg class are incompatible!\"",
")",
";",
"return",
"true",
";",
"}",
"if",
"(",
"CmpInstr",
".",
"getOpcode",
"(",
")",
"==",
"AArch64",
"::",
"PTEST_PP",
")",
"return",
"optimizePTestInstr",
"(",
"&",
"CmpInstr",
",",
"SrcReg",
",",
"SrcReg2",
",",
"MRI",
")",
";",
"assert",
"(",
"(",
"CmpValue",
"==",
"0",
"||",
"CmpValue",
"==",
"1",
"||",
"CmpValue",
"==",
"2",
")",
"&&",
"\"CmpValue must be 0, 1, or 2!\"",
")",
";",
"if",
"(",
"SrcReg2",
"!=",
"0",
")",
"return",
"false",
";",
"if",
"(",
"!",
"MRI",
"->",
"use_nodbg_empty",
"(",
"CmpInstr",
".",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
")",
")",
"return",
"false",
";",
"if",
"(",
"CmpValue",
"==",
"0",
"&&",
"substituteCmpToZero",
"(",
"CmpInstr",
",",
"SrcReg",
",",
"*",
"MRI",
")",
")",
"return",
"true",
";",
"return",
"(",
"CmpValue",
"==",
"0",
"||",
"CmpValue",
"==",
"1",
")",
"&&",
"removeCmpToZeroOrOne",
"(",
"CmpInstr",
",",
"SrcReg",
",",
"CmpValue",
",",
"*",
"MRI",
")",
";",
"}",
"</s>"
] | [
"optimizeCompareInstr",
"-",
"Check",
"if",
"there",
"exists",
"an",
"earlier",
"instruction",
"that",
"operates",
"on",
"the",
"same",
"source",
"operands",
"and",
"sets",
"flags",
"in",
"the",
"same",
"way",
"as",
"Compare",
";",
"remove",
"Compare",
"if",
"possible",
"."
] | [
"AArch64",
"AArch64",
"AArch64::NZCV",
"1",
"AArch64::WZR",
"AArch64::XZR",
"\"Some operands reg class are incompatible!\"",
"AArch64::PTEST_PP",
"0",
"1",
"2",
"\"CmpValue must be 0, 1, or 2!\"",
"0",
"0",
"0",
"0",
"1"
] | AArch64InstrInfo11 | optimizeCompareInstr | AArch64 | CPU | LLVM | 10,179 | 287 | 1 | [] |
[
"<s>",
"const",
"uint16_t",
"*",
"NVPTXRegisterInfo",
"::",
"getCalleeSavedRegs",
"(",
"const",
"MachineFunction",
"*",
"MF",
")",
"const",
"{",
"static",
"const",
"uint16_t",
"CalleeSavedRegs",
"[",
"]",
"=",
"{",
"0",
"}",
";",
"return",
"CalleeSavedRegs",
";",
"}",
"</s>"
] | [
"Code",
"Generation",
"virtual",
"methods",
"..."
] | [
"NVPTX",
"NVPTX",
"0"
] | NVPTXRegisterInfo19 | getCalleeSavedRegs | NVPTX | GPU | LLVM | 10,180 | 29 | 1 | [] |
[
"<s>",
"bool",
"ARMBaseInstrInfo",
"::",
"shouldSink",
"(",
"const",
"MachineInstr",
"&",
"MI",
")",
"const",
"{",
"if",
"(",
"isPredicated",
"(",
"MI",
")",
")",
"return",
"true",
";",
"MachineBasicBlock",
"::",
"const_iterator",
"Next",
"=",
"&",
"MI",
";",
"++",
"Next",
";",
"Register",
"SrcReg",
",",
"SrcReg2",
";",
"int64_t",
"CmpMask",
",",
"CmpValue",
";",
"bool",
"IsThumb1",
";",
"if",
"(",
"Next",
"!=",
"MI",
".",
"getParent",
"(",
")",
"->",
"end",
"(",
")",
"&&",
"analyzeCompare",
"(",
"*",
"Next",
",",
"SrcReg",
",",
"SrcReg2",
",",
"CmpMask",
",",
"CmpValue",
")",
"&&",
"isRedundantFlagInstr",
"(",
"&",
"*",
"Next",
",",
"SrcReg",
",",
"SrcReg2",
",",
"CmpValue",
",",
"&",
"MI",
",",
"IsThumb1",
")",
")",
"return",
"false",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"the",
"instruction",
"should",
"be",
"sunk",
"by",
"MachineSink",
"."
] | [
"ARM",
"ARM"
] | ARMBaseInstrInfo110 | shouldSink | ARM | CPU | LLVM | 10,181 | 99 | 1 | [] |
[
"<s>",
"RegisterAggr",
"&",
"RegisterAggr",
"::",
"insert",
"(",
"RegisterRef",
"RR",
")",
"{",
"if",
"(",
"PhysicalRegisterInfo",
"::",
"isRegMaskId",
"(",
"RR",
".",
"Reg",
")",
")",
"{",
"const",
"uint32_t",
"*",
"MB",
"=",
"PRI",
".",
"getRegMaskBits",
"(",
"RR",
".",
"Reg",
")",
";",
"for",
"(",
"unsigned",
"i",
"=",
"1",
",",
"e",
"=",
"PRI",
".",
"getTRI",
"(",
")",
".",
"getNumRegs",
"(",
")",
";",
"i",
"!=",
"e",
";",
"++",
"i",
")",
"{",
"if",
"(",
"MB",
"[",
"i",
"/",
"32",
"]",
"&",
"(",
"1u",
"<<",
"(",
"i",
"%",
"32",
")",
")",
")",
"continue",
";",
"insert",
"(",
"RegisterRef",
"(",
"i",
",",
"LaneBitmask",
"::",
"getAll",
"(",
")",
")",
")",
";",
"}",
"return",
"*",
"this",
";",
"}",
"RegisterRef",
"NR",
"=",
"PRI",
".",
"normalize",
"(",
"RR",
")",
";",
"auto",
"F",
"=",
"Masks",
".",
"find",
"(",
"NR",
".",
"Reg",
")",
";",
"if",
"(",
"F",
"==",
"Masks",
".",
"end",
"(",
")",
")",
"Masks",
".",
"insert",
"(",
"{",
"NR",
".",
"Reg",
",",
"NR",
".",
"Mask",
"}",
")",
";",
"else",
"F",
"->",
"second",
"|=",
"NR",
".",
"Mask",
";",
"const",
"TargetRegisterInfo",
"&",
"TRI",
"=",
"PRI",
".",
"getTRI",
"(",
")",
";",
"for",
"(",
"MCRegUnitIterator",
"U",
"(",
"RR",
".",
"Reg",
",",
"&",
"TRI",
")",
";",
"U",
".",
"isValid",
"(",
")",
";",
"++",
"U",
")",
"{",
"MCRegUnitRootIterator",
"R",
"(",
"*",
"U",
",",
"&",
"TRI",
")",
";",
"++",
"R",
";",
"if",
"(",
"!",
"R",
".",
"isValid",
"(",
")",
")",
"continue",
";",
"ExpAliasUnits",
".",
"set",
"(",
"*",
"U",
")",
";",
"CheckUnits",
"=",
"true",
";",
"}",
"return",
"*",
"this",
";",
"}",
"</s>"
] | [
"insert",
"-",
"Append",
"entry",
"to",
"the",
"vector",
"if",
"it",
"does",
"n't",
"already",
"exist",
"."
] | [
"Hexagon",
"1",
"32",
"1u",
"32"
] | RDFRegisters12 | insert | Hexagon | DSP | LLVM | 10,182 | 236 | 1 | [] |
[
"<s>",
"static",
"tree",
"mep_validate_based_tiny",
"(",
"tree",
"*",
"node",
",",
"tree",
"name",
",",
"tree",
"args",
",",
"int",
"flags",
"ATTRIBUTE_UNUSED",
",",
"bool",
"*",
"no_add",
")",
"{",
"if",
"(",
"TREE_CODE",
"(",
"*",
"node",
")",
"!=",
"VAR_DECL",
"&&",
"TREE_CODE",
"(",
"*",
"node",
")",
"!=",
"POINTER_TYPE",
"&&",
"TREE_CODE",
"(",
"*",
"node",
")",
"!=",
"TYPE_DECL",
")",
"{",
"warning",
"(",
"0",
",",
"\"%qE attribute only applies to variables\"",
",",
"name",
")",
";",
"*",
"no_add",
"=",
"true",
";",
"}",
"else",
"if",
"(",
"args",
"==",
"NULL_TREE",
"&&",
"TREE_CODE",
"(",
"*",
"node",
")",
"==",
"VAR_DECL",
")",
"{",
"if",
"(",
"!",
"(",
"TREE_PUBLIC",
"(",
"*",
"node",
")",
"||",
"TREE_STATIC",
"(",
"*",
"node",
")",
")",
")",
"{",
"warning",
"(",
"0",
",",
"\"address region attributes not allowed with auto storage class\"",
")",
";",
"*",
"no_add",
"=",
"true",
";",
"}",
"if",
"(",
"TREE_TYPE",
"(",
"*",
"node",
")",
"&&",
"TREE_CODE",
"(",
"TREE_TYPE",
"(",
"*",
"node",
")",
")",
"==",
"POINTER_TYPE",
")",
"{",
"warning",
"(",
"0",
",",
"\"address region attributes on pointed-to types ignored\"",
")",
";",
"*",
"no_add",
"=",
"true",
";",
"}",
"}",
"return",
"NULL_TREE",
";",
"}",
"</s>"
] | [
"Handle",
"attributes",
"."
] | [
"mep",
"0",
"\"%qE attribute only applies to variables\"",
"0",
"\"address region attributes not allowed with auto storage class\"",
"0",
"\"address region attributes on pointed-to types ignored\""
] | mep | mep_validate_based_tiny | mep | CPU | GCC | 10,183 | 150 | 1 | [] |
[
"<s>",
"static",
"bool",
"isSchedulingBoundary",
"(",
"const",
"MachineInstr",
"*",
"MI",
",",
"const",
"MachineFunction",
"&",
"MF",
")",
"{",
"if",
"(",
"MI",
"->",
"isLabel",
"(",
")",
"||",
"MI",
"->",
"isInlineAsm",
"(",
")",
")",
"return",
"true",
";",
"if",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
"==",
"TMS320C64X",
"::",
"call_return_label",
")",
"return",
"true",
";",
"const",
"TargetLowering",
"&",
"TLI",
"=",
"*",
"MF",
".",
"getTarget",
"(",
")",
".",
"getTargetLowering",
"(",
")",
";",
"if",
"(",
"MI",
"->",
"modifiesRegister",
"(",
"TLI",
".",
"getStackPointerRegisterToSaveRestore",
"(",
")",
")",
")",
"return",
"true",
";",
"switch",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
"{",
"case",
"TMS320C64X",
"::",
"prolog",
":",
"case",
"TMS320C64X",
"::",
"epilog",
":",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"isSchedulingBoundary",
"-",
"Overrides",
"the",
"isSchedulingBoundary",
"from",
"Codegen/TargetInstrInfo.cpp",
"to",
"make",
"it",
"capable",
"of",
"identifying",
"ENDBR",
"intructions",
"and",
"prevent",
"it",
"from",
"being",
"re-scheduled",
"."
] | [
"TMS320C64X",
"TMS320C64X::call_return_label",
"TMS320C64X::prolog",
"TMS320C64X::epilog"
] | TMS320C64XScheduler | isSchedulingBoundary | TMS320C64X | VLIW | LLVM | 10,184 | 106 | 1 | [] |
[
"<s>",
"bool",
"HexagonPacketizerList",
"::",
"updateOffset",
"(",
"SUnit",
"*",
"SUI",
",",
"SUnit",
"*",
"SUJ",
")",
"{",
"assert",
"(",
"SUI",
"->",
"getInstr",
"(",
")",
"&&",
"SUJ",
"->",
"getInstr",
"(",
")",
")",
";",
"MachineInstr",
"&",
"MI",
"=",
"*",
"SUI",
"->",
"getInstr",
"(",
")",
";",
"MachineInstr",
"&",
"MJ",
"=",
"*",
"SUJ",
"->",
"getInstr",
"(",
")",
";",
"unsigned",
"BPI",
",",
"OPI",
";",
"if",
"(",
"!",
"HII",
"->",
"getBaseAndOffsetPosition",
"(",
"MI",
",",
"BPI",
",",
"OPI",
")",
")",
"return",
"false",
";",
"unsigned",
"BPJ",
",",
"OPJ",
";",
"if",
"(",
"!",
"HII",
"->",
"getBaseAndOffsetPosition",
"(",
"MJ",
",",
"BPJ",
",",
"OPJ",
")",
")",
"return",
"false",
";",
"Register",
"Reg",
"=",
"MI",
".",
"getOperand",
"(",
"BPI",
")",
".",
"getReg",
"(",
")",
";",
"if",
"(",
"Reg",
"!=",
"MJ",
".",
"getOperand",
"(",
"BPJ",
")",
".",
"getReg",
"(",
")",
")",
"return",
"false",
";",
"for",
"(",
"const",
"auto",
"&",
"PI",
":",
"SUI",
"->",
"Preds",
")",
"if",
"(",
"PI",
".",
"getKind",
"(",
")",
"!=",
"SDep",
"::",
"Anti",
"&&",
"(",
"PI",
".",
"getKind",
"(",
")",
"!=",
"SDep",
"::",
"Data",
"||",
"PI",
".",
"getReg",
"(",
")",
"!=",
"Reg",
")",
")",
"return",
"false",
";",
"int",
"Incr",
";",
"if",
"(",
"!",
"HII",
"->",
"getIncrementValue",
"(",
"MJ",
",",
"Incr",
")",
")",
"return",
"false",
";",
"int64_t",
"Offset",
"=",
"MI",
".",
"getOperand",
"(",
"OPI",
")",
".",
"getImm",
"(",
")",
";",
"if",
"(",
"!",
"HII",
"->",
"isValidOffset",
"(",
"MI",
".",
"getOpcode",
"(",
")",
",",
"Offset",
"+",
"Incr",
",",
"HRI",
")",
")",
"return",
"false",
";",
"MI",
".",
"getOperand",
"(",
"OPI",
")",
".",
"setImm",
"(",
"Offset",
"+",
"Incr",
")",
";",
"ChangedOffset",
"=",
"Offset",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"we",
"can",
"update",
"the",
"offset",
"in",
"MI",
"so",
"that",
"MI",
"and",
"MJ",
"can",
"be",
"packetized",
"together",
"."
] | [
"Hexagon",
"Hexagon"
] | HexagonVLIWPacketizer1 | updateOffset | Hexagon | DSP | LLVM | 10,185 | 250 | 1 | [] |
[
"<s>",
"static",
"LLT",
"getPow2VectorType",
"(",
"LLT",
"Ty",
")",
"{",
"unsigned",
"NElts",
"=",
"Ty",
".",
"getNumElements",
"(",
")",
";",
"unsigned",
"Pow2NElts",
"=",
"1",
"<<",
"Log2_32_Ceil",
"(",
"NElts",
")",
";",
"return",
"Ty",
".",
"changeElementCount",
"(",
"ElementCount",
"::",
"getFixed",
"(",
"Pow2NElts",
")",
")",
";",
"}",
"</s>"
] | [
"Widens",
"the",
"length",
"of",
"the",
"given",
"vector",
"MVT",
"up",
"to",
"the",
"nearest",
"power",
"of",
"2",
"and",
"returns",
"that",
"type",
"."
] | [
"AMDGPU",
"1"
] | AMDGPULegalizerInfo1 | getPow2VectorType | AMDGPU | GPU | LLVM | 10,186 | 41 | 1 | [] |
[
"<s>",
"void",
"avr_cpu_cpp_builtins",
"(",
"struct",
"cpp_reader",
"*",
"pfile",
")",
"{",
"builtin_define_std",
"(",
"\"AVR\"",
")",
";",
"if",
"(",
"avr_arch",
"->",
"macro",
")",
"cpp_define_formatted",
"(",
"pfile",
",",
"\"__AVR_ARCH__=%s\"",
",",
"avr_arch",
"->",
"macro",
")",
";",
"if",
"(",
"AVR_HAVE_RAMPD",
")",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_HAVE_RAMPD__\"",
")",
";",
"if",
"(",
"AVR_HAVE_RAMPX",
")",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_HAVE_RAMPX__\"",
")",
";",
"if",
"(",
"AVR_HAVE_RAMPY",
")",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_HAVE_RAMPY__\"",
")",
";",
"if",
"(",
"AVR_HAVE_RAMPZ",
")",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_HAVE_RAMPZ__\"",
")",
";",
"if",
"(",
"AVR_HAVE_ELPM",
")",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_HAVE_ELPM__\"",
")",
";",
"if",
"(",
"AVR_HAVE_ELPMX",
")",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_HAVE_ELPMX__\"",
")",
";",
"if",
"(",
"AVR_HAVE_MOVW",
")",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_HAVE_MOVW__\"",
")",
";",
"if",
"(",
"AVR_HAVE_LPMX",
")",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_HAVE_LPMX__\"",
")",
";",
"if",
"(",
"avr_arch",
"->",
"asm_only",
")",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_ASM_ONLY__\"",
")",
";",
"if",
"(",
"AVR_HAVE_MUL",
")",
"{",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_ENHANCED__\"",
")",
";",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_HAVE_MUL__\"",
")",
";",
"}",
"if",
"(",
"avr_arch",
"->",
"have_jmp_call",
")",
"{",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_MEGA__\"",
")",
";",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_HAVE_JMP_CALL__\"",
")",
";",
"}",
"if",
"(",
"AVR_XMEGA",
")",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_XMEGA__\"",
")",
";",
"if",
"(",
"AVR_TINY",
")",
"{",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_TINY__\"",
")",
";",
"cpp_define_formatted",
"(",
"pfile",
",",
"\"__AVR_TINY_PM_BASE_ADDRESS__=0x%x\"",
",",
"AVR_TINY_PM_OFFSET",
")",
";",
"}",
"if",
"(",
"AVR_HAVE_EIJMP_EICALL",
")",
"{",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_HAVE_EIJMP_EICALL__\"",
")",
";",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_3_BYTE_PC__\"",
")",
";",
"}",
"else",
"{",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_2_BYTE_PC__\"",
")",
";",
"}",
"if",
"(",
"AVR_HAVE_8BIT_SP",
")",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_HAVE_8BIT_SP__\"",
")",
";",
"else",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_HAVE_16BIT_SP__\"",
")",
";",
"if",
"(",
"AVR_HAVE_SPH",
")",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_HAVE_SPH__\"",
")",
";",
"else",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_SP8__\"",
")",
";",
"if",
"(",
"TARGET_NO_INTERRUPTS",
")",
"cpp_define",
"(",
"pfile",
",",
"\"__NO_INTERRUPTS__\"",
")",
";",
"if",
"(",
"TARGET_SKIP_BUG",
")",
"{",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_ERRATA_SKIP__\"",
")",
";",
"if",
"(",
"AVR_HAVE_JMP_CALL",
")",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_ERRATA_SKIP_JMP_CALL__\"",
")",
";",
"}",
"if",
"(",
"TARGET_RMW",
")",
"cpp_define",
"(",
"pfile",
",",
"\"__AVR_ISA_RMW__\"",
")",
";",
"cpp_define_formatted",
"(",
"pfile",
",",
"\"__AVR_SFR_OFFSET__=0x%x\"",
",",
"avr_arch",
"->",
"sfr_offset",
")",
";",
"cpp_define",
"(",
"pfile",
",",
"\"__WITH_AVRLIBC__\"",
")",
";",
"if",
"(",
"lang_GNU_C",
"(",
")",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"ADDR_SPACE_COUNT",
";",
"i",
"++",
")",
"if",
"(",
"!",
"ADDR_SPACE_GENERIC_P",
"(",
"i",
")",
"&&",
"avr_addr_space_supported_p",
"(",
"(",
"addr_space_t",
")",
"i",
")",
")",
"{",
"const",
"char",
"*",
"name",
"=",
"avr_addrspace",
"[",
"i",
"]",
".",
"name",
";",
"char",
"*",
"Name",
"=",
"(",
"char",
"*",
")",
"alloca",
"(",
"1",
"+",
"strlen",
"(",
"name",
")",
")",
";",
"cpp_define",
"(",
"pfile",
",",
"avr_toupper",
"(",
"Name",
",",
"name",
")",
")",
";",
"}",
"}",
"cpp_define",
"(",
"pfile",
",",
"\"__BUILTIN_AVR_\"",
"#",
"NAME",
")",
";",
"cpp_define_formatted",
"(",
"pfile",
",",
"\"__INT24_MAX__=8388607%s\"",
",",
"INT_TYPE_SIZE",
"==",
"8",
"?",
"\"LL\"",
":",
"\"L\"",
")",
";",
"cpp_define",
"(",
"pfile",
",",
"\"__INT24_MIN__=(-__INT24_MAX__-1)\"",
")",
";",
"cpp_define_formatted",
"(",
"pfile",
",",
"\"__UINT24_MAX__=16777215%s\"",
",",
"INT_TYPE_SIZE",
"==",
"8",
"?",
"\"ULL\"",
":",
"\"UL\"",
")",
";",
"}",
"</s>"
] | [
"Worker",
"function",
"for",
"TARGET_CPU_CPP_BUILTINS",
"."
] | [
"avr",
"\"AVR\"",
"\"__AVR_ARCH__=%s\"",
"\"__AVR_HAVE_RAMPD__\"",
"\"__AVR_HAVE_RAMPX__\"",
"\"__AVR_HAVE_RAMPY__\"",
"\"__AVR_HAVE_RAMPZ__\"",
"\"__AVR_HAVE_ELPM__\"",
"\"__AVR_HAVE_ELPMX__\"",
"\"__AVR_HAVE_MOVW__\"",
"\"__AVR_HAVE_LPMX__\"",
"\"__AVR_ASM_ONLY__\"",
"\"__AVR_ENHANCED__\"",
"\"__AVR_HAVE_MUL__\"",
"\"__AVR_MEGA__\"",
"\"__AVR_HAVE_JMP_CALL__\"",
"\"__AVR_XMEGA__\"",
"\"__AVR_TINY__\"",
"\"__AVR_TINY_PM_BASE_ADDRESS__=0x%x\"",
"\"__AVR_HAVE_EIJMP_EICALL__\"",
"\"__AVR_3_BYTE_PC__\"",
"\"__AVR_2_BYTE_PC__\"",
"\"__AVR_HAVE_8BIT_SP__\"",
"\"__AVR_HAVE_16BIT_SP__\"",
"\"__AVR_HAVE_SPH__\"",
"\"__AVR_SP8__\"",
"\"__NO_INTERRUPTS__\"",
"\"__AVR_ERRATA_SKIP__\"",
"\"__AVR_ERRATA_SKIP_JMP_CALL__\"",
"\"__AVR_ISA_RMW__\"",
"\"__AVR_SFR_OFFSET__=0x%x\"",
"\"__WITH_AVRLIBC__\"",
"0",
"1",
"\"__BUILTIN_AVR_\"",
"\"__INT24_MAX__=8388607%s\"",
"8",
"\"LL\"",
"\"L\"",
"\"__INT24_MIN__=(-__INT24_MAX__-1)\"",
"\"__UINT24_MAX__=16777215%s\"",
"8",
"\"ULL\"",
"\"UL\""
] | avr-c4 | avr_cpu_cpp_builtins | avr | MPU | GCC | 10,187 | 468 | 1 | [] |
[
"<s>",
"static",
"sbitmap",
"riscv_get_separate_components",
"(",
"void",
")",
"{",
"HOST_WIDE_INT",
"offset",
";",
"sbitmap",
"components",
"=",
"sbitmap_alloc",
"(",
"FIRST_PSEUDO_REGISTER",
")",
";",
"bitmap_clear",
"(",
"components",
")",
";",
"if",
"(",
"riscv_use_save_libcall",
"(",
"&",
"cfun",
"->",
"machine",
"->",
"frame",
")",
"||",
"cfun",
"->",
"machine",
"->",
"interrupt_handler_p",
"||",
"!",
"cfun",
"->",
"machine",
"->",
"frame",
".",
"gp_sp_offset",
".",
"is_constant",
"(",
")",
")",
"return",
"components",
";",
"offset",
"=",
"cfun",
"->",
"machine",
"->",
"frame",
".",
"gp_sp_offset",
".",
"to_constant",
"(",
")",
";",
"for",
"(",
"unsigned",
"int",
"regno",
"=",
"GP_REG_FIRST",
";",
"regno",
"<=",
"GP_REG_LAST",
";",
"regno",
"++",
")",
"if",
"(",
"BITSET_P",
"(",
"cfun",
"->",
"machine",
"->",
"frame",
".",
"mask",
",",
"regno",
"-",
"GP_REG_FIRST",
")",
")",
"{",
"if",
"(",
"SMALL_OPERAND",
"(",
"offset",
")",
")",
"bitmap_set_bit",
"(",
"components",
",",
"regno",
")",
";",
"offset",
"-=",
"UNITS_PER_WORD",
";",
"}",
"offset",
"=",
"cfun",
"->",
"machine",
"->",
"frame",
".",
"fp_sp_offset",
".",
"to_constant",
"(",
")",
";",
"for",
"(",
"unsigned",
"int",
"regno",
"=",
"FP_REG_FIRST",
";",
"regno",
"<=",
"FP_REG_LAST",
";",
"regno",
"++",
")",
"if",
"(",
"BITSET_P",
"(",
"cfun",
"->",
"machine",
"->",
"frame",
".",
"fmask",
",",
"regno",
"-",
"FP_REG_FIRST",
")",
")",
"{",
"machine_mode",
"mode",
"=",
"TARGET_DOUBLE_FLOAT",
"?",
"DFmode",
":",
"SFmode",
";",
"if",
"(",
"SMALL_OPERAND",
"(",
"offset",
")",
")",
"bitmap_set_bit",
"(",
"components",
",",
"regno",
")",
";",
"offset",
"-=",
"GET_MODE_SIZE",
"(",
"mode",
")",
".",
"to_constant",
"(",
")",
";",
"}",
"if",
"(",
"frame_pointer_needed",
")",
"bitmap_clear_bit",
"(",
"components",
",",
"HARD_FRAME_POINTER_REGNUM",
")",
";",
"bitmap_clear_bit",
"(",
"components",
",",
"RETURN_ADDR_REGNUM",
")",
";",
"return",
"components",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS",
"."
] | [
"riscv"
] | riscv1 | riscv_get_separate_components | riscv | CPU | GCC | 10,188 | 227 | 1 | [] |
[
"<s>",
"static",
"bool",
"m32r_return_in_memory",
"(",
"const_tree",
"type",
",",
"const_tree",
"fntype",
"ATTRIBUTE_UNUSED",
")",
"{",
"cumulative_args_t",
"dummy",
"=",
"pack_cumulative_args",
"(",
"NULL",
")",
";",
"return",
"m32r_pass_by_reference",
"(",
"dummy",
",",
"TYPE_MODE",
"(",
"type",
")",
",",
"type",
",",
"false",
")",
";",
"}",
"</s>"
] | [
"Worker",
"function",
"for",
"TARGET_RETURN_IN_MEMORY",
"."
] | [
"m32r"
] | m32r4 | m32r_return_in_memory | m32r | MPU | GCC | 10,189 | 36 | 1 | [] |
[
"<s>",
"bool",
"P2AsmBackend",
"::",
"writeNopData",
"(",
"raw_ostream",
"&",
"OS",
",",
"uint64_t",
"Count",
")",
"const",
"{",
"return",
"true",
";",
"}",
"</s>"
] | [
"Write",
"an",
"(",
"optimal",
")",
"nop",
"sequence",
"of",
"Count",
"bytes",
"to",
"the",
"given",
"output",
"."
] | [
"P2",
"P2"
] | P2AsmBackend | writeNopData | P2 | MPU | LLVM | 10,190 | 18 | 1 | [] |
[
"<s>",
"static",
"rtx",
"riscv_strip_unspec_address",
"(",
"rtx",
"op",
")",
"{",
"rtx",
"base",
",",
"offset",
";",
"split_const",
"(",
"op",
",",
"&",
"base",
",",
"&",
"offset",
")",
";",
"if",
"(",
"UNSPEC_ADDRESS_P",
"(",
"base",
")",
")",
"op",
"=",
"plus_constant",
"(",
"Pmode",
",",
"UNSPEC_ADDRESS",
"(",
"base",
")",
",",
"INTVAL",
"(",
"offset",
")",
")",
";",
"return",
"op",
";",
"}",
"</s>"
] | [
"If",
"OP",
"is",
"an",
"UNSPEC",
"address",
",",
"return",
"the",
"address",
"to",
"which",
"it",
"refers",
",",
"otherwise",
"return",
"OP",
"itself",
"."
] | [
"riscv"
] | riscv | riscv_strip_unspec_address | riscv | CPU | GCC | 10,191 | 52 | 1 | [] |
[
"<s>",
"static",
"void",
"emit_unlikely_jump",
"(",
"rtx",
"insn",
")",
"{",
"rtx_insn",
"*",
"jump",
"=",
"emit_jump_insn",
"(",
"insn",
")",
";",
"add_reg_br_prob_note",
"(",
"jump",
",",
"profile_probability",
"::",
"very_unlikely",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"Mark",
"the",
"previous",
"jump",
"instruction",
"as",
"unlikely",
"."
] | [
"arm"
] | arm | emit_unlikely_jump | arm | CPU | GCC | 10,192 | 29 | 1 | [] |
[
"<s>",
"bool",
"dump_insn_list",
"(",
"const",
"rtx",
"&",
"t",
",",
"const",
"insn_info_list_t",
"&",
"insn_info",
",",
"void",
"*",
"unused",
"ATTRIBUTE_UNUSED",
")",
"{",
"gcc_assert",
"(",
"dump_file",
")",
";",
"fprintf",
"(",
"dump_file",
",",
"\"Tag 0x%lx ::\\n\"",
",",
"INTVAL",
"(",
"t",
")",
")",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"<",
"insn_info",
".",
"length",
"(",
")",
";",
"i",
"++",
")",
"dump_insn_slim",
"(",
"dump_file",
",",
"insn_info",
"[",
"i",
"]",
"->",
"insn",
")",
";",
"fprintf",
"(",
"dump_file",
",",
"\"\\n\"",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Callback",
"invoked",
"for",
"each",
"name-value",
"pair",
"(",
"T",
",",
"INSN_INFO",
")",
"to",
"dump",
"the",
"insn",
"list",
"INSN_INFO",
"for",
"tag",
"T",
"."
] | [
"aarch64",
"\"Tag 0x%lx ::\\n\"",
"0",
"\"\\n\""
] | falkor-tag-collision-avoidance | dump_insn_list | aarch64 | CPU | GCC | 10,193 | 77 | 1 | [] |
[
"<s>",
"static",
"const",
"char",
"*",
"cond_string",
"(",
"enum",
"rtx_code",
"code",
")",
"{",
"switch",
"(",
"code",
")",
"{",
"case",
"NE",
":",
"return",
"\"ne\"",
";",
"case",
"EQ",
":",
"return",
"\"eq\"",
";",
"case",
"GE",
":",
"return",
"\"ge\"",
";",
"case",
"GT",
":",
"return",
"\"gt\"",
";",
"case",
"LE",
":",
"return",
"\"le\"",
";",
"case",
"LT",
":",
"return",
"\"lt\"",
";",
"case",
"GEU",
":",
"return",
"\"hs\"",
";",
"case",
"GTU",
":",
"return",
"\"hi\"",
";",
"case",
"LEU",
":",
"return",
"\"ls\"",
";",
"case",
"LTU",
":",
"return",
"\"lo\"",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"}",
"</s>"
] | [
"Return",
"assembly",
"language",
"string",
"which",
"identifies",
"a",
"comparison",
"type",
"."
] | [
"h8300",
"\"ne\"",
"\"eq\"",
"\"ge\"",
"\"gt\"",
"\"le\"",
"\"lt\"",
"\"hs\"",
"\"hi\"",
"\"ls\"",
"\"lo\""
] | h8300 | cond_string | h8300 | MPU | GCC | 10,194 | 84 | 1 | [] |
[
"<s>",
"void",
"ECLairInstPrinter",
"::",
"printRegName",
"(",
"raw_ostream",
"&",
"O",
",",
"unsigned",
"RegNo",
")",
"const",
"{",
"O",
"<<",
"getRegisterName",
"(",
"RegNo",
")",
";",
"}",
"</s>"
] | [
"Print",
"the",
"assembler",
"register",
"name",
"."
] | [
"ECLair",
"ECLair"
] | ECLairInstPrinter | printRegName | ECLair | MPU | LLVM | 10,195 | 22 | 1 | [] |
[
"<s>",
"void",
"GCNPassConfig",
"::",
"addPreEmitPass",
"(",
")",
"{",
"addPass",
"(",
"createSIMemoryLegalizerPass",
"(",
")",
")",
";",
"addPass",
"(",
"createSIInsertWaitcntsPass",
"(",
")",
")",
";",
"addPass",
"(",
"createSIShrinkInstructionsPass",
"(",
")",
")",
";",
"addPass",
"(",
"createSIModeRegisterPass",
"(",
")",
")",
";",
"addPass",
"(",
"&",
"PostRAHazardRecognizerID",
")",
";",
"addPass",
"(",
"&",
"SIInsertSkipsPassID",
")",
";",
"addPass",
"(",
"createSIDebuggerInsertNopsPass",
"(",
")",
")",
";",
"addPass",
"(",
"&",
"BranchRelaxationPassID",
")",
";",
"}",
"</s>"
] | [
"This",
"pass",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"immediately",
"before",
"machine",
"code",
"is",
"emitted",
"."
] | [
"AMDGPU",
"SI",
"SI",
"SI",
"SI",
"SI",
"SI"
] | AMDGPUTargetMachine111 | addPreEmitPass | AMDGPU | GPU | LLVM | 10,196 | 61 | 1 | [] |
[
"<s>",
"const",
"MCFixupKindInfo",
"&",
"getFixupKindInfo",
"(",
"MCFixupKind",
"Kind",
")",
"const",
"override",
"{",
"const",
"static",
"MCFixupKindInfo",
"Infos",
"[",
"RISCV",
"::",
"NumTargetFixupKinds",
"]",
"=",
"{",
"{",
"\"fixup_riscv_hi20\"",
",",
"12",
",",
"20",
",",
"0",
"}",
",",
"{",
"\"fixup_riscv_lo12_i\"",
",",
"20",
",",
"12",
",",
"0",
"}",
",",
"{",
"\"fixup_riscv_lo12_s\"",
",",
"0",
",",
"32",
",",
"0",
"}",
",",
"{",
"\"fixup_riscv_pcrel_hi20\"",
",",
"12",
",",
"20",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"fixup_riscv_jal\"",
",",
"12",
",",
"20",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"fixup_riscv_branch\"",
",",
"0",
",",
"32",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"fixup_riscv_rvc_jump\"",
",",
"2",
",",
"11",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"fixup_riscv_rvc_branch\"",
",",
"0",
",",
"16",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
"}",
";",
"if",
"(",
"Kind",
"<",
"FirstTargetFixupKind",
")",
"return",
"MCAsmBackend",
"::",
"getFixupKindInfo",
"(",
"Kind",
")",
";",
"assert",
"(",
"unsigned",
"(",
"Kind",
"-",
"FirstTargetFixupKind",
")",
"<",
"getNumFixupKinds",
"(",
")",
"&&",
"\"Invalid kind!\"",
")",
";",
"return",
"Infos",
"[",
"Kind",
"-",
"FirstTargetFixupKind",
"]",
";",
"}",
"</s>"
] | [
"Get",
"information",
"on",
"a",
"fixup",
"kind",
"."
] | [
"RISCV",
"RISCV::NumTargetFixupKinds",
"\"fixup_riscv_hi20\"",
"12",
"20",
"0",
"\"fixup_riscv_lo12_i\"",
"20",
"12",
"0",
"\"fixup_riscv_lo12_s\"",
"0",
"32",
"0",
"\"fixup_riscv_pcrel_hi20\"",
"12",
"20",
"\"fixup_riscv_jal\"",
"12",
"20",
"\"fixup_riscv_branch\"",
"0",
"32",
"\"fixup_riscv_rvc_jump\"",
"2",
"11",
"\"fixup_riscv_rvc_branch\"",
"0",
"16",
"\"Invalid kind!\""
] | RISCVAsmBackend28 | getFixupKindInfo | RISCV | CPU | LLVM | 10,197 | 152 | 1 | [] |
[
"<s>",
"int",
"const_ok_for_arm",
"(",
"HOST_WIDE_INT",
"i",
")",
"{",
"int",
"lowbit",
";",
"if",
"(",
"(",
"i",
"&",
"~",
"(",
"unsigned",
"HOST_WIDE_INT",
")",
"0xffffffff",
")",
"!=",
"0",
"&&",
"(",
"(",
"i",
"&",
"~",
"(",
"unsigned",
"HOST_WIDE_INT",
")",
"0xffffffff",
")",
"!=",
"(",
"(",
"~",
"(",
"unsigned",
"HOST_WIDE_INT",
")",
"0",
")",
"&",
"~",
"(",
"unsigned",
"HOST_WIDE_INT",
")",
"0xffffffff",
")",
")",
")",
"return",
"FALSE",
";",
"i",
"&=",
"(",
"unsigned",
"HOST_WIDE_INT",
")",
"0xffffffff",
";",
"if",
"(",
"(",
"i",
"&",
"~",
"(",
"unsigned",
"HOST_WIDE_INT",
")",
"0xff",
")",
"==",
"0",
")",
"return",
"TRUE",
";",
"lowbit",
"=",
"ffs",
"(",
"(",
"int",
")",
"i",
")",
"-",
"1",
";",
"if",
"(",
"TARGET_ARM",
")",
"lowbit",
"&=",
"~",
"1",
";",
"if",
"(",
"(",
"i",
"&",
"~",
"(",
"(",
"(",
"unsigned",
"HOST_WIDE_INT",
")",
"0xff",
")",
"<<",
"lowbit",
")",
")",
"==",
"0",
")",
"return",
"TRUE",
";",
"if",
"(",
"TARGET_ARM",
")",
"{",
"if",
"(",
"lowbit",
"<=",
"4",
"&&",
"(",
"(",
"i",
"&",
"~",
"0xc000003f",
")",
"==",
"0",
"||",
"(",
"i",
"&",
"~",
"0xf000000f",
")",
"==",
"0",
"||",
"(",
"i",
"&",
"~",
"0xfc000003",
")",
"==",
"0",
")",
")",
"return",
"TRUE",
";",
"}",
"else",
"if",
"(",
"TARGET_THUMB2",
")",
"{",
"HOST_WIDE_INT",
"v",
";",
"v",
"=",
"i",
"&",
"0xff",
";",
"v",
"|=",
"v",
"<<",
"16",
";",
"if",
"(",
"i",
"==",
"v",
"||",
"i",
"==",
"(",
"v",
"|",
"(",
"v",
"<<",
"8",
")",
")",
")",
"return",
"TRUE",
";",
"v",
"=",
"i",
"&",
"0xff00",
";",
"v",
"|=",
"v",
"<<",
"16",
";",
"if",
"(",
"i",
"==",
"v",
")",
"return",
"TRUE",
";",
"}",
"else",
"if",
"(",
"TARGET_HAVE_MOVT",
")",
"{",
"if",
"(",
"i",
">",
"0xffff",
")",
"return",
"FALSE",
";",
"else",
"return",
"TRUE",
";",
"}",
"return",
"FALSE",
";",
"}",
"</s>"
] | [
"Return",
"TRUE",
"if",
"int",
"I",
"is",
"a",
"valid",
"immediate",
"ARM",
"constant",
"."
] | [
"arm",
"0xffffffff",
"0",
"0xffffffff",
"0",
"0xffffffff",
"0xffffffff",
"0xff",
"0",
"1",
"1",
"0xff",
"0",
"4",
"0xc000003f",
"0",
"0xf000000f",
"0",
"0xfc000003",
"0",
"0xff",
"16",
"8",
"0xff00",
"16",
"0xffff"
] | arm | const_ok_for_arm | arm | CPU | GCC | 10,198 | 262 | 1 | [] |
[
"<s>",
"const",
"MipsInstrInfo",
"*",
"getInstrInfo",
"(",
")",
"const",
"override",
"{",
"return",
"InstrInfo",
".",
"get",
"(",
")",
";",
"}",
"</s>"
] | [
"TargetInstrInfo",
"getter",
"."
] | [
"Mips",
"Mips"
] | MipsSubtarget (2)1 | getInstrInfo | Mips | CPU | LLVM | 10,199 | 17 | 1 | [] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.