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>",
"SDValue",
"XCoreSelectionDAGInfo",
"::",
"EmitTargetCodeForMemcpy",
"(",
"SelectionDAG",
"&",
"DAG",
",",
"const",
"SDLoc",
"&",
"dl",
",",
"SDValue",
"Chain",
",",
"SDValue",
"Dst",
",",
"SDValue",
"Src",
",",
"SDValue",
"Size",
",",
"unsigned",
"Align",
",",
"bool",
"isVolatile",
",",
"bool",
"AlwaysInline",
",",
"MachinePointerInfo",
"DstPtrInfo",
",",
"MachinePointerInfo",
"SrcPtrInfo",
")",
"const",
"{",
"unsigned",
"SizeBitWidth",
"=",
"Size",
".",
"getValueType",
"(",
")",
".",
"getSizeInBits",
"(",
")",
";",
"if",
"(",
"!",
"AlwaysInline",
"&&",
"(",
"Align",
"&",
"3",
")",
"==",
"0",
"&&",
"DAG",
".",
"MaskedValueIsZero",
"(",
"Size",
",",
"APInt",
"(",
"SizeBitWidth",
",",
"3",
")",
")",
")",
"{",
"const",
"TargetLowering",
"&",
"TLI",
"=",
"*",
"DAG",
".",
"getSubtarget",
"(",
")",
".",
"getTargetLowering",
"(",
")",
";",
"TargetLowering",
"::",
"ArgListTy",
"Args",
";",
"TargetLowering",
"::",
"ArgListEntry",
"Entry",
";",
"Entry",
".",
"Ty",
"=",
"DAG",
".",
"getDataLayout",
"(",
")",
".",
"getIntPtrType",
"(",
"*",
"DAG",
".",
"getContext",
"(",
")",
")",
";",
"Entry",
".",
"Node",
"=",
"Dst",
";",
"Args",
".",
"push_back",
"(",
"Entry",
")",
";",
"Entry",
".",
"Node",
"=",
"Src",
";",
"Args",
".",
"push_back",
"(",
"Entry",
")",
";",
"Entry",
".",
"Node",
"=",
"Size",
";",
"Args",
".",
"push_back",
"(",
"Entry",
")",
";",
"TargetLowering",
"::",
"CallLoweringInfo",
"CLI",
"(",
"DAG",
")",
";",
"CLI",
".",
"setDebugLoc",
"(",
"dl",
")",
".",
"setChain",
"(",
"Chain",
")",
".",
"setCallee",
"(",
"TLI",
".",
"getLibcallCallingConv",
"(",
"RTLIB",
"::",
"MEMCPY",
")",
",",
"Type",
"::",
"getVoidTy",
"(",
"*",
"DAG",
".",
"getContext",
"(",
")",
")",
",",
"DAG",
".",
"getExternalSymbol",
"(",
"\"__memcpy_4\"",
",",
"TLI",
".",
"getPointerTy",
"(",
"DAG",
".",
"getDataLayout",
"(",
")",
")",
")",
",",
"std",
"::",
"move",
"(",
"Args",
")",
")",
".",
"setDiscardResult",
"(",
")",
";",
"std",
"::",
"pair",
"<",
"SDValue",
",",
"SDValue",
">",
"CallResult",
"=",
"TLI",
".",
"LowerCallTo",
"(",
"CLI",
")",
";",
"return",
"CallResult",
".",
"second",
";",
"}",
"return",
"SDValue",
"(",
")",
";",
"}",
"</s>"
] | [
"Emit",
"target-specific",
"code",
"that",
"performs",
"a",
"memcpy",
"."
] | [
"XCore",
"XCore",
"3",
"0",
"3",
"\"__memcpy_4\""
] | XCoreSelectionDAGInfo16 | EmitTargetCodeForMemcpy | XCore | MPU | LLVM | 21,200 | 271 | 1 | [] |
[
"<s>",
"const",
"MipsSubtarget",
"*",
"MipsTargetMachine",
"::",
"getSubtargetImpl",
"(",
"const",
"Function",
"&",
"F",
")",
"const",
"{",
"Attribute",
"CPUAttr",
"=",
"F",
".",
"getFnAttribute",
"(",
"\"target-cpu\"",
")",
";",
"Attribute",
"FSAttr",
"=",
"F",
".",
"getFnAttribute",
"(",
"\"target-features\"",
")",
";",
"std",
"::",
"string",
"CPU",
"=",
"CPUAttr",
".",
"isValid",
"(",
")",
"?",
"CPUAttr",
".",
"getValueAsString",
"(",
")",
".",
"str",
"(",
")",
":",
"TargetCPU",
";",
"std",
"::",
"string",
"FS",
"=",
"FSAttr",
".",
"isValid",
"(",
")",
"?",
"FSAttr",
".",
"getValueAsString",
"(",
")",
".",
"str",
"(",
")",
":",
"TargetFS",
";",
"bool",
"hasMips16Attr",
"=",
"F",
".",
"getFnAttribute",
"(",
"\"mips16\"",
")",
".",
"isValid",
"(",
")",
";",
"bool",
"hasNoMips16Attr",
"=",
"F",
".",
"getFnAttribute",
"(",
"\"nomips16\"",
")",
".",
"isValid",
"(",
")",
";",
"bool",
"HasMicroMipsAttr",
"=",
"F",
".",
"getFnAttribute",
"(",
"\"micromips\"",
")",
".",
"isValid",
"(",
")",
";",
"bool",
"HasNoMicroMipsAttr",
"=",
"F",
".",
"getFnAttribute",
"(",
"\"nomicromips\"",
")",
".",
"isValid",
"(",
")",
";",
"bool",
"softFloat",
"=",
"F",
".",
"hasFnAttribute",
"(",
"\"use-soft-float\"",
")",
"&&",
"F",
".",
"getFnAttribute",
"(",
"\"use-soft-float\"",
")",
".",
"getValueAsString",
"(",
")",
"==",
"\"true\"",
";",
"if",
"(",
"hasMips16Attr",
")",
"FS",
"+=",
"FS",
".",
"empty",
"(",
")",
"?",
"\"+mips16\"",
":",
"\",+mips16\"",
";",
"else",
"if",
"(",
"hasNoMips16Attr",
")",
"FS",
"+=",
"FS",
".",
"empty",
"(",
")",
"?",
"\"-mips16\"",
":",
"\",-mips16\"",
";",
"if",
"(",
"HasMicroMipsAttr",
")",
"FS",
"+=",
"FS",
".",
"empty",
"(",
")",
"?",
"\"+micromips\"",
":",
"\",+micromips\"",
";",
"else",
"if",
"(",
"HasNoMicroMipsAttr",
")",
"FS",
"+=",
"FS",
".",
"empty",
"(",
")",
"?",
"\"-micromips\"",
":",
"\",-micromips\"",
";",
"if",
"(",
"softFloat",
")",
"FS",
"+=",
"FS",
".",
"empty",
"(",
")",
"?",
"\"+soft-float\"",
":",
"\",+soft-float\"",
";",
"auto",
"&",
"I",
"=",
"SubtargetMap",
"[",
"CPU",
"+",
"FS",
"]",
";",
"if",
"(",
"!",
"I",
")",
"{",
"resetTargetOptions",
"(",
"F",
")",
";",
"I",
"=",
"std",
"::",
"make_unique",
"<",
"MipsSubtarget",
">",
"(",
"TargetTriple",
",",
"CPU",
",",
"FS",
",",
"isLittle",
",",
"*",
"this",
",",
"MaybeAlign",
"(",
"Options",
".",
"StackAlignmentOverride",
")",
")",
";",
"}",
"return",
"I",
".",
"get",
"(",
")",
";",
"}",
"</s>"
] | [
"Virtual",
"method",
"implemented",
"by",
"subclasses",
"that",
"returns",
"a",
"reference",
"to",
"that",
"target",
"'s",
"TargetSubtargetInfo-derived",
"member",
"variable",
"."
] | [
"Mips",
"Mips",
"Mips",
"\"target-cpu\"",
"\"target-features\"",
"Mips",
"\"mips16\"",
"Mips",
"\"nomips16\"",
"Mips",
"\"micromips\"",
"Mips",
"\"nomicromips\"",
"\"use-soft-float\"",
"\"use-soft-float\"",
"\"true\"",
"Mips",
"\"+mips16\"",
"\",+mips16\"",
"Mips",
"\"-mips16\"",
"\",-mips16\"",
"Mips",
"\"+micromips\"",
"\",+micromips\"",
"Mips",
"\"-micromips\"",
"\",-micromips\"",
"\"+soft-float\"",
"\",+soft-float\"",
"Mips"
] | MipsTargetMachine75 | getSubtargetImpl | Mips | CPU | LLVM | 21,201 | 300 | 1 | [] |
[
"<s>",
"LLVM_DUMP_METHOD",
"void",
"GCNRegPressure",
"::",
"print",
"(",
"raw_ostream",
"&",
"OS",
",",
"const",
"SISubtarget",
"*",
"ST",
")",
"const",
"{",
"OS",
"<<",
"\"VGPRs: \"",
"<<",
"getVGPRNum",
"(",
")",
";",
"if",
"(",
"ST",
")",
"OS",
"<<",
"\"(O\"",
"<<",
"ST",
"->",
"getOccupancyWithNumVGPRs",
"(",
"getVGPRNum",
"(",
")",
")",
"<<",
"')'",
";",
"OS",
"<<",
"\", SGPRs: \"",
"<<",
"getSGPRNum",
"(",
")",
";",
"if",
"(",
"ST",
")",
"OS",
"<<",
"\"(O\"",
"<<",
"ST",
"->",
"getOccupancyWithNumSGPRs",
"(",
"getSGPRNum",
"(",
")",
")",
"<<",
"')'",
";",
"OS",
"<<",
"\", LVGPR WT: \"",
"<<",
"getVGPRTuplesWeight",
"(",
")",
"<<",
"\", LSGPR WT: \"",
"<<",
"getSGPRTuplesWeight",
"(",
")",
";",
"if",
"(",
"ST",
")",
"OS",
"<<",
"\" -> Occ: \"",
"<<",
"getOccupancy",
"(",
"*",
"ST",
")",
";",
"OS",
"<<",
"'\\n'",
";",
"}",
"</s>"
] | [
"print",
"-",
"Print",
"a",
"debug",
"representation",
"of",
"the",
"operand",
"to",
"the",
"given",
"stream",
"."
] | [
"AMDGPU",
"SI",
"\"VGPRs: \"",
"\"(O\"",
"\", SGPRs: \"",
"\"(O\"",
"\", LVGPR WT: \"",
"\", LSGPR WT: \"",
"\" -> Occ: \""
] | GCNRegPressure15 | print | AMDGPU | GPU | LLVM | 21,202 | 104 | 1 | [] |
[
"<s>",
"void",
"AMDGPUPropagateAttributes",
"::",
"setAttributes",
"(",
"Function",
"&",
"F",
",",
"const",
"ArrayRef",
"<",
"Optional",
"<",
"Attribute",
">>",
"NewAttrs",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"Set attributes on \"",
"<<",
"F",
".",
"getName",
"(",
")",
"<<",
"\":\\n\"",
")",
";",
"for",
"(",
"unsigned",
"I",
"=",
"0",
";",
"I",
"<",
"NumAttr",
";",
"++",
"I",
")",
"{",
"F",
".",
"removeFnAttr",
"(",
"AttributeNames",
"[",
"I",
"]",
")",
";",
"if",
"(",
"NewAttrs",
"[",
"I",
"]",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"'\\t'",
"<<",
"NewAttrs",
"[",
"I",
"]",
"->",
"getAsString",
"(",
")",
"<<",
"'\\n'",
")",
";",
"F",
".",
"addFnAttr",
"(",
"*",
"NewAttrs",
"[",
"I",
"]",
")",
";",
"}",
"}",
"}",
"</s>"
] | [
"Set",
"attribute",
"list",
"for",
"this",
"global",
"."
] | [
"AMDGPU",
"AMDGPU",
"\"Set attributes on \"",
"\":\\n\"",
"0"
] | AMDGPUPropagateAttributes | setAttributes | AMDGPU | GPU | LLVM | 21,203 | 103 | 1 | [] |
[
"<s>",
"ScheduleHazardRecognizer",
"*",
"PPCInstrInfo",
"::",
"CreateTargetHazardRecognizer",
"(",
"const",
"TargetMachine",
"*",
"TM",
",",
"const",
"ScheduleDAG",
"*",
"DAG",
")",
"const",
"{",
"unsigned",
"Directive",
"=",
"TM",
"->",
"getSubtarget",
"<",
"PPCSubtarget",
">",
"(",
")",
".",
"getDarwinDirective",
"(",
")",
";",
"if",
"(",
"Directive",
"==",
"PPC",
"::",
"DIR_440",
")",
"{",
"const",
"InstrItineraryData",
"*",
"II",
"=",
"TM",
"->",
"getInstrItineraryData",
"(",
")",
";",
"return",
"new",
"PPCHazardRecognizer440",
"(",
"II",
",",
"DAG",
")",
";",
"}",
"return",
"TargetInstrInfoImpl",
"::",
"CreateTargetHazardRecognizer",
"(",
"TM",
",",
"DAG",
")",
";",
"}",
"</s>"
] | [
"Allocate",
"and",
"return",
"a",
"hazard",
"recognizer",
"to",
"use",
"for",
"this",
"target",
"when",
"scheduling",
"the",
"machine",
"instructions",
"before",
"register",
"allocation",
"."
] | [
"PowerPC",
"PPC",
"PPC",
"PPC::DIR_440",
"PPC"
] | PPCInstrInfo134 | CreateTargetHazardRecognizer | PowerPC | CPU | LLVM | 21,204 | 75 | 1 | [] |
[
"<s>",
"unsigned",
"int",
"compute_plussi_length",
"(",
"rtx",
"*",
"operands",
",",
"bool",
"need_flags",
")",
"{",
"machine_mode",
"mode",
"=",
"GET_MODE",
"(",
"operands",
"[",
"0",
"]",
")",
";",
"gcc_assert",
"(",
"mode",
"==",
"SImode",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"operands",
"[",
"2",
"]",
")",
"==",
"CONST_INT",
"&&",
"register_operand",
"(",
"operands",
"[",
"1",
"]",
",",
"VOIDmode",
")",
")",
"{",
"HOST_WIDE_INT",
"intval",
"=",
"INTVAL",
"(",
"operands",
"[",
"2",
"]",
")",
";",
"if",
"(",
"TARGET_H8300SX",
"&&",
"(",
"intval",
">=",
"1",
"&&",
"intval",
"<=",
"7",
")",
")",
"return",
"2",
";",
"if",
"(",
"TARGET_H8300SX",
"&&",
"(",
"intval",
">=",
"-",
"7",
"&&",
"intval",
"<=",
"-",
"1",
")",
")",
"return",
"2",
";",
"switch",
"(",
"(",
"unsigned",
"int",
")",
"intval",
"&",
"0xffffffff",
")",
"{",
"case",
"0x00000001",
":",
"case",
"0x00000002",
":",
"return",
"2",
";",
"case",
"0x00000004",
":",
"if",
"(",
"need_flags",
")",
"return",
"6",
";",
"else",
"return",
"2",
";",
"case",
"0xffffffff",
":",
"case",
"0xfffffffe",
":",
"return",
"2",
";",
"case",
"0xfffffffc",
":",
"if",
"(",
"need_flags",
")",
"return",
"6",
";",
"else",
"return",
"2",
";",
"case",
"0x00010000",
":",
"case",
"0x00020000",
":",
"if",
"(",
"!",
"need_flags",
")",
"return",
"2",
";",
"case",
"0xffff0000",
":",
"case",
"0xfffe0000",
":",
"if",
"(",
"!",
"need_flags",
")",
"return",
"2",
";",
"}",
"if",
"(",
"(",
"intval",
"&",
"0xffff",
")",
"==",
"0",
")",
"return",
"4",
";",
"}",
"if",
"(",
"GET_CODE",
"(",
"operands",
"[",
"2",
"]",
")",
"==",
"CONST_INT",
"&&",
"INTVAL",
"(",
"operands",
"[",
"2",
"]",
")",
"<",
"0",
")",
"return",
"h8300_length_from_table",
"(",
"operands",
"[",
"0",
"]",
",",
"GEN_INT",
"(",
"-",
"INTVAL",
"(",
"operands",
"[",
"2",
"]",
")",
")",
",",
"&",
"addl_length_table",
")",
";",
"else",
"return",
"h8300_length_from_table",
"(",
"operands",
"[",
"0",
"]",
",",
"operands",
"[",
"2",
"]",
",",
"&",
"addl_length_table",
")",
";",
"}",
"</s>"
] | [
"Compute",
"the",
"length",
"of",
"an",
"addition",
"insn",
"."
] | [
"h8300",
"0",
"2",
"1",
"2",
"1",
"7",
"2",
"7",
"1",
"2",
"0xffffffff",
"0x00000001",
"0x00000002",
"2",
"0x00000004",
"6",
"2",
"0xffffffff",
"0xfffffffe",
"2",
"0xfffffffc",
"6",
"2",
"0x00010000",
"0x00020000",
"2",
"0xffff0000",
"0xfffe0000",
"2",
"0xffff",
"0",
"4",
"2",
"2",
"0",
"0",
"2",
"0",
"2"
] | h8300 | compute_plussi_length | h8300 | MPU | GCC | 21,205 | 265 | 1 | [] |
[
"<s>",
"const",
"MCFixupKindInfo",
"&",
"getFixupKindInfo",
"(",
"MCFixupKind",
"Kind",
")",
"const",
"{",
"const",
"static",
"MCFixupKindInfo",
"Infos",
"[",
"ARM",
"::",
"NumTargetFixupKinds",
"]",
"=",
"{",
"{",
"\"fixup_arm_ldst_pcrel_12\"",
",",
"0",
",",
"32",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"fixup_t2_ldst_pcrel_12\"",
",",
"0",
",",
"32",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"|",
"MCFixupKindInfo",
"::",
"FKF_IsAlignedDownTo32Bits",
"}",
",",
"{",
"\"fixup_arm_pcrel_10_unscaled\"",
",",
"0",
",",
"32",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"fixup_arm_pcrel_10\"",
",",
"0",
",",
"32",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"fixup_t2_pcrel_10\"",
",",
"0",
",",
"32",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"|",
"MCFixupKindInfo",
"::",
"FKF_IsAlignedDownTo32Bits",
"}",
",",
"{",
"\"fixup_thumb_adr_pcrel_10\"",
",",
"0",
",",
"8",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"|",
"MCFixupKindInfo",
"::",
"FKF_IsAlignedDownTo32Bits",
"}",
",",
"{",
"\"fixup_arm_adr_pcrel_12\"",
",",
"0",
",",
"32",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"fixup_t2_adr_pcrel_12\"",
",",
"0",
",",
"32",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"|",
"MCFixupKindInfo",
"::",
"FKF_IsAlignedDownTo32Bits",
"}",
",",
"{",
"\"fixup_arm_condbranch\"",
",",
"0",
",",
"24",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"fixup_arm_uncondbranch\"",
",",
"0",
",",
"24",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"fixup_t2_condbranch\"",
",",
"0",
",",
"32",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"fixup_t2_uncondbranch\"",
",",
"0",
",",
"32",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"fixup_arm_thumb_br\"",
",",
"0",
",",
"16",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"fixup_arm_thumb_bl\"",
",",
"0",
",",
"32",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"fixup_arm_thumb_blx\"",
",",
"0",
",",
"32",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"fixup_arm_thumb_cb\"",
",",
"0",
",",
"16",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"fixup_arm_thumb_cp\"",
",",
"0",
",",
"8",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"fixup_arm_thumb_bcc\"",
",",
"0",
",",
"8",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"fixup_arm_movt_hi16\"",
",",
"0",
",",
"20",
",",
"0",
"}",
",",
"{",
"\"fixup_arm_movw_lo16\"",
",",
"0",
",",
"20",
",",
"0",
"}",
",",
"{",
"\"fixup_t2_movt_hi16\"",
",",
"0",
",",
"20",
",",
"0",
"}",
",",
"{",
"\"fixup_t2_movw_lo16\"",
",",
"0",
",",
"20",
",",
"0",
"}",
",",
"{",
"\"fixup_arm_movt_hi16_pcrel\"",
",",
"0",
",",
"20",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"fixup_arm_movw_lo16_pcrel\"",
",",
"0",
",",
"20",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"fixup_t2_movt_hi16_pcrel\"",
",",
"0",
",",
"20",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"fixup_t2_movw_lo16_pcrel\"",
",",
"0",
",",
"20",
",",
"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",
"."
] | [
"ARM",
"ARM::NumTargetFixupKinds",
"\"fixup_arm_ldst_pcrel_12\"",
"0",
"32",
"\"fixup_t2_ldst_pcrel_12\"",
"0",
"32",
"\"fixup_arm_pcrel_10_unscaled\"",
"0",
"32",
"\"fixup_arm_pcrel_10\"",
"0",
"32",
"\"fixup_t2_pcrel_10\"",
"0",
"32",
"\"fixup_thumb_adr_pcrel_10\"",
"0",
"8",
"\"fixup_arm_adr_pcrel_12\"",
"0",
"32",
"\"fixup_t2_adr_pcrel_12\"",
"0",
"32",
"\"fixup_arm_condbranch\"",
"0",
"24",
"\"fixup_arm_uncondbranch\"",
"0",
"24",
"\"fixup_t2_condbranch\"",
"0",
"32",
"\"fixup_t2_uncondbranch\"",
"0",
"32",
"\"fixup_arm_thumb_br\"",
"0",
"16",
"\"fixup_arm_thumb_bl\"",
"0",
"32",
"\"fixup_arm_thumb_blx\"",
"0",
"32",
"\"fixup_arm_thumb_cb\"",
"0",
"16",
"\"fixup_arm_thumb_cp\"",
"0",
"8",
"\"fixup_arm_thumb_bcc\"",
"0",
"8",
"\"fixup_arm_movt_hi16\"",
"0",
"20",
"0",
"\"fixup_arm_movw_lo16\"",
"0",
"20",
"0",
"\"fixup_t2_movt_hi16\"",
"0",
"20",
"0",
"\"fixup_t2_movw_lo16\"",
"0",
"20",
"0",
"\"fixup_arm_movt_hi16_pcrel\"",
"0",
"20",
"\"fixup_arm_movw_lo16_pcrel\"",
"0",
"20",
"\"fixup_t2_movt_hi16_pcrel\"",
"0",
"20",
"\"fixup_t2_movw_lo16_pcrel\"",
"0",
"20",
"\"Invalid kind!\""
] | ARMAsmBackend49 | getFixupKindInfo | ARM | CPU | LLVM | 21,206 | 382 | 1 | [] |
[
"<s>",
"bool",
"XtensaInstrInfo",
"::",
"expandPostRAPseudo",
"(",
"MachineInstr",
"&",
"MI",
")",
"const",
"{",
"switch",
"(",
"MI",
".",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"return",
"false",
";",
"}",
"}",
"</s>"
] | [
"This",
"function",
"is",
"called",
"for",
"all",
"pseudo",
"instructions",
"that",
"remain",
"after",
"register",
"allocation",
"."
] | [
"Xtensa",
"Xtensa"
] | XtensaInstrInfo | expandPostRAPseudo | Xtensa | MPU | LLVM | 21,207 | 27 | 1 | [] |
[
"<s>",
"static",
"rtx",
"frv_function_value",
"(",
"const_tree",
"valtype",
",",
"const_tree",
"fn_decl_or_type",
"ATTRIBUTE_UNUSED",
",",
"bool",
"outgoing",
"ATTRIBUTE_UNUSED",
")",
"{",
"return",
"gen_rtx_REG",
"(",
"TYPE_MODE",
"(",
"valtype",
")",
",",
"RETURN_VALUE_REGNUM",
")",
";",
"}",
"</s>"
] | [
"Implements",
"TARGET_FUNCTION_VALUE",
"."
] | [
"frv"
] | frv | frv_function_value | frv | VLIW | GCC | 21,208 | 28 | 1 | [] |
[
"<s>",
"static",
"void",
"tilegx_print_operand_address",
"(",
"FILE",
"*",
"file",
",",
"machine_mode",
"mode",
",",
"rtx",
"addr",
")",
"{",
"if",
"(",
"GET_CODE",
"(",
"addr",
")",
"==",
"POST_DEC",
"||",
"GET_CODE",
"(",
"addr",
")",
"==",
"POST_INC",
")",
"{",
"int",
"offset",
"=",
"GET_MODE_SIZE",
"(",
"mode",
")",
";",
"gcc_assert",
"(",
"mode",
"!=",
"VOIDmode",
")",
";",
"if",
"(",
"output_memory_autoinc_first",
")",
"fprintf",
"(",
"file",
",",
"\"%s\"",
",",
"reg_names",
"[",
"REGNO",
"(",
"XEXP",
"(",
"addr",
",",
"0",
")",
")",
"]",
")",
";",
"else",
"fprintf",
"(",
"file",
",",
"\"%d\"",
",",
"GET_CODE",
"(",
"addr",
")",
"==",
"POST_DEC",
"?",
"-",
"offset",
":",
"offset",
")",
";",
"}",
"else",
"if",
"(",
"GET_CODE",
"(",
"addr",
")",
"==",
"POST_MODIFY",
")",
"{",
"gcc_assert",
"(",
"mode",
"!=",
"VOIDmode",
")",
";",
"gcc_assert",
"(",
"GET_CODE",
"(",
"XEXP",
"(",
"addr",
",",
"1",
")",
")",
"==",
"PLUS",
")",
";",
"if",
"(",
"output_memory_autoinc_first",
")",
"fprintf",
"(",
"file",
",",
"\"%s\"",
",",
"reg_names",
"[",
"REGNO",
"(",
"XEXP",
"(",
"addr",
",",
"0",
")",
")",
"]",
")",
";",
"else",
"fprintf",
"(",
"file",
",",
"HOST_WIDE_INT_PRINT_DEC",
",",
"INTVAL",
"(",
"XEXP",
"(",
"XEXP",
"(",
"addr",
",",
"1",
")",
",",
"1",
")",
")",
")",
";",
"}",
"else",
"tilegx_print_operand",
"(",
"file",
",",
"addr",
",",
"'r'",
")",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_PRINT_OPERAND_ADDRESS",
"."
] | [
"tilegx",
"\"%s\"",
"0",
"\"%d\"",
"1",
"\"%s\"",
"0",
"1",
"1"
] | tilegx | tilegx_print_operand_address | tilegx | VLIW | GCC | 21,209 | 184 | 1 | [] |
[
"<s>",
"void",
"vax_expand_prologue",
"(",
"void",
")",
"{",
"int",
"regno",
",",
"offset",
";",
"int",
"mask",
"=",
"0",
";",
"HOST_WIDE_INT",
"size",
";",
"rtx",
"insn",
";",
"for",
"(",
"regno",
"=",
"0",
";",
"regno",
"<",
"FIRST_PSEUDO_REGISTER",
";",
"regno",
"++",
")",
"if",
"(",
"df_regs_ever_live_p",
"(",
"regno",
")",
"&&",
"!",
"call_used_regs",
"[",
"regno",
"]",
")",
"mask",
"|=",
"1",
"<<",
"regno",
";",
"insn",
"=",
"emit_insn",
"(",
"gen_procedure_entry_mask",
"(",
"GEN_INT",
"(",
"mask",
")",
")",
")",
";",
"RTX_FRAME_RELATED_P",
"(",
"insn",
")",
"=",
"1",
";",
"vax_add_reg_cfa_offset",
"(",
"insn",
",",
"4",
",",
"arg_pointer_rtx",
")",
";",
"vax_add_reg_cfa_offset",
"(",
"insn",
",",
"8",
",",
"frame_pointer_rtx",
")",
";",
"vax_add_reg_cfa_offset",
"(",
"insn",
",",
"12",
",",
"pc_rtx",
")",
";",
"offset",
"=",
"16",
";",
"for",
"(",
"regno",
"=",
"0",
";",
"regno",
"<",
"FIRST_PSEUDO_REGISTER",
";",
"regno",
"++",
")",
"if",
"(",
"mask",
"&",
"(",
"1",
"<<",
"regno",
")",
")",
"{",
"vax_add_reg_cfa_offset",
"(",
"insn",
",",
"offset",
",",
"gen_rtx_REG",
"(",
"SImode",
",",
"regno",
")",
")",
";",
"offset",
"+=",
"4",
";",
"}",
"add_reg_note",
"(",
"insn",
",",
"REG_CFA_DEF_CFA",
",",
"plus_constant",
"(",
"Pmode",
",",
"frame_pointer_rtx",
",",
"offset",
")",
")",
";",
"size",
"=",
"get_frame_size",
"(",
")",
";",
"size",
"-=",
"vax_starting_frame_offset",
"(",
")",
";",
"emit_insn",
"(",
"gen_addsi3",
"(",
"stack_pointer_rtx",
",",
"stack_pointer_rtx",
",",
"GEN_INT",
"(",
"-",
"size",
")",
")",
")",
";",
"emit_insn",
"(",
"gen_blockage",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"Generate",
"the",
"assembly",
"code",
"for",
"function",
"entry",
".",
"FILE",
"is",
"a",
"stdio",
"stream",
"to",
"output",
"the",
"code",
"to",
".",
"SIZE",
"is",
"an",
"int",
":",
"how",
"many",
"units",
"of",
"temporary",
"storage",
"to",
"allocate",
".",
"Refer",
"to",
"the",
"array",
"`",
"regs_ever_live",
"'",
"to",
"determine",
"which",
"registers",
"to",
"save",
";",
"`",
"regs_ever_live",
"[",
"I",
"]",
"'",
"is",
"nonzero",
"if",
"register",
"number",
"I",
"is",
"ever",
"used",
"in",
"the",
"function",
".",
"This",
"function",
"is",
"responsible",
"for",
"knowing",
"which",
"registers",
"should",
"not",
"be",
"saved",
"even",
"if",
"used",
"."
] | [
"vax",
"0",
"0",
"1",
"1",
"4",
"8",
"12",
"16",
"0",
"1",
"4"
] | vax7 | vax_expand_prologue | vax | CPU | GCC | 21,210 | 200 | 1 | [] |
[
"<s>",
"unsigned",
"LC3MCCodeEmitter",
"::",
"getMachineOpValue",
"(",
"const",
"MCInst",
"&",
"MI",
",",
"const",
"MCOperand",
"&",
"MO",
",",
"SmallVectorImpl",
"<",
"MCFixup",
">",
"&",
"Fixups",
",",
"const",
"MCSubtargetInfo",
"&",
"STI",
")",
"const",
"{",
"if",
"(",
"MO",
".",
"isReg",
"(",
")",
")",
"{",
"return",
"CTX",
".",
"getRegisterInfo",
"(",
")",
"->",
"getEncodingValue",
"(",
"MO",
".",
"getReg",
"(",
")",
")",
";",
"}",
"if",
"(",
"MO",
".",
"isImm",
"(",
")",
")",
"{",
"return",
"static_cast",
"<",
"unsigned",
">",
"(",
"MO",
".",
"getImm",
"(",
")",
")",
";",
"}",
"assert",
"(",
"MO",
".",
"isExpr",
"(",
")",
"&&",
"\"unknown operand kind in printOperand\"",
")",
";",
"const",
"MCExpr",
"*",
"Expr",
"=",
"MO",
".",
"getExpr",
"(",
")",
";",
"MCExpr",
"::",
"ExprKind",
"Kind",
"=",
"Expr",
"->",
"getKind",
"(",
")",
";",
"if",
"(",
"Kind",
"==",
"MCExpr",
"::",
"Binary",
")",
"{",
"Expr",
"=",
"static_cast",
"<",
"const",
"MCBinaryExpr",
"*",
">",
"(",
"Expr",
")",
"->",
"getLHS",
"(",
")",
";",
"Kind",
"=",
"Expr",
"->",
"getKind",
"(",
")",
";",
"}",
"assert",
"(",
"Kind",
"==",
"MCExpr",
"::",
"SymbolRef",
")",
";",
"unsigned",
"FixupKind",
";",
"switch",
"(",
"cast",
"<",
"MCSymbolRefExpr",
">",
"(",
"Expr",
")",
"->",
"getKind",
"(",
")",
")",
"{",
"default",
":",
"llvm_unreachable",
"(",
"\"Unknown fixup kind!\"",
")",
";",
"case",
"MCSymbolRefExpr",
"::",
"VK_LC3_LO",
":",
"{",
"FixupKind",
"=",
"LC3",
"::",
"fixup_lc3_mov_lo16_pcrel",
";",
"break",
";",
"}",
"case",
"MCSymbolRefExpr",
"::",
"VK_LC3_HI",
":",
"{",
"FixupKind",
"=",
"LC3",
"::",
"fixup_lc3_mov_hi16_pcrel",
";",
"break",
";",
"}",
"}",
"Fixups",
".",
"push_back",
"(",
"MCFixup",
"::",
"create",
"(",
"0",
",",
"MO",
".",
"getExpr",
"(",
")",
",",
"MCFixupKind",
"(",
"FixupKind",
")",
")",
")",
";",
"return",
"0",
";",
"}",
"</s>"
] | [
"getMachineOpValue",
"-",
"Return",
"binary",
"encoding",
"of",
"operand",
"."
] | [
"LC3",
"LC3",
"\"unknown operand kind in printOperand\"",
"\"Unknown fixup kind!\"",
"LC3",
"LC3::fixup_lc3_mov_lo16_pcrel",
"LC3",
"LC3::fixup_lc3_mov_hi16_pcrel",
"0",
"0"
] | LC3MCCodeEmitter | getMachineOpValue | LC3 | CPU | LLVM | 21,211 | 237 | 1 | [] |
[
"<s>",
"void",
"initialize",
"(",
"ScheduleDAGMI",
"*",
"dag",
")",
"override",
"{",
"}",
"</s>"
] | [
"Initialize",
"the",
"strategy",
"after",
"building",
"the",
"DAG",
"for",
"a",
"new",
"region",
"."
] | [
"SystemZ"
] | SystemZMachineScheduler | initialize | SystemZ | CPU | LLVM | 21,212 | 10 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"getPassName",
"(",
")",
"const",
"{",
"return",
"\"TOY PreRegAlloc\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"TOY",
"\"TOY PreRegAlloc\""
] | TOYPreRegAlloc | getPassName | TOY | CPU | LLVM | 21,213 | 12 | 1 | [] |
[
"<s>",
"virtual",
"const",
"char",
"*",
"getPassName",
"(",
")",
"const",
"{",
"return",
"\"NEON reg-reg move conversion\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"ARM",
"\"NEON reg-reg move conversion\""
] | NEONMoveFix1 | getPassName | ARM | CPU | LLVM | 21,214 | 13 | 1 | [] |
[
"<s>",
"bool",
"AArch64AsmBackend",
"::",
"shouldForceRelocation",
"(",
"const",
"MCAssembler",
"&",
"Asm",
",",
"const",
"MCFixup",
"&",
"Fixup",
",",
"const",
"MCValue",
"&",
"Target",
")",
"{",
"unsigned",
"Kind",
"=",
"Fixup",
".",
"getKind",
"(",
")",
";",
"if",
"(",
"Kind",
">=",
"FirstLiteralRelocationKind",
")",
"return",
"true",
";",
"if",
"(",
"Kind",
"==",
"AArch64",
"::",
"fixup_aarch64_pcrel_adrp_imm21",
")",
"return",
"true",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Hook",
"to",
"check",
"if",
"a",
"relocation",
"is",
"needed",
"for",
"some",
"target",
"specific",
"reason",
"."
] | [
"AArch64",
"AArch64",
"AArch64::fixup_aarch64_pcrel_adrp_imm21"
] | AArch64AsmBackend (2)1 | shouldForceRelocation | AArch64 | CPU | LLVM | 21,215 | 54 | 1 | [] |
[
"<s>",
"bool",
"m68k_use_return_insn",
"(",
"void",
")",
"{",
"if",
"(",
"!",
"reload_completed",
"||",
"frame_pointer_needed",
"||",
"get_frame_size",
"(",
")",
"!=",
"0",
")",
"return",
"false",
";",
"m68k_compute_frame_layout",
"(",
")",
";",
"return",
"current_frame",
".",
"offset",
"==",
"0",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"a",
"simple",
"(",
"return",
")",
"instruction",
"is",
"sufficient",
"for",
"this",
"instruction",
"(",
"i.e",
".",
"if",
"no",
"epilogue",
"is",
"needed",
")",
"."
] | [
"m68k",
"0",
"0"
] | m68k | m68k_use_return_insn | m68k | MPU | GCC | 21,216 | 34 | 1 | [] |
[
"<s>",
"bool",
"WebAssemblyFrameLowering",
"::",
"hasFP",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"const",
"MachineFrameInfo",
"*",
"MFI",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
";",
"const",
"auto",
"*",
"RegInfo",
"=",
"MF",
".",
"getSubtarget",
"<",
"WebAssemblySubtarget",
">",
"(",
")",
".",
"getRegisterInfo",
"(",
")",
";",
"return",
"MFI",
"->",
"hasCalls",
"(",
")",
"||",
"MFI",
"->",
"hasVarSizedObjects",
"(",
")",
"||",
"MFI",
"->",
"isFrameAddressTaken",
"(",
")",
"||",
"MFI",
"->",
"hasStackMap",
"(",
")",
"||",
"MFI",
"->",
"hasPatchPoint",
"(",
")",
"||",
"RegInfo",
"->",
"needsStackRealignment",
"(",
"MF",
")",
";",
"}",
"</s>"
] | [
"hasFP",
"-",
"Return",
"true",
"if",
"the",
"specified",
"function",
"should",
"have",
"a",
"dedicated",
"frame",
"pointer",
"register",
"."
] | [
"WebAssembly",
"WebAssembly",
"WebAssembly"
] | WebAssemblyFrameLowering23 | hasFP | WebAssembly | Virtual ISA | LLVM | 21,217 | 80 | 1 | [] |
[
"<s>",
"void",
"FISCInstPrinter",
"::",
"printInst",
"(",
"const",
"MCInst",
"*",
"MI",
",",
"raw_ostream",
"&",
"O",
",",
"StringRef",
"Annot",
",",
"const",
"MCSubtargetInfo",
"&",
"STI",
")",
"{",
"printInstruction",
"(",
"MI",
",",
"O",
")",
";",
"printAnnotation",
"(",
"O",
",",
"Annot",
")",
";",
"}",
"</s>"
] | [
"Print",
"the",
"specified",
"MCInst",
"to",
"the",
"specified",
"raw_ostream",
"."
] | [
"FISC",
"FISC"
] | FISCInstPrinter | printInst | FISC | CPU | LLVM | 21,218 | 38 | 1 | [] |
[
"<s>",
"bool",
"LanaiInstrInfo",
"::",
"getMemOperandWithOffset",
"(",
"MachineInstr",
"&",
"LdSt",
",",
"MachineOperand",
"*",
"&",
"BaseOp",
",",
"int64_t",
"&",
"Offset",
",",
"const",
"TargetRegisterInfo",
"*",
"TRI",
")",
"const",
"{",
"switch",
"(",
"LdSt",
".",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"return",
"false",
";",
"case",
"Lanai",
"::",
"LDW_RI",
":",
"case",
"Lanai",
"::",
"LDW_RR",
":",
"case",
"Lanai",
"::",
"SW_RR",
":",
"case",
"Lanai",
"::",
"SW_RI",
":",
"case",
"Lanai",
"::",
"LDHs_RI",
":",
"case",
"Lanai",
"::",
"LDHz_RI",
":",
"case",
"Lanai",
"::",
"STH_RI",
":",
"case",
"Lanai",
"::",
"LDBs_RI",
":",
"case",
"Lanai",
"::",
"LDBz_RI",
":",
"unsigned",
"Width",
";",
"return",
"getMemOperandWithOffsetWidth",
"(",
"LdSt",
",",
"BaseOp",
",",
"Offset",
",",
"Width",
",",
"TRI",
")",
";",
"}",
"}",
"</s>"
] | [
"Get",
"the",
"base",
"operand",
"and",
"byte",
"offset",
"of",
"an",
"instruction",
"that",
"reads/writes",
"memory",
"."
] | [
"Lanai",
"Lanai",
"Lanai::LDW_RI",
"Lanai::LDW_RR",
"Lanai::SW_RR",
"Lanai::SW_RI",
"Lanai::LDHs_RI",
"Lanai::LDHz_RI",
"Lanai::STH_RI",
"Lanai::LDBs_RI",
"Lanai::LDBz_RI"
] | LanaiInstrInfo (2) | getMemOperandWithOffset | Lanai | CPU | LLVM | 21,219 | 103 | 1 | [] |
[
"<s>",
"int",
"simple_memory_operand",
"(",
"rtx",
"op",
",",
"machine_mode",
"mode",
"ATTRIBUTE_UNUSED",
")",
"{",
"rtx",
"addr",
";",
"if",
"(",
"GET_CODE",
"(",
"op",
")",
"!=",
"MEM",
")",
"return",
"FALSE",
";",
"if",
"(",
"GET_MODE_SIZE",
"(",
"GET_MODE",
"(",
"op",
")",
")",
">",
"(",
"HAVE_64BIT_P",
"(",
")",
"?",
"8",
":",
"4",
")",
")",
"return",
"FALSE",
";",
"indirection",
":",
"addr",
"=",
"XEXP",
"(",
"op",
",",
"0",
")",
";",
"switch",
"(",
"GET_CODE",
"(",
"addr",
")",
")",
"{",
"case",
"REG",
":",
"return",
"1",
";",
"case",
"PRE_DEC",
":",
"case",
"POST_INC",
":",
"return",
"0",
";",
"case",
"MEM",
":",
"if",
"(",
"GET_CODE",
"(",
"XEXP",
"(",
"addr",
",",
"0",
")",
")",
"==",
"REG",
")",
"return",
"0",
";",
"op",
"=",
"addr",
";",
"goto",
"indirection",
";",
"case",
"CONST_INT",
":",
"case",
"LABEL_REF",
":",
"case",
"CONST",
":",
"case",
"SYMBOL_REF",
":",
"return",
"0",
";",
"case",
"PLUS",
":",
"return",
"0",
";",
"default",
":",
"break",
";",
"}",
"return",
"FALSE",
";",
"}",
"</s>"
] | [
"Return",
"truth",
"value",
"if",
"a",
"memory",
"operand",
"fits",
"in",
"a",
"single",
"instruction",
"(",
"ie",
",",
"register",
"+",
"small",
"offset",
")",
"."
] | [
"pdp11",
"8",
"4",
"0",
"1",
"0",
"0",
"0",
"0",
"0"
] | pdp114 | simple_memory_operand | pdp11 | MPU | GCC | 21,220 | 140 | 1 | [] |
[
"<s>",
"MachineInstrBuilder",
"SIInstrInfo",
"::",
"buildIndirectWrite",
"(",
"MachineBasicBlock",
"*",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"I",
",",
"unsigned",
"ValueReg",
",",
"unsigned",
"Address",
",",
"unsigned",
"OffsetReg",
")",
"const",
"{",
"llvm_unreachable",
"(",
"\"Unimplemented\"",
")",
";",
"}",
"</s>"
] | [
"Build",
"instruction",
"(",
"s",
")",
"for",
"an",
"indirect",
"register",
"write",
"."
] | [
"R600",
"SI",
"\"Unimplemented\""
] | SIInstrInfo117 | buildIndirectWrite | R600 | GPU | LLVM | 21,221 | 31 | 1 | [] |
[
"<s>",
"void",
"PPCRegisterInfo",
"::",
"lowerCRSpilling",
"(",
"MachineBasicBlock",
"::",
"iterator",
"II",
",",
"unsigned",
"FrameIndex",
")",
"const",
"{",
"MachineInstr",
"&",
"MI",
"=",
"*",
"II",
";",
"MachineBasicBlock",
"&",
"MBB",
"=",
"*",
"MI",
".",
"getParent",
"(",
")",
";",
"MachineFunction",
"&",
"MF",
"=",
"*",
"MBB",
".",
"getParent",
"(",
")",
";",
"const",
"PPCSubtarget",
"&",
"Subtarget",
"=",
"MF",
".",
"getSubtarget",
"<",
"PPCSubtarget",
">",
"(",
")",
";",
"const",
"TargetInstrInfo",
"&",
"TII",
"=",
"*",
"Subtarget",
".",
"getInstrInfo",
"(",
")",
";",
"DebugLoc",
"dl",
"=",
"MI",
".",
"getDebugLoc",
"(",
")",
";",
"bool",
"LP64",
"=",
"TM",
".",
"isPPC64",
"(",
")",
";",
"const",
"TargetRegisterClass",
"*",
"G8RC",
"=",
"&",
"PPC",
"::",
"G8RCRegClass",
";",
"const",
"TargetRegisterClass",
"*",
"GPRC",
"=",
"&",
"PPC",
"::",
"GPRCRegClass",
";",
"Register",
"Reg",
"=",
"MF",
".",
"getRegInfo",
"(",
")",
".",
"createVirtualRegister",
"(",
"LP64",
"?",
"G8RC",
":",
"GPRC",
")",
";",
"Register",
"SrcReg",
"=",
"MI",
".",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"II",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"LP64",
"?",
"PPC",
"::",
"MFOCRF8",
":",
"PPC",
"::",
"MFOCRF",
")",
",",
"Reg",
")",
".",
"addReg",
"(",
"SrcReg",
",",
"getKillRegState",
"(",
"MI",
".",
"getOperand",
"(",
"0",
")",
".",
"isKill",
"(",
")",
")",
")",
";",
"if",
"(",
"SrcReg",
"!=",
"PPC",
"::",
"CR0",
")",
"{",
"Register",
"Reg1",
"=",
"Reg",
";",
"Reg",
"=",
"MF",
".",
"getRegInfo",
"(",
")",
".",
"createVirtualRegister",
"(",
"LP64",
"?",
"G8RC",
":",
"GPRC",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"II",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"LP64",
"?",
"PPC",
"::",
"RLWINM8",
":",
"PPC",
"::",
"RLWINM",
")",
",",
"Reg",
")",
".",
"addReg",
"(",
"Reg1",
",",
"RegState",
"::",
"Kill",
")",
".",
"addImm",
"(",
"getEncodingValue",
"(",
"SrcReg",
")",
"*",
"4",
")",
".",
"addImm",
"(",
"0",
")",
".",
"addImm",
"(",
"31",
")",
";",
"}",
"addFrameReference",
"(",
"BuildMI",
"(",
"MBB",
",",
"II",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"LP64",
"?",
"PPC",
"::",
"STW8",
":",
"PPC",
"::",
"STW",
")",
")",
".",
"addReg",
"(",
"Reg",
",",
"RegState",
"::",
"Kill",
")",
",",
"FrameIndex",
")",
";",
"MBB",
".",
"erase",
"(",
"II",
")",
";",
"}",
"</s>"
] | [
"lowerCRSpilling",
"-",
"Generate",
"the",
"code",
"for",
"spilling",
"a",
"CR",
"register",
"."
] | [
"PowerPC",
"PPC",
"PPC",
"PPC",
"PPC",
"PPC::G8RCRegClass",
"PPC::GPRCRegClass",
"0",
"PPC::MFOCRF8",
"PPC::MFOCRF",
"0",
"PPC::CR0",
"PPC::RLWINM8",
"PPC::RLWINM",
"4",
"0",
"31",
"PPC::STW8",
"PPC::STW"
] | PPCRegisterInfo (2)3 | lowerCRSpilling | PowerPC | CPU | LLVM | 21,222 | 318 | 1 | [] |
[
"<s>",
"static",
"std",
"::",
"unique_ptr",
"<",
"MipsOperand",
">",
"CreateReg",
"(",
"unsigned",
"Index",
",",
"RegKind",
"RegKind",
",",
"const",
"MCRegisterInfo",
"*",
"RegInfo",
",",
"SMLoc",
"S",
",",
"SMLoc",
"E",
",",
"MipsAsmParser",
"&",
"Parser",
")",
"{",
"auto",
"Op",
"=",
"make_unique",
"<",
"MipsOperand",
">",
"(",
"k_RegisterIndex",
",",
"Parser",
")",
";",
"Op",
"->",
"RegIdx",
".",
"Index",
"=",
"Index",
";",
"Op",
"->",
"RegIdx",
".",
"RegInfo",
"=",
"RegInfo",
";",
"Op",
"->",
"RegIdx",
".",
"Kind",
"=",
"RegKind",
";",
"Op",
"->",
"StartLoc",
"=",
"S",
";",
"Op",
"->",
"EndLoc",
"=",
"E",
";",
"return",
"Op",
";",
"}",
"</s>"
] | [
"CreateReg",
"-",
"Allocate",
"a",
"single",
"virtual",
"register",
"for",
"the",
"given",
"type",
"."
] | [
"Mips",
"Mips",
"Mips",
"Mips"
] | MipsAsmParser | CreateReg | Mips | CPU | LLVM | 21,223 | 84 | 1 | [] |
[
"<s>",
"RCPair",
"ARMTargetLowering",
"::",
"getRegForInlineAsmConstraint",
"(",
"const",
"TargetRegisterInfo",
"*",
"TRI",
",",
"StringRef",
"Constraint",
",",
"MVT",
"VT",
")",
"const",
"{",
"if",
"(",
"Constraint",
".",
"size",
"(",
")",
"==",
"1",
")",
"{",
"switch",
"(",
"Constraint",
"[",
"0",
"]",
")",
"{",
"case",
"'l'",
":",
"if",
"(",
"Subtarget",
"->",
"isThumb",
"(",
")",
")",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"tGPRRegClass",
")",
";",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"GPRRegClass",
")",
";",
"case",
"'h'",
":",
"if",
"(",
"Subtarget",
"->",
"isThumb",
"(",
")",
")",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"hGPRRegClass",
")",
";",
"break",
";",
"case",
"'r'",
":",
"if",
"(",
"Subtarget",
"->",
"isThumb1Only",
"(",
")",
")",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"tGPRRegClass",
")",
";",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"GPRRegClass",
")",
";",
"case",
"'w'",
":",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"Other",
")",
"break",
";",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"f32",
")",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"SPRRegClass",
")",
";",
"if",
"(",
"VT",
".",
"getSizeInBits",
"(",
")",
"==",
"64",
")",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"DPRRegClass",
")",
";",
"if",
"(",
"VT",
".",
"getSizeInBits",
"(",
")",
"==",
"128",
")",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"QPRRegClass",
")",
";",
"break",
";",
"case",
"'x'",
":",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"Other",
")",
"break",
";",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"f32",
")",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"SPR_8RegClass",
")",
";",
"if",
"(",
"VT",
".",
"getSizeInBits",
"(",
")",
"==",
"64",
")",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"DPR_8RegClass",
")",
";",
"if",
"(",
"VT",
".",
"getSizeInBits",
"(",
")",
"==",
"128",
")",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"QPR_8RegClass",
")",
";",
"break",
";",
"case",
"'t'",
":",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"f32",
")",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"SPRRegClass",
")",
";",
"break",
";",
"}",
"}",
"if",
"(",
"StringRef",
"(",
"\"{cc}\"",
")",
".",
"equals_lower",
"(",
"Constraint",
")",
")",
"return",
"std",
"::",
"make_pair",
"(",
"unsigned",
"(",
"ARM",
"::",
"CPSR",
")",
",",
"&",
"ARM",
"::",
"CCRRegClass",
")",
";",
"return",
"TargetLowering",
"::",
"getRegForInlineAsmConstraint",
"(",
"TRI",
",",
"Constraint",
",",
"VT",
")",
";",
"}",
"</s>"
] | [
"Given",
"a",
"physical",
"register",
"constraint",
"(",
"e.g",
"."
] | [
"ARM",
"ARM",
"1",
"0",
"0U",
"ARM::tGPRRegClass",
"0U",
"ARM::GPRRegClass",
"0U",
"ARM::hGPRRegClass",
"0U",
"ARM::tGPRRegClass",
"0U",
"ARM::GPRRegClass",
"MVT::Other",
"MVT::f32",
"0U",
"ARM::SPRRegClass",
"64",
"0U",
"ARM::DPRRegClass",
"128",
"0U",
"ARM::QPRRegClass",
"MVT::Other",
"MVT::f32",
"0U",
"ARM::SPR_8RegClass",
"64",
"0U",
"ARM::DPR_8RegClass",
"128",
"0U",
"ARM::QPR_8RegClass",
"MVT::f32",
"0U",
"ARM::SPRRegClass",
"\"{cc}\"",
"ARM::CPSR",
"ARM::CCRRegClass"
] | ARMISelLowering (2)2 | getRegForInlineAsmConstraint | ARM | CPU | LLVM | 21,224 | 348 | 1 | [] |
[
"<s>",
"unsigned",
"GCNHazardRecognizer",
"::",
"PreEmitNoops",
"(",
"MachineInstr",
"*",
"MI",
")",
"{",
"int",
"WaitStates",
"=",
"std",
"::",
"max",
"(",
"0",
",",
"checkAnyInstHazards",
"(",
"MI",
")",
")",
";",
"if",
"(",
"SIInstrInfo",
"::",
"isSMRD",
"(",
"*",
"MI",
")",
")",
"return",
"std",
"::",
"max",
"(",
"WaitStates",
",",
"checkSMRDHazards",
"(",
"MI",
")",
")",
";",
"if",
"(",
"SIInstrInfo",
"::",
"isVALU",
"(",
"*",
"MI",
")",
")",
"WaitStates",
"=",
"std",
"::",
"max",
"(",
"WaitStates",
",",
"checkVALUHazards",
"(",
"MI",
")",
")",
";",
"if",
"(",
"SIInstrInfo",
"::",
"isVMEM",
"(",
"*",
"MI",
")",
"||",
"SIInstrInfo",
"::",
"isFLAT",
"(",
"*",
"MI",
")",
")",
"WaitStates",
"=",
"std",
"::",
"max",
"(",
"WaitStates",
",",
"checkVMEMHazards",
"(",
"MI",
")",
")",
";",
"if",
"(",
"SIInstrInfo",
"::",
"isDPP",
"(",
"*",
"MI",
")",
")",
"WaitStates",
"=",
"std",
"::",
"max",
"(",
"WaitStates",
",",
"checkDPPHazards",
"(",
"MI",
")",
")",
";",
"if",
"(",
"isDivFMas",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
")",
"WaitStates",
"=",
"std",
"::",
"max",
"(",
"WaitStates",
",",
"checkDivFMasHazards",
"(",
"MI",
")",
")",
";",
"if",
"(",
"isRWLane",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
")",
"WaitStates",
"=",
"std",
"::",
"max",
"(",
"WaitStates",
",",
"checkRWLaneHazards",
"(",
"MI",
")",
")",
";",
"if",
"(",
"MI",
"->",
"isInlineAsm",
"(",
")",
")",
"return",
"std",
"::",
"max",
"(",
"WaitStates",
",",
"checkInlineAsmHazards",
"(",
"MI",
")",
")",
";",
"if",
"(",
"isSGetReg",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
")",
"return",
"std",
"::",
"max",
"(",
"WaitStates",
",",
"checkGetRegHazards",
"(",
"MI",
")",
")",
";",
"if",
"(",
"isSSetReg",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
")",
"return",
"std",
"::",
"max",
"(",
"WaitStates",
",",
"checkSetRegHazards",
"(",
"MI",
")",
")",
";",
"if",
"(",
"isRFE",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
")",
"return",
"std",
"::",
"max",
"(",
"WaitStates",
",",
"checkRFEHazards",
"(",
"MI",
")",
")",
";",
"if",
"(",
"ST",
".",
"hasReadM0MovRelInterpHazard",
"(",
")",
"&&",
"(",
"TII",
".",
"isVINTRP",
"(",
"*",
"MI",
")",
"||",
"isSMovRel",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
")",
")",
"return",
"std",
"::",
"max",
"(",
"WaitStates",
",",
"checkReadM0Hazards",
"(",
"MI",
")",
")",
";",
"if",
"(",
"ST",
".",
"hasReadM0SendMsgHazard",
"(",
")",
"&&",
"isSendMsgTraceDataOrGDS",
"(",
"*",
"MI",
")",
")",
"return",
"std",
"::",
"max",
"(",
"WaitStates",
",",
"checkReadM0Hazards",
"(",
"MI",
")",
")",
";",
"return",
"WaitStates",
";",
"}",
"</s>"
] | [
"PreEmitNoops",
"-",
"This",
"callback",
"is",
"invoked",
"prior",
"to",
"emitting",
"an",
"instruction",
"."
] | [
"AMDGPU",
"0",
"SI",
"SI",
"SI",
"SI",
"SI"
] | GCNHazardRecognizer10 | PreEmitNoops | AMDGPU | GPU | LLVM | 21,225 | 342 | 1 | [] |
[
"<s>",
"static",
"void",
"epiphany_setup_incoming_varargs",
"(",
"cumulative_args_t",
"cum",
",",
"const",
"function_arg_info",
"&",
"arg",
",",
"int",
"*",
"pretend_size",
",",
"int",
"no_rtl",
")",
"{",
"int",
"first_anon_arg",
";",
"CUMULATIVE_ARGS",
"next_cum",
";",
"machine_function_t",
"*",
"mf",
"=",
"MACHINE_FUNCTION",
"(",
"cfun",
")",
";",
"gcc_assert",
"(",
"arg",
".",
"mode",
"!=",
"BLKmode",
")",
";",
"next_cum",
"=",
"*",
"get_cumulative_args",
"(",
"cum",
")",
";",
"next_cum",
"=",
"(",
"ROUND_ADVANCE_CUM",
"(",
"next_cum",
",",
"arg",
".",
"mode",
",",
"arg",
".",
"type",
")",
"+",
"ROUND_ADVANCE_ARG",
"(",
"arg",
".",
"mode",
",",
"arg",
".",
"type",
")",
")",
";",
"first_anon_arg",
"=",
"next_cum",
";",
"if",
"(",
"first_anon_arg",
"<",
"MAX_EPIPHANY_PARM_REGS",
"&&",
"!",
"no_rtl",
")",
"{",
"int",
"first_reg_offset",
"=",
"first_anon_arg",
";",
"*",
"pretend_size",
"=",
"(",
"(",
"MAX_EPIPHANY_PARM_REGS",
"-",
"first_reg_offset",
")",
"*",
"UNITS_PER_WORD",
")",
";",
"}",
"mf",
"->",
"args_parsed",
"=",
"1",
";",
"mf",
"->",
"pretend_args_odd",
"=",
"(",
"(",
"*",
"pretend_size",
"&",
"UNITS_PER_WORD",
")",
"?",
"1",
":",
"0",
")",
";",
"}",
"</s>"
] | [
"Do",
"any",
"needed",
"setup",
"for",
"a",
"variadic",
"function",
".",
"For",
"the",
"EPIPHANY",
",",
"we",
"actually",
"emit",
"the",
"code",
"in",
"epiphany_expand_prologue",
".",
"CUM",
"has",
"not",
"been",
"updated",
"for",
"the",
"last",
"named",
"argument",
"which",
"has",
"type",
"TYPE",
"and",
"mode",
"MODE",
",",
"and",
"we",
"rely",
"on",
"this",
"fact",
"."
] | [
"epiphany",
"1",
"1",
"0"
] | epiphany | epiphany_setup_incoming_varargs | epiphany | MPU | GCC | 21,226 | 137 | 1 | [] |
[
"<s>",
"bool",
"RISCVTargetLowering",
"::",
"CanLowerReturn",
"(",
"CallingConv",
"::",
"ID",
"CallConv",
",",
"MachineFunction",
"&",
"MF",
",",
"bool",
"IsVarArg",
",",
"const",
"SmallVectorImpl",
"<",
"ISD",
"::",
"OutputArg",
">",
"&",
"Outs",
",",
"LLVMContext",
"&",
"Context",
")",
"const",
"{",
"SmallVector",
"<",
"CCValAssign",
",",
"16",
">",
"RVLocs",
";",
"CCState",
"CCInfo",
"(",
"CallConv",
",",
"IsVarArg",
",",
"MF",
",",
"RVLocs",
",",
"Context",
")",
";",
"Optional",
"<",
"unsigned",
">",
"FirstMaskArgument",
";",
"if",
"(",
"Subtarget",
".",
"hasStdExtV",
"(",
")",
")",
"FirstMaskArgument",
"=",
"preAssignMask",
"(",
"Outs",
")",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
",",
"e",
"=",
"Outs",
".",
"size",
"(",
")",
";",
"i",
"!=",
"e",
";",
"++",
"i",
")",
"{",
"MVT",
"VT",
"=",
"Outs",
"[",
"i",
"]",
".",
"VT",
";",
"ISD",
"::",
"ArgFlagsTy",
"ArgFlags",
"=",
"Outs",
"[",
"i",
"]",
".",
"Flags",
";",
"RISCVABI",
"::",
"ABI",
"ABI",
"=",
"MF",
".",
"getSubtarget",
"<",
"RISCVSubtarget",
">",
"(",
")",
".",
"getTargetABI",
"(",
")",
";",
"if",
"(",
"CC_RISCV",
"(",
"MF",
".",
"getDataLayout",
"(",
")",
",",
"ABI",
",",
"i",
",",
"VT",
",",
"VT",
",",
"CCValAssign",
"::",
"Full",
",",
"ArgFlags",
",",
"CCInfo",
",",
"true",
",",
"true",
",",
"nullptr",
",",
"*",
"this",
",",
"FirstMaskArgument",
")",
")",
"return",
"false",
";",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"This",
"hook",
"should",
"be",
"implemented",
"to",
"check",
"whether",
"the",
"return",
"values",
"described",
"by",
"the",
"Outs",
"array",
"can",
"fit",
"into",
"the",
"return",
"registers",
"."
] | [
"RISCV",
"RISCV",
"ISD::OutputArg",
"16",
"0",
"ISD::ArgFlagsTy",
"RISCVABI::ABI",
"RISCV",
"RISCV"
] | RISCVISelLowering1 | CanLowerReturn | RISCV | CPU | LLVM | 21,227 | 185 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"arm_output_iwmmxt_tinsr",
"(",
"rtx",
"*",
"operands",
")",
"{",
"int",
"mask",
"=",
"INTVAL",
"(",
"operands",
"[",
"3",
"]",
")",
";",
"int",
"i",
";",
"char",
"templ",
"[",
"50",
"]",
";",
"int",
"units",
"=",
"mode_nunits",
"[",
"GET_MODE",
"(",
"operands",
"[",
"0",
"]",
")",
"]",
";",
"gcc_assert",
"(",
"(",
"mask",
"&",
"(",
"mask",
"-",
"1",
")",
")",
"==",
"0",
")",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"units",
";",
"++",
"i",
")",
"{",
"if",
"(",
"(",
"mask",
"&",
"0x01",
")",
"==",
"1",
")",
"{",
"break",
";",
"}",
"mask",
">>=",
"1",
";",
"}",
"gcc_assert",
"(",
"i",
"<",
"units",
")",
";",
"{",
"switch",
"(",
"GET_MODE",
"(",
"operands",
"[",
"0",
"]",
")",
")",
"{",
"case",
"V8QImode",
":",
"sprintf",
"(",
"templ",
",",
"\"tinsrb%%?\\t%%0, %%2, #%d\"",
",",
"i",
")",
";",
"break",
";",
"case",
"V4HImode",
":",
"sprintf",
"(",
"templ",
",",
"\"tinsrh%%?\\t%%0, %%2, #%d\"",
",",
"i",
")",
";",
"break",
";",
"case",
"V2SImode",
":",
"sprintf",
"(",
"templ",
",",
"\"tinsrw%%?\\t%%0, %%2, #%d\"",
",",
"i",
")",
";",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"break",
";",
"}",
"output_asm_insn",
"(",
"templ",
",",
"operands",
")",
";",
"}",
"return",
"\"\"",
";",
"}",
"</s>"
] | [
"Output",
"assembly",
"for",
"a",
"WMMX",
"tinsr",
"instruction",
"."
] | [
"arm",
"3",
"50",
"0",
"1",
"0",
"0",
"0x01",
"1",
"1",
"0",
"\"tinsrb%%?\\t%%0, %%2, #%d\"",
"\"tinsrh%%?\\t%%0, %%2, #%d\"",
"\"tinsrw%%?\\t%%0, %%2, #%d\"",
"\"\""
] | arm4 | arm_output_iwmmxt_tinsr | arm | CPU | GCC | 21,228 | 174 | 1 | [] |
[
"<s>",
"bool",
"HexagonRegisterInfo",
"::",
"shouldCoalesce",
"(",
"MachineInstr",
"*",
"MI",
",",
"const",
"TargetRegisterClass",
"*",
"SrcRC",
",",
"unsigned",
"SubReg",
",",
"const",
"TargetRegisterClass",
"*",
"DstRC",
",",
"unsigned",
"DstSubReg",
",",
"const",
"TargetRegisterClass",
"*",
"NewRC",
",",
"LiveIntervals",
"&",
"LIS",
")",
"const",
"{",
"MachineFunction",
"&",
"MF",
"=",
"*",
"MI",
"->",
"getParent",
"(",
")",
"->",
"getParent",
"(",
")",
";",
"const",
"HexagonSubtarget",
"&",
"HST",
"=",
"MF",
".",
"getSubtarget",
"<",
"HexagonSubtarget",
">",
"(",
")",
";",
"if",
"(",
"!",
"HST",
".",
"useHVXOps",
"(",
")",
"||",
"NewRC",
"->",
"getID",
"(",
")",
"!=",
"Hexagon",
"::",
"HvxWRRegClass",
".",
"getID",
"(",
")",
")",
"return",
"true",
";",
"bool",
"SmallSrc",
"=",
"SrcRC",
"->",
"getID",
"(",
")",
"==",
"Hexagon",
"::",
"HvxVRRegClass",
".",
"getID",
"(",
")",
";",
"bool",
"SmallDst",
"=",
"DstRC",
"->",
"getID",
"(",
")",
"==",
"Hexagon",
"::",
"HvxVRRegClass",
".",
"getID",
"(",
")",
";",
"if",
"(",
"!",
"SmallSrc",
"&&",
"!",
"SmallDst",
")",
"return",
"true",
";",
"unsigned",
"DstReg",
"=",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
";",
"unsigned",
"SrcReg",
"=",
"MI",
"->",
"getOperand",
"(",
"1",
")",
".",
"getReg",
"(",
")",
";",
"const",
"SlotIndexes",
"&",
"Indexes",
"=",
"*",
"LIS",
".",
"getSlotIndexes",
"(",
")",
";",
"auto",
"HasCall",
"=",
"[",
"&",
"Indexes",
"]",
"(",
"const",
"LiveInterval",
"::",
"Segment",
"&",
"S",
")",
"{",
"for",
"(",
"SlotIndex",
"I",
"=",
"S",
".",
"start",
".",
"getBaseIndex",
"(",
")",
",",
"E",
"=",
"S",
".",
"end",
".",
"getBaseIndex",
"(",
")",
";",
"I",
"!=",
"E",
";",
"I",
"=",
"I",
".",
"getNextIndex",
"(",
")",
")",
"{",
"if",
"(",
"const",
"MachineInstr",
"*",
"MI",
"=",
"Indexes",
".",
"getInstructionFromIndex",
"(",
"I",
")",
")",
"if",
"(",
"MI",
"->",
"isCall",
"(",
")",
")",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}",
";",
"if",
"(",
"SmallSrc",
"==",
"SmallDst",
")",
"{",
"return",
"!",
"any_of",
"(",
"LIS",
".",
"getInterval",
"(",
"DstReg",
")",
",",
"HasCall",
")",
"&&",
"!",
"any_of",
"(",
"LIS",
".",
"getInterval",
"(",
"SrcReg",
")",
",",
"HasCall",
")",
";",
"}",
"unsigned",
"SmallReg",
"=",
"SmallSrc",
"?",
"SrcReg",
":",
"DstReg",
";",
"unsigned",
"LargeReg",
"=",
"SmallSrc",
"?",
"DstReg",
":",
"SrcReg",
";",
"return",
"any_of",
"(",
"LIS",
".",
"getInterval",
"(",
"LargeReg",
")",
",",
"HasCall",
")",
"||",
"!",
"any_of",
"(",
"LIS",
".",
"getInterval",
"(",
"SmallReg",
")",
",",
"HasCall",
")",
";",
"}",
"</s>"
] | [
"Subtarget",
"Hooks",
"."
] | [
"Hexagon",
"Hexagon",
"Hexagon",
"Hexagon",
"Hexagon::HvxWRRegClass",
"Hexagon::HvxVRRegClass",
"Hexagon::HvxVRRegClass",
"0",
"1"
] | HexagonRegisterInfo18 | shouldCoalesce | Hexagon | DSP | LLVM | 21,229 | 339 | 1 | [] |
[
"<s>",
"bool",
"isThumb",
"(",
")",
"const",
"{",
"return",
"(",
"STI",
".",
"getFeatureBits",
"(",
")",
"&",
"ARM",
"::",
"ModeThumb",
")",
"!=",
"0",
";",
"}",
"</s>"
] | [
"Tests",
"whether",
"the",
"target",
"is",
"Thumb",
"(",
"little",
"and",
"big",
"endian",
")",
"."
] | [
"ARM",
"ARM::ModeThumb",
"0"
] | ARMAsmParser (2) | isThumb | ARM | CPU | LLVM | 21,230 | 22 | 1 | [] |
[
"<s>",
"ARMSubtarget",
"::",
"ARMSubtarget",
"(",
"const",
"std",
"::",
"string",
"&",
"TT",
",",
"const",
"std",
"::",
"string",
"&",
"CPU",
",",
"const",
"std",
"::",
"string",
"&",
"FS",
",",
"const",
"TargetOptions",
"&",
"Options",
")",
":",
"ARMGenSubtargetInfo",
"(",
"TT",
",",
"CPU",
",",
"FS",
")",
",",
"ARMProcFamily",
"(",
"Others",
")",
",",
"stackAlignment",
"(",
"4",
")",
",",
"CPUString",
"(",
"CPU",
")",
",",
"TargetTriple",
"(",
"TT",
")",
",",
"Options",
"(",
"Options",
")",
",",
"TargetABI",
"(",
"ARM_ABI_APCS",
")",
"{",
"initializeEnvironment",
"(",
")",
";",
"resetSubtargetFeatures",
"(",
"CPU",
",",
"FS",
")",
";",
"}",
"</s>"
] | [
"This",
"constructor",
"initializes",
"the",
"data",
"members",
"to",
"match",
"that",
"of",
"the",
"specified",
"triple",
"."
] | [
"ARM",
"ARM",
"ARM",
"ARM",
"ARM",
"4",
"ARM"
] | ARMSubtarget11 | ARMSubtarget | ARM | CPU | LLVM | 21,231 | 82 | 1 | [] |
[
"<s>",
"unsigned",
"IA64RegisterInfo",
"::",
"getRARegister",
"(",
")",
"const",
"{",
"assert",
"(",
"0",
"&&",
"\"What is the return address register\"",
")",
";",
"return",
"0",
";",
"}",
"</s>"
] | [
"This",
"method",
"should",
"return",
"the",
"register",
"where",
"the",
"return",
"address",
"can",
"be",
"found",
"."
] | [
"IA64",
"IA64",
"0",
"\"What is the return address register\"",
"0"
] | IA64RegisterInfo | getRARegister | IA64 | CPU | LLVM | 21,232 | 19 | 1 | [] |
[
"<s>",
"static",
"void",
"mips_block_move_loop",
"(",
"rtx",
"dest",
",",
"rtx",
"src",
",",
"HOST_WIDE_INT",
"length",
",",
"HOST_WIDE_INT",
"bytes_per_iter",
")",
"{",
"rtx_code_label",
"*",
"label",
";",
"rtx",
"src_reg",
",",
"dest_reg",
",",
"final_src",
",",
"test",
";",
"HOST_WIDE_INT",
"leftover",
";",
"leftover",
"=",
"length",
"%",
"bytes_per_iter",
";",
"length",
"-=",
"leftover",
";",
"mips_adjust_block_mem",
"(",
"src",
",",
"bytes_per_iter",
",",
"&",
"src_reg",
",",
"&",
"src",
")",
";",
"mips_adjust_block_mem",
"(",
"dest",
",",
"bytes_per_iter",
",",
"&",
"dest_reg",
",",
"&",
"dest",
")",
";",
"final_src",
"=",
"expand_simple_binop",
"(",
"Pmode",
",",
"PLUS",
",",
"src_reg",
",",
"GEN_INT",
"(",
"length",
")",
",",
"0",
",",
"0",
",",
"OPTAB_WIDEN",
")",
";",
"label",
"=",
"gen_label_rtx",
"(",
")",
";",
"emit_label",
"(",
"label",
")",
";",
"mips_block_move_straight",
"(",
"dest",
",",
"src",
",",
"bytes_per_iter",
")",
";",
"mips_emit_move",
"(",
"src_reg",
",",
"plus_constant",
"(",
"Pmode",
",",
"src_reg",
",",
"bytes_per_iter",
")",
")",
";",
"mips_emit_move",
"(",
"dest_reg",
",",
"plus_constant",
"(",
"Pmode",
",",
"dest_reg",
",",
"bytes_per_iter",
")",
")",
";",
"test",
"=",
"gen_rtx_NE",
"(",
"VOIDmode",
",",
"src_reg",
",",
"final_src",
")",
";",
"if",
"(",
"Pmode",
"==",
"DImode",
")",
"emit_jump_insn",
"(",
"gen_cbranchdi4",
"(",
"test",
",",
"src_reg",
",",
"final_src",
",",
"label",
")",
")",
";",
"else",
"emit_jump_insn",
"(",
"gen_cbranchsi4",
"(",
"test",
",",
"src_reg",
",",
"final_src",
",",
"label",
")",
")",
";",
"if",
"(",
"leftover",
")",
"mips_block_move_straight",
"(",
"dest",
",",
"src",
",",
"leftover",
")",
";",
"else",
"emit_insn",
"(",
"gen_nop",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"Move",
"LENGTH",
"bytes",
"from",
"SRC",
"to",
"DEST",
"using",
"a",
"loop",
"that",
"moves",
"MAX_MOVE_BYTES",
"per",
"iteration",
".",
"LENGTH",
"must",
"be",
"at",
"least",
"MAX_MOVE_BYTES",
".",
"Assume",
"that",
"the",
"memory",
"regions",
"do",
"not",
"overlap",
"."
] | [
"mips",
"0",
"0"
] | mips | mips_block_move_loop | mips | CPU | GCC | 21,233 | 207 | 1 | [] |
[
"<s>",
"SDValue",
"TGSITargetLowering",
"::",
"LowerReturn",
"(",
"SDValue",
"Chain",
",",
"CallingConv",
"::",
"ID",
"CallConv",
",",
"bool",
"isVarArg",
",",
"const",
"SmallVectorImpl",
"<",
"ISD",
"::",
"OutputArg",
">",
"&",
"Outs",
",",
"const",
"SmallVectorImpl",
"<",
"SDValue",
">",
"&",
"OutVals",
",",
"const",
"SDLoc",
"&",
"dl",
",",
"SelectionDAG",
"&",
"DAG",
")",
"const",
"{",
"SDValue",
"Flag",
";",
"SmallVector",
"<",
"CCValAssign",
",",
"16",
">",
"RVLocs",
";",
"CCState",
"ccinfo",
"(",
"CallConv",
",",
"isVarArg",
",",
"DAG",
".",
"getMachineFunction",
"(",
")",
",",
"RVLocs",
",",
"*",
"DAG",
".",
"getContext",
"(",
")",
")",
";",
"ccinfo",
".",
"AnalyzeReturn",
"(",
"Outs",
",",
"RetCC_TGSI",
")",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
",",
"e",
"=",
"RVLocs",
".",
"size",
"(",
")",
";",
"i",
"!=",
"e",
";",
"++",
"i",
")",
"{",
"CCValAssign",
"&",
"VA",
"=",
"RVLocs",
"[",
"i",
"]",
";",
"assert",
"(",
"VA",
".",
"isRegLoc",
"(",
")",
"&&",
"\"CCValAssign must be RegLoc\"",
")",
";",
"unsigned",
"Reg",
"=",
"VA",
".",
"getLocReg",
"(",
")",
";",
"Chain",
"=",
"DAG",
".",
"getCopyToReg",
"(",
"Chain",
",",
"dl",
",",
"Reg",
",",
"OutVals",
"[",
"i",
"]",
",",
"Flag",
")",
";",
"Flag",
"=",
"Chain",
".",
"getValue",
"(",
"1",
")",
";",
"}",
"if",
"(",
"Flag",
".",
"getNode",
"(",
")",
")",
"return",
"DAG",
".",
"getNode",
"(",
"TGSIISD",
"::",
"RET",
",",
"dl",
",",
"MVT",
"::",
"Other",
",",
"Chain",
",",
"Flag",
")",
";",
"else",
"return",
"DAG",
".",
"getNode",
"(",
"TGSIISD",
"::",
"RET",
",",
"dl",
",",
"MVT",
"::",
"Other",
",",
"Chain",
")",
";",
"}",
"</s>"
] | [
"This",
"hook",
"must",
"be",
"implemented",
"to",
"lower",
"outgoing",
"return",
"values",
",",
"described",
"by",
"the",
"Outs",
"array",
",",
"into",
"the",
"specified",
"DAG",
"."
] | [
"TGSI",
"TGSI",
"ISD::OutputArg",
"16",
"TGSI",
"0",
"\"CCValAssign must be RegLoc\"",
"1",
"TGSIISD::RET",
"MVT::Other",
"TGSIISD::RET",
"MVT::Other"
] | TGSIISelLowering | LowerReturn | TGSI | Virtual ISA | LLVM | 21,234 | 218 | 1 | [] |
[
"<s>",
"static",
"bool",
"nios2_rtx_costs",
"(",
"rtx",
"x",
",",
"machine_mode",
"mode",
"ATTRIBUTE_UNUSED",
",",
"int",
"outer_code",
"ATTRIBUTE_UNUSED",
",",
"int",
"opno",
"ATTRIBUTE_UNUSED",
",",
"int",
"*",
"total",
",",
"bool",
"speed",
"ATTRIBUTE_UNUSED",
")",
"{",
"int",
"code",
"=",
"GET_CODE",
"(",
"x",
")",
";",
"switch",
"(",
"code",
")",
"{",
"case",
"CONST_INT",
":",
"if",
"(",
"INTVAL",
"(",
"x",
")",
"==",
"0",
")",
"{",
"*",
"total",
"=",
"COSTS_N_INSNS",
"(",
"0",
")",
";",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"nios2_simple_const_p",
"(",
"x",
")",
")",
"{",
"*",
"total",
"=",
"COSTS_N_INSNS",
"(",
"2",
")",
";",
"return",
"true",
";",
"}",
"else",
"{",
"*",
"total",
"=",
"COSTS_N_INSNS",
"(",
"4",
")",
";",
"return",
"true",
";",
"}",
"case",
"LABEL_REF",
":",
"case",
"SYMBOL_REF",
":",
"case",
"CONST",
":",
"case",
"CONST_DOUBLE",
":",
"{",
"*",
"total",
"=",
"COSTS_N_INSNS",
"(",
"4",
")",
";",
"return",
"true",
";",
"}",
"case",
"AND",
":",
"{",
"if",
"(",
"GET_CODE",
"(",
"XEXP",
"(",
"x",
",",
"0",
")",
")",
"==",
"NOT",
"&&",
"GET_CODE",
"(",
"XEXP",
"(",
"x",
",",
"1",
")",
")",
"==",
"NOT",
")",
"{",
"*",
"total",
"=",
"COSTS_N_INSNS",
"(",
"1",
")",
";",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}",
"case",
"MULT",
":",
"{",
"*",
"total",
"=",
"COSTS_N_INSNS",
"(",
"1",
")",
";",
"return",
"false",
";",
"}",
"case",
"SIGN_EXTEND",
":",
"{",
"*",
"total",
"=",
"COSTS_N_INSNS",
"(",
"3",
")",
";",
"return",
"false",
";",
"}",
"case",
"ZERO_EXTEND",
":",
"{",
"*",
"total",
"=",
"COSTS_N_INSNS",
"(",
"1",
")",
";",
"return",
"false",
";",
"}",
"case",
"ZERO_EXTRACT",
":",
"if",
"(",
"TARGET_HAS_BMX",
")",
"{",
"*",
"total",
"=",
"COSTS_N_INSNS",
"(",
"1",
")",
";",
"return",
"true",
";",
"}",
"default",
":",
"return",
"false",
";",
"}",
"}",
"</s>"
] | [
"Compute",
"a",
"(",
"partial",
")",
"cost",
"for",
"rtx",
"X",
".",
"Return",
"true",
"if",
"the",
"complete",
"cost",
"has",
"been",
"computed",
",",
"and",
"false",
"if",
"subexpressions",
"should",
"be",
"scanned",
".",
"In",
"either",
"case",
",",
"*",
"TOTAL",
"contains",
"the",
"cost",
"result",
"."
] | [
"nios2",
"0",
"0",
"2",
"4",
"4",
"0",
"1",
"1",
"1",
"3",
"1",
"1"
] | nios23 | nios2_rtx_costs | nios2 | MPU | GCC | 21,235 | 248 | 1 | [] |
[
"<s>",
"void",
"Cpu0SEFrameLowering",
"::",
"emitEpilogue",
"(",
"MachineFunction",
"&",
"MF",
",",
"MachineBasicBlock",
"&",
"MBB",
")",
"const",
"{",
"MachineBasicBlock",
"::",
"iterator",
"MBBI",
"=",
"MBB",
".",
"getLastNonDebugInstr",
"(",
")",
";",
"MachineFrameInfo",
"&",
"MFI",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
";",
"Cpu0MachineFunctionInfo",
"*",
"Cpu0FI",
"=",
"MF",
".",
"getInfo",
"<",
"Cpu0MachineFunctionInfo",
">",
"(",
")",
";",
"const",
"Cpu0SEInstrInfo",
"&",
"TII",
"=",
"*",
"static_cast",
"<",
"const",
"Cpu0SEInstrInfo",
"*",
">",
"(",
"STI",
".",
"getInstrInfo",
"(",
")",
")",
";",
"const",
"Cpu0RegisterInfo",
"&",
"RegInfo",
"=",
"*",
"static_cast",
"<",
"const",
"Cpu0RegisterInfo",
"*",
">",
"(",
"STI",
".",
"getRegisterInfo",
"(",
")",
")",
";",
"DebugLoc",
"dl",
"=",
"MBBI",
"->",
"getDebugLoc",
"(",
")",
";",
"Cpu0ABIInfo",
"ABI",
"=",
"STI",
".",
"getABI",
"(",
")",
";",
"unsigned",
"SP",
"=",
"Cpu0",
"::",
"SP",
";",
"unsigned",
"FP",
"=",
"Cpu0",
"::",
"FP",
";",
"unsigned",
"ZERO",
"=",
"Cpu0",
"::",
"ZERO",
";",
"unsigned",
"ADDu",
"=",
"Cpu0",
"::",
"ADDu",
";",
"if",
"(",
"hasFP",
"(",
"MF",
")",
")",
"{",
"MachineBasicBlock",
"::",
"iterator",
"I",
"=",
"MBBI",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"<",
"MFI",
".",
"getCalleeSavedInfo",
"(",
")",
".",
"size",
"(",
")",
";",
"++",
"i",
")",
"--",
"I",
";",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"ADDu",
")",
",",
"SP",
")",
".",
"addReg",
"(",
"FP",
")",
".",
"addReg",
"(",
"ZERO",
")",
";",
"}",
"if",
"(",
"Cpu0FI",
"->",
"callsEhReturn",
"(",
")",
")",
"{",
"const",
"TargetRegisterClass",
"*",
"RC",
"=",
"&",
"Cpu0",
"::",
"GPROutRegClass",
";",
"MachineBasicBlock",
"::",
"iterator",
"I",
"=",
"MBBI",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"<",
"MFI",
".",
"getCalleeSavedInfo",
"(",
")",
".",
"size",
"(",
")",
";",
"++",
"i",
")",
"--",
"I",
";",
"for",
"(",
"int",
"J",
"=",
"0",
";",
"J",
"<",
"ABI",
".",
"EhDataRegSize",
"(",
")",
";",
"++",
"J",
")",
"{",
"TII",
".",
"loadRegFromStackSlot",
"(",
"MBB",
",",
"I",
",",
"ABI",
".",
"GetEhDataReg",
"(",
"J",
")",
",",
"Cpu0FI",
"->",
"getEhDataRegFI",
"(",
"J",
")",
",",
"RC",
",",
"&",
"RegInfo",
")",
";",
"}",
"}",
"uint64_t",
"StackSize",
"=",
"MFI",
".",
"getStackSize",
"(",
")",
";",
"if",
"(",
"!",
"StackSize",
")",
"return",
";",
"TII",
".",
"adjustStackPtr",
"(",
"SP",
",",
"StackSize",
",",
"MBB",
",",
"MBBI",
")",
";",
"}",
"</s>"
] | [
"Insert",
"epilog",
"code",
"into",
"the",
"function",
"."
] | [
"Cpu0",
"Cpu0",
"Cpu0",
"Cpu0",
"Cpu0",
"Cpu0",
"Cpu0",
"Cpu0",
"Cpu0",
"Cpu0",
"Cpu0::SP",
"Cpu0::FP",
"Cpu0::ZERO",
"Cpu0::ADDu",
"0",
"Cpu0",
"Cpu0::GPROutRegClass",
"0",
"0",
"Cpu0"
] | Cpu0SEFrameLowering | emitEpilogue | Cpu0 | CPU | LLVM | 21,236 | 334 | 1 | [] |
[
"<s>",
"static",
"void",
"or1k_function_arg_advance",
"(",
"cumulative_args_t",
"cum_v",
",",
"const",
"function_arg_info",
"&",
"arg",
")",
"{",
"CUMULATIVE_ARGS",
"*",
"cum",
"=",
"get_cumulative_args",
"(",
"cum_v",
")",
";",
"int",
"nreg",
"=",
"CEIL",
"(",
"GET_MODE_SIZE",
"(",
"arg",
".",
"mode",
")",
",",
"UNITS_PER_WORD",
")",
";",
"gcc_assert",
"(",
"nreg",
"<=",
"2",
")",
";",
"if",
"(",
"arg",
".",
"named",
")",
"*",
"cum",
"+=",
"nreg",
";",
"}",
"</s>"
] | [
"Worker",
"for",
"TARGET_FUNCTION_ARG_ADVANCE",
".",
"Update",
"the",
"cumulative",
"args",
"descriptor",
"CUM_V",
"to",
"advance",
"past",
"the",
"next",
"function",
"argument",
".",
"Note",
",",
"this",
"is",
"not",
"called",
"for",
"arguments",
"passed",
"on",
"the",
"stack",
"."
] | [
"or1k",
"2"
] | or1k | or1k_function_arg_advance | or1k | CPU | GCC | 21,237 | 56 | 1 | [] |
[
"<s>",
"unsigned",
"MipsSEInstrInfo",
"::",
"isLoadFromStackSlot",
"(",
"const",
"MachineInstr",
"*",
"MI",
",",
"int",
"&",
"FrameIndex",
")",
"const",
"{",
"unsigned",
"Opc",
"=",
"MI",
"->",
"getOpcode",
"(",
")",
";",
"if",
"(",
"(",
"Opc",
"==",
"Mips",
"::",
"LW",
")",
"||",
"(",
"Opc",
"==",
"Mips",
"::",
"LD",
")",
"||",
"(",
"Opc",
"==",
"Mips",
"::",
"LWC1",
")",
"||",
"(",
"Opc",
"==",
"Mips",
"::",
"LDC1",
")",
"||",
"(",
"Opc",
"==",
"Mips",
"::",
"LDC164",
")",
")",
"{",
"if",
"(",
"(",
"MI",
"->",
"getOperand",
"(",
"1",
")",
".",
"isFI",
"(",
")",
")",
"&&",
"(",
"MI",
"->",
"getOperand",
"(",
"2",
")",
".",
"isImm",
"(",
")",
")",
"&&",
"(",
"isZeroImm",
"(",
"MI",
"->",
"getOperand",
"(",
"2",
")",
")",
")",
")",
"{",
"FrameIndex",
"=",
"MI",
"->",
"getOperand",
"(",
"1",
")",
".",
"getIndex",
"(",
")",
";",
"return",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
";",
"}",
"}",
"return",
"0",
";",
"}",
"</s>"
] | [
"isLoadFromStackSlot",
"-",
"If",
"the",
"specified",
"machine",
"instruction",
"is",
"a",
"direct",
"load",
"from",
"a",
"stack",
"slot",
",",
"return",
"the",
"virtual",
"or",
"physical",
"register",
"number",
"of",
"the",
"destination",
"along",
"with",
"the",
"FrameIndex",
"of",
"the",
"loaded",
"stack",
"slot",
"."
] | [
"Mips",
"Mips",
"Mips::LW",
"Mips::LD",
"Mips::LWC1",
"Mips::LDC1",
"Mips::LDC164",
"1",
"2",
"2",
"1",
"0",
"0"
] | MipsSEInstrInfo15 | isLoadFromStackSlot | Mips | CPU | LLVM | 21,238 | 140 | 1 | [] |
[
"<s>",
"void",
"dump",
"(",
")",
"{",
"errs",
"(",
")",
"<<",
"\"SystemZRRIAddressMode \"",
"<<",
"this",
"<<",
"'\\n'",
";",
"if",
"(",
"BaseType",
"==",
"RegBase",
")",
"{",
"errs",
"(",
")",
"<<",
"\"Base.Reg \"",
";",
"if",
"(",
"Base",
".",
"Reg",
".",
"getNode",
"(",
")",
"!=",
"0",
")",
"Base",
".",
"Reg",
".",
"getNode",
"(",
")",
"->",
"dump",
"(",
")",
";",
"else",
"errs",
"(",
")",
"<<",
"\"nul\"",
";",
"errs",
"(",
")",
"<<",
"'\\n'",
";",
"}",
"else",
"{",
"errs",
"(",
")",
"<<",
"\" Base.FrameIndex \"",
"<<",
"Base",
".",
"FrameIndex",
"<<",
"'\\n'",
";",
"}",
"if",
"(",
"!",
"isRI",
")",
"{",
"errs",
"(",
")",
"<<",
"\"IndexReg \"",
";",
"if",
"(",
"IndexReg",
".",
"getNode",
"(",
")",
"!=",
"0",
")",
"IndexReg",
".",
"getNode",
"(",
")",
"->",
"dump",
"(",
")",
";",
"else",
"errs",
"(",
")",
"<<",
"\"nul\"",
";",
"}",
"errs",
"(",
")",
"<<",
"\" Disp \"",
"<<",
"Disp",
"<<",
"'\\n'",
";",
"}",
"</s>"
] | [
"Dump",
"the",
"plan",
"to",
"stderr",
"(",
"for",
"debugging",
")",
"."
] | [
"SystemZ",
"\"SystemZRRIAddressMode \"",
"\"Base.Reg \"",
"0",
"\"nul\"",
"\" Base.FrameIndex \"",
"\"IndexReg \"",
"0",
"\"nul\"",
"\" Disp \""
] | SystemZISelDAGToDAG16 | dump | SystemZ | CPU | LLVM | 21,239 | 132 | 1 | [] |
[
"<s>",
"bool",
"FPGATTIImpl",
"::",
"isLegalICmpImmediate",
"(",
"int64_t",
"Imm",
")",
"{",
"return",
"true",
";",
"}",
"</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",
"."
] | [
"FPGA",
"FPGA"
] | FPGATargetTransformInfo | isLegalICmpImmediate | FPGA | CPU | LLVM | 21,240 | 13 | 1 | [] |
[
"<s>",
"SDValue",
"SITargetLowering",
"::",
"PerformDAGCombine",
"(",
"SDNode",
"*",
"N",
",",
"DAGCombinerInfo",
"&",
"DCI",
")",
"const",
"{",
"SelectionDAG",
"&",
"DAG",
"=",
"DCI",
".",
"DAG",
";",
"SDLoc",
"DL",
"(",
"N",
")",
";",
"EVT",
"VT",
"=",
"N",
"->",
"getValueType",
"(",
"0",
")",
";",
"switch",
"(",
"N",
"->",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"break",
";",
"case",
"ISD",
"::",
"SELECT_CC",
":",
"{",
"ConstantSDNode",
"*",
"True",
",",
"*",
"False",
";",
"if",
"(",
"(",
"True",
"=",
"dyn_cast",
"<",
"ConstantSDNode",
">",
"(",
"N",
"->",
"getOperand",
"(",
"2",
")",
")",
")",
"&&",
"(",
"False",
"=",
"dyn_cast",
"<",
"ConstantSDNode",
">",
"(",
"N",
"->",
"getOperand",
"(",
"3",
")",
")",
")",
"&&",
"True",
"->",
"isAllOnesValue",
"(",
")",
"&&",
"False",
"->",
"isNullValue",
"(",
")",
"&&",
"VT",
"==",
"MVT",
"::",
"i1",
")",
"{",
"return",
"DAG",
".",
"getNode",
"(",
"ISD",
"::",
"SETCC",
",",
"DL",
",",
"VT",
",",
"N",
"->",
"getOperand",
"(",
"0",
")",
",",
"N",
"->",
"getOperand",
"(",
"1",
")",
",",
"N",
"->",
"getOperand",
"(",
"4",
")",
")",
";",
"}",
"break",
";",
"}",
"case",
"ISD",
"::",
"SETCC",
":",
"{",
"SDValue",
"Arg0",
"=",
"N",
"->",
"getOperand",
"(",
"0",
")",
";",
"SDValue",
"Arg1",
"=",
"N",
"->",
"getOperand",
"(",
"1",
")",
";",
"SDValue",
"CC",
"=",
"N",
"->",
"getOperand",
"(",
"2",
")",
";",
"ConstantSDNode",
"*",
"C",
"=",
"NULL",
";",
"ISD",
"::",
"CondCode",
"CCOp",
"=",
"dyn_cast",
"<",
"CondCodeSDNode",
">",
"(",
"CC",
")",
"->",
"get",
"(",
")",
";",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"i1",
"&&",
"Arg0",
".",
"getOpcode",
"(",
")",
"==",
"ISD",
"::",
"SIGN_EXTEND",
"&&",
"Arg0",
".",
"getOperand",
"(",
"0",
")",
".",
"getValueType",
"(",
")",
"==",
"MVT",
"::",
"i1",
"&&",
"(",
"C",
"=",
"dyn_cast",
"<",
"ConstantSDNode",
">",
"(",
"Arg1",
")",
")",
"&&",
"C",
"->",
"isNullValue",
"(",
")",
"&&",
"CCOp",
"==",
"ISD",
"::",
"SETNE",
")",
"{",
"return",
"SimplifySetCC",
"(",
"VT",
",",
"Arg0",
".",
"getOperand",
"(",
"0",
")",
",",
"DAG",
".",
"getConstant",
"(",
"0",
",",
"MVT",
"::",
"i1",
")",
",",
"CCOp",
",",
"true",
",",
"DCI",
",",
"DL",
")",
";",
"}",
"break",
";",
"}",
"}",
"return",
"SDValue",
"(",
")",
";",
"}",
"</s>"
] | [
"This",
"method",
"will",
"be",
"invoked",
"for",
"all",
"target",
"nodes",
"and",
"for",
"any",
"target-independent",
"nodes",
"that",
"the",
"target",
"has",
"registered",
"with",
"invoke",
"it",
"for",
"."
] | [
"R600",
"SI",
"0",
"ISD::SELECT_CC",
"2",
"3",
"MVT::i1",
"ISD::SETCC",
"0",
"1",
"4",
"ISD::SETCC",
"0",
"1",
"2",
"ISD::CondCode",
"MVT::i1",
"ISD::SIGN_EXTEND",
"0",
"MVT::i1",
"ISD::SETNE",
"0",
"0",
"MVT::i1"
] | SIISelLowering107 | PerformDAGCombine | R600 | GPU | LLVM | 21,241 | 319 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"RISCVTargetLowering",
"::",
"getTargetNodeName",
"(",
"unsigned",
"Opcode",
")",
"const",
"{",
"case",
"RISCVISD",
"::",
"NODE",
":",
"\\",
"return",
"\"RISCVISD::\"",
"#",
"NODE",
";",
"switch",
"(",
"(",
"RISCVISD",
"::",
"NodeType",
")",
"Opcode",
")",
"{",
"case",
"RISCVISD",
"::",
"FIRST_NUMBER",
":",
"break",
";",
"NODE_NAME_CASE",
"(",
"RET_FLAG",
")",
"NODE_NAME_CASE",
"(",
"URET_FLAG",
")",
"NODE_NAME_CASE",
"(",
"SRET_FLAG",
")",
"NODE_NAME_CASE",
"(",
"MRET_FLAG",
")",
"NODE_NAME_CASE",
"(",
"CALL",
")",
"NODE_NAME_CASE",
"(",
"SELECT_CC",
")",
"NODE_NAME_CASE",
"(",
"BuildPairF64",
")",
"NODE_NAME_CASE",
"(",
"SplitF64",
")",
"NODE_NAME_CASE",
"(",
"TAIL",
")",
"NODE_NAME_CASE",
"(",
"SLLW",
")",
"NODE_NAME_CASE",
"(",
"SRAW",
")",
"NODE_NAME_CASE",
"(",
"SRLW",
")",
"NODE_NAME_CASE",
"(",
"DIVW",
")",
"NODE_NAME_CASE",
"(",
"DIVUW",
")",
"NODE_NAME_CASE",
"(",
"REMUW",
")",
"NODE_NAME_CASE",
"(",
"ROLW",
")",
"NODE_NAME_CASE",
"(",
"RORW",
")",
"NODE_NAME_CASE",
"(",
"FSLW",
")",
"NODE_NAME_CASE",
"(",
"FSRW",
")",
"NODE_NAME_CASE",
"(",
"FMV_H_X",
")",
"NODE_NAME_CASE",
"(",
"FMV_X_ANYEXTH",
")",
"NODE_NAME_CASE",
"(",
"FMV_W_X_RV64",
")",
"NODE_NAME_CASE",
"(",
"FMV_X_ANYEXTW_RV64",
")",
"NODE_NAME_CASE",
"(",
"READ_CYCLE_WIDE",
")",
"NODE_NAME_CASE",
"(",
"GREVI",
")",
"NODE_NAME_CASE",
"(",
"GREVIW",
")",
"NODE_NAME_CASE",
"(",
"GORCI",
")",
"NODE_NAME_CASE",
"(",
"GORCIW",
")",
"NODE_NAME_CASE",
"(",
"VMV_X_S",
")",
"NODE_NAME_CASE",
"(",
"SPLAT_VECTOR_I64",
")",
"NODE_NAME_CASE",
"(",
"READ_VLENB",
")",
"NODE_NAME_CASE",
"(",
"TRUNCATE_VECTOR",
")",
"NODE_NAME_CASE",
"(",
"VLEFF",
")",
"NODE_NAME_CASE",
"(",
"VLEFF_MASK",
")",
"NODE_NAME_CASE",
"(",
"VLSEGFF",
")",
"NODE_NAME_CASE",
"(",
"VLSEGFF_MASK",
")",
"NODE_NAME_CASE",
"(",
"READ_VL",
")",
"NODE_NAME_CASE",
"(",
"VSLIDEUP",
")",
"NODE_NAME_CASE",
"(",
"VSLIDEDOWN",
")",
"NODE_NAME_CASE",
"(",
"VID",
")",
"}",
"return",
"nullptr",
";",
"}",
"</s>"
] | [
"getTargetNodeName",
"-",
"This",
"method",
"returns",
"the",
"name",
"of",
"a",
"target",
"specific"
] | [
"RI5CY",
"RISCV",
"RISCVISD::NODE",
"\"RISCVISD::\"",
"RISCVISD::NodeType",
"RISCVISD::FIRST_NUMBER"
] | RISCVISelLowering | getTargetNodeName | RI5CY | CPU | LLVM | 21,242 | 205 | 1 | [] |
[
"<s>",
"uint32_t",
"AMDGPUTargetLowering",
"::",
"getImplicitParameterOffset",
"(",
"const",
"AMDGPUMachineFunction",
"*",
"MFI",
",",
"const",
"ImplicitParameter",
"Param",
")",
"const",
"{",
"unsigned",
"Alignment",
"=",
"Subtarget",
"->",
"getAlignmentForImplicitArgPtr",
"(",
")",
";",
"uint64_t",
"ArgOffset",
"=",
"alignTo",
"(",
"MFI",
"->",
"getABIArgOffset",
"(",
")",
",",
"Alignment",
")",
";",
"switch",
"(",
"Param",
")",
"{",
"case",
"GRID_DIM",
":",
"return",
"ArgOffset",
";",
"case",
"GRID_OFFSET",
":",
"return",
"ArgOffset",
"+",
"4",
";",
"}",
"llvm_unreachable",
"(",
"\"unexpected implicit parameter type\"",
")",
";",
"}",
"</s>"
] | [
"Helper",
"function",
"that",
"returns",
"the",
"byte",
"offset",
"of",
"the",
"given",
"type",
"of",
"implicit",
"parameter",
"."
] | [
"AMDGPU",
"AMDGPU",
"AMDGPU",
"4",
"\"unexpected implicit parameter type\""
] | AMDGPUISelLowering103 | getImplicitParameterOffset | AMDGPU | GPU | LLVM | 21,243 | 65 | 1 | [] |
[
"<s>",
"unsigned",
"GCNHazardRecognizer",
"::",
"PreEmitNoops",
"(",
"MachineInstr",
"*",
"MI",
")",
"{",
"if",
"(",
"SIInstrInfo",
"::",
"isSMRD",
"(",
"*",
"MI",
")",
")",
"return",
"std",
"::",
"max",
"(",
"0",
",",
"checkSMRDHazards",
"(",
"MI",
")",
")",
";",
"if",
"(",
"SIInstrInfo",
"::",
"isVALU",
"(",
"*",
"MI",
")",
")",
"{",
"int",
"WaitStates",
"=",
"std",
"::",
"max",
"(",
"0",
",",
"checkVALUHazards",
"(",
"MI",
")",
")",
";",
"if",
"(",
"SIInstrInfo",
"::",
"isVMEM",
"(",
"*",
"MI",
")",
")",
"WaitStates",
"=",
"std",
"::",
"max",
"(",
"WaitStates",
",",
"checkVMEMHazards",
"(",
"MI",
")",
")",
";",
"if",
"(",
"SIInstrInfo",
"::",
"isDPP",
"(",
"*",
"MI",
")",
")",
"WaitStates",
"=",
"std",
"::",
"max",
"(",
"WaitStates",
",",
"checkDPPHazards",
"(",
"MI",
")",
")",
";",
"if",
"(",
"isDivFMas",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
")",
"WaitStates",
"=",
"std",
"::",
"max",
"(",
"WaitStates",
",",
"checkDivFMasHazards",
"(",
"MI",
")",
")",
";",
"if",
"(",
"isRWLane",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
")",
"WaitStates",
"=",
"std",
"::",
"max",
"(",
"WaitStates",
",",
"checkRWLaneHazards",
"(",
"MI",
")",
")",
";",
"return",
"WaitStates",
";",
"}",
"if",
"(",
"isSGetReg",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
")",
"return",
"std",
"::",
"max",
"(",
"0",
",",
"checkGetRegHazards",
"(",
"MI",
")",
")",
";",
"if",
"(",
"isSSetReg",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
")",
"return",
"std",
"::",
"max",
"(",
"0",
",",
"checkSetRegHazards",
"(",
"MI",
")",
")",
";",
"if",
"(",
"isRFE",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
")",
"return",
"std",
"::",
"max",
"(",
"0",
",",
"checkRFEHazards",
"(",
"MI",
")",
")",
";",
"return",
"0",
";",
"}",
"</s>"
] | [
"PreEmitNoops",
"-",
"This",
"callback",
"is",
"invoked",
"prior",
"to",
"emitting",
"an",
"instruction",
"."
] | [
"AMDGPU",
"SI",
"0",
"SI",
"0",
"SI",
"SI",
"0",
"0",
"0",
"0"
] | GCNHazardRecognizer33 | PreEmitNoops | AMDGPU | GPU | LLVM | 21,244 | 237 | 1 | [] |
[
"<s>",
"static",
"enum",
"unwind_info_type",
"bpf_debug_unwind_info",
"(",
")",
"{",
"return",
"UI_NONE",
";",
"}",
"</s>"
] | [
"Define",
"the",
"mechanism",
"that",
"will",
"be",
"used",
"for",
"describing",
"frame",
"unwind",
"information",
"to",
"the",
"debugger",
".",
"In",
"eBPF",
"it",
"is",
"not",
"possible",
"to",
"unwind",
"frames",
"."
] | [
"bpf"
] | bpf | bpf_debug_unwind_info | bpf | Virtual ISA | GCC | 21,245 | 11 | 1 | [] |
[
"<s>",
"static",
"unsigned",
"aarch64_add_stmt_cost",
"(",
"void",
"*",
"data",
",",
"int",
"count",
",",
"enum",
"vect_cost_for_stmt",
"kind",
",",
"struct",
"_stmt_vec_info",
"*",
"stmt_info",
",",
"int",
"misalign",
",",
"enum",
"vect_cost_model_location",
"where",
")",
"{",
"unsigned",
"*",
"cost",
"=",
"(",
"unsigned",
"*",
")",
"data",
";",
"unsigned",
"retval",
"=",
"0",
";",
"if",
"(",
"flag_vect_cost_model",
")",
"{",
"tree",
"vectype",
"=",
"stmt_info",
"?",
"stmt_vectype",
"(",
"stmt_info",
")",
":",
"NULL_TREE",
";",
"int",
"stmt_cost",
"=",
"aarch64_builtin_vectorization_cost",
"(",
"kind",
",",
"vectype",
",",
"misalign",
")",
";",
"if",
"(",
"stmt_info",
"&&",
"vectype",
"&&",
"aarch64_sve_mode_p",
"(",
"TYPE_MODE",
"(",
"vectype",
")",
")",
")",
"stmt_cost",
"=",
"aarch64_sve_adjust_stmt_cost",
"(",
"kind",
",",
"stmt_info",
",",
"vectype",
",",
"stmt_cost",
")",
";",
"if",
"(",
"where",
"==",
"vect_body",
"&&",
"stmt_info",
"&&",
"stmt_in_inner_loop_p",
"(",
"stmt_info",
")",
")",
"count",
"*=",
"50",
";",
"retval",
"=",
"(",
"unsigned",
")",
"(",
"count",
"*",
"stmt_cost",
")",
";",
"cost",
"[",
"where",
"]",
"+=",
"retval",
";",
"}",
"return",
"retval",
";",
"}",
"</s>"
] | [
"Implement",
"targetm.vectorize.add_stmt_cost",
"."
] | [
"aarch64",
"0",
"50"
] | aarch64 | aarch64_add_stmt_cost | aarch64 | CPU | GCC | 21,246 | 139 | 1 | [] |
[
"<s>",
"bool",
"M680x0InstrInfo",
"::",
"expandPostRAPseudo",
"(",
"MachineInstr",
"&",
"MI",
")",
"const",
"{",
"MachineInstrBuilder",
"MIB",
"(",
"*",
"MI",
".",
"getParent",
"(",
")",
"->",
"getParent",
"(",
")",
",",
"MI",
")",
";",
"switch",
"(",
"MI",
".",
"getOpcode",
"(",
")",
")",
"{",
"case",
"M680x0",
"::",
"PUSH8d",
":",
"return",
"ExpandPUSH_POP",
"(",
"MIB",
",",
"get",
"(",
"M680x0",
"::",
"MOV8ed",
")",
",",
"true",
")",
";",
"case",
"M680x0",
"::",
"PUSH16d",
":",
"return",
"ExpandPUSH_POP",
"(",
"MIB",
",",
"get",
"(",
"M680x0",
"::",
"MOV16er",
")",
",",
"true",
")",
";",
"case",
"M680x0",
"::",
"PUSH32r",
":",
"return",
"ExpandPUSH_POP",
"(",
"MIB",
",",
"get",
"(",
"M680x0",
"::",
"MOV32er",
")",
",",
"true",
")",
";",
"case",
"M680x0",
"::",
"POP8d",
":",
"return",
"ExpandPUSH_POP",
"(",
"MIB",
",",
"get",
"(",
"M680x0",
"::",
"MOV8do",
")",
",",
"false",
")",
";",
"case",
"M680x0",
"::",
"POP16d",
":",
"return",
"ExpandPUSH_POP",
"(",
"MIB",
",",
"get",
"(",
"M680x0",
"::",
"MOV16ro",
")",
",",
"false",
")",
";",
"case",
"M680x0",
"::",
"POP32r",
":",
"return",
"ExpandPUSH_POP",
"(",
"MIB",
",",
"get",
"(",
"M680x0",
"::",
"MOV32ro",
")",
",",
"false",
")",
";",
"case",
"M680x0",
"::",
"SETCS_C8d",
":",
"return",
"Expand2AddrUndef",
"(",
"MIB",
",",
"get",
"(",
"M680x0",
"::",
"SUBX8dd",
")",
")",
";",
"case",
"M680x0",
"::",
"SETCS_C16d",
":",
"return",
"Expand2AddrUndef",
"(",
"MIB",
",",
"get",
"(",
"M680x0",
"::",
"SUBX16dd",
")",
")",
";",
"case",
"M680x0",
"::",
"SETCS_C32d",
":",
"return",
"Expand2AddrUndef",
"(",
"MIB",
",",
"get",
"(",
"M680x0",
"::",
"SUBX32dd",
")",
")",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"This",
"function",
"is",
"called",
"for",
"all",
"pseudo",
"instructions",
"that",
"remain",
"after",
"register",
"allocation",
"."
] | [
"M680x0",
"M680x0",
"M680x0::PUSH8d",
"M680x0::MOV8ed",
"M680x0::PUSH16d",
"M680x0::MOV16er",
"M680x0::PUSH32r",
"M680x0::MOV32er",
"M680x0::POP8d",
"M680x0::MOV8do",
"M680x0::POP16d",
"M680x0::MOV16ro",
"M680x0::POP32r",
"M680x0::MOV32ro",
"M680x0::SETCS_C8d",
"M680x0::SUBX8dd",
"M680x0::SETCS_C16d",
"M680x0::SUBX16dd",
"M680x0::SETCS_C32d",
"M680x0::SUBX32dd"
] | M680x0InstrInfo | expandPostRAPseudo | M680x0 | MPU | LLVM | 21,247 | 216 | 1 | [] |
[
"<s>",
"bool",
"R600InstrInfo",
"::",
"isProfitableToIfCvt",
"(",
"MachineBasicBlock",
"&",
"TMBB",
",",
"unsigned",
"NumTCycles",
",",
"unsigned",
"ExtraTCycles",
",",
"MachineBasicBlock",
"&",
"FMBB",
",",
"unsigned",
"NumFCycles",
",",
"unsigned",
"ExtraFCycles",
",",
"BranchProbability",
"Probability",
")",
"const",
"{",
"return",
"true",
";",
"}",
"</s>"
] | [
"Second",
"variant",
"of",
"isProfitableToIfCvt",
"."
] | [
"AMDGPU",
"R600"
] | R600InstrInfo (2) | isProfitableToIfCvt | AMDGPU | GPU | LLVM | 21,248 | 34 | 1 | [] |
[
"<s>",
"int",
"getIntrinsicInstrCost",
"(",
"Intrinsic",
"::",
"ID",
"ID",
",",
"Type",
"*",
"RetTy",
",",
"ArrayRef",
"<",
"Type",
"*",
">",
"Tys",
",",
"FastMathFlags",
"FMF",
",",
"unsigned",
"ScalarizationCostPassed",
"=",
"UINT_MAX",
")",
"const",
"{",
"assert",
"(",
"false",
"&&",
"\"TPC does not support costs based purely on Types. Use the \"",
"\"variant with Values.\"",
")",
";",
"return",
"-",
"1",
";",
"}",
"</s>"
] | [
"Get",
"intrinsic",
"cost",
"based",
"on",
"arguments",
"."
] | [
"TPC",
"Intrinsic::ID",
"\"TPC does not support costs based purely on Types. Use the \"",
"\"variant with Values.\"",
"1"
] | TPCTargetTransformInfo | getIntrinsicInstrCost | TPC | Virtual ISA | LLVM | 21,249 | 42 | 1 | [] |
[
"<s>",
"void",
"mips_output_aligned_bss",
"(",
"FILE",
"*",
"stream",
",",
"tree",
"decl",
",",
"const",
"char",
"*",
"name",
",",
"unsigned",
"HOST_WIDE_INT",
"size",
",",
"int",
"align",
")",
"{",
"extern",
"tree",
"last_assemble_variable_decl",
";",
"if",
"(",
"mips_in_small_data_p",
"(",
"decl",
")",
")",
"named_section",
"(",
"0",
",",
"\".sbss\"",
",",
"0",
")",
";",
"else",
"bss_section",
"(",
")",
";",
"ASM_OUTPUT_ALIGN",
"(",
"stream",
",",
"floor_log2",
"(",
"align",
"/",
"BITS_PER_UNIT",
")",
")",
";",
"last_assemble_variable_decl",
"=",
"decl",
";",
"ASM_DECLARE_OBJECT_NAME",
"(",
"stream",
",",
"name",
",",
"decl",
")",
";",
"ASM_OUTPUT_SKIP",
"(",
"stream",
",",
"size",
"!=",
"0",
"?",
"size",
":",
"1",
")",
";",
"}",
"</s>"
] | [
"Implement",
"ASM_OUTPUT_ALIGNED_BSS",
".",
"This",
"differs",
"from",
"the",
"default",
"only",
"in",
"the",
"use",
"of",
"sbss",
"."
] | [
"mips",
"0",
"\".sbss\"",
"0",
"0",
"1"
] | mips3 | mips_output_aligned_bss | mips | CPU | GCC | 21,250 | 87 | 1 | [] |
[
"<s>",
"static",
"rtx",
"rs6000_expand_zeroop_builtin",
"(",
"enum",
"insn_code",
"icode",
",",
"rtx",
"target",
")",
"{",
"rtx",
"pat",
";",
"machine_mode",
"tmode",
"=",
"insn_data",
"[",
"icode",
"]",
".",
"operand",
"[",
"0",
"]",
".",
"mode",
";",
"if",
"(",
"icode",
"==",
"CODE_FOR_nothing",
")",
"return",
"0",
";",
"if",
"(",
"target",
"==",
"0",
"||",
"GET_MODE",
"(",
"target",
")",
"!=",
"tmode",
"||",
"!",
"(",
"*",
"insn_data",
"[",
"icode",
"]",
".",
"operand",
"[",
"0",
"]",
".",
"predicate",
")",
"(",
"target",
",",
"tmode",
")",
")",
"target",
"=",
"gen_reg_rtx",
"(",
"tmode",
")",
";",
"pat",
"=",
"GEN_FCN",
"(",
"icode",
")",
"(",
"target",
")",
";",
"if",
"(",
"!",
"pat",
")",
"return",
"0",
";",
"emit_insn",
"(",
"pat",
")",
";",
"return",
"target",
";",
"}",
"</s>"
] | [
"Expand",
"an",
"expression",
"EXP",
"that",
"calls",
"a",
"builtin",
"without",
"arguments",
"."
] | [
"rs6000",
"0",
"0",
"0",
"0",
"0"
] | rs60004 | rs6000_expand_zeroop_builtin | rs6000 | CPU | GCC | 21,251 | 107 | 1 | [] |
[
"<s>",
"void",
"MipsSEInstrInfo",
"::",
"adjustStackPtr",
"(",
"unsigned",
"SP",
",",
"int64_t",
"Amount",
",",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"I",
")",
"const",
"{",
"const",
"MipsSubtarget",
"&",
"STI",
"=",
"TM",
".",
"getSubtarget",
"<",
"MipsSubtarget",
">",
"(",
")",
";",
"DebugLoc",
"DL",
"=",
"I",
"!=",
"MBB",
".",
"end",
"(",
")",
"?",
"I",
"->",
"getDebugLoc",
"(",
")",
":",
"DebugLoc",
"(",
")",
";",
"unsigned",
"ADDu",
"=",
"STI",
".",
"isABI_N64",
"(",
")",
"?",
"Mips",
"::",
"DADDu",
":",
"Mips",
"::",
"ADDu",
";",
"unsigned",
"ADDiu",
"=",
"STI",
".",
"isABI_N64",
"(",
")",
"?",
"Mips",
"::",
"DADDiu",
":",
"Mips",
"::",
"ADDiu",
";",
"if",
"(",
"isInt",
"<",
"16",
">",
"(",
"Amount",
")",
")",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"ADDiu",
")",
",",
"SP",
")",
".",
"addReg",
"(",
"SP",
")",
".",
"addImm",
"(",
"Amount",
")",
";",
"else",
"{",
"unsigned",
"Reg",
"=",
"loadImmediate",
"(",
"Amount",
",",
"MBB",
",",
"I",
",",
"DL",
",",
"0",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"ADDu",
")",
",",
"SP",
")",
".",
"addReg",
"(",
"SP",
")",
".",
"addReg",
"(",
"Reg",
",",
"RegState",
"::",
"Kill",
")",
";",
"}",
"}",
"</s>"
] | [
"Adjust",
"SP",
"by",
"Amount",
"bytes",
"."
] | [
"Mips",
"Mips",
"Mips",
"Mips",
"Mips::DADDu",
"Mips::ADDu",
"Mips::DADDiu",
"Mips::ADDiu",
"16",
"0"
] | MipsSEInstrInfo1 | adjustStackPtr | Mips | CPU | LLVM | 21,252 | 177 | 1 | [] |
[
"<s>",
"SITargetLowering",
"::",
"ConstraintType",
"SITargetLowering",
"::",
"getConstraintType",
"(",
"StringRef",
"Constraint",
")",
"const",
"{",
"if",
"(",
"Constraint",
".",
"size",
"(",
")",
"==",
"1",
")",
"{",
"switch",
"(",
"Constraint",
"[",
"0",
"]",
")",
"{",
"default",
":",
"break",
";",
"case",
"'s'",
":",
"case",
"'v'",
":",
"case",
"'a'",
":",
"return",
"C_RegisterClass",
";",
"case",
"'A'",
":",
"return",
"C_Other",
";",
"}",
"}",
"return",
"TargetLowering",
"::",
"getConstraintType",
"(",
"Constraint",
")",
";",
"}",
"</s>"
] | [
"Given",
"a",
"constraint",
"letter",
",",
"return",
"the",
"type",
"of",
"constraint",
"for",
"this",
"target",
"."
] | [
"AMDGPU",
"SI",
"SI",
"1",
"0"
] | SIISelLowering140 | getConstraintType | AMDGPU | GPU | LLVM | 21,253 | 64 | 1 | [] |
[
"<s>",
"char",
"*",
"emit_cond_move",
"(",
"rtx",
"*",
"operands",
",",
"rtx",
"insn",
"ATTRIBUTE_UNUSED",
")",
"{",
"static",
"char",
"buffer",
"[",
"100",
"]",
";",
"const",
"char",
"*",
"dest",
"=",
"reg_names",
"[",
"REGNO",
"(",
"operands",
"[",
"0",
"]",
")",
"]",
";",
"buffer",
"[",
"0",
"]",
"=",
"0",
";",
"gcc_assert",
"(",
"GET_CODE",
"(",
"operands",
"[",
"0",
"]",
")",
"==",
"REG",
")",
";",
"gcc_assert",
"(",
"conditional_move_operand",
"(",
"operands",
"[",
"2",
"]",
",",
"SImode",
")",
")",
";",
"gcc_assert",
"(",
"conditional_move_operand",
"(",
"operands",
"[",
"3",
"]",
",",
"SImode",
")",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"operands",
"[",
"1",
"]",
")",
"==",
"NE",
")",
"{",
"rtx",
"tmp",
"=",
"operands",
"[",
"2",
"]",
";",
"operands",
"[",
"2",
"]",
"=",
"operands",
"[",
"3",
"]",
";",
"operands",
"[",
"3",
"]",
"=",
"tmp",
";",
"}",
"sprintf",
"(",
"buffer",
",",
"\"mvfc %s, cbr\"",
",",
"dest",
")",
";",
"if",
"(",
"INTVAL",
"(",
"operands",
"[",
"2",
"]",
")",
"==",
"0",
")",
"sprintf",
"(",
"buffer",
"+",
"strlen",
"(",
"buffer",
")",
",",
"\"\\n\\txor3 %s, %s, #1\"",
",",
"dest",
",",
"dest",
")",
";",
"return",
"buffer",
";",
"}",
"</s>"
] | [
"Generate",
"the",
"correct",
"assembler",
"code",
"to",
"handle",
"the",
"conditional",
"loading",
"of",
"a",
"value",
"into",
"a",
"register",
".",
"It",
"is",
"known",
"that",
"the",
"operands",
"satisfy",
"the",
"conditional_move_operand",
"(",
")",
"function",
"above",
".",
"The",
"destination",
"is",
"operand",
"[",
"0",
"]",
".",
"The",
"condition",
"is",
"operand",
"[",
"1",
"]",
".",
"The",
"'true",
"'",
"value",
"is",
"operand",
"[",
"2",
"]",
"and",
"the",
"'false",
"'",
"value",
"is",
"operand",
"[",
"3",
"]",
"."
] | [
"m32r",
"100",
"0",
"0",
"0",
"0",
"2",
"3",
"1",
"2",
"2",
"3",
"3",
"\"mvfc %s, cbr\"",
"2",
"0",
"\"\\n\\txor3 %s, %s, #1\""
] | m32r3 | emit_cond_move | m32r | MPU | GCC | 21,254 | 162 | 1 | [] |
[
"<s>",
"ArrayRef",
"<",
"std",
"::",
"pair",
"<",
"unsigned",
",",
"const",
"char",
"*",
">>",
"X86InstrInfo",
"::",
"getSerializableDirectMachineOperandTargetFlags",
"(",
")",
"const",
"{",
"using",
"namespace",
"X86II",
";",
"static",
"const",
"std",
"::",
"pair",
"<",
"unsigned",
",",
"const",
"char",
"*",
">",
"TargetFlags",
"[",
"]",
"=",
"{",
"{",
"MO_GOT_ABSOLUTE_ADDRESS",
",",
"\"x86-got-absolute-address\"",
"}",
",",
"{",
"MO_PIC_BASE_OFFSET",
",",
"\"x86-pic-base-offset\"",
"}",
",",
"{",
"MO_GOT",
",",
"\"x86-got\"",
"}",
",",
"{",
"MO_GOTOFF",
",",
"\"x86-gotoff\"",
"}",
",",
"{",
"MO_GOTPCREL",
",",
"\"x86-gotpcrel\"",
"}",
",",
"{",
"MO_PLT",
",",
"\"x86-plt\"",
"}",
",",
"{",
"MO_TLSGD",
",",
"\"x86-tlsgd\"",
"}",
",",
"{",
"MO_TLSLD",
",",
"\"x86-tlsld\"",
"}",
",",
"{",
"MO_TLSLDM",
",",
"\"x86-tlsldm\"",
"}",
",",
"{",
"MO_GOTTPOFF",
",",
"\"x86-gottpoff\"",
"}",
",",
"{",
"MO_INDNTPOFF",
",",
"\"x86-indntpoff\"",
"}",
",",
"{",
"MO_TPOFF",
",",
"\"x86-tpoff\"",
"}",
",",
"{",
"MO_DTPOFF",
",",
"\"x86-dtpoff\"",
"}",
",",
"{",
"MO_NTPOFF",
",",
"\"x86-ntpoff\"",
"}",
",",
"{",
"MO_GOTNTPOFF",
",",
"\"x86-gotntpoff\"",
"}",
",",
"{",
"MO_DLLIMPORT",
",",
"\"x86-dllimport\"",
"}",
",",
"{",
"MO_DARWIN_NONLAZY",
",",
"\"x86-darwin-nonlazy\"",
"}",
",",
"{",
"MO_DARWIN_NONLAZY_PIC_BASE",
",",
"\"x86-darwin-nonlazy-pic-base\"",
"}",
",",
"{",
"MO_TLVP",
",",
"\"x86-tlvp\"",
"}",
",",
"{",
"MO_TLVP_PIC_BASE",
",",
"\"x86-tlvp-pic-base\"",
"}",
",",
"{",
"MO_SECREL",
",",
"\"x86-secrel\"",
"}",
",",
"{",
"MO_COFFSTUB",
",",
"\"x86-coffstub\"",
"}",
"}",
";",
"return",
"makeArrayRef",
"(",
"TargetFlags",
")",
";",
"}",
"</s>"
] | [
"Return",
"an",
"array",
"that",
"contains",
"the",
"direct",
"target",
"flag",
"values",
"and",
"their",
"names",
"."
] | [
"X86",
"X86",
"X86",
"\"x86-got-absolute-address\"",
"\"x86-pic-base-offset\"",
"\"x86-got\"",
"\"x86-gotoff\"",
"\"x86-gotpcrel\"",
"\"x86-plt\"",
"\"x86-tlsgd\"",
"\"x86-tlsld\"",
"\"x86-tlsldm\"",
"\"x86-gottpoff\"",
"\"x86-indntpoff\"",
"\"x86-tpoff\"",
"\"x86-dtpoff\"",
"\"x86-ntpoff\"",
"\"x86-gotntpoff\"",
"\"x86-dllimport\"",
"\"x86-darwin-nonlazy\"",
"\"x86-darwin-nonlazy-pic-base\"",
"\"x86-tlvp\"",
"\"x86-tlvp-pic-base\"",
"\"x86-secrel\"",
"\"x86-coffstub\""
] | X86InstrInfo (2)3 | getSerializableDirectMachineOperandTargetFlags | X86 | CPU | LLVM | 21,255 | 180 | 1 | [] |
[
"<s>",
"static",
"void",
"arm_trampoline_init",
"(",
"rtx",
"m_tramp",
",",
"tree",
"fndecl",
",",
"rtx",
"chain_value",
")",
"{",
"rtx",
"fnaddr",
",",
"mem",
",",
"a_tramp",
";",
"emit_block_move",
"(",
"m_tramp",
",",
"assemble_trampoline_template",
"(",
")",
",",
"GEN_INT",
"(",
"TRAMPOLINE_SIZE",
")",
",",
"BLOCK_OP_NORMAL",
")",
";",
"mem",
"=",
"adjust_address",
"(",
"m_tramp",
",",
"SImode",
",",
"TARGET_32BIT",
"?",
"8",
":",
"12",
")",
";",
"emit_move_insn",
"(",
"mem",
",",
"chain_value",
")",
";",
"mem",
"=",
"adjust_address",
"(",
"m_tramp",
",",
"SImode",
",",
"TARGET_32BIT",
"?",
"12",
":",
"16",
")",
";",
"fnaddr",
"=",
"XEXP",
"(",
"DECL_RTL",
"(",
"fndecl",
")",
",",
"0",
")",
";",
"emit_move_insn",
"(",
"mem",
",",
"fnaddr",
")",
";",
"a_tramp",
"=",
"XEXP",
"(",
"m_tramp",
",",
"0",
")",
";",
"emit_library_call",
"(",
"gen_rtx_SYMBOL_REF",
"(",
"Pmode",
",",
"\"__clear_cache\"",
")",
",",
"LCT_NORMAL",
",",
"VOIDmode",
",",
"2",
",",
"a_tramp",
",",
"Pmode",
",",
"plus_constant",
"(",
"Pmode",
",",
"a_tramp",
",",
"TRAMPOLINE_SIZE",
")",
",",
"Pmode",
")",
";",
"}",
"</s>"
] | [
"Emit",
"RTL",
"insns",
"to",
"initialize",
"the",
"variable",
"parts",
"of",
"a",
"trampoline",
"."
] | [
"arm",
"8",
"12",
"12",
"16",
"0",
"0",
"\"__clear_cache\"",
"2"
] | arm4 | arm_trampoline_init | arm | CPU | GCC | 21,256 | 134 | 1 | [] |
[
"<s>",
"bool",
"SIPeepholeSDWA",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"const",
"SISubtarget",
"&",
"ST",
"=",
"MF",
".",
"getSubtarget",
"<",
"SISubtarget",
">",
"(",
")",
";",
"if",
"(",
"!",
"ST",
".",
"hasSDWA",
"(",
")",
"||",
"skipFunction",
"(",
"MF",
".",
"getFunction",
"(",
")",
")",
")",
"return",
"false",
";",
"MRI",
"=",
"&",
"MF",
".",
"getRegInfo",
"(",
")",
";",
"TRI",
"=",
"ST",
".",
"getRegisterInfo",
"(",
")",
";",
"TII",
"=",
"ST",
".",
"getInstrInfo",
"(",
")",
";",
"bool",
"Ret",
"=",
"false",
";",
"for",
"(",
"MachineBasicBlock",
"&",
"MBB",
":",
"MF",
")",
"{",
"bool",
"Changed",
"=",
"false",
";",
"do",
"{",
"matchSDWAOperands",
"(",
"MBB",
")",
";",
"for",
"(",
"const",
"auto",
"&",
"OperandPair",
":",
"SDWAOperands",
")",
"{",
"const",
"auto",
"&",
"Operand",
"=",
"OperandPair",
".",
"second",
";",
"MachineInstr",
"*",
"PotentialMI",
"=",
"Operand",
"->",
"potentialToConvert",
"(",
"TII",
")",
";",
"if",
"(",
"PotentialMI",
"&&",
"isConvertibleToSDWA",
"(",
"*",
"PotentialMI",
",",
"ST",
")",
")",
"{",
"PotentialMatches",
"[",
"PotentialMI",
"]",
".",
"push_back",
"(",
"Operand",
".",
"get",
"(",
")",
")",
";",
"}",
"}",
"for",
"(",
"auto",
"&",
"PotentialPair",
":",
"PotentialMatches",
")",
"{",
"MachineInstr",
"&",
"PotentialMI",
"=",
"*",
"PotentialPair",
".",
"first",
";",
"convertToSDWA",
"(",
"PotentialMI",
",",
"PotentialPair",
".",
"second",
")",
";",
"}",
"PotentialMatches",
".",
"clear",
"(",
")",
";",
"SDWAOperands",
".",
"clear",
"(",
")",
";",
"Changed",
"=",
"!",
"ConvertedInstructions",
".",
"empty",
"(",
")",
";",
"if",
"(",
"Changed",
")",
"Ret",
"=",
"true",
";",
"while",
"(",
"!",
"ConvertedInstructions",
".",
"empty",
"(",
")",
")",
"legalizeScalarOperands",
"(",
"*",
"ConvertedInstructions",
".",
"pop_back_val",
"(",
")",
",",
"ST",
")",
";",
"}",
"while",
"(",
"Changed",
")",
";",
"}",
"return",
"Ret",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"AMDGPU",
"SI",
"SI",
"SI"
] | SIPeepholeSDWA19 | runOnMachineFunction | AMDGPU | GPU | LLVM | 21,257 | 244 | 1 | [] |
[
"<s>",
"bool",
"HexagonInstrInfo",
"::",
"isPredicated",
"(",
"const",
"MachineInstr",
"*",
"MI",
")",
"const",
"{",
"const",
"uint64_t",
"F",
"=",
"MI",
"->",
"getDesc",
"(",
")",
".",
"TSFlags",
";",
"return",
"(",
"F",
">>",
"HexagonII",
"::",
"PredicatedPos",
")",
"&",
"HexagonII",
"::",
"PredicatedMask",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"the",
"instruction",
"is",
"already",
"predicated",
"."
] | [
"Hexagon",
"Hexagon",
"HexagonII::PredicatedPos",
"HexagonII::PredicatedMask"
] | HexagonInstrInfo56 | isPredicated | Hexagon | DSP | LLVM | 21,258 | 38 | 1 | [] |
[
"<s>",
"SMLoc",
"getLoc",
"(",
")",
"{",
"return",
"getParser",
"(",
")",
".",
"getTok",
"(",
")",
".",
"getLoc",
"(",
")",
";",
"}",
"</s>"
] | [
"Get",
"the",
"source",
"location",
"of",
"the",
"point",
"where",
"the",
"field",
"was",
"defined",
"."
] | [
"AGC"
] | AGCAsmParser | getLoc | AGC | MPU | LLVM | 21,259 | 19 | 1 | [] |
[
"<s>",
"void",
"TPCMachineScheduler",
"::",
"schedule",
"(",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"********** TPC MI Scheduling BB#\"",
"<<",
"BB",
"->",
"getNumber",
"(",
")",
"<<",
"\" \"",
"<<",
"BB",
"->",
"getName",
"(",
")",
"<<",
"\" in_func \"",
"<<",
"BB",
"->",
"getParent",
"(",
")",
"->",
"getFunction",
"(",
")",
".",
"getName",
"(",
")",
"<<",
"\" at loop depth \"",
"<<",
"MLI",
"->",
"getLoopDepth",
"(",
"BB",
")",
"<<",
"\" \\n\"",
")",
";",
"LLVM_DEBUG",
"(",
"SchedImpl",
"->",
"dumpPolicy",
"(",
")",
")",
";",
"buildDAGWithRegPressure",
"(",
")",
";",
"postprocessDAG",
"(",
")",
";",
"SmallVector",
"<",
"SUnit",
"*",
",",
"8",
">",
"TopRoots",
",",
"BotRoots",
";",
"findRootsAndBiasEdges",
"(",
"TopRoots",
",",
"BotRoots",
")",
";",
"SchedImpl",
"->",
"initialize",
"(",
"this",
")",
";",
"LLVM_DEBUG",
"(",
"unsigned",
"maxH",
"=",
"0",
";",
"for",
"(",
"unsigned",
"su",
"=",
"0",
",",
"e",
"=",
"SUnits",
".",
"size",
"(",
")",
";",
"su",
"!=",
"e",
";",
"++",
"su",
")",
"if",
"(",
"SUnits",
"[",
"su",
"]",
".",
"getHeight",
"(",
")",
">",
"maxH",
")",
"maxH",
"=",
"SUnits",
"[",
"su",
"]",
".",
"getHeight",
"(",
")",
";",
"dbgs",
"(",
")",
"<<",
"\"Max Height \"",
"<<",
"maxH",
"<<",
"\"\\n\"",
";",
")",
";",
"LLVM_DEBUG",
"(",
"unsigned",
"maxD",
"=",
"0",
";",
"for",
"(",
"unsigned",
"su",
"=",
"0",
",",
"e",
"=",
"SUnits",
".",
"size",
"(",
")",
";",
"su",
"!=",
"e",
";",
"++",
"su",
")",
"if",
"(",
"SUnits",
"[",
"su",
"]",
".",
"getDepth",
"(",
")",
">",
"maxD",
")",
"maxD",
"=",
"SUnits",
"[",
"su",
"]",
".",
"getDepth",
"(",
")",
";",
"dbgs",
"(",
")",
"<<",
"\"Max Depth \"",
"<<",
"maxD",
"<<",
"\"\\n\"",
";",
")",
";",
"LLVM_DEBUG",
"(",
"for",
"(",
"unsigned",
"su",
"=",
"0",
",",
"e",
"=",
"SUnits",
".",
"size",
"(",
")",
";",
"su",
"!=",
"e",
";",
"++",
"su",
")",
"dumpNode",
"(",
"SUnits",
"[",
"su",
"]",
")",
";",
")",
";",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"--- Scheduled DAG ---\\n\"",
";",
"dump",
"(",
")",
";",
"dbgs",
"(",
")",
"<<",
"\"--- End of scheduled DAG ---\\n\"",
";",
")",
";",
"if",
"(",
"TPCViewMISchedDAGs",
")",
"viewGraph",
"(",
")",
";",
"initQueues",
"(",
"TopRoots",
",",
"BotRoots",
")",
";",
"bool",
"IsTopNode",
"=",
"false",
";",
"while",
"(",
"true",
")",
"{",
"SUnit",
"*",
"SU",
"=",
"SchedImpl",
"->",
"pickNode",
"(",
"IsTopNode",
")",
";",
"if",
"(",
"!",
"SU",
")",
"break",
";",
"if",
"(",
"!",
"checkSchedLimit",
"(",
")",
")",
"break",
";",
"scheduleMI",
"(",
"SU",
",",
"IsTopNode",
")",
";",
"SchedImpl",
"->",
"schedNode",
"(",
"SU",
",",
"IsTopNode",
")",
";",
"updateQueues",
"(",
"SU",
",",
"IsTopNode",
")",
";",
"}",
"placeDebugValues",
"(",
")",
";",
"LLVM_DEBUG",
"(",
"{",
"unsigned",
"BBNum",
"=",
"begin",
"(",
")",
"->",
"getParent",
"(",
")",
"->",
"getNumber",
"(",
")",
";",
"dbgs",
"(",
")",
"<<",
"\"*** Final schedule for BB#\"",
"<<",
"BBNum",
"<<",
"\" ***\\n\"",
";",
"dumpSchedule",
"(",
")",
";",
"dbgs",
"(",
")",
"<<",
"'\\n'",
"<<",
"\"**********\\n\"",
";",
"}",
")",
";",
"}",
"</s>"
] | [
"Schedule",
"-",
"This",
"is",
"called",
"back",
"from",
"ScheduleDAGInstrs",
":",
":Run",
"(",
")",
"when",
"it",
"'s",
"time",
"to",
"do",
"some",
"work",
"."
] | [
"TPC",
"TPC",
"\"********** TPC MI Scheduling BB#\"",
"\" \"",
"\" in_func \"",
"\" at loop depth \"",
"\" \\n\"",
"8",
"0",
"0",
"\"Max Height \"",
"\"\\n\"",
"0",
"0",
"\"Max Depth \"",
"\"\\n\"",
"0",
"\"--- Scheduled DAG ---\\n\"",
"\"--- End of scheduled DAG ---\\n\"",
"TPC",
"\"*** Final schedule for BB#\"",
"\" ***\\n\"",
"\"**********\\n\""
] | TPCMachineScheduler | schedule | TPC | Virtual ISA | LLVM | 21,260 | 407 | 1 | [] |
[
"<s>",
"int",
"io",
"(",
"int",
"from",
",",
"int",
"to",
")",
"{",
"int",
"regs_saved",
";",
"calc_live_regs",
"(",
"&",
"regs_saved",
")",
";",
"int",
"total_saved_regs_space",
"=",
"(",
"regs_saved",
")",
"*",
"2",
";",
"int",
"total_auto_space",
"=",
"get_frame_size",
"(",
")",
";",
"int",
"pcsize",
"=",
"TARGET_BIG",
"?",
"4",
":",
"2",
";",
"if",
"(",
"from",
"==",
"ARG_POINTER_REGNUM",
"&&",
"to",
"==",
"FRAME_POINTER_REGNUM",
")",
"{",
"return",
"total_saved_regs_space",
"+",
"pcsize",
";",
"}",
"if",
"(",
"from",
"==",
"ARG_POINTER_REGNUM",
"&&",
"to",
"==",
"STACK_POINTER_REGNUM",
")",
"{",
"return",
"total_saved_regs_space",
"+",
"total_auto_space",
"+",
"pcsize",
";",
"}",
"if",
"(",
"from",
"==",
"FRAME_POINTER_REGNUM",
"&&",
"to",
"==",
"STACK_POINTER_REGNUM",
")",
"{",
"return",
"total_auto_space",
";",
"}",
"if",
"(",
"from",
"==",
"RETURN_ADDRESS_POINTER_REGNUM",
"&&",
"to",
"==",
"FRAME_POINTER_REGNUM",
")",
"{",
"return",
"total_saved_regs_space",
";",
"}",
"if",
"(",
"from",
"==",
"RETURN_ADDRESS_POINTER_REGNUM",
"&&",
"to",
"==",
"STACK_POINTER_REGNUM",
")",
"{",
"return",
"total_saved_regs_space",
"+",
"total_auto_space",
";",
"}",
"gcc_unreachable",
"(",
")",
";",
"}",
"</s>"
] | [
"INITIAL_ELIMINATION_OFFSET",
"specifies",
"the",
"initial",
"difference",
"between",
"the",
"specified",
"pair",
"of",
"registers",
",",
"and",
"must",
"be",
"defined",
"if",
"ELIMINABLE_REGS",
"is",
"defined",
"."
] | [
"z8k",
"2",
"4",
"2"
] | z8k | io | z8k | MPU | GCC | 21,261 | 132 | 1 | [] |
[
"<s>",
"const",
"Constant",
"*",
"X86TargetLowering",
"::",
"getTargetConstantFromLoad",
"(",
"LoadSDNode",
"*",
"LD",
")",
"const",
"{",
"assert",
"(",
"LD",
"&&",
"\"Unexpected null LoadSDNode\"",
")",
";",
"return",
"getTargetConstantFromNode",
"(",
"LD",
")",
";",
"}",
"</s>"
] | [
"This",
"method",
"returns",
"the",
"constant",
"pool",
"value",
"that",
"will",
"be",
"loaded",
"by",
"LD",
"."
] | [
"X86",
"X86",
"\"Unexpected null LoadSDNode\""
] | X86ISelLowering (2)5 | getTargetConstantFromLoad | X86 | CPU | LLVM | 21,262 | 27 | 1 | [] |
[
"<s>",
"unsigned",
"MipsInstrInfo",
"::",
"insertBranch",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"*",
"TBB",
",",
"MachineBasicBlock",
"*",
"FBB",
",",
"ArrayRef",
"<",
"MachineOperand",
">",
"Cond",
",",
"const",
"DebugLoc",
"&",
"DL",
",",
"int",
"*",
"BytesAdded",
")",
"const",
"{",
"assert",
"(",
"TBB",
"&&",
"\"insertBranch must not be told to insert a fallthrough\"",
")",
";",
"assert",
"(",
"!",
"BytesAdded",
"&&",
"\"code size not handled\"",
")",
";",
"assert",
"(",
"(",
"Cond",
".",
"size",
"(",
")",
"<=",
"3",
")",
"&&",
"\"# of Mips branch conditions must be <= 3!\"",
")",
";",
"if",
"(",
"FBB",
")",
"{",
"BuildCondBr",
"(",
"MBB",
",",
"TBB",
",",
"DL",
",",
"Cond",
")",
";",
"BuildMI",
"(",
"&",
"MBB",
",",
"DL",
",",
"get",
"(",
"UncondBrOpc",
")",
")",
".",
"addMBB",
"(",
"FBB",
")",
";",
"return",
"2",
";",
"}",
"if",
"(",
"Cond",
".",
"empty",
"(",
")",
")",
"BuildMI",
"(",
"&",
"MBB",
",",
"DL",
",",
"get",
"(",
"UncondBrOpc",
")",
")",
".",
"addMBB",
"(",
"TBB",
")",
";",
"else",
"BuildCondBr",
"(",
"MBB",
",",
"TBB",
",",
"DL",
",",
"Cond",
")",
";",
"return",
"1",
";",
"}",
"</s>"
] | [
"Insert",
"branch",
"code",
"into",
"the",
"end",
"of",
"the",
"specified",
"MachineBasicBlock",
"."
] | [
"Mips",
"Mips",
"\"insertBranch must not be told to insert a fallthrough\"",
"\"code size not handled\"",
"3",
"\"# of Mips branch conditions must be <= 3!\"",
"2",
"1"
] | MipsInstrInfo (2)3 | insertBranch | Mips | CPU | LLVM | 21,263 | 144 | 1 | [] |
[
"<s>",
"unsigned",
"getNumberOfRegisters",
"(",
"unsigned",
"ClassID",
")",
"const",
"{",
"bool",
"VectorRegs",
"=",
"(",
"ClassID",
"==",
"1",
")",
";",
"if",
"(",
"VectorRegs",
")",
"{",
"return",
"0",
";",
"}",
"return",
"64",
";",
"}",
"</s>"
] | [
"�",
"?",
"Vector",
"TTI",
"begin",
"�",
"?"
] | [
"VE",
"1",
"0",
"64"
] | VETargetTransformInfo | getNumberOfRegisters | VE | CPU | LLVM | 21,264 | 30 | 1 | [] |
[
"<s>",
"virtual",
"const",
"char",
"*",
"getPassName",
"(",
")",
"const",
"{",
"return",
"\"ARM constant island placement and branch shortening pass\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"ARM",
"\"ARM constant island placement and branch shortening pass\""
] | ARMConstantIslandPass10 | getPassName | ARM | CPU | LLVM | 21,265 | 13 | 1 | [] |
[
"<s>",
"static",
"void",
"pop",
"(",
"int",
"regno",
")",
"{",
"rtx",
"x",
";",
"x",
"=",
"emit_insn",
"(",
"gen_movsi_pop",
"(",
"gen_rtx_REG",
"(",
"Pmode",
",",
"regno",
")",
",",
"stack_pointer_rtx",
")",
")",
";",
"add_reg_note",
"(",
"x",
",",
"REG_INC",
",",
"stack_pointer_rtx",
")",
";",
"}",
"</s>"
] | [
"Output",
"RTL",
"to",
"pop",
"register",
"RN",
"from",
"the",
"stack",
"."
] | [
"m32r"
] | m32r | pop | m32r | MPU | GCC | 21,266 | 38 | 1 | [] |
[
"<s>",
"MCFragment",
"*",
"findAssociatedFragment",
"(",
")",
"const",
"override",
"{",
"return",
"getSubExpr",
"(",
")",
"->",
"findAssociatedFragment",
"(",
")",
";",
"}",
"</s>"
] | [
"Find",
"the",
"``",
"associated",
"section",
"''",
"for",
"this",
"expression",
",",
"which",
"is",
"currently",
"defined",
"as",
"the",
"absolute",
"section",
"for",
"constants",
",",
"or",
"otherwise",
"the",
"section",
"associated",
"with",
"the",
"first",
"defined",
"symbol",
"in",
"the",
"expression",
"."
] | [
"Lanai"
] | LanaiMCExpr | findAssociatedFragment | Lanai | CPU | LLVM | 21,267 | 18 | 1 | [] |
[
"<s>",
"unsigned",
"PPCDispatchGroupSBHazardRecognizer",
"::",
"PreEmitNoops",
"(",
"SUnit",
"*",
"SU",
")",
"{",
"if",
"(",
"isLoadAfterStore",
"(",
"SU",
")",
"&&",
"CurSlots",
"<",
"6",
")",
"{",
"unsigned",
"Directive",
"=",
"DAG",
"->",
"MF",
".",
"getSubtarget",
"<",
"PPCSubtarget",
">",
"(",
")",
".",
"getDarwinDirective",
"(",
")",
";",
"if",
"(",
"Directive",
"==",
"PPC",
"::",
"DIR_PWR6",
"||",
"Directive",
"==",
"PPC",
"::",
"DIR_PWR7",
"||",
"Directive",
"==",
"PPC",
"::",
"DIR_PWR8",
"||",
"Directive",
"==",
"PPC",
"::",
"DIR_PWR9",
")",
"return",
"1",
";",
"return",
"5",
"-",
"CurSlots",
";",
"}",
"return",
"ScoreboardHazardRecognizer",
"::",
"PreEmitNoops",
"(",
"SU",
")",
";",
"}",
"</s>"
] | [
"PreEmitNoops",
"-",
"This",
"callback",
"is",
"invoked",
"prior",
"to",
"emitting",
"an",
"instruction",
"."
] | [
"PowerPC",
"PPC",
"6",
"PPC",
"PPC::DIR_PWR6",
"PPC::DIR_PWR7",
"PPC::DIR_PWR8",
"PPC::DIR_PWR9",
"1",
"5"
] | PPCHazardRecognizers | PreEmitNoops | PowerPC | CPU | LLVM | 21,268 | 84 | 1 | [] |
[
"<s>",
"static",
"void",
"frv_reorder_packet",
"(",
"void",
")",
"{",
"unsigned",
"int",
"cursor",
"[",
"NUM_GROUPS",
"]",
";",
"rtx_insn",
"*",
"insns",
"[",
"ARRAY_SIZE",
"(",
"frv_unit_groups",
")",
"]",
";",
"unsigned",
"int",
"unit",
",",
"to",
",",
"from",
";",
"enum",
"frv_insn_group",
"group",
";",
"struct",
"frv_packet_group",
"*",
"packet_group",
";",
"for",
"(",
"group",
"=",
"GROUP_I",
";",
"group",
"<",
"NUM_GROUPS",
";",
"group",
"=",
"(",
"enum",
"frv_insn_group",
")",
"(",
"group",
"+",
"1",
")",
")",
"{",
"cursor",
"[",
"group",
"]",
"=",
"0",
";",
"frv_sort_insn_group",
"(",
"group",
")",
";",
"}",
"to",
"=",
"0",
";",
"for",
"(",
"unit",
"=",
"0",
";",
"unit",
"<",
"ARRAY_SIZE",
"(",
"frv_unit_groups",
")",
";",
"unit",
"++",
")",
"{",
"group",
"=",
"frv_unit_groups",
"[",
"unit",
"]",
";",
"packet_group",
"=",
"&",
"frv_packet",
".",
"groups",
"[",
"group",
"]",
";",
"if",
"(",
"cursor",
"[",
"group",
"]",
"<",
"packet_group",
"->",
"num_insns",
")",
"{",
"gcc_assert",
"(",
"packet_group",
"->",
"sorted",
"[",
"cursor",
"[",
"group",
"]",
"]",
"!=",
"packet_group",
"->",
"nop",
")",
";",
"insns",
"[",
"to",
"++",
"]",
"=",
"packet_group",
"->",
"sorted",
"[",
"cursor",
"[",
"group",
"]",
"++",
"]",
";",
"}",
"}",
"gcc_assert",
"(",
"to",
"==",
"frv_packet",
".",
"num_insns",
")",
";",
"CLEAR_PACKING_FLAG",
"(",
"insns",
"[",
"to",
"-",
"1",
"]",
")",
";",
"for",
"(",
"from",
"=",
"0",
";",
"from",
"<",
"to",
"-",
"1",
";",
"from",
"++",
")",
"{",
"remove_insn",
"(",
"insns",
"[",
"from",
"]",
")",
";",
"add_insn_before",
"(",
"insns",
"[",
"from",
"]",
",",
"insns",
"[",
"to",
"-",
"1",
"]",
",",
"NULL",
")",
";",
"SET_PACKING_FLAG",
"(",
"insns",
"[",
"from",
"]",
")",
";",
"}",
"}",
"</s>"
] | [
"Sort",
"the",
"current",
"packet",
"into",
"assembly-language",
"order",
".",
"Set",
"packing",
"flags",
"as",
"appropriate",
"."
] | [
"frv",
"1",
"0",
"0",
"0",
"1",
"0",
"1",
"1"
] | frv | frv_reorder_packet | frv | VLIW | GCC | 21,269 | 233 | 1 | [] |
[
"<s>",
"bool",
"LC3RegisterInfo",
"::",
"trackLivenessAfterRegAlloc",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"return",
"true",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"the",
"live-ins",
"should",
"be",
"tracked",
"after",
"register",
"allocation",
"."
] | [
"LC3",
"LC3"
] | LC3RegisterInfo | trackLivenessAfterRegAlloc | LC3 | CPU | LLVM | 21,270 | 16 | 1 | [] |
[
"<s>",
"bool",
"PPCAsmParser",
"::",
"ParseInstruction",
"(",
"ParseInstructionInfo",
"&",
"Info",
",",
"StringRef",
"Name",
",",
"SMLoc",
"NameLoc",
",",
"OperandVector",
"&",
"Operands",
")",
"{",
"std",
"::",
"string",
"NewOpcode",
";",
"if",
"(",
"parseOptionalToken",
"(",
"AsmToken",
"::",
"Plus",
")",
")",
"{",
"NewOpcode",
"=",
"Name",
";",
"NewOpcode",
"+=",
"'+'",
";",
"Name",
"=",
"NewOpcode",
";",
"}",
"if",
"(",
"parseOptionalToken",
"(",
"AsmToken",
"::",
"Minus",
")",
")",
"{",
"NewOpcode",
"=",
"Name",
";",
"NewOpcode",
"+=",
"'-'",
";",
"Name",
"=",
"NewOpcode",
";",
"}",
"size_t",
"Dot",
"=",
"Name",
".",
"find",
"(",
"'.'",
")",
";",
"StringRef",
"Mnemonic",
"=",
"Name",
".",
"slice",
"(",
"0",
",",
"Dot",
")",
";",
"if",
"(",
"!",
"NewOpcode",
".",
"empty",
"(",
")",
")",
"Operands",
".",
"push_back",
"(",
"PPCOperand",
"::",
"CreateTokenWithStringCopy",
"(",
"Mnemonic",
",",
"NameLoc",
",",
"isPPC64",
"(",
")",
")",
")",
";",
"else",
"Operands",
".",
"push_back",
"(",
"PPCOperand",
"::",
"CreateToken",
"(",
"Mnemonic",
",",
"NameLoc",
",",
"isPPC64",
"(",
")",
")",
")",
";",
"if",
"(",
"Dot",
"!=",
"StringRef",
"::",
"npos",
")",
"{",
"SMLoc",
"DotLoc",
"=",
"SMLoc",
"::",
"getFromPointer",
"(",
"NameLoc",
".",
"getPointer",
"(",
")",
"+",
"Dot",
")",
";",
"StringRef",
"DotStr",
"=",
"Name",
".",
"slice",
"(",
"Dot",
",",
"StringRef",
"::",
"npos",
")",
";",
"if",
"(",
"!",
"NewOpcode",
".",
"empty",
"(",
")",
")",
"Operands",
".",
"push_back",
"(",
"PPCOperand",
"::",
"CreateTokenWithStringCopy",
"(",
"DotStr",
",",
"DotLoc",
",",
"isPPC64",
"(",
")",
")",
")",
";",
"else",
"Operands",
".",
"push_back",
"(",
"PPCOperand",
"::",
"CreateToken",
"(",
"DotStr",
",",
"DotLoc",
",",
"isPPC64",
"(",
")",
")",
")",
";",
"}",
"if",
"(",
"parseOptionalToken",
"(",
"AsmToken",
"::",
"EndOfStatement",
")",
")",
"return",
"false",
";",
"if",
"(",
"ParseOperand",
"(",
"Operands",
")",
")",
"return",
"true",
";",
"while",
"(",
"!",
"parseOptionalToken",
"(",
"AsmToken",
"::",
"EndOfStatement",
")",
")",
"{",
"if",
"(",
"parseToken",
"(",
"AsmToken",
"::",
"Comma",
")",
"||",
"ParseOperand",
"(",
"Operands",
")",
")",
"return",
"true",
";",
"}",
"if",
"(",
"getSTI",
"(",
")",
".",
"getFeatureBits",
"(",
")",
"[",
"PPC",
"::",
"FeatureBookE",
"]",
"&&",
"Operands",
".",
"size",
"(",
")",
"==",
"4",
"&&",
"(",
"Name",
"==",
"\"dcbt\"",
"||",
"Name",
"==",
"\"dcbtst\"",
")",
")",
"{",
"std",
"::",
"swap",
"(",
"Operands",
"[",
"1",
"]",
",",
"Operands",
"[",
"3",
"]",
")",
";",
"std",
"::",
"swap",
"(",
"Operands",
"[",
"2",
"]",
",",
"Operands",
"[",
"1",
"]",
")",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"ParseInstruction",
"-",
"Parse",
"one",
"assembly",
"instruction",
"."
] | [
"PowerPC",
"PPC",
"0",
"PPC",
"PPC",
"PPC",
"PPC",
"PPC",
"PPC",
"PPC",
"PPC",
"PPC::FeatureBookE",
"4",
"\"dcbt\"",
"\"dcbtst\"",
"1",
"3",
"2",
"1"
] | PPCAsmParser (2)3 | ParseInstruction | PowerPC | CPU | LLVM | 21,271 | 345 | 1 | [] |
[
"<s>",
"bool",
"nds32_expand_cpymemsi",
"(",
"rtx",
"dstmem",
",",
"rtx",
"srcmem",
",",
"rtx",
"total_bytes",
",",
"rtx",
"alignment",
")",
"{",
"if",
"(",
"nds32_expand_cpymemsi_unroll",
"(",
"dstmem",
",",
"srcmem",
",",
"total_bytes",
",",
"alignment",
")",
")",
"return",
"true",
";",
"if",
"(",
"!",
"optimize_size",
"&&",
"optimize",
">",
"2",
")",
"return",
"nds32_expand_cpymemsi_loop",
"(",
"dstmem",
",",
"srcmem",
",",
"total_bytes",
",",
"alignment",
")",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Function",
"to",
"move",
"block",
"memory",
"content",
"by",
"using",
"load_multiple",
"and",
"store_multiple",
".",
"This",
"is",
"auxiliary",
"extern",
"function",
"to",
"help",
"create",
"rtx",
"template",
".",
"Check",
"nds32-multiple.md",
"file",
"for",
"the",
"patterns",
"."
] | [
"nds32",
"2"
] | nds32-memory-manipulation | nds32_expand_cpymemsi | nds32 | CPU | GCC | 21,272 | 57 | 1 | [] |
[
"<s>",
"void",
"AMDGPUPassConfig",
"::",
"addIRPasses",
"(",
")",
"{",
"disablePass",
"(",
"&",
"StackMapLivenessID",
")",
";",
"disablePass",
"(",
"&",
"FuncletLayoutID",
")",
";",
"disablePass",
"(",
"&",
"PatchableFunctionID",
")",
";",
"addPass",
"(",
"createAMDGPUAlwaysInlinePass",
"(",
")",
")",
";",
"addPass",
"(",
"createAlwaysInlinerPass",
"(",
")",
")",
";",
"addPass",
"(",
"createBarrierNoopPass",
"(",
")",
")",
";",
"addPass",
"(",
"createAMDGPUOpenCLImageTypeLoweringPass",
"(",
")",
")",
";",
"TargetPassConfig",
"::",
"addIRPasses",
"(",
")",
";",
"}",
"</s>"
] | [
"Add",
"common",
"target",
"configurable",
"passes",
"that",
"perform",
"LLVM",
"IR",
"to",
"IR",
"transforms",
"following",
"machine",
"independent",
"optimization",
"."
] | [
"AMDGPU",
"AMDGPU",
"AMDGPU",
"AMDGPU"
] | AMDGPUTargetMachine68 | addIRPasses | AMDGPU | GPU | LLVM | 21,273 | 60 | 1 | [] |
[
"<s>",
"static",
"bool",
"arm_can_change_mode_class",
"(",
"machine_mode",
"from",
",",
"machine_mode",
"to",
",",
"reg_class_t",
"rclass",
")",
"{",
"if",
"(",
"TARGET_BIG_END",
"&&",
"!",
"(",
"GET_MODE_SIZE",
"(",
"from",
")",
"==",
"16",
"&&",
"GET_MODE_SIZE",
"(",
"to",
")",
"==",
"8",
")",
"&&",
"(",
"GET_MODE_SIZE",
"(",
"from",
")",
">",
"UNITS_PER_WORD",
"||",
"GET_MODE_SIZE",
"(",
"to",
")",
">",
"UNITS_PER_WORD",
")",
"&&",
"reg_classes_intersect_p",
"(",
"VFP_REGS",
",",
"rclass",
")",
")",
"return",
"false",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_CAN_CHANGE_MODE_CLASS",
".",
"In",
"VFPv1",
",",
"VFP",
"registers",
"could",
"only",
"be",
"accessed",
"in",
"the",
"mode",
"they",
"were",
"set",
",",
"so",
"subregs",
"would",
"be",
"invalid",
"there",
".",
"However",
",",
"we",
"do",
"n't",
"support",
"VFPv1",
"at",
"the",
"moment",
",",
"and",
"the",
"restriction",
"was",
"lifted",
"in",
"VFPv2",
".",
"In",
"big-endian",
"mode",
",",
"modes",
"greater",
"than",
"word",
"size",
"(",
"i.e",
".",
"DFmode",
")",
"are",
"stored",
"in",
"VFP",
"registers",
"in",
"little-endian",
"order",
".",
"We",
"ca",
"n't",
"describe",
"that",
"accurately",
"to",
"GCC",
",",
"so",
"avoid",
"taking",
"subregs",
"of",
"such",
"values",
".",
"The",
"only",
"exception",
"is",
"going",
"from",
"a",
"128-bit",
"to",
"a",
"64-bit",
"type",
".",
"In",
"that",
"case",
"the",
"data",
"layout",
"happens",
"to",
"be",
"consistent",
"for",
"big-endian",
",",
"so",
"we",
"explicitly",
"allow",
"that",
"case",
"."
] | [
"arm",
"16",
"8"
] | arm | arm_can_change_mode_class | arm | CPU | GCC | 21,274 | 65 | 1 | [] |
[
"<s>",
"bool",
"shouldReduceLoadWidth",
"(",
"SDNode",
"*",
"Load",
",",
"ISD",
"::",
"LoadExtType",
"ExtTy",
",",
"EVT",
"NewVT",
")",
"const",
"override",
"{",
"return",
"false",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"we",
"believe",
"it",
"is",
"correct",
"and",
"profitable",
"to",
"reduce",
"the",
"load",
"node",
"to",
"a",
"smaller",
"type",
"."
] | [
"BPF",
"ISD::LoadExtType"
] | BPFISelLowering11 | shouldReduceLoadWidth | BPF | Virtual ISA | LLVM | 21,275 | 22 | 1 | [] |
[
"<s>",
"void",
"P2AsmPrinter",
"::",
"emitFunctionBodyStart",
"(",
")",
"{",
"MCInstLowering",
".",
"Initialize",
"(",
"&",
"MF",
"->",
"getContext",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"Targets",
"can",
"override",
"this",
"to",
"emit",
"stuff",
"before",
"the",
"first",
"basic",
"block",
"in",
"the",
"function",
"."
] | [
"P2",
"P2"
] | P2AsmPrinter | emitFunctionBodyStart | P2 | MPU | LLVM | 21,276 | 20 | 1 | [] |
[
"<s>",
"bool",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"override",
"{",
"TM",
"=",
"static_cast",
"<",
"const",
"PPCTargetMachine",
"*",
">",
"(",
"&",
"MF",
".",
"getTarget",
"(",
")",
")",
";",
"TII",
"=",
"TM",
"->",
"getSubtargetImpl",
"(",
")",
"->",
"getInstrInfo",
"(",
")",
";",
"bool",
"Changed",
"=",
"false",
";",
"if",
"(",
"MF",
".",
"size",
"(",
")",
"<",
"2",
")",
"return",
"Changed",
";",
"for",
"(",
"MachineFunction",
"::",
"iterator",
"I",
"=",
"MF",
".",
"begin",
"(",
")",
";",
"I",
"!=",
"MF",
".",
"end",
"(",
")",
";",
")",
"{",
"MachineBasicBlock",
"&",
"B",
"=",
"*",
"I",
"++",
";",
"if",
"(",
"processBlock",
"(",
"B",
")",
")",
"Changed",
"=",
"true",
";",
"}",
"return",
"Changed",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"PowerPC",
"PPC",
"2"
] | PPCInstrInfo106 | runOnMachineFunction | PowerPC | CPU | LLVM | 21,277 | 103 | 1 | [] |
[
"<s>",
"virtual",
"bool",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"ARMFunctionInfo",
"*",
"AFI",
"=",
"MF",
".",
"getInfo",
"<",
"ARMFunctionInfo",
">",
"(",
")",
";",
"if",
"(",
"AFI",
"->",
"getGlobalBaseReg",
"(",
")",
"==",
"0",
")",
"return",
"false",
";",
"const",
"ARMTargetMachine",
"*",
"TM",
"=",
"static_cast",
"<",
"const",
"ARMTargetMachine",
"*",
">",
"(",
"&",
"MF",
".",
"getTarget",
"(",
")",
")",
";",
"if",
"(",
"TM",
"->",
"getRelocationModel",
"(",
")",
"!=",
"Reloc",
"::",
"PIC_",
")",
"return",
"false",
";",
"LLVMContext",
"*",
"Context",
"=",
"&",
"MF",
".",
"getFunction",
"(",
")",
"->",
"getContext",
"(",
")",
";",
"unsigned",
"ARMPCLabelIndex",
"=",
"AFI",
"->",
"createPICLabelUId",
"(",
")",
";",
"unsigned",
"PCAdj",
"=",
"TM",
"->",
"getSubtarget",
"<",
"ARMSubtarget",
">",
"(",
")",
".",
"isThumb",
"(",
")",
"?",
"4",
":",
"8",
";",
"ARMConstantPoolValue",
"*",
"CPV",
"=",
"ARMConstantPoolSymbol",
"::",
"Create",
"(",
"*",
"Context",
",",
"\"_GLOBAL_OFFSET_TABLE_\"",
",",
"ARMPCLabelIndex",
",",
"PCAdj",
")",
";",
"unsigned",
"Align",
"=",
"TM",
"->",
"getDataLayout",
"(",
")",
"->",
"getPrefTypeAlignment",
"(",
"Type",
"::",
"getInt32PtrTy",
"(",
"*",
"Context",
")",
")",
";",
"unsigned",
"Idx",
"=",
"MF",
".",
"getConstantPool",
"(",
")",
"->",
"getConstantPoolIndex",
"(",
"CPV",
",",
"Align",
")",
";",
"MachineBasicBlock",
"&",
"FirstMBB",
"=",
"MF",
".",
"front",
"(",
")",
";",
"MachineBasicBlock",
"::",
"iterator",
"MBBI",
"=",
"FirstMBB",
".",
"begin",
"(",
")",
";",
"DebugLoc",
"DL",
"=",
"FirstMBB",
".",
"findDebugLoc",
"(",
"MBBI",
")",
";",
"unsigned",
"GlobalBaseReg",
"=",
"AFI",
"->",
"getGlobalBaseReg",
"(",
")",
";",
"unsigned",
"Opc",
"=",
"TM",
"->",
"getSubtarget",
"<",
"ARMSubtarget",
">",
"(",
")",
".",
"isThumb2",
"(",
")",
"?",
"ARM",
"::",
"t2LDRpci",
":",
"ARM",
"::",
"LDRcp",
";",
"const",
"TargetInstrInfo",
"&",
"TII",
"=",
"*",
"TM",
"->",
"getInstrInfo",
"(",
")",
";",
"MachineInstrBuilder",
"MIB",
"=",
"BuildMI",
"(",
"FirstMBB",
",",
"MBBI",
",",
"DL",
",",
"TII",
".",
"get",
"(",
"Opc",
")",
",",
"GlobalBaseReg",
")",
".",
"addConstantPoolIndex",
"(",
"Idx",
")",
";",
"if",
"(",
"Opc",
"==",
"ARM",
"::",
"LDRcp",
")",
"MIB",
".",
"addImm",
"(",
"0",
")",
";",
"AddDefaultPred",
"(",
"MIB",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"ARM",
"ARM",
"ARM",
"0",
"ARM",
"ARM",
"ARM",
"ARM",
"4",
"8",
"ARM",
"ARM",
"\"_GLOBAL_OFFSET_TABLE_\"",
"ARM",
"ARM",
"ARM::t2LDRpci",
"ARM::LDRcp",
"ARM::LDRcp",
"0"
] | ARMInstrInfo4 | runOnMachineFunction | ARM | CPU | LLVM | 21,278 | 294 | 1 | [] |
[
"<s>",
"bool",
"X86PassConfig",
"::",
"addPreRegAlloc",
"(",
")",
"{",
"if",
"(",
"EnableStackPointerTest",
")",
"{",
"addPass",
"(",
"createStackPointerTester",
"(",
"getX86TargetMachine",
"(",
")",
")",
")",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"This",
"method",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"immediately",
"before",
"register",
"allocation",
"."
] | [
"X86",
"X86",
"X86"
] | X86TargetMachine128 | addPreRegAlloc | X86 | CPU | LLVM | 21,279 | 27 | 1 | [] |
[
"<s>",
"static",
"bool",
"nios2_valid_addr_expr_p",
"(",
"rtx",
"base",
",",
"rtx",
"offset",
",",
"bool",
"strict_p",
")",
"{",
"if",
"(",
"!",
"strict_p",
"&&",
"GET_CODE",
"(",
"base",
")",
"==",
"SUBREG",
")",
"base",
"=",
"SUBREG_REG",
"(",
"base",
")",
";",
"return",
"(",
"REG_P",
"(",
"base",
")",
"&&",
"nios2_regno_ok_for_base_p",
"(",
"REGNO",
"(",
"base",
")",
",",
"strict_p",
")",
"&&",
"(",
"offset",
"==",
"NULL_RTX",
"||",
"const_arith_operand",
"(",
"offset",
",",
"Pmode",
")",
"||",
"nios2_unspec_reloc_p",
"(",
"offset",
")",
")",
")",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"the",
"address",
"expression",
"formed",
"by",
"BASE",
"+",
"OFFSET",
"is",
"valid",
"."
] | [
"nios2"
] | nios22 | nios2_valid_addr_expr_p | nios2 | MPU | GCC | 21,280 | 70 | 1 | [] |
[
"<s>",
"const",
"SICTargetLowering",
"*",
"SICTargetLowering",
"::",
"create",
"(",
"const",
"SICTargetMachine",
"&",
"TM",
",",
"const",
"SICSubtarget",
"&",
"STI",
")",
"{",
"return",
"new",
"SICTargetLowering",
"(",
"TM",
",",
"STI",
")",
";",
"}",
"</s>"
] | [
"This",
"creates",
"an",
"identified",
"struct",
"."
] | [
"SIC",
"SIC",
"SIC",
"SIC",
"SIC",
"SIC"
] | SICISelLowering | create | SIC | CPU | LLVM | 21,281 | 28 | 1 | [] |
[
"<s>",
"static",
"tree",
"rl78_handle_naked_attribute",
"(",
"tree",
"*",
"node",
",",
"tree",
"name",
"ATTRIBUTE_UNUSED",
",",
"tree",
"args",
",",
"int",
"flags",
"ATTRIBUTE_UNUSED",
",",
"bool",
"*",
"no_add_attrs",
")",
"{",
"gcc_assert",
"(",
"DECL_P",
"(",
"*",
"node",
")",
")",
";",
"gcc_assert",
"(",
"args",
"==",
"NULL_TREE",
")",
";",
"if",
"(",
"TREE_CODE",
"(",
"*",
"node",
")",
"!=",
"FUNCTION_DECL",
")",
"{",
"warning",
"(",
"OPT_Wattributes",
",",
"\"naked attribute only applies to functions\"",
")",
";",
"*",
"no_add_attrs",
"=",
"true",
";",
"}",
"TREE_NO_WARNING",
"(",
"*",
"node",
")",
"=",
"1",
";",
"return",
"NULL_TREE",
";",
"}",
"</s>"
] | [
"Check",
"``",
"naked",
"''",
"attributes",
"."
] | [
"rl78",
"\"naked attribute only applies to functions\"",
"1"
] | rl78 | rl78_handle_naked_attribute | rl78 | MPU | GCC | 21,282 | 76 | 1 | [] |
[
"<s>",
"static",
"tree",
"avr_convert_to_type",
"(",
"tree",
"type",
",",
"tree",
"expr",
")",
"{",
"if",
"(",
"avr_warn_addr_space_convert",
"&&",
"expr",
"!=",
"error_mark_node",
"&&",
"POINTER_TYPE_P",
"(",
"type",
")",
"&&",
"POINTER_TYPE_P",
"(",
"TREE_TYPE",
"(",
"expr",
")",
")",
")",
"{",
"addr_space_t",
"as_old",
"=",
"TYPE_ADDR_SPACE",
"(",
"TREE_TYPE",
"(",
"TREE_TYPE",
"(",
"expr",
")",
")",
")",
";",
"addr_space_t",
"as_new",
"=",
"TYPE_ADDR_SPACE",
"(",
"TREE_TYPE",
"(",
"type",
")",
")",
";",
"if",
"(",
"avr_log",
".",
"progmem",
")",
"avr_edump",
"(",
"\"%?: type = %t\\nexpr = %t\\n\\n\"",
",",
"type",
",",
"expr",
")",
";",
"if",
"(",
"as_new",
"!=",
"ADDR_SPACE_MEMX",
"&&",
"as_new",
"!=",
"as_old",
")",
"{",
"location_t",
"loc",
"=",
"EXPR_LOCATION",
"(",
"expr",
")",
";",
"const",
"char",
"*",
"name_old",
"=",
"avr_addrspace",
"[",
"as_old",
"]",
".",
"name",
";",
"const",
"char",
"*",
"name_new",
"=",
"avr_addrspace",
"[",
"as_new",
"]",
".",
"name",
";",
"warning",
"(",
"OPT_Waddr_space_convert",
",",
"\"conversion from address space %qs to address space %qs\"",
",",
"ADDR_SPACE_GENERIC_P",
"(",
"as_old",
")",
"?",
"\"generic\"",
":",
"name_old",
",",
"ADDR_SPACE_GENERIC_P",
"(",
"as_new",
")",
"?",
"\"generic\"",
":",
"name_new",
")",
";",
"return",
"fold_build1_loc",
"(",
"loc",
",",
"ADDR_SPACE_CONVERT_EXPR",
",",
"type",
",",
"expr",
")",
";",
"}",
"}",
"return",
"NULL_TREE",
";",
"}",
"</s>"
] | [
"Implement",
"`",
"TARGET_CONVERT_TO_TYPE",
"'",
"."
] | [
"avr",
"\"%?: type = %t\\nexpr = %t\\n\\n\"",
"\"conversion from address space %qs to address space %qs\"",
"\"generic\"",
"\"generic\""
] | avr | avr_convert_to_type | avr | MPU | GCC | 21,283 | 159 | 1 | [] |
[
"<s>",
"const",
"MCExpr",
"*",
"AArch64_MachoTargetObjectFile",
"::",
"getTTypeGlobalReference",
"(",
"const",
"GlobalValue",
"*",
"GV",
",",
"unsigned",
"Encoding",
",",
"Mangler",
"&",
"Mang",
",",
"const",
"TargetMachine",
"&",
"TM",
",",
"MachineModuleInfo",
"*",
"MMI",
",",
"MCStreamer",
"&",
"Streamer",
")",
"const",
"{",
"if",
"(",
"Encoding",
"&",
"(",
"DW_EH_PE_indirect",
"|",
"DW_EH_PE_pcrel",
")",
")",
"{",
"const",
"MCSymbol",
"*",
"Sym",
"=",
"TM",
".",
"getSymbol",
"(",
"GV",
",",
"Mang",
")",
";",
"const",
"MCExpr",
"*",
"Res",
"=",
"MCSymbolRefExpr",
"::",
"Create",
"(",
"Sym",
",",
"MCSymbolRefExpr",
"::",
"VK_GOT",
",",
"getContext",
"(",
")",
")",
";",
"MCSymbol",
"*",
"PCSym",
"=",
"getContext",
"(",
")",
".",
"CreateTempSymbol",
"(",
")",
";",
"Streamer",
".",
"EmitLabel",
"(",
"PCSym",
")",
";",
"const",
"MCExpr",
"*",
"PC",
"=",
"MCSymbolRefExpr",
"::",
"Create",
"(",
"PCSym",
",",
"getContext",
"(",
")",
")",
";",
"return",
"MCBinaryExpr",
"::",
"CreateSub",
"(",
"Res",
",",
"PC",
",",
"getContext",
"(",
")",
")",
";",
"}",
"return",
"TargetLoweringObjectFileMachO",
"::",
"getTTypeGlobalReference",
"(",
"GV",
",",
"Encoding",
",",
"Mang",
",",
"TM",
",",
"MMI",
",",
"Streamer",
")",
";",
"}",
"</s>"
] | [
"The",
"mach-o",
"version",
"of",
"this",
"method",
"defaults",
"to",
"returning",
"a",
"stub",
"reference",
"."
] | [
"AArch64",
"AArch64"
] | AArch64TargetObjectFile | getTTypeGlobalReference | AArch64 | CPU | LLVM | 21,284 | 148 | 1 | [] |
[
"<s>",
"void",
"split_subsi",
"(",
"rtx",
"*",
"operands",
")",
"{",
"int",
"val",
"=",
"INTVAL",
"(",
"operands",
"[",
"1",
"]",
")",
";",
"if",
"(",
"arc_check_short_reg_p",
"(",
"operands",
"[",
"0",
"]",
")",
"&&",
"arc_check_short_reg_p",
"(",
"operands",
"[",
"2",
"]",
")",
")",
"{",
"if",
"(",
"val",
">=",
"-",
"31",
"&&",
"val",
"<=",
"127",
")",
"{",
"operands",
"[",
"3",
"]",
"=",
"gen_rtx_NEG",
"(",
"SImode",
",",
"operands",
"[",
"2",
"]",
")",
";",
"operands",
"[",
"4",
"]",
"=",
"gen_rtx_PLUS",
"(",
"SImode",
",",
"operands",
"[",
"0",
"]",
",",
"operands",
"[",
"1",
"]",
")",
";",
"return",
";",
"}",
"else",
"if",
"(",
"val",
">=",
"0",
"&&",
"val",
"<",
"255",
")",
"{",
"operands",
"[",
"3",
"]",
"=",
"operands",
"[",
"1",
"]",
";",
"operands",
"[",
"4",
"]",
"=",
"gen_rtx_MINUS",
"(",
"SImode",
",",
"operands",
"[",
"0",
"]",
",",
"operands",
"[",
"2",
"]",
")",
";",
"return",
";",
"}",
"}",
"operands",
"[",
"3",
"]",
"=",
"operands",
"[",
"2",
"]",
";",
"operands",
"[",
"4",
"]",
"=",
"gen_rtx_MINUS",
"(",
"SImode",
",",
"operands",
"[",
"1",
"]",
",",
"operands",
"[",
"0",
"]",
")",
";",
"}",
"</s>"
] | [
"Operands",
"0",
"..",
"2",
"are",
"the",
"operands",
"of",
"a",
"subsi",
"which",
"uses",
"a",
"12",
"bit",
"constant",
"in",
"operand",
"1",
",",
"but",
"which",
"would",
"require",
"a",
"LIMM",
"because",
"of",
"operand",
"mismatch",
".",
"operands",
"3",
"and",
"4",
"are",
"new",
"SET_SRCs",
"for",
"operands",
"0",
"."
] | [
"arc",
"1",
"0",
"2",
"31",
"127",
"3",
"2",
"4",
"0",
"1",
"0",
"255",
"3",
"1",
"4",
"0",
"2",
"3",
"2",
"4",
"1",
"0"
] | arc1 | split_subsi | arc | MPU | GCC | 21,285 | 165 | 1 | [] |
[
"<s>",
"static",
"bool",
"expand_vec_perm_identity",
"(",
"struct",
"expand_vec_perm_d",
"*",
"d",
")",
"{",
"unsigned",
"i",
",",
"nelt",
"=",
"d",
"->",
"nelt",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"nelt",
";",
"++",
"i",
")",
"if",
"(",
"d",
"->",
"perm",
"[",
"i",
"]",
"!=",
"i",
")",
"return",
"false",
";",
"if",
"(",
"!",
"d",
"->",
"testing_p",
")",
"emit_move_insn",
"(",
"d",
"->",
"target",
",",
"d",
"->",
"op0",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Try",
"to",
"expand",
"a",
"no-op",
"permutation",
"."
] | [
"ia64",
"0"
] | ia64 | expand_vec_perm_identity | ia64 | CPU | GCC | 21,286 | 68 | 1 | [] |
[
"<s>",
"const",
"SystemZSubtarget",
"*",
"SystemZTargetMachine",
"::",
"getSubtargetImpl",
"(",
"const",
"Function",
"&",
"F",
")",
"const",
"{",
"Attribute",
"CPUAttr",
"=",
"F",
".",
"getFnAttribute",
"(",
"\"target-cpu\"",
")",
";",
"Attribute",
"FSAttr",
"=",
"F",
".",
"getFnAttribute",
"(",
"\"target-features\"",
")",
";",
"std",
"::",
"string",
"CPU",
"=",
"!",
"CPUAttr",
".",
"hasAttribute",
"(",
"Attribute",
"::",
"None",
")",
"?",
"CPUAttr",
".",
"getValueAsString",
"(",
")",
".",
"str",
"(",
")",
":",
"TargetCPU",
";",
"std",
"::",
"string",
"FS",
"=",
"!",
"FSAttr",
".",
"hasAttribute",
"(",
"Attribute",
"::",
"None",
")",
"?",
"FSAttr",
".",
"getValueAsString",
"(",
")",
".",
"str",
"(",
")",
":",
"TargetFS",
";",
"bool",
"softFloat",
"=",
"F",
".",
"hasFnAttribute",
"(",
"\"use-soft-float\"",
")",
"&&",
"F",
".",
"getFnAttribute",
"(",
"\"use-soft-float\"",
")",
".",
"getValueAsString",
"(",
")",
"==",
"\"true\"",
";",
"if",
"(",
"softFloat",
")",
"FS",
"+=",
"FS",
".",
"empty",
"(",
")",
"?",
"\"+soft-float\"",
":",
"\",+soft-float\"",
";",
"auto",
"&",
"I",
"=",
"SubtargetMap",
"[",
"CPU",
"+",
"FS",
"]",
";",
"if",
"(",
"!",
"I",
")",
"{",
"resetTargetOptions",
"(",
"F",
")",
";",
"I",
"=",
"std",
"::",
"make_unique",
"<",
"SystemZSubtarget",
">",
"(",
"TargetTriple",
",",
"CPU",
",",
"FS",
",",
"*",
"this",
")",
";",
"}",
"return",
"I",
".",
"get",
"(",
")",
";",
"}",
"</s>"
] | [
"Virtual",
"method",
"implemented",
"by",
"subclasses",
"that",
"returns",
"a",
"reference",
"to",
"that",
"target",
"'s",
"TargetSubtargetInfo-derived",
"member",
"variable",
"."
] | [
"SystemZ",
"SystemZ",
"SystemZ",
"\"target-cpu\"",
"\"target-features\"",
"\"use-soft-float\"",
"\"use-soft-float\"",
"\"true\"",
"\"+soft-float\"",
"\",+soft-float\"",
"SystemZ"
] | SystemZTargetMachine24 | getSubtargetImpl | SystemZ | CPU | LLVM | 21,287 | 177 | 1 | [] |
[
"<s>",
"bool",
"isLittleEndian",
"(",
")",
"const",
"{",
"return",
"isLittle",
";",
"}",
"</s>"
] | [
"Tests",
"whether",
"the",
"target",
"triple",
"is",
"little",
"endian",
"."
] | [
"Cpu0"
] | Cpu0TargetMachine | isLittleEndian | Cpu0 | CPU | LLVM | 21,288 | 10 | 1 | [] |
[
"<s>",
"static",
"void",
"nvptx_goacc_reduction_fini",
"(",
"gcall",
"*",
"call",
")",
"{",
"gimple_stmt_iterator",
"gsi",
"=",
"gsi_for_stmt",
"(",
"call",
")",
";",
"tree",
"lhs",
"=",
"gimple_call_lhs",
"(",
"call",
")",
";",
"tree",
"ref_to_res",
"=",
"gimple_call_arg",
"(",
"call",
",",
"1",
")",
";",
"tree",
"var",
"=",
"gimple_call_arg",
"(",
"call",
",",
"2",
")",
";",
"int",
"level",
"=",
"TREE_INT_CST_LOW",
"(",
"gimple_call_arg",
"(",
"call",
",",
"3",
")",
")",
";",
"enum",
"tree_code",
"op",
"=",
"(",
"enum",
"tree_code",
")",
"TREE_INT_CST_LOW",
"(",
"gimple_call_arg",
"(",
"call",
",",
"4",
")",
")",
";",
"gimple_seq",
"seq",
"=",
"NULL",
";",
"tree",
"r",
"=",
"NULL_TREE",
";",
";",
"push_gimplify_context",
"(",
"true",
")",
";",
"if",
"(",
"level",
"==",
"GOMP_DIM_VECTOR",
")",
"{",
"for",
"(",
"int",
"shfl",
"=",
"PTX_VECTOR_LENGTH",
"/",
"2",
";",
"shfl",
">",
"0",
";",
"shfl",
"=",
"shfl",
">>",
"1",
")",
"{",
"tree",
"other_var",
"=",
"make_ssa_name",
"(",
"TREE_TYPE",
"(",
"var",
")",
")",
";",
"nvptx_generate_vector_shuffle",
"(",
"gimple_location",
"(",
"call",
")",
",",
"other_var",
",",
"var",
",",
"shfl",
",",
"&",
"seq",
")",
";",
"r",
"=",
"make_ssa_name",
"(",
"TREE_TYPE",
"(",
"var",
")",
")",
";",
"gimplify_assign",
"(",
"r",
",",
"fold_build2",
"(",
"op",
",",
"TREE_TYPE",
"(",
"var",
")",
",",
"var",
",",
"other_var",
")",
",",
"&",
"seq",
")",
";",
"var",
"=",
"r",
";",
"}",
"}",
"else",
"{",
"tree",
"accum",
"=",
"NULL_TREE",
";",
"if",
"(",
"level",
"==",
"GOMP_DIM_WORKER",
")",
"{",
"tree",
"offset",
"=",
"gimple_call_arg",
"(",
"call",
",",
"5",
")",
";",
"tree",
"call",
"=",
"nvptx_get_worker_red_addr",
"(",
"TREE_TYPE",
"(",
"var",
")",
",",
"offset",
")",
";",
"tree",
"ptr",
"=",
"make_ssa_name",
"(",
"TREE_TYPE",
"(",
"call",
")",
")",
";",
"gimplify_assign",
"(",
"ptr",
",",
"call",
",",
"&",
"seq",
")",
";",
"accum",
"=",
"ptr",
";",
"}",
"else",
"if",
"(",
"integer_zerop",
"(",
"ref_to_res",
")",
")",
"r",
"=",
"var",
";",
"else",
"accum",
"=",
"ref_to_res",
";",
"if",
"(",
"accum",
")",
"{",
"gsi_insert_seq_before",
"(",
"&",
"gsi",
",",
"seq",
",",
"GSI_SAME_STMT",
")",
";",
"seq",
"=",
"NULL",
";",
"r",
"=",
"nvptx_reduction_update",
"(",
"gimple_location",
"(",
"call",
")",
",",
"&",
"gsi",
",",
"accum",
",",
"var",
",",
"op",
")",
";",
"}",
"}",
"if",
"(",
"lhs",
")",
"gimplify_assign",
"(",
"lhs",
",",
"r",
",",
"&",
"seq",
")",
";",
"pop_gimplify_context",
"(",
"NULL",
")",
";",
"gsi_replace_with_seq",
"(",
"&",
"gsi",
",",
"seq",
",",
"true",
")",
";",
"}",
"</s>"
] | [
"NVPTX",
"implementation",
"of",
"GOACC_REDUCTION_FINI",
"."
] | [
"nvptx",
"1",
"2",
"3",
"4",
"2",
"0",
"1",
"5"
] | nvptx3 | nvptx_goacc_reduction_fini | nvptx | GPU | GCC | 21,289 | 335 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"AArch64TargetLowering",
"::",
"LowerXConstraint",
"(",
"EVT",
"ConstraintVT",
")",
"const",
"{",
"if",
"(",
"!",
"Subtarget",
"->",
"hasFPARMv8",
"(",
")",
")",
"return",
"\"r\"",
";",
"if",
"(",
"ConstraintVT",
".",
"isFloatingPoint",
"(",
")",
")",
"return",
"\"w\"",
";",
"if",
"(",
"ConstraintVT",
".",
"isVector",
"(",
")",
"&&",
"(",
"ConstraintVT",
".",
"getSizeInBits",
"(",
")",
"==",
"64",
"||",
"ConstraintVT",
".",
"getSizeInBits",
"(",
")",
"==",
"128",
")",
")",
"return",
"\"w\"",
";",
"return",
"\"r\"",
";",
"}",
"</s>"
] | [
"Try",
"to",
"replace",
"an",
"X",
"constraint",
",",
"which",
"matches",
"anything",
",",
"with",
"another",
"that",
"has",
"more",
"specific",
"requirements",
"based",
"on",
"the",
"type",
"of",
"the",
"corresponding",
"operand",
"."
] | [
"AArch64",
"AArch64",
"\"r\"",
"\"w\"",
"64",
"128",
"\"w\"",
"\"r\""
] | AArch64ISelLowering (2) | LowerXConstraint | AArch64 | CPU | LLVM | 21,290 | 68 | 1 | [] |
[
"<s>",
"void",
"SPIRVInstrInfo",
"::",
"copyPhysReg",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"I",
",",
"const",
"DebugLoc",
"&",
"DL",
",",
"MCRegister",
"DestReg",
",",
"MCRegister",
"SrcReg",
",",
"bool",
"KillSrc",
")",
"const",
"{",
"assert",
"(",
"I",
"->",
"isCopy",
"(",
")",
"&&",
"\"Copy instruction is expected\"",
")",
";",
"auto",
"DstOp",
"=",
"I",
"->",
"getOperand",
"(",
"0",
")",
";",
"auto",
"SrcOp",
"=",
"I",
"->",
"getOperand",
"(",
"1",
")",
";",
"assert",
"(",
"DstOp",
".",
"isReg",
"(",
")",
"&&",
"SrcOp",
".",
"isReg",
"(",
")",
"&&",
"\"Register operands are expected in COPY\"",
")",
";",
"auto",
"&",
"MRI",
"=",
"I",
"->",
"getMF",
"(",
")",
"->",
"getRegInfo",
"(",
")",
";",
"MRI",
".",
"replaceRegWith",
"(",
"DstOp",
".",
"getReg",
"(",
")",
",",
"SrcOp",
".",
"getReg",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"}",
"Branch",
"Analysis",
"&",
"Modification"
] | [
"SPIRV",
"SPIRV",
"\"Copy instruction is expected\"",
"0",
"1",
"\"Register operands are expected in COPY\""
] | SPIRVInstrInfo | copyPhysReg | SPIRV | Virtual ISA | LLVM | 21,291 | 110 | 1 | [] |
[
"<s>",
"static",
"bool",
"ia64_expand_vecint_compare",
"(",
"enum",
"rtx_code",
"code",
",",
"enum",
"machine_mode",
"mode",
",",
"rtx",
"dest",
",",
"rtx",
"op0",
",",
"rtx",
"op1",
")",
"{",
"bool",
"negate",
"=",
"false",
";",
"rtx",
"x",
";",
"switch",
"(",
"code",
")",
"{",
"case",
"EQ",
":",
"case",
"GT",
":",
"case",
"GTU",
":",
"break",
";",
"case",
"NE",
":",
"case",
"LE",
":",
"case",
"LEU",
":",
"code",
"=",
"reverse_condition",
"(",
"code",
")",
";",
"negate",
"=",
"true",
";",
"break",
";",
"case",
"GE",
":",
"case",
"GEU",
":",
"code",
"=",
"reverse_condition",
"(",
"code",
")",
";",
"negate",
"=",
"true",
";",
"case",
"LT",
":",
"case",
"LTU",
":",
"code",
"=",
"swap_condition",
"(",
"code",
")",
";",
"x",
"=",
"op0",
",",
"op0",
"=",
"op1",
",",
"op1",
"=",
"x",
";",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"if",
"(",
"code",
"==",
"GTU",
")",
"{",
"switch",
"(",
"mode",
")",
"{",
"case",
"V2SImode",
":",
"{",
"rtx",
"t1",
",",
"t2",
",",
"mask",
";",
"t1",
"=",
"gen_reg_rtx",
"(",
"V2SImode",
")",
";",
"emit_insn",
"(",
"gen_subv2si3",
"(",
"t1",
",",
"op0",
",",
"op1",
")",
")",
";",
"mask",
"=",
"GEN_INT",
"(",
"-",
"0x80000000",
")",
";",
"mask",
"=",
"gen_rtx_CONST_VECTOR",
"(",
"V2SImode",
",",
"gen_rtvec",
"(",
"2",
",",
"mask",
",",
"mask",
")",
")",
";",
"mask",
"=",
"force_reg",
"(",
"V2SImode",
",",
"mask",
")",
";",
"t2",
"=",
"gen_reg_rtx",
"(",
"V2SImode",
")",
";",
"emit_insn",
"(",
"gen_andv2si3",
"(",
"t2",
",",
"op0",
",",
"mask",
")",
")",
";",
"x",
"=",
"gen_reg_rtx",
"(",
"V2SImode",
")",
";",
"emit_insn",
"(",
"gen_xorv2si3",
"(",
"x",
",",
"t1",
",",
"t2",
")",
")",
";",
"code",
"=",
"GT",
";",
"op0",
"=",
"x",
";",
"op1",
"=",
"CONST0_RTX",
"(",
"mode",
")",
";",
"}",
"break",
";",
"case",
"V8QImode",
":",
"case",
"V4HImode",
":",
"x",
"=",
"gen_reg_rtx",
"(",
"mode",
")",
";",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"VOIDmode",
",",
"x",
",",
"gen_rtx_US_MINUS",
"(",
"mode",
",",
"op0",
",",
"op1",
")",
")",
")",
";",
"code",
"=",
"EQ",
";",
"op0",
"=",
"x",
";",
"op1",
"=",
"CONST0_RTX",
"(",
"mode",
")",
";",
"negate",
"=",
"!",
"negate",
";",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"}",
"x",
"=",
"gen_rtx_fmt_ee",
"(",
"code",
",",
"mode",
",",
"op0",
",",
"op1",
")",
";",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"VOIDmode",
",",
"dest",
",",
"x",
")",
")",
";",
"return",
"negate",
";",
"}",
"</s>"
] | [
"Generate",
"an",
"integral",
"vector",
"comparison",
".",
"Return",
"true",
"if",
"the",
"condition",
"has",
"been",
"reversed",
",",
"and",
"so",
"the",
"sense",
"of",
"the",
"comparison",
"should",
"be",
"inverted",
"."
] | [
"ia64",
"0x80000000",
"2"
] | ia643 | ia64_expand_vecint_compare | ia64 | CPU | GCC | 21,292 | 341 | 1 | [] |
[
"<s>",
"EVT",
"SITargetLowering",
"::",
"getOptimalMemOpType",
"(",
"uint64_t",
"Size",
",",
"unsigned",
"DstAlign",
",",
"unsigned",
"SrcAlign",
",",
"bool",
"IsMemset",
",",
"bool",
"ZeroMemset",
",",
"bool",
"MemcpyStrSrc",
",",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"if",
"(",
"Size",
">=",
"16",
"&&",
"DstAlign",
">=",
"4",
")",
"return",
"MVT",
"::",
"v4i32",
";",
"if",
"(",
"Size",
">=",
"8",
"&&",
"DstAlign",
">=",
"4",
")",
"return",
"MVT",
"::",
"v2i32",
";",
"return",
"MVT",
"::",
"Other",
";",
"}",
"</s>"
] | [
"It",
"returns",
"EVT",
":",
":Other",
"if",
"the",
"type",
"should",
"be",
"determined",
"using",
"generic",
"target-independent",
"logic",
"."
] | [
"R600",
"SI",
"16",
"4",
"MVT::v4i32",
"8",
"4",
"MVT::v2i32",
"MVT::Other"
] | SIISelLowering111 | getOptimalMemOpType | R600 | GPU | LLVM | 21,293 | 65 | 1 | [] |
[
"<s>",
"SDValue",
"TLCS900TargetLowering",
"::",
"LowerReturn",
"(",
"SDValue",
"Chain",
",",
"CallingConv",
"::",
"ID",
"CallConv",
",",
"bool",
"isVarArg",
",",
"const",
"SmallVectorImpl",
"<",
"ISD",
"::",
"OutputArg",
">",
"&",
"Outs",
",",
"const",
"SmallVectorImpl",
"<",
"SDValue",
">",
"&",
"OutVals",
",",
"DebugLoc",
"dl",
",",
"SelectionDAG",
"&",
"DAG",
")",
"const",
"{",
"SmallVector",
"<",
"CCValAssign",
",",
"16",
">",
"RVLocs",
";",
"if",
"(",
"CallConv",
"==",
"CallingConv",
"::",
"TLCS900_INTR",
"&&",
"!",
"Outs",
".",
"empty",
"(",
")",
")",
"report_fatal_error",
"(",
"\"ISRs cannot return any value\"",
")",
";",
"CCState",
"CCInfo",
"(",
"CallConv",
",",
"isVarArg",
",",
"DAG",
".",
"getMachineFunction",
"(",
")",
",",
"getTargetMachine",
"(",
")",
",",
"RVLocs",
",",
"*",
"DAG",
".",
"getContext",
"(",
")",
")",
";",
"CCInfo",
".",
"AnalyzeReturn",
"(",
"Outs",
",",
"RetCC_TLCS900",
")",
";",
"if",
"(",
"DAG",
".",
"getMachineFunction",
"(",
")",
".",
"getRegInfo",
"(",
")",
".",
"liveout_empty",
"(",
")",
")",
"{",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"!=",
"RVLocs",
".",
"size",
"(",
")",
";",
"++",
"i",
")",
"if",
"(",
"RVLocs",
"[",
"i",
"]",
".",
"isRegLoc",
"(",
")",
")",
"DAG",
".",
"getMachineFunction",
"(",
")",
".",
"getRegInfo",
"(",
")",
".",
"addLiveOut",
"(",
"RVLocs",
"[",
"i",
"]",
".",
"getLocReg",
"(",
")",
")",
";",
"}",
"SDValue",
"Flag",
";",
"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",
")",
";",
"}",
"unsigned",
"Opc",
"=",
"(",
"CallConv",
"==",
"CallingConv",
"::",
"TLCS900_INTR",
"?",
"TLCS900ISD",
"::",
"RETI_FLAG",
":",
"TLCS900ISD",
"::",
"RET_FLAG",
")",
";",
"if",
"(",
"Flag",
".",
"getNode",
"(",
")",
")",
"return",
"DAG",
".",
"getNode",
"(",
"Opc",
",",
"dl",
",",
"MVT",
"::",
"Other",
",",
"Chain",
",",
"Flag",
")",
";",
"return",
"DAG",
".",
"getNode",
"(",
"Opc",
",",
"dl",
",",
"MVT",
"::",
"Other",
",",
"Chain",
")",
";",
"}",
"</s>"
] | [
"This",
"hook",
"must",
"be",
"implemented",
"to",
"lower",
"outgoing",
"return",
"values",
",",
"described",
"by",
"the",
"Outs",
"array",
",",
"into",
"the",
"specified",
"DAG",
"."
] | [
"TLCS900",
"TLCS900",
"ISD::OutputArg",
"16",
"TLCS900",
"\"ISRs cannot return any value\"",
"TLCS900",
"0",
"0",
"\"Can only return in registers!\"",
"1",
"TLCS900",
"TLCS900ISD::RETI_FLAG",
"TLCS900ISD::RET_FLAG",
"MVT::Other",
"MVT::Other"
] | TLCS900ISelLowering | LowerReturn | TLCS900 | MPU | LLVM | 21,294 | 314 | 1 | [] |
[
"<s>",
"unsigned",
"assignCustomValue",
"(",
"const",
"CallLowering",
"::",
"ArgInfo",
"&",
"Arg",
",",
"ArrayRef",
"<",
"CCValAssign",
">",
"VAs",
")",
"override",
"{",
"CCValAssign",
"VA",
"=",
"VAs",
"[",
"0",
"]",
";",
"assert",
"(",
"VA",
".",
"needsCustom",
"(",
")",
"&&",
"\"Value doesn't need custom handling\"",
")",
";",
"assert",
"(",
"VA",
".",
"getValVT",
"(",
")",
"==",
"MVT",
"::",
"f64",
"&&",
"\"Unsupported type\"",
")",
";",
"CCValAssign",
"NextVA",
"=",
"VAs",
"[",
"1",
"]",
";",
"assert",
"(",
"NextVA",
".",
"needsCustom",
"(",
")",
"&&",
"\"Value doesn't need custom handling\"",
")",
";",
"assert",
"(",
"NextVA",
".",
"getValVT",
"(",
")",
"==",
"MVT",
"::",
"f64",
"&&",
"\"Unsupported type\"",
")",
";",
"assert",
"(",
"VA",
".",
"getValNo",
"(",
")",
"==",
"NextVA",
".",
"getValNo",
"(",
")",
"&&",
"\"Values belong to different arguments\"",
")",
";",
"assert",
"(",
"VA",
".",
"isRegLoc",
"(",
")",
"&&",
"\"Value should be in reg\"",
")",
";",
"assert",
"(",
"NextVA",
".",
"isRegLoc",
"(",
")",
"&&",
"\"Value should be in reg\"",
")",
";",
"unsigned",
"NewRegs",
"[",
"]",
"=",
"{",
"MRI",
".",
"createGenericVirtualRegister",
"(",
"LLT",
"::",
"scalar",
"(",
"32",
")",
")",
",",
"MRI",
".",
"createGenericVirtualRegister",
"(",
"LLT",
"::",
"scalar",
"(",
"32",
")",
")",
"}",
";",
"MIRBuilder",
".",
"buildExtract",
"(",
"NewRegs",
"[",
"0",
"]",
",",
"Arg",
".",
"Reg",
",",
"0",
")",
";",
"MIRBuilder",
".",
"buildExtract",
"(",
"NewRegs",
"[",
"1",
"]",
",",
"Arg",
".",
"Reg",
",",
"32",
")",
";",
"bool",
"IsLittle",
"=",
"MIRBuilder",
".",
"getMF",
"(",
")",
".",
"getSubtarget",
"<",
"ARMSubtarget",
">",
"(",
")",
".",
"isLittle",
"(",
")",
";",
"if",
"(",
"!",
"IsLittle",
")",
"std",
"::",
"swap",
"(",
"NewRegs",
"[",
"0",
"]",
",",
"NewRegs",
"[",
"1",
"]",
")",
";",
"assignValueToReg",
"(",
"NewRegs",
"[",
"0",
"]",
",",
"VA",
".",
"getLocReg",
"(",
")",
",",
"VA",
")",
";",
"assignValueToReg",
"(",
"NewRegs",
"[",
"1",
"]",
",",
"NextVA",
".",
"getLocReg",
"(",
")",
",",
"NextVA",
")",
";",
"return",
"1",
";",
"}",
"</s>"
] | [
"Handle",
"custom",
"values",
",",
"which",
"may",
"be",
"passed",
"into",
"one",
"or",
"more",
"of",
"VAs",
"."
] | [
"ARM",
"0",
"\"Value doesn't need custom handling\"",
"MVT::f64",
"\"Unsupported type\"",
"1",
"\"Value doesn't need custom handling\"",
"MVT::f64",
"\"Unsupported type\"",
"\"Values belong to different arguments\"",
"\"Value should be in reg\"",
"\"Value should be in reg\"",
"32",
"32",
"0",
"0",
"1",
"32",
"ARM",
"0",
"1",
"0",
"1",
"1"
] | ARMCallLowering34 | assignCustomValue | ARM | CPU | LLVM | 21,295 | 264 | 1 | [] |
[
"<s>",
"MachineBasicBlock",
"*",
"MSP430TargetLowering",
"::",
"EmitInstrWithCustomInserter",
"(",
"MachineInstr",
"*",
"MI",
",",
"MachineBasicBlock",
"*",
"BB",
",",
"DenseMap",
"<",
"MachineBasicBlock",
"*",
",",
"MachineBasicBlock",
"*",
">",
"*",
"EM",
")",
"const",
"{",
"unsigned",
"Opc",
"=",
"MI",
"->",
"getOpcode",
"(",
")",
";",
"if",
"(",
"Opc",
"==",
"MSP430",
"::",
"Shl8",
"||",
"Opc",
"==",
"MSP430",
"::",
"Shl16",
"||",
"Opc",
"==",
"MSP430",
"::",
"Sra8",
"||",
"Opc",
"==",
"MSP430",
"::",
"Sra16",
"||",
"Opc",
"==",
"MSP430",
"::",
"Srl8",
"||",
"Opc",
"==",
"MSP430",
"::",
"Srl16",
")",
"return",
"EmitShiftInstr",
"(",
"MI",
",",
"BB",
",",
"EM",
")",
";",
"const",
"TargetInstrInfo",
"&",
"TII",
"=",
"*",
"getTargetMachine",
"(",
")",
".",
"getInstrInfo",
"(",
")",
";",
"DebugLoc",
"dl",
"=",
"MI",
"->",
"getDebugLoc",
"(",
")",
";",
"assert",
"(",
"(",
"Opc",
"==",
"MSP430",
"::",
"Select16",
"||",
"Opc",
"==",
"MSP430",
"::",
"Select8",
")",
"&&",
"\"Unexpected instr type to insert\"",
")",
";",
"const",
"BasicBlock",
"*",
"LLVM_BB",
"=",
"BB",
"->",
"getBasicBlock",
"(",
")",
";",
"MachineFunction",
"::",
"iterator",
"I",
"=",
"BB",
";",
"++",
"I",
";",
"MachineBasicBlock",
"*",
"thisMBB",
"=",
"BB",
";",
"MachineFunction",
"*",
"F",
"=",
"BB",
"->",
"getParent",
"(",
")",
";",
"MachineBasicBlock",
"*",
"copy0MBB",
"=",
"F",
"->",
"CreateMachineBasicBlock",
"(",
"LLVM_BB",
")",
";",
"MachineBasicBlock",
"*",
"copy1MBB",
"=",
"F",
"->",
"CreateMachineBasicBlock",
"(",
"LLVM_BB",
")",
";",
"BuildMI",
"(",
"BB",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"MSP430",
"::",
"JCC",
")",
")",
".",
"addMBB",
"(",
"copy1MBB",
")",
".",
"addImm",
"(",
"MI",
"->",
"getOperand",
"(",
"3",
")",
".",
"getImm",
"(",
")",
")",
";",
"F",
"->",
"insert",
"(",
"I",
",",
"copy0MBB",
")",
";",
"F",
"->",
"insert",
"(",
"I",
",",
"copy1MBB",
")",
";",
"for",
"(",
"MachineBasicBlock",
"::",
"succ_iterator",
"SI",
"=",
"BB",
"->",
"succ_begin",
"(",
")",
",",
"SE",
"=",
"BB",
"->",
"succ_end",
"(",
")",
";",
"SI",
"!=",
"SE",
";",
"++",
"SI",
")",
"EM",
"->",
"insert",
"(",
"std",
"::",
"make_pair",
"(",
"*",
"SI",
",",
"copy1MBB",
")",
")",
";",
"copy1MBB",
"->",
"transferSuccessors",
"(",
"BB",
")",
";",
"BB",
"->",
"addSuccessor",
"(",
"copy0MBB",
")",
";",
"BB",
"->",
"addSuccessor",
"(",
"copy1MBB",
")",
";",
"BB",
"=",
"copy0MBB",
";",
"BB",
"->",
"addSuccessor",
"(",
"copy1MBB",
")",
";",
"BB",
"=",
"copy1MBB",
";",
"BuildMI",
"(",
"BB",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"MSP430",
"::",
"PHI",
")",
",",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
")",
".",
"addReg",
"(",
"MI",
"->",
"getOperand",
"(",
"2",
")",
".",
"getReg",
"(",
")",
")",
".",
"addMBB",
"(",
"copy0MBB",
")",
".",
"addReg",
"(",
"MI",
"->",
"getOperand",
"(",
"1",
")",
".",
"getReg",
"(",
")",
")",
".",
"addMBB",
"(",
"thisMBB",
")",
";",
"F",
"->",
"DeleteMachineInstr",
"(",
"MI",
")",
";",
"return",
"BB",
";",
"}",
"</s>"
] | [
"This",
"method",
"should",
"be",
"implemented",
"by",
"targets",
"that",
"mark",
"instructions",
"with",
"the",
"'usesCustomInserter",
"'",
"flag",
"."
] | [
"MSP430",
"MSP430",
"MSP430::Shl8",
"MSP430::Shl16",
"MSP430::Sra8",
"MSP430::Sra16",
"MSP430::Srl8",
"MSP430::Srl16",
"MSP430::Select16",
"MSP430::Select8",
"\"Unexpected instr type to insert\"",
"MSP430::JCC",
"3",
"MSP430::PHI",
"0",
"2",
"1"
] | MSP430ISelLowering39 | EmitInstrWithCustomInserter | MSP430 | MPU | LLVM | 21,296 | 393 | 1 | [] |
[
"<s>",
"static",
"void",
"frv_function_arg_advance",
"(",
"cumulative_args_t",
"cum_v",
",",
"machine_mode",
"mode",
",",
"const_tree",
"type",
"ATTRIBUTE_UNUSED",
",",
"bool",
"named",
")",
"{",
"CUMULATIVE_ARGS",
"*",
"cum",
"=",
"get_cumulative_args",
"(",
"cum_v",
")",
";",
"machine_mode",
"xmode",
"=",
"(",
"mode",
"==",
"BLKmode",
")",
"?",
"SImode",
":",
"mode",
";",
"int",
"bytes",
"=",
"GET_MODE_SIZE",
"(",
"xmode",
")",
";",
"int",
"words",
"=",
"(",
"bytes",
"+",
"UNITS_PER_WORD",
"-",
"1",
")",
"/",
"UNITS_PER_WORD",
";",
"int",
"arg_num",
"=",
"*",
"cum",
";",
"*",
"cum",
"=",
"arg_num",
"+",
"words",
";",
"if",
"(",
"TARGET_DEBUG_ARG",
")",
"fprintf",
"(",
"stderr",
",",
"\"function_adv: words = %2d, mode = %4s, named = %d, size = %3d\\n\"",
",",
"arg_num",
",",
"GET_MODE_NAME",
"(",
"mode",
")",
",",
"named",
",",
"words",
"*",
"UNITS_PER_WORD",
")",
";",
"}",
"</s>"
] | [
"A",
"C",
"statement",
"(",
"sans",
"semicolon",
")",
"to",
"update",
"the",
"summarizer",
"variable",
"CUM",
"to",
"advance",
"past",
"an",
"argument",
"in",
"the",
"argument",
"list",
".",
"The",
"values",
"MODE",
",",
"TYPE",
"and",
"NAMED",
"describe",
"that",
"argument",
".",
"Once",
"this",
"is",
"done",
",",
"the",
"variable",
"CUM",
"is",
"suitable",
"for",
"analyzing",
"the",
"*",
"following",
"*",
"argument",
"with",
"`",
"FUNCTION_ARG",
"'",
",",
"etc",
".",
"This",
"macro",
"need",
"not",
"do",
"anything",
"if",
"the",
"argument",
"in",
"question",
"was",
"passed",
"on",
"the",
"stack",
".",
"The",
"compiler",
"knows",
"how",
"to",
"track",
"the",
"amount",
"of",
"stack",
"space",
"used",
"for",
"arguments",
"without",
"any",
"special",
"help",
"."
] | [
"frv",
"1",
"\"function_adv: words = %2d, mode = %4s, named = %d, size = %3d\\n\""
] | frv3 | frv_function_arg_advance | frv | VLIW | GCC | 21,297 | 99 | 1 | [] |
[
"<s>",
"void",
"HexagonInstrInfo",
"::",
"storeRegToStackSlot",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"I",
",",
"unsigned",
"SrcReg",
",",
"bool",
"isKill",
",",
"int",
"FI",
",",
"const",
"TargetRegisterClass",
"*",
"RC",
",",
"const",
"TargetRegisterInfo",
"*",
"TRI",
")",
"const",
"{",
"DebugLoc",
"DL",
"=",
"MBB",
".",
"findDebugLoc",
"(",
"I",
")",
";",
"MachineFunction",
"&",
"MF",
"=",
"*",
"MBB",
".",
"getParent",
"(",
")",
";",
"MachineFrameInfo",
"&",
"MFI",
"=",
"*",
"MF",
".",
"getFrameInfo",
"(",
")",
";",
"unsigned",
"Align",
"=",
"MFI",
".",
"getObjectAlignment",
"(",
"FI",
")",
";",
"MachineMemOperand",
"*",
"MMO",
"=",
"MF",
".",
"getMachineMemOperand",
"(",
"MachinePointerInfo",
"(",
"PseudoSourceValue",
"::",
"getFixedStack",
"(",
"FI",
")",
")",
",",
"MachineMemOperand",
"::",
"MOStore",
",",
"MFI",
".",
"getObjectSize",
"(",
"FI",
")",
",",
"Align",
")",
";",
"if",
"(",
"Hexagon",
"::",
"IntRegsRegisterClass",
"->",
"hasSubClassEq",
"(",
"RC",
")",
")",
"{",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"Hexagon",
"::",
"STriw",
")",
")",
".",
"addFrameIndex",
"(",
"FI",
")",
".",
"addImm",
"(",
"0",
")",
".",
"addReg",
"(",
"SrcReg",
",",
"getKillRegState",
"(",
"isKill",
")",
")",
".",
"addMemOperand",
"(",
"MMO",
")",
";",
"}",
"else",
"if",
"(",
"Hexagon",
"::",
"DoubleRegsRegisterClass",
"->",
"hasSubClassEq",
"(",
"RC",
")",
")",
"{",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"Hexagon",
"::",
"STrid",
")",
")",
".",
"addFrameIndex",
"(",
"FI",
")",
".",
"addImm",
"(",
"0",
")",
".",
"addReg",
"(",
"SrcReg",
",",
"getKillRegState",
"(",
"isKill",
")",
")",
".",
"addMemOperand",
"(",
"MMO",
")",
";",
"}",
"else",
"if",
"(",
"Hexagon",
"::",
"PredRegsRegisterClass",
"->",
"hasSubClassEq",
"(",
"RC",
")",
")",
"{",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"Hexagon",
"::",
"STriw_pred",
")",
")",
".",
"addFrameIndex",
"(",
"FI",
")",
".",
"addImm",
"(",
"0",
")",
".",
"addReg",
"(",
"SrcReg",
",",
"getKillRegState",
"(",
"isKill",
")",
")",
".",
"addMemOperand",
"(",
"MMO",
")",
";",
"}",
"else",
"{",
"assert",
"(",
"0",
"&&",
"\"Unimplemented\"",
")",
";",
"}",
"}",
"</s>"
] | [
"Store",
"the",
"specified",
"register",
"of",
"the",
"given",
"register",
"class",
"to",
"the",
"specified",
"stack",
"frame",
"index",
"."
] | [
"Hexagon",
"Hexagon",
"Hexagon::IntRegsRegisterClass",
"Hexagon::STriw",
"0",
"Hexagon::DoubleRegsRegisterClass",
"Hexagon::STrid",
"0",
"Hexagon::PredRegsRegisterClass",
"Hexagon::STriw_pred",
"0",
"0",
"\"Unimplemented\""
] | HexagonInstrInfo57 | storeRegToStackSlot | Hexagon | DSP | LLVM | 21,298 | 284 | 1 | [] |
[
"<s>",
"SMRange",
"getLocRange",
"(",
")",
"const",
"{",
"return",
"SMRange",
"(",
"StartLoc",
",",
"EndLoc",
")",
";",
"}",
"</s>"
] | [
"getLocRange",
"-",
"Get",
"the",
"range",
"between",
"the",
"first",
"and",
"last",
"token",
"of",
"this",
"operand",
"."
] | [
"PowerPC"
] | PPCAsmParser (2)3 | getLocRange | PowerPC | CPU | LLVM | 21,299 | 15 | 1 | [] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.