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>",
"enum",
"machine_mode",
"m32c_regno_reg_class",
"(",
"int",
"regno",
")",
"{",
"switch",
"(",
"regno",
")",
"{",
"case",
"R0_REGNO",
":",
"return",
"R0_REGS",
";",
"case",
"R1_REGNO",
":",
"return",
"R1_REGS",
";",
"case",
"R2_REGNO",
":",
"return",
"R2_REGS",
";",
"case",
"R3_REGNO",
":",
"return",
"R3_REGS",
";",
"case",
"A0_REGNO",
":",
"case",
"A1_REGNO",
":",
"return",
"A_REGS",
";",
"case",
"SB_REGNO",
":",
"return",
"SB_REGS",
";",
"case",
"FB_REGNO",
":",
"return",
"FB_REGS",
";",
"case",
"SP_REGNO",
":",
"return",
"SP_REGS",
";",
"case",
"FLG_REGNO",
":",
"return",
"FLG_REGS",
";",
"default",
":",
"if",
"(",
"IS_MEM_REGNO",
"(",
"regno",
")",
")",
"return",
"MEM_REGS",
";",
"return",
"ALL_REGS",
";",
"}",
"}",
"</s>"
] | [
"Implements",
"REGNO_REG_CLASS",
"."
] | [
"m32c"
] | m32c2 | m32c_regno_reg_class | m32c | MPU | GCC | 30,300 | 87 | 1 | [] |
[
"<s>",
"static",
"HOST_WIDE_INT",
"arm_constant_alignment",
"(",
"const_tree",
"exp",
",",
"HOST_WIDE_INT",
"align",
")",
"{",
"unsigned",
"int",
"factor",
"=",
"(",
"TARGET_THUMB",
"||",
"!",
"arm_tune_xscale",
"?",
"1",
":",
"2",
")",
";",
"if",
"(",
"TREE_CODE",
"(",
"exp",
")",
"==",
"STRING_CST",
"&&",
"!",
"optimize_size",
")",
"return",
"MAX",
"(",
"align",
",",
"BITS_PER_WORD",
"*",
"factor",
")",
";",
"return",
"align",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_CONSTANT_ALIGNMENT",
".",
"Make",
"strings",
"word-aligned",
"so",
"strcpy",
"from",
"constants",
"will",
"be",
"faster",
"."
] | [
"arm",
"1",
"2"
] | arm | arm_constant_alignment | arm | CPU | GCC | 30,301 | 52 | 1 | [] |
[
"<s>",
"unsigned",
"NVPTXInstrInfo",
"::",
"insertBranch",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"*",
"TBB",
",",
"MachineBasicBlock",
"*",
"FBB",
",",
"ArrayRef",
"<",
"MachineOperand",
">",
"Cond",
",",
"const",
"DebugLoc",
"&",
"DL",
",",
"int",
"*",
"BytesAdded",
")",
"const",
"{",
"assert",
"(",
"!",
"BytesAdded",
"&&",
"\"code size not handled\"",
")",
";",
"assert",
"(",
"TBB",
"&&",
"\"insertBranch must not be told to insert a fallthrough\"",
")",
";",
"assert",
"(",
"(",
"Cond",
".",
"size",
"(",
")",
"==",
"1",
"||",
"Cond",
".",
"size",
"(",
")",
"==",
"0",
")",
"&&",
"\"NVPTX branch conditions have two components!\"",
")",
";",
"if",
"(",
"!",
"FBB",
")",
"{",
"if",
"(",
"Cond",
".",
"empty",
"(",
")",
")",
"BuildMI",
"(",
"&",
"MBB",
",",
"DL",
",",
"get",
"(",
"NVPTX",
"::",
"GOTO",
")",
")",
".",
"addMBB",
"(",
"TBB",
")",
";",
"else",
"BuildMI",
"(",
"&",
"MBB",
",",
"DL",
",",
"get",
"(",
"NVPTX",
"::",
"CBranch",
")",
")",
".",
"add",
"(",
"Cond",
"[",
"0",
"]",
")",
".",
"addMBB",
"(",
"TBB",
")",
";",
"return",
"1",
";",
"}",
"BuildMI",
"(",
"&",
"MBB",
",",
"DL",
",",
"get",
"(",
"NVPTX",
"::",
"CBranch",
")",
")",
".",
"add",
"(",
"Cond",
"[",
"0",
"]",
")",
".",
"addMBB",
"(",
"TBB",
")",
";",
"BuildMI",
"(",
"&",
"MBB",
",",
"DL",
",",
"get",
"(",
"NVPTX",
"::",
"GOTO",
")",
")",
".",
"addMBB",
"(",
"FBB",
")",
";",
"return",
"2",
";",
"}",
"</s>"
] | [
"Insert",
"branch",
"code",
"into",
"the",
"end",
"of",
"the",
"specified",
"MachineBasicBlock",
"."
] | [
"NVPTX",
"NVPTX",
"\"code size not handled\"",
"\"insertBranch must not be told to insert a fallthrough\"",
"1",
"0",
"\"NVPTX branch conditions have two components!\"",
"NVPTX::GOTO",
"NVPTX::CBranch",
"0",
"1",
"NVPTX::CBranch",
"0",
"NVPTX::GOTO",
"2"
] | NVPTXInstrInfo17 | insertBranch | NVPTX | GPU | LLVM | 30,302 | 191 | 1 | [] |
[
"<s>",
"static",
"void",
"ix86_conditional_register_usage",
"(",
"void",
")",
"{",
"int",
"i",
",",
"c_mask",
";",
"if",
"(",
"cfun",
"&&",
"cfun",
"->",
"machine",
"->",
"no_caller_saved_registers",
")",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"FIRST_PSEUDO_REGISTER",
";",
"i",
"++",
")",
"if",
"(",
"!",
"fixed_regs",
"[",
"i",
"]",
"&&",
"!",
"ix86_function_value_regno_p",
"(",
"i",
")",
")",
"call_used_regs",
"[",
"i",
"]",
"=",
"0",
";",
"if",
"(",
"!",
"TARGET_64BIT",
")",
"{",
"for",
"(",
"i",
"=",
"FIRST_REX_INT_REG",
";",
"i",
"<=",
"LAST_REX_INT_REG",
";",
"i",
"++",
")",
"CLEAR_HARD_REG_BIT",
"(",
"accessible_reg_set",
",",
"i",
")",
";",
"for",
"(",
"i",
"=",
"FIRST_REX_SSE_REG",
";",
"i",
"<=",
"LAST_REX_SSE_REG",
";",
"i",
"++",
")",
"CLEAR_HARD_REG_BIT",
"(",
"accessible_reg_set",
",",
"i",
")",
";",
"for",
"(",
"i",
"=",
"FIRST_EXT_REX_SSE_REG",
";",
"i",
"<=",
"LAST_EXT_REX_SSE_REG",
";",
"i",
"++",
")",
"CLEAR_HARD_REG_BIT",
"(",
"accessible_reg_set",
",",
"i",
")",
";",
"}",
"c_mask",
"=",
"CALL_USED_REGISTERS_MASK",
"(",
"TARGET_64BIT_MS_ABI",
")",
";",
"CLEAR_HARD_REG_SET",
"(",
"reg_class_contents",
"[",
"(",
"int",
")",
"CLOBBERED_REGS",
"]",
")",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"FIRST_PSEUDO_REGISTER",
";",
"i",
"++",
")",
"{",
"if",
"(",
"call_used_regs",
"[",
"i",
"]",
">",
"1",
")",
"call_used_regs",
"[",
"i",
"]",
"=",
"!",
"!",
"(",
"call_used_regs",
"[",
"i",
"]",
"&",
"c_mask",
")",
";",
"if",
"(",
"TEST_HARD_REG_BIT",
"(",
"reg_class_contents",
"[",
"(",
"int",
")",
"GENERAL_REGS",
"]",
",",
"i",
")",
"&&",
"call_used_regs",
"[",
"i",
"]",
")",
"SET_HARD_REG_BIT",
"(",
"reg_class_contents",
"[",
"(",
"int",
")",
"CLOBBERED_REGS",
"]",
",",
"i",
")",
";",
"}",
"if",
"(",
"!",
"TARGET_MMX",
")",
"accessible_reg_set",
"&=",
"~",
"reg_class_contents",
"[",
"MMX_REGS",
"]",
";",
"if",
"(",
"!",
"TARGET_SSE",
")",
"accessible_reg_set",
"&=",
"~",
"reg_class_contents",
"[",
"ALL_SSE_REGS",
"]",
";",
"if",
"(",
"!",
"(",
"TARGET_80387",
"||",
"TARGET_FLOAT_RETURNS_IN_80387",
")",
")",
"accessible_reg_set",
"&=",
"~",
"reg_class_contents",
"[",
"FLOAT_REGS",
"]",
";",
"if",
"(",
"!",
"TARGET_AVX512F",
")",
"{",
"for",
"(",
"i",
"=",
"FIRST_EXT_REX_SSE_REG",
";",
"i",
"<=",
"LAST_EXT_REX_SSE_REG",
";",
"i",
"++",
")",
"CLEAR_HARD_REG_BIT",
"(",
"accessible_reg_set",
",",
"i",
")",
";",
"accessible_reg_set",
"&=",
"~",
"reg_class_contents",
"[",
"ALL_MASK_REGS",
"]",
";",
"}",
"}",
"</s>"
] | [
"Update",
"register",
"usage",
"after",
"having",
"seen",
"the",
"compiler",
"flags",
"."
] | [
"i386",
"0",
"0",
"0",
"1"
] | i386 | ix86_conditional_register_usage | i386 | CPU | GCC | 30,303 | 293 | 1 | [] |
[
"<s>",
"const",
"MCSection",
"*",
"XCoreTargetObjectFile",
"::",
"getExplicitSectionGlobal",
"(",
"const",
"GlobalValue",
"*",
"GV",
",",
"SectionKind",
"Kind",
",",
"Mangler",
"&",
"Mang",
",",
"const",
"TargetMachine",
"&",
"TM",
")",
"const",
"{",
"StringRef",
"SectionName",
"=",
"GV",
"->",
"getSection",
"(",
")",
";",
"bool",
"IsCPRel",
"=",
"SectionName",
".",
"startswith",
"(",
"\".cp.\"",
")",
";",
"if",
"(",
"IsCPRel",
"&&",
"!",
"Kind",
".",
"isReadOnly",
"(",
")",
")",
"report_fatal_error",
"(",
"\"Using .cp. section for writeable object.\"",
")",
";",
"return",
"getContext",
"(",
")",
".",
"getELFSection",
"(",
"SectionName",
",",
"getXCoreSectionType",
"(",
"Kind",
")",
",",
"getXCoreSectionFlags",
"(",
"Kind",
",",
"IsCPRel",
")",
",",
"Kind",
")",
";",
"}",
"</s>"
] | [
"Targets",
"should",
"implement",
"this",
"method",
"to",
"assign",
"a",
"section",
"to",
"globals",
"with",
"an",
"explicit",
"section",
"specfied",
"."
] | [
"XCore",
"XCore",
"\".cp.\"",
"\"Using .cp. section for writeable object.\"",
"XCore",
"XCore"
] | XCoreTargetObjectFile | getExplicitSectionGlobal | XCore | MPU | LLVM | 30,304 | 86 | 1 | [] |
[
"<s>",
"void",
"AVRInstrInfo",
"::",
"insertIndirectBranch",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"&",
"NewDestBB",
",",
"MachineBasicBlock",
"&",
"RestoreBB",
",",
"const",
"DebugLoc",
"&",
"DL",
",",
"int64_t",
"BrOffset",
",",
"RegScavenger",
"*",
"RS",
")",
"const",
"{",
"BuildMI",
"(",
"&",
"MBB",
",",
"DL",
",",
"get",
"(",
"AVR",
"::",
"JMPk",
")",
")",
".",
"addMBB",
"(",
"&",
"NewDestBB",
")",
";",
"}",
"</s>"
] | [
"Insert",
"an",
"unconditional",
"indirect",
"branch",
"at",
"the",
"end",
"of",
"MBB",
"to",
"NewDestBB",
"."
] | [
"AVR",
"AVR",
"AVR::JMPk"
] | AVRInstrInfo21 | insertIndirectBranch | AVR | MPU | LLVM | 30,305 | 53 | 1 | [] |
[
"<s>",
"void",
"SNESTargetObjectFile",
"::",
"Initialize",
"(",
"MCContext",
"&",
"Ctx",
",",
"const",
"TargetMachine",
"&",
"TM",
")",
"{",
"Base",
"::",
"Initialize",
"(",
"Ctx",
",",
"TM",
")",
";",
"}",
"</s>"
] | [
"This",
"method",
"must",
"be",
"called",
"before",
"any",
"actual",
"lowering",
"is",
"done",
"."
] | [
"SNES",
"SNES"
] | SNESTargetObjectFile | Initialize | SNES | DSP | LLVM | 30,306 | 25 | 1 | [] |
[
"<s>",
"static",
"void",
"frv_frame_access",
"(",
"frv_frame_accessor_t",
"*",
"accessor",
",",
"rtx",
"reg",
",",
"int",
"stack_offset",
")",
"{",
"machine_mode",
"mode",
"=",
"GET_MODE",
"(",
"reg",
")",
";",
"rtx",
"mem",
"=",
"frv_frame_mem",
"(",
"mode",
",",
"accessor",
"->",
"base",
",",
"stack_offset",
"-",
"accessor",
"->",
"base_offset",
")",
";",
"if",
"(",
"accessor",
"->",
"op",
"==",
"FRV_LOAD",
")",
"{",
"if",
"(",
"SPR_P",
"(",
"REGNO",
"(",
"reg",
")",
")",
")",
"{",
"rtx",
"temp",
"=",
"gen_rtx_REG",
"(",
"mode",
",",
"TEMP_REGNO",
")",
";",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"temp",
",",
"mem",
")",
")",
";",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"reg",
",",
"temp",
")",
")",
";",
"}",
"else",
"{",
"if",
"(",
"mode",
"==",
"DImode",
"&&",
"GET_CODE",
"(",
"XEXP",
"(",
"mem",
",",
"0",
")",
")",
"==",
"PLUS",
"&&",
"GET_CODE",
"(",
"XEXP",
"(",
"XEXP",
"(",
"mem",
",",
"0",
")",
",",
"0",
")",
")",
"==",
"REG",
"&&",
"GET_CODE",
"(",
"XEXP",
"(",
"XEXP",
"(",
"mem",
",",
"0",
")",
",",
"1",
")",
")",
"==",
"REG",
")",
"{",
"rtx",
"temp",
"=",
"gen_rtx_REG",
"(",
"SImode",
",",
"TEMP_REGNO",
")",
";",
"emit_move_insn",
"(",
"temp",
",",
"gen_rtx_PLUS",
"(",
"SImode",
",",
"XEXP",
"(",
"XEXP",
"(",
"mem",
",",
"0",
")",
",",
"0",
")",
",",
"XEXP",
"(",
"XEXP",
"(",
"mem",
",",
"0",
")",
",",
"1",
")",
")",
")",
";",
"mem",
"=",
"gen_rtx_MEM",
"(",
"DImode",
",",
"temp",
")",
";",
"}",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"reg",
",",
"mem",
")",
")",
";",
"}",
"emit_use",
"(",
"reg",
")",
";",
"}",
"else",
"{",
"if",
"(",
"SPR_P",
"(",
"REGNO",
"(",
"reg",
")",
")",
")",
"{",
"rtx",
"temp",
"=",
"gen_rtx_REG",
"(",
"mode",
",",
"TEMP_REGNO",
")",
";",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"temp",
",",
"reg",
")",
")",
";",
"frv_frame_insn",
"(",
"gen_rtx_SET",
"(",
"mem",
",",
"temp",
")",
",",
"frv_dwarf_store",
"(",
"reg",
",",
"stack_offset",
")",
")",
";",
"}",
"else",
"if",
"(",
"mode",
"==",
"DImode",
")",
"{",
"rtx",
"reg1",
"=",
"gen_rtx_REG",
"(",
"SImode",
",",
"REGNO",
"(",
"reg",
")",
")",
";",
"rtx",
"reg2",
"=",
"gen_rtx_REG",
"(",
"SImode",
",",
"REGNO",
"(",
"reg",
")",
"+",
"1",
")",
";",
"rtx",
"set1",
"=",
"frv_dwarf_store",
"(",
"reg1",
",",
"stack_offset",
")",
";",
"rtx",
"set2",
"=",
"frv_dwarf_store",
"(",
"reg2",
",",
"stack_offset",
"+",
"4",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"XEXP",
"(",
"mem",
",",
"0",
")",
")",
"==",
"PLUS",
"&&",
"GET_CODE",
"(",
"XEXP",
"(",
"XEXP",
"(",
"mem",
",",
"0",
")",
",",
"0",
")",
")",
"==",
"REG",
"&&",
"GET_CODE",
"(",
"XEXP",
"(",
"XEXP",
"(",
"mem",
",",
"0",
")",
",",
"1",
")",
")",
"==",
"REG",
")",
"{",
"rtx",
"temp",
"=",
"gen_rtx_REG",
"(",
"SImode",
",",
"TEMP_REGNO",
")",
";",
"emit_move_insn",
"(",
"temp",
",",
"gen_rtx_PLUS",
"(",
"SImode",
",",
"XEXP",
"(",
"XEXP",
"(",
"mem",
",",
"0",
")",
",",
"0",
")",
",",
"XEXP",
"(",
"XEXP",
"(",
"mem",
",",
"0",
")",
",",
"1",
")",
")",
")",
";",
"mem",
"=",
"gen_rtx_MEM",
"(",
"DImode",
",",
"temp",
")",
";",
"}",
"frv_frame_insn",
"(",
"gen_rtx_SET",
"(",
"mem",
",",
"reg",
")",
",",
"gen_rtx_PARALLEL",
"(",
"VOIDmode",
",",
"gen_rtvec",
"(",
"2",
",",
"set1",
",",
"set2",
")",
")",
")",
";",
"}",
"else",
"frv_frame_insn",
"(",
"gen_rtx_SET",
"(",
"mem",
",",
"reg",
")",
",",
"frv_dwarf_store",
"(",
"reg",
",",
"stack_offset",
")",
")",
";",
"}",
"}",
"</s>"
] | [
"Emit",
"instructions",
"that",
"transfer",
"REG",
"to",
"or",
"from",
"the",
"memory",
"location",
"(",
"sp",
"+",
"STACK_OFFSET",
")",
".",
"The",
"register",
"is",
"stored",
"in",
"memory",
"if",
"ACCESSOR-",
">",
"OP",
"is",
"FRV_STORE",
"and",
"loaded",
"if",
"it",
"is",
"FRV_LOAD",
".",
"Only",
"the",
"prologue",
"uses",
"this",
"function",
"to",
"store",
"registers",
"and",
"only",
"the",
"epilogue",
"uses",
"it",
"to",
"load",
"them",
".",
"The",
"caller",
"sets",
"up",
"ACCESSOR",
"so",
"that",
"BASE",
"is",
"equal",
"to",
"(",
"sp",
"+",
"BASE_OFFSET",
")",
".",
"The",
"generated",
"instruction",
"will",
"use",
"BASE",
"as",
"its",
"base",
"register",
".",
"BASE",
"may",
"simply",
"be",
"the",
"stack",
"pointer",
",",
"but",
"if",
"several",
"accesses",
"are",
"being",
"made",
"to",
"a",
"region",
"far",
"away",
"from",
"the",
"stack",
"pointer",
",",
"it",
"may",
"be",
"more",
"efficient",
"to",
"set",
"up",
"a",
"temporary",
"instead",
".",
"Store",
"instructions",
"will",
"be",
"frame-related",
"and",
"will",
"be",
"annotated",
"with",
"the",
"overall",
"effect",
"of",
"the",
"store",
".",
"Load",
"instructions",
"will",
"be",
"followed",
"by",
"a",
"(",
"use",
")",
"to",
"prevent",
"later",
"optimizations",
"from",
"zapping",
"them",
".",
"The",
"function",
"takes",
"care",
"of",
"the",
"moves",
"to",
"and",
"from",
"SPRs",
",",
"using",
"TEMP_REGNO",
"as",
"a",
"temporary",
"in",
"such",
"cases",
"."
] | [
"frv",
"0",
"0",
"0",
"0",
"1",
"0",
"0",
"0",
"1",
"1",
"4",
"0",
"0",
"0",
"0",
"1",
"0",
"0",
"0",
"1",
"2"
] | frv | frv_frame_access | frv | VLIW | GCC | 30,307 | 475 | 1 | [] |
[
"<s>",
"static",
"bool",
"arm_assemble_integer",
"(",
"rtx",
"x",
",",
"unsigned",
"int",
"size",
",",
"int",
"aligned_p",
")",
"{",
"machine_mode",
"mode",
";",
"if",
"(",
"size",
"==",
"UNITS_PER_WORD",
"&&",
"aligned_p",
")",
"{",
"fputs",
"(",
"\"\\t.word\\t\"",
",",
"asm_out_file",
")",
";",
"output_addr_const",
"(",
"asm_out_file",
",",
"x",
")",
";",
"if",
"(",
"NEED_GOT_RELOC",
"&&",
"flag_pic",
"&&",
"making_const_table",
"&&",
"(",
"SYMBOL_REF_P",
"(",
"x",
")",
"||",
"LABEL_REF_P",
"(",
"x",
")",
")",
")",
"{",
"if",
"(",
"!",
"arm_pic_data_is_text_relative",
"||",
"(",
"SYMBOL_REF_P",
"(",
"x",
")",
"&&",
"(",
"!",
"SYMBOL_REF_LOCAL_P",
"(",
"x",
")",
"||",
"(",
"SYMBOL_REF_DECL",
"(",
"x",
")",
"?",
"DECL_WEAK",
"(",
"SYMBOL_REF_DECL",
"(",
"x",
")",
")",
":",
"0",
")",
"||",
"(",
"SYMBOL_REF_FUNCTION_P",
"(",
"x",
")",
"&&",
"!",
"arm_fdpic_local_funcdesc_p",
"(",
"x",
")",
")",
")",
")",
")",
"{",
"if",
"(",
"TARGET_FDPIC",
"&&",
"SYMBOL_REF_FUNCTION_P",
"(",
"x",
")",
")",
"fputs",
"(",
"\"(GOTFUNCDESC)\"",
",",
"asm_out_file",
")",
";",
"else",
"fputs",
"(",
"\"(GOT)\"",
",",
"asm_out_file",
")",
";",
"}",
"else",
"{",
"if",
"(",
"TARGET_FDPIC",
"&&",
"SYMBOL_REF_FUNCTION_P",
"(",
"x",
")",
")",
"fputs",
"(",
"\"(GOTOFFFUNCDESC)\"",
",",
"asm_out_file",
")",
";",
"else",
"{",
"bool",
"is_readonly",
";",
"if",
"(",
"!",
"TARGET_FDPIC",
"||",
"arm_is_segment_info_known",
"(",
"x",
",",
"&",
"is_readonly",
")",
")",
"fputs",
"(",
"\"(GOTOFF)\"",
",",
"asm_out_file",
")",
";",
"else",
"fputs",
"(",
"\"(GOT)\"",
",",
"asm_out_file",
")",
";",
"}",
"}",
"}",
"if",
"(",
"TARGET_FDPIC",
"&&",
"!",
"making_const_table",
"&&",
"SYMBOL_REF_P",
"(",
"x",
")",
"&&",
"SYMBOL_REF_FUNCTION_P",
"(",
"x",
")",
")",
"fputs",
"(",
"\"(FUNCDESC)\"",
",",
"asm_out_file",
")",
";",
"fputc",
"(",
"'\\n'",
",",
"asm_out_file",
")",
";",
"return",
"true",
";",
"}",
"mode",
"=",
"GET_MODE",
"(",
"x",
")",
";",
"if",
"(",
"arm_vector_mode_supported_p",
"(",
"mode",
")",
")",
"{",
"int",
"i",
",",
"units",
";",
"gcc_assert",
"(",
"GET_CODE",
"(",
"x",
")",
"==",
"CONST_VECTOR",
")",
";",
"units",
"=",
"CONST_VECTOR_NUNITS",
"(",
"x",
")",
";",
"size",
"=",
"GET_MODE_UNIT_SIZE",
"(",
"mode",
")",
";",
"if",
"(",
"GET_MODE_CLASS",
"(",
"mode",
")",
"==",
"MODE_VECTOR_INT",
")",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"units",
";",
"i",
"++",
")",
"{",
"rtx",
"elt",
"=",
"CONST_VECTOR_ELT",
"(",
"x",
",",
"i",
")",
";",
"assemble_integer",
"(",
"elt",
",",
"size",
",",
"i",
"==",
"0",
"?",
"BIGGEST_ALIGNMENT",
":",
"size",
"*",
"BITS_PER_UNIT",
",",
"1",
")",
";",
"}",
"else",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"units",
";",
"i",
"++",
")",
"{",
"rtx",
"elt",
"=",
"CONST_VECTOR_ELT",
"(",
"x",
",",
"i",
")",
";",
"assemble_real",
"(",
"*",
"CONST_DOUBLE_REAL_VALUE",
"(",
"elt",
")",
",",
"as_a",
"<",
"scalar_float_mode",
">",
"(",
"GET_MODE_INNER",
"(",
"mode",
")",
")",
",",
"i",
"==",
"0",
"?",
"BIGGEST_ALIGNMENT",
":",
"size",
"*",
"BITS_PER_UNIT",
")",
";",
"}",
"return",
"true",
";",
"}",
"return",
"default_assemble_integer",
"(",
"x",
",",
"size",
",",
"aligned_p",
")",
";",
"}",
"</s>"
] | [
"Target",
"hook",
"for",
"assembling",
"integer",
"objects",
".",
"The",
"ARM",
"version",
"needs",
"to",
"handle",
"word-sized",
"values",
"specially",
"."
] | [
"arm",
"\"\\t.word\\t\"",
"0",
"\"(GOTFUNCDESC)\"",
"\"(GOT)\"",
"\"(GOTOFFFUNCDESC)\"",
"\"(GOTOFF)\"",
"\"(GOT)\"",
"\"(FUNCDESC)\"",
"0",
"0",
"1",
"0",
"0"
] | arm | arm_assemble_integer | arm | CPU | GCC | 30,308 | 395 | 1 | [] |
[
"<s>",
"static",
"bool",
"mips_vector_mode_supported_p",
"(",
"machine_mode",
"mode",
")",
"{",
"switch",
"(",
"mode",
")",
"{",
"case",
"E_V2SFmode",
":",
"return",
"TARGET_PAIRED_SINGLE_FLOAT",
";",
"case",
"E_V2HImode",
":",
"case",
"E_V4QImode",
":",
"case",
"E_V2HQmode",
":",
"case",
"E_V2UHQmode",
":",
"case",
"E_V2HAmode",
":",
"case",
"E_V2UHAmode",
":",
"case",
"E_V4QQmode",
":",
"case",
"E_V4UQQmode",
":",
"return",
"TARGET_DSP",
";",
"case",
"E_V2SImode",
":",
"case",
"E_V4HImode",
":",
"case",
"E_V8QImode",
":",
"return",
"TARGET_LOONGSON_VECTORS",
";",
"default",
":",
"return",
"MSA_SUPPORTED_MODE_P",
"(",
"mode",
")",
";",
"}",
"}",
"</s>"
] | [
"Target",
"hook",
"for",
"vector_mode_supported_p",
"."
] | [
"mips"
] | mips7 | mips_vector_mode_supported_p | mips | CPU | GCC | 30,309 | 68 | 1 | [] |
[
"<s>",
"void",
"MipsRegisterInfo",
"::",
"eliminateFrameIndex",
"(",
"MachineBasicBlock",
"::",
"iterator",
"II",
",",
"int",
"SPAdj",
",",
"unsigned",
"FIOperandNum",
",",
"RegScavenger",
"*",
"RS",
")",
"const",
"{",
"MachineInstr",
"&",
"MI",
"=",
"*",
"II",
";",
"MachineFunction",
"&",
"MF",
"=",
"*",
"MI",
".",
"getParent",
"(",
")",
"->",
"getParent",
"(",
")",
";",
"LLVM_DEBUG",
"(",
"errs",
"(",
")",
"<<",
"\"\\nFunction : \"",
"<<",
"MF",
".",
"getName",
"(",
")",
"<<",
"\"\\n\"",
";",
"errs",
"(",
")",
"<<",
"\"<--------->\\n\"",
"<<",
"MI",
")",
";",
"int",
"FrameIndex",
"=",
"MI",
".",
"getOperand",
"(",
"FIOperandNum",
")",
".",
"getIndex",
"(",
")",
";",
"uint64_t",
"stackSize",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
".",
"getStackSize",
"(",
")",
";",
"int64_t",
"spOffset",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
".",
"getObjectOffset",
"(",
"FrameIndex",
")",
";",
"LLVM_DEBUG",
"(",
"errs",
"(",
")",
"<<",
"\"FrameIndex : \"",
"<<",
"FrameIndex",
"<<",
"\"\\n\"",
"<<",
"\"spOffset : \"",
"<<",
"spOffset",
"<<",
"\"\\n\"",
"<<",
"\"stackSize : \"",
"<<",
"stackSize",
"<<",
"\"\\n\"",
"<<",
"\"alignment : \"",
"<<",
"MF",
".",
"getFrameInfo",
"(",
")",
".",
"getObjectAlignment",
"(",
"FrameIndex",
")",
"<<",
"\"\\n\"",
")",
";",
"eliminateFI",
"(",
"MI",
",",
"FIOperandNum",
",",
"FrameIndex",
",",
"stackSize",
",",
"spOffset",
")",
";",
"}",
"</s>"
] | [
"This",
"method",
"must",
"be",
"overriden",
"to",
"eliminate",
"abstract",
"frame",
"indices",
"from",
"instructions",
"which",
"may",
"use",
"them",
"."
] | [
"Mips",
"Mips",
"\"\\nFunction : \"",
"\"\\n\"",
"\"<--------->\\n\"",
"\"FrameIndex : \"",
"\"\\n\"",
"\"spOffset : \"",
"\"\\n\"",
"\"stackSize : \"",
"\"\\n\"",
"\"alignment : \"",
"\"\\n\""
] | MipsRegisterInfo29 | eliminateFrameIndex | Mips | CPU | LLVM | 30,310 | 164 | 1 | [] |
[
"<s>",
"bool",
"X86InstrInfo",
"::",
"expandPostRAPseudo",
"(",
"MachineBasicBlock",
"::",
"iterator",
"MI",
")",
"const",
"{",
"bool",
"HasAVX",
"=",
"Subtarget",
".",
"hasAVX",
"(",
")",
";",
"MachineInstrBuilder",
"MIB",
"(",
"*",
"MI",
"->",
"getParent",
"(",
")",
"->",
"getParent",
"(",
")",
",",
"MI",
")",
";",
"switch",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
"{",
"case",
"X86",
"::",
"MOV32r0",
":",
"return",
"Expand2AddrUndef",
"(",
"MIB",
",",
"get",
"(",
"X86",
"::",
"XOR32rr",
")",
")",
";",
"case",
"X86",
"::",
"MOV32r1",
":",
"return",
"expandMOV32r1",
"(",
"MIB",
",",
"*",
"this",
",",
"false",
")",
";",
"case",
"X86",
"::",
"MOV32r_1",
":",
"return",
"expandMOV32r1",
"(",
"MIB",
",",
"*",
"this",
",",
"true",
")",
";",
"case",
"X86",
"::",
"SETB_C8r",
":",
"return",
"Expand2AddrUndef",
"(",
"MIB",
",",
"get",
"(",
"X86",
"::",
"SBB8rr",
")",
")",
";",
"case",
"X86",
"::",
"SETB_C16r",
":",
"return",
"Expand2AddrUndef",
"(",
"MIB",
",",
"get",
"(",
"X86",
"::",
"SBB16rr",
")",
")",
";",
"case",
"X86",
"::",
"SETB_C32r",
":",
"return",
"Expand2AddrUndef",
"(",
"MIB",
",",
"get",
"(",
"X86",
"::",
"SBB32rr",
")",
")",
";",
"case",
"X86",
"::",
"SETB_C64r",
":",
"return",
"Expand2AddrUndef",
"(",
"MIB",
",",
"get",
"(",
"X86",
"::",
"SBB64rr",
")",
")",
";",
"case",
"X86",
"::",
"V_SET0",
":",
"case",
"X86",
"::",
"FsFLD0SS",
":",
"case",
"X86",
"::",
"FsFLD0SD",
":",
"return",
"Expand2AddrUndef",
"(",
"MIB",
",",
"get",
"(",
"HasAVX",
"?",
"X86",
"::",
"VXORPSrr",
":",
"X86",
"::",
"XORPSrr",
")",
")",
";",
"case",
"X86",
"::",
"AVX_SET0",
":",
"assert",
"(",
"HasAVX",
"&&",
"\"AVX not supported\"",
")",
";",
"return",
"Expand2AddrUndef",
"(",
"MIB",
",",
"get",
"(",
"X86",
"::",
"VXORPSYrr",
")",
")",
";",
"case",
"X86",
"::",
"AVX512_512_SET0",
":",
"return",
"Expand2AddrUndef",
"(",
"MIB",
",",
"get",
"(",
"X86",
"::",
"VPXORDZrr",
")",
")",
";",
"case",
"X86",
"::",
"V_SETALLONES",
":",
"return",
"Expand2AddrUndef",
"(",
"MIB",
",",
"get",
"(",
"HasAVX",
"?",
"X86",
"::",
"VPCMPEQDrr",
":",
"X86",
"::",
"PCMPEQDrr",
")",
")",
";",
"case",
"X86",
"::",
"AVX2_SETALLONES",
":",
"return",
"Expand2AddrUndef",
"(",
"MIB",
",",
"get",
"(",
"X86",
"::",
"VPCMPEQDYrr",
")",
")",
";",
"case",
"X86",
"::",
"TEST8ri_NOREX",
":",
"MI",
"->",
"setDesc",
"(",
"get",
"(",
"X86",
"::",
"TEST8ri",
")",
")",
";",
"return",
"true",
";",
"case",
"X86",
"::",
"MOV32ri64",
":",
"MI",
"->",
"setDesc",
"(",
"get",
"(",
"X86",
"::",
"MOV32ri",
")",
")",
";",
"return",
"true",
";",
"case",
"X86",
"::",
"KSET0B",
":",
"case",
"X86",
"::",
"KSET0W",
":",
"return",
"Expand2AddrKreg",
"(",
"MIB",
",",
"get",
"(",
"X86",
"::",
"KXORWrr",
")",
",",
"X86",
"::",
"K0",
")",
";",
"case",
"X86",
"::",
"KSET0D",
":",
"return",
"Expand2AddrKreg",
"(",
"MIB",
",",
"get",
"(",
"X86",
"::",
"KXORDrr",
")",
",",
"X86",
"::",
"K0",
")",
";",
"case",
"X86",
"::",
"KSET0Q",
":",
"return",
"Expand2AddrKreg",
"(",
"MIB",
",",
"get",
"(",
"X86",
"::",
"KXORQrr",
")",
",",
"X86",
"::",
"K0",
")",
";",
"case",
"X86",
"::",
"KSET1B",
":",
"case",
"X86",
"::",
"KSET1W",
":",
"return",
"Expand2AddrKreg",
"(",
"MIB",
",",
"get",
"(",
"X86",
"::",
"KXNORWrr",
")",
",",
"X86",
"::",
"K0",
")",
";",
"case",
"X86",
"::",
"KSET1D",
":",
"return",
"Expand2AddrKreg",
"(",
"MIB",
",",
"get",
"(",
"X86",
"::",
"KXNORDrr",
")",
",",
"X86",
"::",
"K0",
")",
";",
"case",
"X86",
"::",
"KSET1Q",
":",
"return",
"Expand2AddrKreg",
"(",
"MIB",
",",
"get",
"(",
"X86",
"::",
"KXNORQrr",
")",
",",
"X86",
"::",
"K0",
")",
";",
"case",
"TargetOpcode",
"::",
"LOAD_STACK_GUARD",
":",
"expandLoadStackGuard",
"(",
"MIB",
",",
"*",
"this",
")",
";",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"This",
"function",
"is",
"called",
"for",
"all",
"pseudo",
"instructions",
"that",
"remain",
"after",
"register",
"allocation",
"."
] | [
"X86",
"X86",
"X86::MOV32r0",
"X86::XOR32rr",
"X86::MOV32r1",
"X86::MOV32r_1",
"X86::SETB_C8r",
"X86::SBB8rr",
"X86::SETB_C16r",
"X86::SBB16rr",
"X86::SETB_C32r",
"X86::SBB32rr",
"X86::SETB_C64r",
"X86::SBB64rr",
"X86::V_SET0",
"X86::FsFLD0SS",
"X86::FsFLD0SD",
"X86::VXORPSrr",
"X86::XORPSrr",
"X86::AVX_SET0",
"\"AVX not supported\"",
"X86::VXORPSYrr",
"X86::AVX512_512_SET0",
"X86::VPXORDZrr",
"X86::V_SETALLONES",
"X86::VPCMPEQDrr",
"X86::PCMPEQDrr",
"X86::AVX2_SETALLONES",
"X86::VPCMPEQDYrr",
"X86::TEST8ri_NOREX",
"X86::TEST8ri",
"X86::MOV32ri64",
"X86::MOV32ri",
"X86::KSET0B",
"X86::KSET0W",
"X86::KXORWrr",
"X86::K0",
"X86::KSET0D",
"X86::KXORDrr",
"X86::K0",
"X86::KSET0Q",
"X86::KXORQrr",
"X86::K0",
"X86::KSET1B",
"X86::KSET1W",
"X86::KXNORWrr",
"X86::K0",
"X86::KSET1D",
"X86::KXNORDrr",
"X86::K0",
"X86::KSET1Q",
"X86::KXNORQrr",
"X86::K0"
] | X86InstrInfo131 | expandPostRAPseudo | X86 | CPU | LLVM | 30,311 | 491 | 1 | [] |
[
"<s>",
"static",
"void",
"rs6000_sched_finish",
"(",
"FILE",
"*",
"dump",
",",
"int",
"sched_verbose",
")",
"{",
"int",
"n_groups",
";",
"if",
"(",
"sched_verbose",
")",
"fprintf",
"(",
"dump",
",",
"\"=== Finishing schedule.\\n\"",
")",
";",
"if",
"(",
"reload_completed",
"&&",
"rs6000_sched_groups",
")",
"{",
"if",
"(",
"sel_sched_p",
"(",
")",
")",
"return",
";",
"if",
"(",
"rs6000_sched_insert_nops",
"==",
"sched_finish_none",
")",
"return",
";",
"if",
"(",
"rs6000_sched_insert_nops",
"==",
"sched_finish_pad_groups",
")",
"n_groups",
"=",
"pad_groups",
"(",
"dump",
",",
"sched_verbose",
",",
"current_sched_info",
"->",
"prev_head",
",",
"current_sched_info",
"->",
"next_tail",
")",
";",
"else",
"n_groups",
"=",
"redefine_groups",
"(",
"dump",
",",
"sched_verbose",
",",
"current_sched_info",
"->",
"prev_head",
",",
"current_sched_info",
"->",
"next_tail",
")",
";",
"if",
"(",
"sched_verbose",
">=",
"6",
")",
"{",
"fprintf",
"(",
"dump",
",",
"\"ngroups = %d\\n\"",
",",
"n_groups",
")",
";",
"print_rtl",
"(",
"dump",
",",
"current_sched_info",
"->",
"prev_head",
")",
";",
"fprintf",
"(",
"dump",
",",
"\"Done finish_sched\\n\"",
")",
";",
"}",
"}",
"}",
"</s>"
] | [
"The",
"following",
"function",
"is",
"called",
"at",
"the",
"end",
"of",
"scheduling",
"BB",
".",
"After",
"reload",
",",
"it",
"inserts",
"nops",
"at",
"insn",
"group",
"bundling",
"."
] | [
"rs6000",
"\"=== Finishing schedule.\\n\"",
"6",
"\"ngroups = %d\\n\"",
"\"Done finish_sched\\n\""
] | rs6000 | rs6000_sched_finish | rs6000 | CPU | GCC | 30,312 | 125 | 1 | [] |
[
"<s>",
"MipsSubtarget",
"::",
"MipsSubtarget",
"(",
"const",
"std",
"::",
"string",
"&",
"TT",
",",
"const",
"std",
"::",
"string",
"&",
"FS",
",",
"bool",
"little",
")",
":",
"MipsArchVersion",
"(",
"Mips1",
")",
",",
"MipsABI",
"(",
"O32",
")",
",",
"IsLittle",
"(",
"little",
")",
",",
"IsSingleFloat",
"(",
"false",
")",
",",
"IsFP64bit",
"(",
"false",
")",
",",
"IsGP64bit",
"(",
"false",
")",
",",
"HasVFPU",
"(",
"false",
")",
",",
"IsLinux",
"(",
"true",
")",
",",
"HasSEInReg",
"(",
"false",
")",
",",
"HasCondMov",
"(",
"false",
")",
",",
"HasMulDivAdd",
"(",
"false",
")",
",",
"HasMinMax",
"(",
"false",
")",
",",
"HasSwap",
"(",
"false",
")",
",",
"HasBitCount",
"(",
"false",
")",
"{",
"std",
"::",
"string",
"CPU",
"=",
"\"mips1\"",
";",
"MipsArchVersion",
"=",
"Mips1",
";",
"ParseSubtargetFeatures",
"(",
"FS",
",",
"CPU",
")",
";",
"if",
"(",
"TT",
".",
"find",
"(",
"\"linux\"",
")",
"==",
"std",
"::",
"string",
"::",
"npos",
")",
"IsLinux",
"=",
"false",
";",
"if",
"(",
"TT",
".",
"find",
"(",
"\"mipsallegrex\"",
")",
"!=",
"std",
"::",
"string",
"::",
"npos",
"||",
"TT",
".",
"find",
"(",
"\"psp\"",
")",
"!=",
"std",
"::",
"string",
"::",
"npos",
")",
"{",
"MipsABI",
"=",
"EABI",
";",
"IsSingleFloat",
"=",
"true",
";",
"MipsArchVersion",
"=",
"Mips2",
";",
"HasVFPU",
"=",
"true",
";",
"HasSEInReg",
"=",
"true",
";",
"HasBitCount",
"=",
"true",
";",
"HasSwap",
"=",
"true",
";",
"HasCondMov",
"=",
"true",
";",
"}",
"}",
"</s>"
] | [
"This",
"constructor",
"initializes",
"the",
"data",
"members",
"to",
"match",
"that",
"of",
"the",
"specified",
"triple",
"."
] | [
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"\"mips1\"",
"Mips",
"Mips",
"\"linux\"",
"\"mipsallegrex\"",
"\"psp\"",
"Mips",
"Mips",
"Mips"
] | MipsSubtarget50 | MipsSubtarget | Mips | CPU | LLVM | 30,313 | 192 | 1 | [] |
[
"<s>",
"const",
"PPCSubtarget",
"*",
"PPCTargetMachine",
"::",
"getSubtargetImpl",
"(",
"const",
"Function",
"&",
"F",
")",
"const",
"{",
"Attribute",
"CPUAttr",
"=",
"F",
".",
"getFnAttribute",
"(",
"\"target-cpu\"",
")",
";",
"Attribute",
"FSAttr",
"=",
"F",
".",
"getFnAttribute",
"(",
"\"target-features\"",
")",
";",
"std",
"::",
"string",
"CPU",
"=",
"!",
"CPUAttr",
".",
"hasAttribute",
"(",
"Attribute",
"::",
"None",
")",
"?",
"CPUAttr",
".",
"getValueAsString",
"(",
")",
".",
"str",
"(",
")",
":",
"TargetCPU",
";",
"std",
"::",
"string",
"FS",
"=",
"!",
"FSAttr",
".",
"hasAttribute",
"(",
"Attribute",
"::",
"None",
")",
"?",
"FSAttr",
".",
"getValueAsString",
"(",
")",
".",
"str",
"(",
")",
":",
"TargetFS",
";",
"bool",
"SoftFloat",
"=",
"F",
".",
"getFnAttribute",
"(",
"\"use-soft-float\"",
")",
".",
"getValueAsString",
"(",
")",
"==",
"\"true\"",
";",
"if",
"(",
"SoftFloat",
")",
"FS",
"+=",
"FS",
".",
"empty",
"(",
")",
"?",
"\"-hard-float\"",
":",
"\",-hard-float\"",
";",
"auto",
"&",
"I",
"=",
"SubtargetMap",
"[",
"CPU",
"+",
"FS",
"]",
";",
"if",
"(",
"!",
"I",
")",
"{",
"resetTargetOptions",
"(",
"F",
")",
";",
"I",
"=",
"llvm",
"::",
"make_unique",
"<",
"PPCSubtarget",
">",
"(",
"TargetTriple",
",",
"CPU",
",",
"computeFSAdditions",
"(",
"FS",
",",
"getOptLevel",
"(",
")",
",",
"getTargetTriple",
"(",
")",
")",
",",
"*",
"this",
")",
";",
"}",
"return",
"I",
".",
"get",
"(",
")",
";",
"}",
"</s>"
] | [
"Virtual",
"method",
"implemented",
"by",
"subclasses",
"that",
"returns",
"a",
"reference",
"to",
"that",
"target",
"'s",
"TargetSubtargetInfo-derived",
"member",
"variable",
"."
] | [
"PowerPC",
"PPC",
"PPC",
"\"target-cpu\"",
"\"target-features\"",
"\"use-soft-float\"",
"\"true\"",
"\"-hard-float\"",
"\",-hard-float\"",
"PPC"
] | PPCTargetMachine1 | getSubtargetImpl | PowerPC | CPU | LLVM | 30,314 | 181 | 1 | [] |
[
"<s>",
"MipsSubtarget",
"&",
"MipsSubtarget",
"::",
"initializeSubtargetDependencies",
"(",
"StringRef",
"CPU",
",",
"StringRef",
"FS",
",",
"const",
"TargetMachine",
"&",
"TM",
")",
"{",
"std",
"::",
"string",
"CPUName",
"=",
"MIPS_MC",
"::",
"selectMipsCPU",
"(",
"TM",
".",
"getTargetTriple",
"(",
")",
",",
"CPU",
")",
";",
"ParseSubtargetFeatures",
"(",
"CPUName",
",",
"FS",
")",
";",
"InstrItins",
"=",
"getInstrItineraryForCPU",
"(",
"CPUName",
")",
";",
"if",
"(",
"InMips16Mode",
"&&",
"!",
"IsSoftFloat",
")",
"InMips16HardFloat",
"=",
"true",
";",
"if",
"(",
"StackAlignOverride",
")",
"stackAlignment",
"=",
"*",
"StackAlignOverride",
";",
"else",
"if",
"(",
"isABI_N32",
"(",
")",
"||",
"isABI_N64",
"(",
")",
")",
"stackAlignment",
"=",
"Align",
"(",
"16",
")",
";",
"else",
"{",
"assert",
"(",
"isABI_O32",
"(",
")",
"&&",
"\"Unknown ABI for stack alignment!\"",
")",
";",
"stackAlignment",
"=",
"Align",
"(",
"8",
")",
";",
"}",
"return",
"*",
"this",
";",
"}",
"</s>"
] | [
"initializeSubtargetDependencies",
"-",
"Initializes",
"using",
"a",
"CPU",
",",
"a",
"TuneCPU",
",",
"and",
"feature",
"string",
"so",
"that",
"we",
"can",
"use",
"initializer",
"lists",
"for",
"subtarget",
"initialization",
"."
] | [
"Mips",
"Mips",
"Mips",
"MIPS_MC::selectMipsCPU",
"Mips",
"Mips",
"16",
"\"Unknown ABI for stack alignment!\"",
"8"
] | MipsSubtarget61 | initializeSubtargetDependencies | Mips | CPU | LLVM | 30,315 | 112 | 1 | [] |
[
"<s>",
"int",
"mcore_initial_elimination_offset",
"(",
"int",
"from",
",",
"int",
"to",
")",
"{",
"int",
"above_frame",
";",
"int",
"below_frame",
";",
"struct",
"mcore_frame",
"fi",
";",
"layout_mcore_frame",
"(",
"&",
"fi",
")",
";",
"above_frame",
"=",
"fi",
".",
"local_size",
"+",
"fi",
".",
"pad_local",
"+",
"fi",
".",
"reg_size",
"+",
"fi",
".",
"pad_reg",
";",
"below_frame",
"=",
"fi",
".",
"outbound_size",
"+",
"fi",
".",
"pad_outbound",
";",
"if",
"(",
"from",
"==",
"ARG_POINTER_REGNUM",
"&&",
"to",
"==",
"FRAME_POINTER_REGNUM",
")",
"return",
"above_frame",
";",
"if",
"(",
"from",
"==",
"ARG_POINTER_REGNUM",
"&&",
"to",
"==",
"STACK_POINTER_REGNUM",
")",
"return",
"above_frame",
"+",
"below_frame",
";",
"if",
"(",
"from",
"==",
"FRAME_POINTER_REGNUM",
"&&",
"to",
"==",
"STACK_POINTER_REGNUM",
")",
"return",
"below_frame",
";",
"gcc_unreachable",
"(",
")",
";",
"}",
"</s>"
] | [
"Define",
"the",
"offset",
"between",
"two",
"registers",
",",
"one",
"to",
"be",
"eliminated",
",",
"and",
"the",
"other",
"its",
"replacement",
",",
"at",
"the",
"start",
"of",
"a",
"routine",
"."
] | [
"mcore"
] | mcore | mcore_initial_elimination_offset | mcore | MPU | GCC | 30,316 | 100 | 1 | [] |
[
"<s>",
"void",
"NVPTXPassConfig",
"::",
"addPostRegAlloc",
"(",
")",
"{",
"addPass",
"(",
"createNVPTXPrologEpilogPass",
"(",
")",
",",
"false",
")",
";",
"if",
"(",
"getOptLevel",
"(",
")",
"!=",
"CodeGenOpt",
"::",
"None",
")",
"{",
"addPass",
"(",
"createNVPTXPeephole",
"(",
")",
")",
";",
"}",
"}",
"</s>"
] | [
"This",
"method",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"after",
"register",
"allocation",
"pass",
"pipeline",
"but",
"before",
"prolog-epilog",
"insertion",
"."
] | [
"NVPTX",
"NVPTX",
"NVPTX",
"NVPTX"
] | NVPTXTargetMachine11 | addPostRegAlloc | NVPTX | GPU | LLVM | 30,317 | 36 | 1 | [] |
[
"<s>",
"SMLoc",
"getEndLoc",
"(",
")",
"const",
"override",
"{",
"return",
"EndLoc",
";",
"}",
"</s>"
] | [
"getEndLoc",
"-",
"Get",
"the",
"location",
"of",
"the",
"last",
"token",
"of",
"this",
"operand",
"."
] | [
"TL45"
] | TL45AsmParser | getEndLoc | TL45 | MPU | LLVM | 30,318 | 11 | 1 | [] |
[
"<s>",
"Value",
"*",
"PPCTargetLowering",
"::",
"emitMaskedAtomicRMWIntrinsic",
"(",
"IRBuilderBase",
"&",
"Builder",
",",
"AtomicRMWInst",
"*",
"AI",
",",
"Value",
"*",
"AlignedAddr",
",",
"Value",
"*",
"Incr",
",",
"Value",
"*",
"Mask",
",",
"Value",
"*",
"ShiftAmt",
",",
"AtomicOrdering",
"Ord",
")",
"const",
"{",
"assert",
"(",
"EnableQuadwordAtomics",
"&&",
"Subtarget",
".",
"hasQuadwordAtomics",
"(",
")",
"&&",
"\"Only support quadword now\"",
")",
";",
"Module",
"*",
"M",
"=",
"Builder",
".",
"GetInsertBlock",
"(",
")",
"->",
"getParent",
"(",
")",
"->",
"getParent",
"(",
")",
";",
"Type",
"*",
"ValTy",
"=",
"Incr",
"->",
"getType",
"(",
")",
";",
"assert",
"(",
"ValTy",
"->",
"getPrimitiveSizeInBits",
"(",
")",
"==",
"128",
")",
";",
"Function",
"*",
"RMW",
"=",
"Intrinsic",
"::",
"getDeclaration",
"(",
"M",
",",
"getIntrinsicForAtomicRMWBinOp128",
"(",
"AI",
"->",
"getOperation",
"(",
")",
")",
")",
";",
"Type",
"*",
"Int64Ty",
"=",
"Type",
"::",
"getInt64Ty",
"(",
"M",
"->",
"getContext",
"(",
")",
")",
";",
"Value",
"*",
"IncrLo",
"=",
"Builder",
".",
"CreateTrunc",
"(",
"Incr",
",",
"Int64Ty",
",",
"\"incr_lo\"",
")",
";",
"Value",
"*",
"IncrHi",
"=",
"Builder",
".",
"CreateTrunc",
"(",
"Builder",
".",
"CreateLShr",
"(",
"Incr",
",",
"64",
")",
",",
"Int64Ty",
",",
"\"incr_hi\"",
")",
";",
"Value",
"*",
"Addr",
"=",
"Builder",
".",
"CreateBitCast",
"(",
"AlignedAddr",
",",
"Type",
"::",
"getInt8PtrTy",
"(",
"M",
"->",
"getContext",
"(",
")",
")",
")",
";",
"Value",
"*",
"LoHi",
"=",
"Builder",
".",
"CreateCall",
"(",
"RMW",
",",
"{",
"Addr",
",",
"IncrLo",
",",
"IncrHi",
"}",
")",
";",
"Value",
"*",
"Lo",
"=",
"Builder",
".",
"CreateExtractValue",
"(",
"LoHi",
",",
"0",
",",
"\"lo\"",
")",
";",
"Value",
"*",
"Hi",
"=",
"Builder",
".",
"CreateExtractValue",
"(",
"LoHi",
",",
"1",
",",
"\"hi\"",
")",
";",
"Lo",
"=",
"Builder",
".",
"CreateZExt",
"(",
"Lo",
",",
"ValTy",
",",
"\"lo64\"",
")",
";",
"Hi",
"=",
"Builder",
".",
"CreateZExt",
"(",
"Hi",
",",
"ValTy",
",",
"\"hi64\"",
")",
";",
"return",
"Builder",
".",
"CreateOr",
"(",
"Lo",
",",
"Builder",
".",
"CreateShl",
"(",
"Hi",
",",
"ConstantInt",
"::",
"get",
"(",
"ValTy",
",",
"64",
")",
")",
",",
"\"val64\"",
")",
";",
"}",
"</s>"
] | [
"Perform",
"a",
"masked",
"atomicrmw",
"using",
"a",
"target-specific",
"intrinsic",
"."
] | [
"PowerPC",
"PPC",
"\"Only support quadword now\"",
"128",
"Intrinsic::getDeclaration",
"\"incr_lo\"",
"64",
"\"incr_hi\"",
"0",
"\"lo\"",
"1",
"\"hi\"",
"\"lo64\"",
"\"hi64\"",
"64",
"\"val64\""
] | PPCISelLowering11 | emitMaskedAtomicRMWIntrinsic | PowerPC | CPU | LLVM | 30,319 | 283 | 1 | [] |
[
"<s>",
"SDValue",
"AMDGPUTargetLowering",
"::",
"SplitVectorLoad",
"(",
"const",
"SDValue",
"&",
"Op",
",",
"SelectionDAG",
"&",
"DAG",
")",
"const",
"{",
"LoadSDNode",
"*",
"Load",
"=",
"dyn_cast",
"<",
"LoadSDNode",
">",
"(",
"Op",
")",
";",
"EVT",
"MemEltVT",
"=",
"Load",
"->",
"getMemoryVT",
"(",
")",
".",
"getVectorElementType",
"(",
")",
";",
"EVT",
"EltVT",
"=",
"Op",
".",
"getValueType",
"(",
")",
".",
"getVectorElementType",
"(",
")",
";",
"EVT",
"PtrVT",
"=",
"Load",
"->",
"getBasePtr",
"(",
")",
".",
"getValueType",
"(",
")",
";",
"unsigned",
"NumElts",
"=",
"Load",
"->",
"getMemoryVT",
"(",
")",
".",
"getVectorNumElements",
"(",
")",
";",
"SmallVector",
"<",
"SDValue",
",",
"8",
">",
"Loads",
";",
"SDLoc",
"SL",
"(",
"Op",
")",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
",",
"e",
"=",
"NumElts",
";",
"i",
"!=",
"e",
";",
"++",
"i",
")",
"{",
"SDValue",
"Ptr",
"=",
"DAG",
".",
"getNode",
"(",
"ISD",
"::",
"ADD",
",",
"SL",
",",
"PtrVT",
",",
"Load",
"->",
"getBasePtr",
"(",
")",
",",
"DAG",
".",
"getConstant",
"(",
"i",
"*",
"(",
"MemEltVT",
".",
"getSizeInBits",
"(",
")",
"/",
"8",
")",
",",
"PtrVT",
")",
")",
";",
"Loads",
".",
"push_back",
"(",
"DAG",
".",
"getExtLoad",
"(",
"Load",
"->",
"getExtensionType",
"(",
")",
",",
"SL",
",",
"EltVT",
",",
"Load",
"->",
"getChain",
"(",
")",
",",
"Ptr",
",",
"MachinePointerInfo",
"(",
"Load",
"->",
"getMemOperand",
"(",
")",
"->",
"getValue",
"(",
")",
")",
",",
"MemEltVT",
",",
"Load",
"->",
"isVolatile",
"(",
")",
",",
"Load",
"->",
"isNonTemporal",
"(",
")",
",",
"Load",
"->",
"getAlignment",
"(",
")",
")",
")",
";",
"}",
"return",
"DAG",
".",
"getNode",
"(",
"ISD",
"::",
"BUILD_VECTOR",
",",
"SL",
",",
"Op",
".",
"getValueType",
"(",
")",
",",
"Loads",
".",
"data",
"(",
")",
",",
"Loads",
".",
"size",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"Split",
"a",
"vector",
"load",
"into",
"2",
"loads",
"of",
"half",
"the",
"vector",
"."
] | [
"R600",
"8",
"0",
"ISD::ADD",
"8",
"ISD::BUILD_VECTOR"
] | AMDGPUISelLowering13 | SplitVectorLoad | R600 | GPU | LLVM | 30,320 | 247 | 1 | [] |
[
"<s>",
"AArch64TargetMachine",
"::",
"AArch64TargetMachine",
"(",
"const",
"Target",
"&",
"T",
",",
"const",
"Triple",
"&",
"TT",
",",
"StringRef",
"CPU",
",",
"StringRef",
"FS",
",",
"const",
"TargetOptions",
"&",
"Options",
",",
"Optional",
"<",
"Reloc",
"::",
"Model",
">",
"RM",
",",
"Optional",
"<",
"CodeModel",
"::",
"Model",
">",
"CM",
",",
"CodeGenOpt",
"::",
"Level",
"OL",
",",
"bool",
"JIT",
",",
"bool",
"LittleEndian",
")",
":",
"LLVMTargetMachine",
"(",
"T",
",",
"computeDataLayout",
"(",
"TT",
",",
"Options",
".",
"MCOptions",
",",
"LittleEndian",
")",
",",
"TT",
",",
"CPU",
",",
"FS",
",",
"Options",
",",
"getEffectiveRelocModel",
"(",
"TT",
",",
"RM",
")",
",",
"getEffectiveCodeModel",
"(",
"TT",
",",
"CM",
",",
"JIT",
")",
",",
"OL",
")",
",",
"TLOF",
"(",
"createTLOF",
"(",
"getTargetTriple",
"(",
")",
")",
")",
",",
"isLittle",
"(",
"LittleEndian",
")",
"{",
"initAsmInfo",
"(",
")",
";",
"if",
"(",
"getOptLevel",
"(",
")",
"<=",
"EnableGlobalISelAtO",
")",
"setGlobalISel",
"(",
"true",
")",
";",
"}",
"</s>"
] | [
"Create",
"an",
"AArch64",
"architecture",
"model",
"."
] | [
"AArch64",
"AArch64",
"AArch64"
] | AArch64TargetMachine11 | AArch64TargetMachine | AArch64 | CPU | LLVM | 30,321 | 128 | 1 | [] |
[
"<s>",
"const",
"MCFixupKindInfo",
"&",
"getFixupKindInfo",
"(",
"MCFixupKind",
"Kind",
")",
"const",
"override",
"{",
"const",
"static",
"MCFixupKindInfo",
"Infos",
"[",
"AArch64",
"::",
"NumTargetFixupKinds",
"]",
"=",
"{",
"{",
"\"fixup_aarch64_pcrel_adr_imm21\"",
",",
"0",
",",
"32",
",",
"PCRelFlagVal",
"}",
",",
"{",
"\"fixup_aarch64_pcrel_adrp_imm21\"",
",",
"0",
",",
"32",
",",
"PCRelFlagVal",
"}",
",",
"{",
"\"fixup_aarch64_add_imm12\"",
",",
"10",
",",
"12",
",",
"0",
"}",
",",
"{",
"\"fixup_aarch64_ldst_imm12_scale1\"",
",",
"10",
",",
"12",
",",
"0",
"}",
",",
"{",
"\"fixup_aarch64_ldst_imm12_scale2\"",
",",
"10",
",",
"12",
",",
"0",
"}",
",",
"{",
"\"fixup_aarch64_ldst_imm12_scale4\"",
",",
"10",
",",
"12",
",",
"0",
"}",
",",
"{",
"\"fixup_aarch64_ldst_imm12_scale8\"",
",",
"10",
",",
"12",
",",
"0",
"}",
",",
"{",
"\"fixup_aarch64_ldst_imm12_scale16\"",
",",
"10",
",",
"12",
",",
"0",
"}",
",",
"{",
"\"fixup_aarch64_ldr_pcrel_imm19\"",
",",
"5",
",",
"19",
",",
"PCRelFlagVal",
"}",
",",
"{",
"\"fixup_aarch64_movw\"",
",",
"5",
",",
"16",
",",
"0",
"}",
",",
"{",
"\"fixup_aarch64_pcrel_branch14\"",
",",
"5",
",",
"14",
",",
"PCRelFlagVal",
"}",
",",
"{",
"\"fixup_aarch64_pcrel_branch19\"",
",",
"5",
",",
"19",
",",
"PCRelFlagVal",
"}",
",",
"{",
"\"fixup_aarch64_pcrel_branch26\"",
",",
"0",
",",
"26",
",",
"PCRelFlagVal",
"}",
",",
"{",
"\"fixup_aarch64_pcrel_call26\"",
",",
"0",
",",
"26",
",",
"PCRelFlagVal",
"}",
",",
"{",
"\"fixup_aarch64_tlsdesc_call\"",
",",
"0",
",",
"0",
",",
"0",
"}",
"}",
";",
"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",
"."
] | [
"AArch64",
"AArch64::NumTargetFixupKinds",
"\"fixup_aarch64_pcrel_adr_imm21\"",
"0",
"32",
"\"fixup_aarch64_pcrel_adrp_imm21\"",
"0",
"32",
"\"fixup_aarch64_add_imm12\"",
"10",
"12",
"0",
"\"fixup_aarch64_ldst_imm12_scale1\"",
"10",
"12",
"0",
"\"fixup_aarch64_ldst_imm12_scale2\"",
"10",
"12",
"0",
"\"fixup_aarch64_ldst_imm12_scale4\"",
"10",
"12",
"0",
"\"fixup_aarch64_ldst_imm12_scale8\"",
"10",
"12",
"0",
"\"fixup_aarch64_ldst_imm12_scale16\"",
"10",
"12",
"0",
"\"fixup_aarch64_ldr_pcrel_imm19\"",
"5",
"19",
"\"fixup_aarch64_movw\"",
"5",
"16",
"0",
"\"fixup_aarch64_pcrel_branch14\"",
"5",
"14",
"\"fixup_aarch64_pcrel_branch19\"",
"5",
"19",
"\"fixup_aarch64_pcrel_branch26\"",
"0",
"26",
"\"fixup_aarch64_pcrel_call26\"",
"0",
"26",
"\"fixup_aarch64_tlsdesc_call\"",
"0",
"0",
"0",
"\"Invalid kind!\""
] | AArch64AsmBackend (2) | getFixupKindInfo | AArch64 | CPU | LLVM | 30,322 | 212 | 1 | [] |
[
"<s>",
"void",
"from_compare",
"(",
"rtx",
"*",
"operands",
",",
"int",
"code",
")",
"{",
"enum",
"machine_mode",
"mode",
"=",
"GET_MODE",
"(",
"sh_compare_op0",
")",
";",
"rtx",
"insn",
";",
"if",
"(",
"mode",
"==",
"VOIDmode",
")",
"mode",
"=",
"GET_MODE",
"(",
"sh_compare_op1",
")",
";",
"if",
"(",
"code",
"!=",
"EQ",
"||",
"mode",
"==",
"DImode",
"||",
"(",
"TARGET_SH2E",
"&&",
"GET_MODE_CLASS",
"(",
"mode",
")",
"==",
"MODE_FLOAT",
")",
")",
"{",
"sh_compare_op0",
"=",
"force_reg",
"(",
"mode",
",",
"sh_compare_op0",
")",
";",
"if",
"(",
"sh_compare_op1",
"!=",
"const0_rtx",
"||",
"code",
"==",
"GTU",
"||",
"code",
"==",
"GEU",
"||",
"(",
"TARGET_SH2E",
"&&",
"GET_MODE_CLASS",
"(",
"mode",
")",
"==",
"MODE_FLOAT",
")",
")",
"sh_compare_op1",
"=",
"force_reg",
"(",
"mode",
",",
"sh_compare_op1",
")",
";",
"}",
"if",
"(",
"TARGET_SH2E",
"&&",
"GET_MODE_CLASS",
"(",
"mode",
")",
"==",
"MODE_FLOAT",
"&&",
"code",
"==",
"GE",
")",
"{",
"from_compare",
"(",
"operands",
",",
"GT",
")",
";",
"insn",
"=",
"gen_ieee_ccmpeqsf_t",
"(",
"sh_compare_op0",
",",
"sh_compare_op1",
")",
";",
"}",
"else",
"insn",
"=",
"gen_rtx_SET",
"(",
"VOIDmode",
",",
"gen_rtx_REG",
"(",
"SImode",
",",
"T_REG",
")",
",",
"gen_rtx_fmt_ee",
"(",
"code",
",",
"SImode",
",",
"sh_compare_op0",
",",
"sh_compare_op1",
")",
")",
";",
"if",
"(",
"(",
"TARGET_SH4",
"||",
"TARGET_SH2A",
")",
"&&",
"GET_MODE_CLASS",
"(",
"mode",
")",
"==",
"MODE_FLOAT",
")",
"{",
"insn",
"=",
"gen_rtx_PARALLEL",
"(",
"VOIDmode",
",",
"gen_rtvec",
"(",
"2",
",",
"insn",
",",
"gen_rtx_USE",
"(",
"VOIDmode",
",",
"get_fpscr_rtx",
"(",
")",
")",
")",
")",
";",
"(",
"mode",
"==",
"SFmode",
"?",
"emit_sf_insn",
":",
"emit_df_insn",
")",
"(",
"insn",
")",
";",
"}",
"else",
"emit_insn",
"(",
"insn",
")",
";",
"}",
"</s>"
] | [
"Called",
"from",
"the",
"md",
"file",
",",
"set",
"up",
"the",
"operands",
"of",
"a",
"compare",
"instruction",
"."
] | [
"sh",
"2"
] | sh3 | from_compare | sh | CPU | GCC | 30,323 | 221 | 1 | [] |
[
"<s>",
"void",
"tilegx_expand_set_const64",
"(",
"rtx",
"op0",
",",
"rtx",
"op1",
")",
"{",
"if",
"(",
"CONST_INT_P",
"(",
"op1",
")",
")",
"{",
"expand_set_cint64",
"(",
"op0",
",",
"op1",
")",
";",
"}",
"else",
"{",
"rtx",
"temp",
"=",
"create_temp_reg_if_possible",
"(",
"Pmode",
",",
"op0",
")",
";",
"if",
"(",
"TARGET_32BIT",
")",
"{",
"emit_insn",
"(",
"gen_mov_address_32bit_step1",
"(",
"temp",
",",
"op1",
")",
")",
";",
"emit_insn",
"(",
"gen_mov_address_32bit_step2",
"(",
"op0",
",",
"temp",
",",
"op1",
")",
")",
";",
"}",
"else",
"{",
"rtx",
"temp2",
"=",
"create_temp_reg_if_possible",
"(",
"Pmode",
",",
"op0",
")",
";",
"emit_insn",
"(",
"gen_mov_address_step1",
"(",
"temp",
",",
"op1",
")",
")",
";",
"emit_insn",
"(",
"gen_mov_address_step2",
"(",
"temp2",
",",
"temp",
",",
"op1",
")",
")",
";",
"emit_insn",
"(",
"gen_mov_address_step3",
"(",
"op0",
",",
"temp2",
",",
"op1",
")",
")",
";",
"}",
"}",
"}",
"</s>"
] | [
"Load",
"OP1",
",",
"a",
"64-bit",
"constant",
",",
"into",
"OP0",
",",
"a",
"register",
".",
"We",
"know",
"it",
"ca",
"n't",
"be",
"done",
"in",
"one",
"insn",
"when",
"we",
"get",
"here",
",",
"the",
"move",
"expander",
"guarantees",
"this",
"."
] | [
"tilegx"
] | tilegx | tilegx_expand_set_const64 | tilegx | VLIW | GCC | 30,324 | 115 | 1 | [] |
[
"<s>",
"void",
"getAnalysisUsage",
"(",
"AnalysisUsage",
"&",
"AU",
")",
"const",
"override",
"{",
"AU",
".",
"addRequired",
"<",
"MemoryDependenceWrapperPass",
">",
"(",
")",
";",
"FunctionPass",
"::",
"getAnalysisUsage",
"(",
"AU",
")",
";",
"}",
"</s>"
] | [
"getAnalysisUsage",
"-",
"Subclasses",
"that",
"override",
"getAnalysisUsage",
"must",
"call",
"this",
"."
] | [
"AMDGPU"
] | AMDGPURewriteOutArguments (2) | getAnalysisUsage | AMDGPU | GPU | LLVM | 30,325 | 27 | 1 | [] |
[
"<s>",
"unsigned",
"ARMBaseInstrInfo",
"::",
"getInstrLatency",
"(",
"const",
"InstrItineraryData",
"*",
"ItinData",
",",
"const",
"MachineInstr",
"&",
"MI",
",",
"unsigned",
"*",
"PredCost",
")",
"const",
"{",
"if",
"(",
"MI",
".",
"isCopyLike",
"(",
")",
"||",
"MI",
".",
"isInsertSubreg",
"(",
")",
"||",
"MI",
".",
"isRegSequence",
"(",
")",
"||",
"MI",
".",
"isImplicitDef",
"(",
")",
")",
"return",
"1",
";",
"if",
"(",
"MI",
".",
"isBundle",
"(",
")",
")",
"{",
"unsigned",
"Latency",
"=",
"0",
";",
"MachineBasicBlock",
"::",
"const_instr_iterator",
"I",
"=",
"MI",
".",
"getIterator",
"(",
")",
";",
"MachineBasicBlock",
"::",
"const_instr_iterator",
"E",
"=",
"MI",
".",
"getParent",
"(",
")",
"->",
"instr_end",
"(",
")",
";",
"while",
"(",
"++",
"I",
"!=",
"E",
"&&",
"I",
"->",
"isInsideBundle",
"(",
")",
")",
"{",
"if",
"(",
"I",
"->",
"getOpcode",
"(",
")",
"!=",
"ARM",
"::",
"t2IT",
")",
"Latency",
"+=",
"getInstrLatency",
"(",
"ItinData",
",",
"*",
"I",
",",
"PredCost",
")",
";",
"}",
"return",
"Latency",
";",
"}",
"const",
"MCInstrDesc",
"&",
"MCID",
"=",
"MI",
".",
"getDesc",
"(",
")",
";",
"if",
"(",
"PredCost",
"&&",
"(",
"MCID",
".",
"isCall",
"(",
")",
"||",
"MCID",
".",
"hasImplicitDefOfPhysReg",
"(",
"ARM",
"::",
"CPSR",
")",
")",
")",
"{",
"*",
"PredCost",
"=",
"1",
";",
"}",
"if",
"(",
"!",
"ItinData",
")",
"return",
"MI",
".",
"mayLoad",
"(",
")",
"?",
"3",
":",
"1",
";",
"unsigned",
"Class",
"=",
"MCID",
".",
"getSchedClass",
"(",
")",
";",
"if",
"(",
"!",
"ItinData",
"->",
"isEmpty",
"(",
")",
"&&",
"ItinData",
"->",
"getNumMicroOps",
"(",
"Class",
")",
"<",
"0",
")",
"return",
"getNumMicroOps",
"(",
"ItinData",
",",
"MI",
")",
";",
"unsigned",
"Latency",
"=",
"ItinData",
"->",
"getStageLatency",
"(",
"Class",
")",
";",
"unsigned",
"DefAlign",
"=",
"MI",
".",
"hasOneMemOperand",
"(",
")",
"?",
"(",
"*",
"MI",
".",
"memoperands_begin",
"(",
")",
")",
"->",
"getAlignment",
"(",
")",
":",
"0",
";",
"int",
"Adj",
"=",
"adjustDefLatency",
"(",
"Subtarget",
",",
"MI",
",",
"MCID",
",",
"DefAlign",
")",
";",
"if",
"(",
"Adj",
">=",
"0",
"||",
"(",
"int",
")",
"Latency",
">",
"-",
"Adj",
")",
"{",
"return",
"Latency",
"+",
"Adj",
";",
"}",
"return",
"Latency",
";",
"}",
"</s>"
] | [
"Compute",
"the",
"instruction",
"latency",
"of",
"a",
"given",
"instruction",
"."
] | [
"ARM",
"ARM",
"1",
"0",
"ARM::t2IT",
"ARM::CPSR",
"1",
"3",
"1",
"0",
"0",
"0"
] | ARMBaseInstrInfo (2)2 | getInstrLatency | ARM | CPU | LLVM | 30,326 | 296 | 1 | [] |
[
"<s>",
"bool",
"HexagonPassConfig",
"::",
"addPreRegAlloc",
"(",
")",
"{",
"if",
"(",
"!",
"DisableHardwareLoops",
")",
"{",
"PM",
"->",
"add",
"(",
"createHexagonHardwareLoops",
"(",
")",
")",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"This",
"method",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"immediately",
"before",
"register",
"allocation",
"."
] | [
"Hexagon",
"Hexagon",
"Hexagon"
] | HexagonTargetMachine45 | addPreRegAlloc | Hexagon | DSP | LLVM | 30,327 | 27 | 1 | [] |
[
"<s>",
"void",
"mips_move_integer",
"(",
"rtx",
"temp",
",",
"rtx",
"dest",
",",
"unsigned",
"HOST_WIDE_INT",
"value",
")",
"{",
"struct",
"mips_integer_op",
"codes",
"[",
"MIPS_MAX_INTEGER_OPS",
"]",
";",
"machine_mode",
"mode",
";",
"unsigned",
"int",
"i",
",",
"num_ops",
";",
"rtx",
"x",
";",
"mode",
"=",
"GET_MODE",
"(",
"dest",
")",
";",
"num_ops",
"=",
"mips_build_integer",
"(",
"codes",
",",
"value",
")",
";",
"x",
"=",
"GEN_INT",
"(",
"codes",
"[",
"0",
"]",
".",
"value",
")",
";",
"for",
"(",
"i",
"=",
"1",
";",
"i",
"<",
"num_ops",
";",
"i",
"++",
")",
"{",
"if",
"(",
"!",
"can_create_pseudo_p",
"(",
")",
")",
"{",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"temp",
",",
"x",
")",
")",
";",
"x",
"=",
"temp",
";",
"}",
"else",
"x",
"=",
"force_reg",
"(",
"mode",
",",
"x",
")",
";",
"x",
"=",
"gen_rtx_fmt_ee",
"(",
"codes",
"[",
"i",
"]",
".",
"code",
",",
"mode",
",",
"x",
",",
"GEN_INT",
"(",
"codes",
"[",
"i",
"]",
".",
"value",
")",
")",
";",
"}",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"dest",
",",
"x",
")",
")",
";",
"}",
"</s>"
] | [
"Move",
"VALUE",
"into",
"register",
"DEST",
"."
] | [
"mips",
"0",
"1"
] | mips | mips_move_integer | mips | CPU | GCC | 30,328 | 146 | 1 | [] |
[
"<s>",
"static",
"bool",
"rs6000_global_entry_point_needed_p",
"(",
"void",
")",
"{",
"if",
"(",
"DEFAULT_ABI",
"!=",
"ABI_ELFv2",
")",
"return",
"false",
";",
"if",
"(",
"TARGET_SINGLE_PIC_BASE",
")",
"return",
"false",
";",
"if",
"(",
"cfun",
"->",
"is_thunk",
")",
"return",
"true",
";",
"return",
"cfun",
"->",
"machine",
"->",
"r2_setup_needed",
";",
"}",
"</s>"
] | [
"Return",
"whether",
"we",
"need",
"to",
"emit",
"an",
"ELFv2",
"global",
"entry",
"point",
"prologue",
"."
] | [
"powerpcspe"
] | powerpcspe | rs6000_global_entry_point_needed_p | powerpcspe | CPU | GCC | 30,329 | 40 | 1 | [] |
[
"<s>",
"void",
"cris_order_for_addsi3",
"(",
"rtx",
"*",
"operands",
",",
"int",
"n",
")",
"{",
"if",
"(",
"!",
"REG_P",
"(",
"operands",
"[",
"n",
"]",
")",
")",
"{",
"rtx",
"tem",
"=",
"operands",
"[",
"n",
"]",
";",
"operands",
"[",
"n",
"]",
"=",
"operands",
"[",
"n",
"+",
"1",
"]",
";",
"operands",
"[",
"n",
"+",
"1",
"]",
"=",
"tem",
";",
"}",
"}",
"</s>"
] | [
"Make",
"sure",
"operands",
"are",
"in",
"the",
"right",
"order",
"for",
"an",
"addsi3",
"insn",
"as",
"generated",
"by",
"a",
"define_split",
".",
"A",
"MEM",
"as",
"the",
"first",
"operand",
"is",
"n't",
"recognized",
"by",
"addsi3",
"after",
"reload",
".",
"OPERANDS",
"contains",
"the",
"operands",
",",
"with",
"the",
"first",
"at",
"OPERANDS",
"[",
"N",
"]",
"and",
"the",
"second",
"at",
"OPERANDS",
"[",
"N+1",
"]",
"."
] | [
"cris",
"1",
"1"
] | cris | cris_order_for_addsi3 | cris | MPU | GCC | 30,330 | 54 | 1 | [] |
[
"<s>",
"static",
"rtx",
"nios2_legitimize_tls_address",
"(",
"rtx",
"loc",
")",
"{",
"rtx",
"tmp",
",",
"mem",
",",
"tp",
";",
"enum",
"tls_model",
"model",
"=",
"SYMBOL_REF_TLS_MODEL",
"(",
"loc",
")",
";",
"switch",
"(",
"model",
")",
"{",
"case",
"TLS_MODEL_GLOBAL_DYNAMIC",
":",
"tmp",
"=",
"gen_reg_rtx",
"(",
"Pmode",
")",
";",
"emit_move_insn",
"(",
"tmp",
",",
"nios2_got_address",
"(",
"loc",
",",
"UNSPEC_ADD_TLS_GD",
")",
")",
";",
"return",
"nios2_call_tls_get_addr",
"(",
"tmp",
")",
";",
"case",
"TLS_MODEL_LOCAL_DYNAMIC",
":",
"tmp",
"=",
"gen_reg_rtx",
"(",
"Pmode",
")",
";",
"emit_move_insn",
"(",
"tmp",
",",
"nios2_got_address",
"(",
"loc",
",",
"UNSPEC_ADD_TLS_LDM",
")",
")",
";",
"return",
"gen_rtx_PLUS",
"(",
"Pmode",
",",
"nios2_call_tls_get_addr",
"(",
"tmp",
")",
",",
"nios2_unspec_offset",
"(",
"loc",
",",
"UNSPEC_ADD_TLS_LDO",
")",
")",
";",
"case",
"TLS_MODEL_INITIAL_EXEC",
":",
"tmp",
"=",
"gen_reg_rtx",
"(",
"Pmode",
")",
";",
"mem",
"=",
"gen_const_mem",
"(",
"Pmode",
",",
"nios2_got_address",
"(",
"loc",
",",
"UNSPEC_LOAD_TLS_IE",
")",
")",
";",
"emit_move_insn",
"(",
"tmp",
",",
"mem",
")",
";",
"tp",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"TP_REGNO",
")",
";",
"return",
"gen_rtx_PLUS",
"(",
"Pmode",
",",
"tp",
",",
"tmp",
")",
";",
"case",
"TLS_MODEL_LOCAL_EXEC",
":",
"tp",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"TP_REGNO",
")",
";",
"return",
"gen_rtx_PLUS",
"(",
"Pmode",
",",
"tp",
",",
"nios2_unspec_offset",
"(",
"loc",
",",
"UNSPEC_ADD_TLS_LE",
")",
")",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"}",
"</s>"
] | [
"Generate",
"the",
"code",
"to",
"access",
"LOC",
",",
"a",
"thread",
"local",
"SYMBOL_REF",
".",
"The",
"return",
"value",
"will",
"be",
"a",
"valid",
"address",
"and",
"move_operand",
"(",
"either",
"a",
"REG",
"or",
"a",
"LO_SUM",
")",
"."
] | [
"nios2"
] | nios2 | nios2_legitimize_tls_address | nios2 | MPU | GCC | 30,331 | 182 | 1 | [] |
[
"<s>",
"static",
"void",
"loongarch_emit_int_compare",
"(",
"enum",
"rtx_code",
"*",
"code",
",",
"rtx",
"*",
"op0",
",",
"rtx",
"*",
"op1",
")",
"{",
"static",
"const",
"enum",
"rtx_code",
"mag_comparisons",
"[",
"]",
"[",
"2",
"]",
"=",
"{",
"{",
"LEU",
",",
"LTU",
"}",
",",
"{",
"GTU",
",",
"GEU",
"}",
",",
"{",
"LE",
",",
"LT",
"}",
",",
"{",
"GT",
",",
"GE",
"}",
"}",
";",
"if",
"(",
"splittable_const_int_operand",
"(",
"*",
"op1",
",",
"VOIDmode",
")",
")",
"{",
"HOST_WIDE_INT",
"rhs",
"=",
"INTVAL",
"(",
"*",
"op1",
")",
";",
"if",
"(",
"*",
"code",
"==",
"EQ",
"||",
"*",
"code",
"==",
"NE",
")",
"{",
"if",
"(",
"IMM12_OPERAND",
"(",
"-",
"rhs",
")",
")",
"{",
"*",
"op0",
"=",
"loongarch_force_binary",
"(",
"GET_MODE",
"(",
"*",
"op0",
")",
",",
"PLUS",
",",
"*",
"op0",
",",
"GEN_INT",
"(",
"-",
"rhs",
")",
")",
";",
"*",
"op1",
"=",
"const0_rtx",
";",
"}",
"}",
"else",
"{",
"for",
"(",
"size_t",
"i",
"=",
"0",
";",
"i",
"<",
"ARRAY_SIZE",
"(",
"mag_comparisons",
")",
";",
"i",
"++",
")",
"{",
"HOST_WIDE_INT",
"new_rhs",
";",
"bool",
"increment",
"=",
"*",
"code",
"==",
"mag_comparisons",
"[",
"i",
"]",
"[",
"0",
"]",
";",
"bool",
"decrement",
"=",
"*",
"code",
"==",
"mag_comparisons",
"[",
"i",
"]",
"[",
"1",
"]",
";",
"if",
"(",
"!",
"increment",
"&&",
"!",
"decrement",
")",
"continue",
";",
"new_rhs",
"=",
"rhs",
"+",
"(",
"increment",
"?",
"1",
":",
"-",
"1",
")",
";",
"if",
"(",
"loongarch_integer_cost",
"(",
"new_rhs",
")",
"<",
"loongarch_integer_cost",
"(",
"rhs",
")",
"&&",
"(",
"rhs",
"<",
"0",
")",
"==",
"(",
"new_rhs",
"<",
"0",
")",
")",
"{",
"*",
"op1",
"=",
"GEN_INT",
"(",
"new_rhs",
")",
";",
"*",
"code",
"=",
"mag_comparisons",
"[",
"i",
"]",
"[",
"increment",
"]",
";",
"}",
"break",
";",
"}",
"}",
"}",
"loongarch_extend_comparands",
"(",
"*",
"code",
",",
"op0",
",",
"op1",
")",
";",
"*",
"op0",
"=",
"force_reg",
"(",
"word_mode",
",",
"*",
"op0",
")",
";",
"if",
"(",
"*",
"op1",
"!=",
"const0_rtx",
")",
"*",
"op1",
"=",
"force_reg",
"(",
"word_mode",
",",
"*",
"op1",
")",
";",
"}",
"</s>"
] | [
"Convert",
"a",
"comparison",
"into",
"something",
"that",
"can",
"be",
"used",
"in",
"a",
"branch",
".",
"On",
"entry",
",",
"*",
"OP0",
"and",
"*",
"OP1",
"are",
"the",
"values",
"being",
"compared",
"and",
"*",
"CODE",
"is",
"the",
"code",
"used",
"to",
"compare",
"them",
".",
"Update",
"them",
"to",
"describe",
"the",
"final",
"comparison",
"."
] | [
"loongarch",
"2",
"0",
"0",
"1",
"1",
"1",
"0",
"0"
] | loongarch | loongarch_emit_int_compare | loongarch | CPU | GCC | 30,332 | 291 | 1 | [] |
[
"<s>",
"static",
"bool",
"s390_hard_regno_scratch_ok",
"(",
"unsigned",
"int",
"regno",
")",
"{",
"if",
"(",
"GENERAL_REGNO_P",
"(",
"regno",
")",
"&&",
"!",
"call_really_used_regs",
"[",
"regno",
"]",
"&&",
"cfun_gpr_save_slot",
"(",
"regno",
")",
"==",
"0",
")",
"return",
"false",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Return",
"nonzero",
"if",
"register",
"REGNO",
"can",
"be",
"used",
"as",
"a",
"scratch",
"register",
"in",
"peephole2",
"."
] | [
"s390",
"0"
] | s3904 | s390_hard_regno_scratch_ok | s390 | MPU | GCC | 30,333 | 36 | 1 | [] |
[
"<s>",
"static",
"bool",
"v850_return_in_memory",
"(",
"const_tree",
"type",
",",
"const_tree",
"fntype",
"ATTRIBUTE_UNUSED",
")",
"{",
"return",
"int_size_in_bytes",
"(",
"type",
")",
">",
"8",
"||",
"TYPE_MODE",
"(",
"type",
")",
"==",
"BLKmode",
"||",
"(",
"(",
"!",
"TARGET_GCC_ABI",
")",
"&&",
"AGGREGATE_TYPE_P",
"(",
"type",
")",
")",
";",
"}",
"</s>"
] | [
"Worker",
"function",
"for",
"TARGET_RETURN_IN_MEMORY",
"."
] | [
"v850",
"8"
] | v850 | v850_return_in_memory | v850 | MPU | GCC | 30,334 | 40 | 1 | [] |
[
"<s>",
"bool",
"HexagonTargetObjectFile",
"::",
"isGlobalInSmallSection",
"(",
"const",
"GlobalObject",
"*",
"GO",
",",
"const",
"TargetMachine",
"&",
"TM",
")",
"const",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"Checking if value is in small-data, -G\"",
"<<",
"SmallDataThreshold",
"<<",
"\": \\\"\"",
"<<",
"GO",
"->",
"getName",
"(",
")",
"<<",
"\"\\\": \"",
")",
";",
"const",
"GlobalVariable",
"*",
"GVar",
"=",
"dyn_cast",
"<",
"GlobalVariable",
">",
"(",
"GO",
")",
";",
"if",
"(",
"!",
"GVar",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"no, not a global variable\\n\"",
")",
";",
"return",
"false",
";",
"}",
"if",
"(",
"GVar",
"->",
"hasSection",
"(",
")",
")",
"{",
"bool",
"IsSmall",
"=",
"isSmallDataSection",
"(",
"GVar",
"->",
"getSection",
"(",
")",
")",
";",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"(",
"IsSmall",
"?",
"\"yes\"",
":",
"\"no\"",
")",
"<<",
"\", has section: \"",
"<<",
"GVar",
"->",
"getSection",
"(",
")",
"<<",
"'\\n'",
")",
";",
"return",
"IsSmall",
";",
"}",
"if",
"(",
"GVar",
"->",
"isConstant",
"(",
")",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"no, is a constant\\n\"",
")",
";",
"return",
"false",
";",
"}",
"bool",
"IsLocal",
"=",
"GVar",
"->",
"hasLocalLinkage",
"(",
")",
";",
"if",
"(",
"!",
"StaticsInSData",
"&&",
"IsLocal",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"no, is static\\n\"",
")",
";",
"return",
"false",
";",
"}",
"Type",
"*",
"GType",
"=",
"GVar",
"->",
"getType",
"(",
")",
";",
"if",
"(",
"PointerType",
"*",
"PT",
"=",
"dyn_cast",
"<",
"PointerType",
">",
"(",
"GType",
")",
")",
"GType",
"=",
"PT",
"->",
"getElementType",
"(",
")",
";",
"if",
"(",
"isa",
"<",
"ArrayType",
">",
"(",
"GType",
")",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"no, is an array\\n\"",
")",
";",
"return",
"false",
";",
"}",
"if",
"(",
"StructType",
"*",
"ST",
"=",
"dyn_cast",
"<",
"StructType",
">",
"(",
"GType",
")",
")",
"{",
"if",
"(",
"ST",
"->",
"isOpaque",
"(",
")",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"no, has opaque type\\n\"",
")",
";",
"return",
"false",
";",
"}",
"}",
"unsigned",
"Size",
"=",
"GVar",
"->",
"getParent",
"(",
")",
"->",
"getDataLayout",
"(",
")",
".",
"getTypeAllocSize",
"(",
"GType",
")",
";",
"if",
"(",
"Size",
"==",
"0",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"no, has size 0\\n\"",
")",
";",
"return",
"false",
";",
"}",
"if",
"(",
"Size",
">",
"SmallDataThreshold",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"no, size exceeds sdata threshold: \"",
"<<",
"Size",
"<<",
"'\\n'",
")",
";",
"return",
"false",
";",
"}",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"yes\\n\"",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"this",
"global",
"address",
"should",
"be",
"placed",
"into",
"small",
"data/bss",
"section",
"."
] | [
"Hexagon",
"Hexagon",
"\"Checking if value is in small-data, -G\"",
"\": \\\"\"",
"\"\\\": \"",
"\"no, not a global variable\\n\"",
"\"yes\"",
"\"no\"",
"\", has section: \"",
"\"no, is a constant\\n\"",
"\"no, is static\\n\"",
"\"no, is an array\\n\"",
"\"no, has opaque type\\n\"",
"0",
"\"no, has size 0\\n\"",
"\"no, size exceeds sdata threshold: \"",
"\"yes\\n\""
] | HexagonTargetObjectFile20 | isGlobalInSmallSection | Hexagon | DSP | LLVM | 30,335 | 341 | 1 | [] |
[
"<s>",
"bool",
"RISCVInstrInfo",
"::",
"verifyInstruction",
"(",
"const",
"MachineInstr",
"&",
"MI",
",",
"StringRef",
"&",
"ErrInfo",
")",
"const",
"{",
"const",
"MCInstrInfo",
"*",
"MCII",
"=",
"STI",
".",
"getInstrInfo",
"(",
")",
";",
"MCInstrDesc",
"const",
"&",
"Desc",
"=",
"MCII",
"->",
"get",
"(",
"MI",
".",
"getOpcode",
"(",
")",
")",
";",
"for",
"(",
"auto",
"&",
"OI",
":",
"enumerate",
"(",
"Desc",
".",
"operands",
"(",
")",
")",
")",
"{",
"unsigned",
"OpType",
"=",
"OI",
".",
"value",
"(",
")",
".",
"OperandType",
";",
"if",
"(",
"OpType",
">=",
"RISCVOp",
"::",
"OPERAND_FIRST_RISCV_IMM",
"&&",
"OpType",
"<=",
"RISCVOp",
"::",
"OPERAND_LAST_RISCV_IMM",
")",
"{",
"const",
"MachineOperand",
"&",
"MO",
"=",
"MI",
".",
"getOperand",
"(",
"OI",
".",
"index",
"(",
")",
")",
";",
"if",
"(",
"MO",
".",
"isImm",
"(",
")",
")",
"{",
"int64_t",
"Imm",
"=",
"MO",
".",
"getImm",
"(",
")",
";",
"bool",
"Ok",
";",
"switch",
"(",
"OpType",
")",
"{",
"default",
":",
"llvm_unreachable",
"(",
"\"Unexpected operand type\"",
")",
";",
"case",
"RISCVOp",
"::",
"OPERAND_UIMM4",
":",
"Ok",
"=",
"isUInt",
"<",
"4",
">",
"(",
"Imm",
")",
";",
"break",
";",
"case",
"RISCVOp",
"::",
"OPERAND_UIMM5",
":",
"Ok",
"=",
"isUInt",
"<",
"5",
">",
"(",
"Imm",
")",
";",
"break",
";",
"case",
"RISCVOp",
"::",
"OPERAND_UIMM12",
":",
"Ok",
"=",
"isUInt",
"<",
"12",
">",
"(",
"Imm",
")",
";",
"break",
";",
"case",
"RISCVOp",
"::",
"OPERAND_SIMM12",
":",
"Ok",
"=",
"isInt",
"<",
"12",
">",
"(",
"Imm",
")",
";",
"break",
";",
"case",
"RISCVOp",
"::",
"OPERAND_UIMM20",
":",
"Ok",
"=",
"isUInt",
"<",
"20",
">",
"(",
"Imm",
")",
";",
"break",
";",
"case",
"RISCVOp",
"::",
"OPERAND_UIMMLOG2XLEN",
":",
"if",
"(",
"STI",
".",
"getTargetTriple",
"(",
")",
".",
"isArch64Bit",
"(",
")",
")",
"Ok",
"=",
"isUInt",
"<",
"6",
">",
"(",
"Imm",
")",
";",
"else",
"Ok",
"=",
"isUInt",
"<",
"5",
">",
"(",
"Imm",
")",
";",
"break",
";",
"}",
"if",
"(",
"!",
"Ok",
")",
"{",
"ErrInfo",
"=",
"\"Invalid immediate\"",
";",
"return",
"false",
";",
"}",
"}",
"}",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"Perform",
"target-specific",
"instruction",
"verification",
"."
] | [
"RISCV",
"RISCV",
"RISCVOp::OPERAND_FIRST_RISCV_IMM",
"RISCVOp::OPERAND_LAST_RISCV_IMM",
"\"Unexpected operand type\"",
"RISCVOp::OPERAND_UIMM4",
"4",
"RISCVOp::OPERAND_UIMM5",
"5",
"RISCVOp::OPERAND_UIMM12",
"12",
"RISCVOp::OPERAND_SIMM12",
"12",
"RISCVOp::OPERAND_UIMM20",
"20",
"RISCVOp::OPERAND_UIMMLOG2XLEN",
"6",
"5",
"\"Invalid immediate\""
] | RISCVInstrInfo12 | verifyInstruction | RISCV | CPU | LLVM | 30,336 | 281 | 1 | [] |
[
"<s>",
"static",
"void",
"arm_init_builtin",
"(",
"unsigned",
"int",
"fcode",
",",
"arm_builtin_datum",
"*",
"d",
",",
"const",
"char",
"*",
"prefix",
")",
"{",
"bool",
"print_type_signature_p",
"=",
"false",
";",
"char",
"type_signature",
"[",
"SIMD_MAX_BUILTIN_ARGS",
"]",
"=",
"{",
"0",
"}",
";",
"char",
"namebuf",
"[",
"60",
"]",
";",
"tree",
"ftype",
"=",
"NULL",
";",
"tree",
"fndecl",
"=",
"NULL",
";",
"d",
"->",
"fcode",
"=",
"fcode",
";",
"int",
"op_num",
"=",
"insn_data",
"[",
"d",
"->",
"code",
"]",
".",
"n_operands",
"-",
"1",
";",
"int",
"arg_num",
"=",
"d",
"->",
"qualifiers",
"[",
"0",
"]",
"&",
"qualifier_void",
"?",
"op_num",
"+",
"1",
":",
"op_num",
";",
"tree",
"return_type",
"=",
"void_type_node",
",",
"args",
"=",
"void_list_node",
";",
"tree",
"eltype",
";",
"for",
"(",
";",
"op_num",
">=",
"0",
";",
"arg_num",
"--",
",",
"op_num",
"--",
")",
"{",
"machine_mode",
"op_mode",
"=",
"insn_data",
"[",
"d",
"->",
"code",
"]",
".",
"operand",
"[",
"op_num",
"]",
".",
"mode",
";",
"enum",
"arm_type_qualifiers",
"qualifiers",
"=",
"d",
"->",
"qualifiers",
"[",
"arg_num",
"]",
";",
"if",
"(",
"qualifiers",
"&",
"qualifier_unsigned",
")",
"{",
"type_signature",
"[",
"arg_num",
"]",
"=",
"'u'",
";",
"print_type_signature_p",
"=",
"true",
";",
"}",
"else",
"if",
"(",
"qualifiers",
"&",
"qualifier_poly",
")",
"{",
"type_signature",
"[",
"arg_num",
"]",
"=",
"'p'",
";",
"print_type_signature_p",
"=",
"true",
";",
"}",
"else",
"type_signature",
"[",
"arg_num",
"]",
"=",
"'s'",
";",
"if",
"(",
"qualifiers",
"&",
"qualifier_internal",
")",
"continue",
";",
"if",
"(",
"qualifiers",
"&",
"qualifier_map_mode",
")",
"op_mode",
"=",
"d",
"->",
"mode",
";",
"if",
"(",
"qualifiers",
"&",
"qualifier_predicate",
")",
"op_mode",
"=",
"HImode",
";",
"if",
"(",
"qualifiers",
"&",
"qualifier_pointer",
"&&",
"VECTOR_MODE_P",
"(",
"op_mode",
")",
")",
"op_mode",
"=",
"GET_MODE_INNER",
"(",
"op_mode",
")",
";",
"if",
"(",
"qualifiers",
"&",
"qualifier_void_pointer",
")",
"eltype",
"=",
"qualifiers",
"&",
"qualifier_const",
"?",
"const_ptr_type_node",
":",
"ptr_type_node",
";",
"else",
"{",
"eltype",
"=",
"arm_simd_builtin_type",
"(",
"op_mode",
",",
"qualifiers",
")",
";",
"gcc_assert",
"(",
"eltype",
"!=",
"NULL",
")",
";",
"if",
"(",
"qualifiers",
"&",
"qualifier_const",
")",
"eltype",
"=",
"build_qualified_type",
"(",
"eltype",
",",
"TYPE_QUAL_CONST",
")",
";",
"if",
"(",
"qualifiers",
"&",
"qualifier_pointer",
")",
"eltype",
"=",
"build_pointer_type",
"(",
"eltype",
")",
";",
"}",
"if",
"(",
"arg_num",
"==",
"0",
")",
"return_type",
"=",
"eltype",
";",
"else",
"args",
"=",
"tree_cons",
"(",
"NULL_TREE",
",",
"eltype",
",",
"args",
")",
";",
"}",
"ftype",
"=",
"build_function_type",
"(",
"return_type",
",",
"args",
")",
";",
"gcc_assert",
"(",
"ftype",
"!=",
"NULL",
")",
";",
"if",
"(",
"print_type_signature_p",
"&&",
"IN_RANGE",
"(",
"fcode",
",",
"ARM_BUILTIN_VFP_BASE",
",",
"ARM_BUILTIN_ACLE_BASE",
"-",
"1",
")",
")",
"snprintf",
"(",
"namebuf",
",",
"sizeof",
"(",
"namebuf",
")",
",",
"\"%s_%s_%s\"",
",",
"prefix",
",",
"d",
"->",
"name",
",",
"type_signature",
")",
";",
"else",
"snprintf",
"(",
"namebuf",
",",
"sizeof",
"(",
"namebuf",
")",
",",
"\"%s_%s\"",
",",
"prefix",
",",
"d",
"->",
"name",
")",
";",
"fndecl",
"=",
"add_builtin_function",
"(",
"namebuf",
",",
"ftype",
",",
"fcode",
",",
"BUILT_IN_MD",
",",
"NULL",
",",
"NULL_TREE",
")",
";",
"arm_builtin_decls",
"[",
"fcode",
"]",
"=",
"fndecl",
";",
"}",
"</s>"
] | [
"Set",
"up",
"a",
"builtin",
".",
"It",
"will",
"use",
"information",
"stored",
"in",
"the",
"argument",
"struct",
"D",
"to",
"derive",
"the",
"builtin",
"'s",
"type",
"signature",
"and",
"name",
".",
"It",
"will",
"append",
"the",
"name",
"in",
"D",
"to",
"the",
"PREFIX",
"passed",
"and",
"use",
"these",
"to",
"create",
"a",
"builtin",
"declaration",
"that",
"is",
"then",
"stored",
"in",
"'arm_builtin_decls",
"'",
"under",
"index",
"FCODE",
".",
"This",
"FCODE",
"is",
"also",
"written",
"back",
"to",
"D",
"for",
"future",
"use",
"."
] | [
"arm",
"0",
"60",
"1",
"0",
"1",
"0",
"0",
"1",
"\"%s_%s_%s\"",
"\"%s_%s\""
] | arm-builtins1 | arm_init_builtin | arm | CPU | GCC | 30,337 | 417 | 1 | [] |
[
"<s>",
"bool",
"AMDGPUTTIImpl",
"::",
"isSourceOfDivergence",
"(",
"const",
"Value",
"*",
"V",
")",
"const",
"{",
"if",
"(",
"const",
"Argument",
"*",
"A",
"=",
"dyn_cast",
"<",
"Argument",
">",
"(",
"V",
")",
")",
"return",
"!",
"isArgPassedInSGPR",
"(",
"A",
")",
";",
"if",
"(",
"const",
"LoadInst",
"*",
"Load",
"=",
"dyn_cast",
"<",
"LoadInst",
">",
"(",
"V",
")",
")",
"return",
"Load",
"->",
"getPointerAddressSpace",
"(",
")",
"==",
"AMDGPUAS",
"::",
"PRIVATE_ADDRESS",
";",
"if",
"(",
"isa",
"<",
"AtomicRMWInst",
">",
"(",
"V",
")",
"||",
"isa",
"<",
"AtomicCmpXchgInst",
">",
"(",
"V",
")",
")",
"return",
"true",
";",
"if",
"(",
"const",
"IntrinsicInst",
"*",
"Intrinsic",
"=",
"dyn_cast",
"<",
"IntrinsicInst",
">",
"(",
"V",
")",
")",
"{",
"const",
"TargetMachine",
"&",
"TM",
"=",
"getTLI",
"(",
")",
"->",
"getTargetMachine",
"(",
")",
";",
"return",
"isIntrinsicSourceOfDivergence",
"(",
"TM",
".",
"getIntrinsicInfo",
"(",
")",
",",
"Intrinsic",
")",
";",
"}",
"if",
"(",
"isa",
"<",
"CallInst",
">",
"(",
"V",
")",
"||",
"isa",
"<",
"InvokeInst",
">",
"(",
"V",
")",
")",
"return",
"true",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Returns",
"whether",
"V",
"is",
"a",
"source",
"of",
"divergence",
"."
] | [
"AMDGPU",
"AMDGPU",
"AMDGPU"
] | AMDGPUTargetTransformInfo21 | isSourceOfDivergence | AMDGPU | GPU | LLVM | 30,338 | 148 | 1 | [] |
[
"<s>",
"bool",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"override",
"{",
"Subtarget",
"=",
"&",
"MF",
".",
"getSubtarget",
"<",
"RISCVSubtarget",
">",
"(",
")",
";",
"return",
"SelectionDAGISel",
"::",
"runOnMachineFunction",
"(",
"MF",
")",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"RI5CY",
"RISCV"
] | RISCVISelDAGToDAG | runOnMachineFunction | RI5CY | CPU | LLVM | 30,339 | 30 | 1 | [] |
[
"<s>",
"unsigned",
"MipsSEInstrInfo",
"::",
"loadImmediate",
"(",
"int64_t",
"Imm",
",",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"II",
",",
"const",
"DebugLoc",
"&",
"DL",
",",
"unsigned",
"*",
"NewImm",
")",
"const",
"{",
"MipsAnalyzeImmediate",
"AnalyzeImm",
";",
"const",
"MipsSubtarget",
"&",
"STI",
"=",
"Subtarget",
";",
"MachineRegisterInfo",
"&",
"RegInfo",
"=",
"MBB",
".",
"getParent",
"(",
")",
"->",
"getRegInfo",
"(",
")",
";",
"unsigned",
"Size",
"=",
"STI",
".",
"isABI_N64",
"(",
")",
"?",
"64",
":",
"32",
";",
"unsigned",
"LUi",
"=",
"STI",
".",
"isABI_N64",
"(",
")",
"?",
"Mips",
"::",
"LUi64",
":",
"Mips",
"::",
"LUi",
";",
"unsigned",
"ZEROReg",
"=",
"STI",
".",
"isABI_N64",
"(",
")",
"?",
"Mips",
"::",
"ZERO_64",
":",
"Mips",
"::",
"ZERO",
";",
"const",
"TargetRegisterClass",
"*",
"RC",
"=",
"STI",
".",
"isABI_N64",
"(",
")",
"?",
"&",
"Mips",
"::",
"GPR64RegClass",
":",
"&",
"Mips",
"::",
"GPR32RegClass",
";",
"bool",
"LastInstrIsADDiu",
"=",
"NewImm",
";",
"const",
"MipsAnalyzeImmediate",
"::",
"InstSeq",
"&",
"Seq",
"=",
"AnalyzeImm",
".",
"Analyze",
"(",
"Imm",
",",
"Size",
",",
"LastInstrIsADDiu",
")",
";",
"MipsAnalyzeImmediate",
"::",
"InstSeq",
"::",
"const_iterator",
"Inst",
"=",
"Seq",
".",
"begin",
"(",
")",
";",
"assert",
"(",
"Seq",
".",
"size",
"(",
")",
"&&",
"(",
"!",
"LastInstrIsADDiu",
"||",
"(",
"Seq",
".",
"size",
"(",
")",
">",
"1",
")",
")",
")",
";",
"Register",
"Reg",
"=",
"RegInfo",
".",
"createVirtualRegister",
"(",
"RC",
")",
";",
"if",
"(",
"Inst",
"->",
"Opc",
"==",
"LUi",
")",
"BuildMI",
"(",
"MBB",
",",
"II",
",",
"DL",
",",
"get",
"(",
"LUi",
")",
",",
"Reg",
")",
".",
"addImm",
"(",
"SignExtend64",
"<",
"16",
">",
"(",
"Inst",
"->",
"ImmOpnd",
")",
")",
";",
"else",
"BuildMI",
"(",
"MBB",
",",
"II",
",",
"DL",
",",
"get",
"(",
"Inst",
"->",
"Opc",
")",
",",
"Reg",
")",
".",
"addReg",
"(",
"ZEROReg",
")",
".",
"addImm",
"(",
"SignExtend64",
"<",
"16",
">",
"(",
"Inst",
"->",
"ImmOpnd",
")",
")",
";",
"for",
"(",
"++",
"Inst",
";",
"Inst",
"!=",
"Seq",
".",
"end",
"(",
")",
"-",
"LastInstrIsADDiu",
";",
"++",
"Inst",
")",
"BuildMI",
"(",
"MBB",
",",
"II",
",",
"DL",
",",
"get",
"(",
"Inst",
"->",
"Opc",
")",
",",
"Reg",
")",
".",
"addReg",
"(",
"Reg",
",",
"RegState",
"::",
"Kill",
")",
".",
"addImm",
"(",
"SignExtend64",
"<",
"16",
">",
"(",
"Inst",
"->",
"ImmOpnd",
")",
")",
";",
"if",
"(",
"LastInstrIsADDiu",
")",
"*",
"NewImm",
"=",
"Inst",
"->",
"ImmOpnd",
";",
"return",
"Reg",
";",
"}",
"</s>"
] | [
"Emit",
"a",
"series",
"of",
"instructions",
"to",
"load",
"an",
"immediate",
"."
] | [
"Mips",
"Mips",
"Mips",
"Mips",
"64",
"32",
"Mips::LUi64",
"Mips::LUi",
"Mips::ZERO_64",
"Mips::ZERO",
"Mips::GPR64RegClass",
"Mips::GPR32RegClass",
"Mips",
"Mips",
"1",
"16",
"16",
"16"
] | MipsSEInstrInfo23 | loadImmediate | Mips | CPU | LLVM | 30,340 | 337 | 1 | [] |
[
"<s>",
"const",
"TargetRegisterClass",
"*",
"SNESRegisterInfo",
"::",
"getLargestLegalSuperClass",
"(",
"const",
"TargetRegisterClass",
"*",
"RC",
",",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"const",
"TargetRegisterInfo",
"*",
"TRI",
"=",
"MF",
".",
"getSubtarget",
"(",
")",
".",
"getRegisterInfo",
"(",
")",
";",
"if",
"(",
"TRI",
"->",
"isTypeLegalForClass",
"(",
"*",
"RC",
",",
"MVT",
"::",
"i16",
")",
")",
"{",
"return",
"&",
"SNES",
"::",
"MainRegsRegClass",
";",
"}",
"llvm_unreachable",
"(",
"\"Invalid register size\"",
")",
";",
"}",
"</s>"
] | [
"Returns",
"the",
"largest",
"super",
"class",
"of",
"RC",
"that",
"is",
"legal",
"to",
"use",
"in",
"the",
"current",
"sub-target",
"and",
"has",
"the",
"same",
"spill",
"size",
"."
] | [
"SNES",
"SNES",
"MVT::i16",
"SNES::MainRegsRegClass",
"\"Invalid register size\""
] | SNESRegisterInfo | getLargestLegalSuperClass | SNES | DSP | LLVM | 30,341 | 62 | 1 | [] |
[
"<s>",
"SDValue",
"MCS51TargetLowering",
"::",
"LowerCallResult",
"(",
"SDValue",
"Chain",
",",
"SDValue",
"InFlag",
",",
"CallingConv",
"::",
"ID",
"CallConv",
",",
"bool",
"isVarArg",
",",
"const",
"SmallVectorImpl",
"<",
"ISD",
"::",
"InputArg",
">",
"&",
"Ins",
",",
"const",
"SDLoc",
"&",
"dl",
",",
"SelectionDAG",
"&",
"DAG",
",",
"SmallVectorImpl",
"<",
"SDValue",
">",
"&",
"InVals",
")",
"const",
"{",
"SmallVector",
"<",
"CCValAssign",
",",
"16",
">",
"RVLocs",
";",
"CCState",
"CCInfo",
"(",
"CallConv",
",",
"isVarArg",
",",
"DAG",
".",
"getMachineFunction",
"(",
")",
",",
"RVLocs",
",",
"*",
"DAG",
".",
"getContext",
"(",
")",
")",
";",
"if",
"(",
"CallConv",
"==",
"CallingConv",
"::",
"MCS51_BUILTIN",
")",
"{",
"CCInfo",
".",
"AnalyzeCallResult",
"(",
"Ins",
",",
"RetCC_MCS51_BUILTIN",
")",
";",
"}",
"else",
"{",
"analyzeReturnValues",
"(",
"Ins",
",",
"CCInfo",
")",
";",
"}",
"for",
"(",
"CCValAssign",
"const",
"&",
"RVLoc",
":",
"RVLocs",
")",
"{",
"Chain",
"=",
"DAG",
".",
"getCopyFromReg",
"(",
"Chain",
",",
"dl",
",",
"RVLoc",
".",
"getLocReg",
"(",
")",
",",
"RVLoc",
".",
"getValVT",
"(",
")",
",",
"InFlag",
")",
".",
"getValue",
"(",
"1",
")",
";",
"InFlag",
"=",
"Chain",
".",
"getValue",
"(",
"2",
")",
";",
"InVals",
".",
"push_back",
"(",
"Chain",
".",
"getValue",
"(",
"0",
")",
")",
";",
"}",
"return",
"Chain",
";",
"}",
"</s>"
] | [
"LowerCallResult",
"-",
"Lower",
"the",
"result",
"values",
"of",
"an",
"ISD",
":",
":CALL",
"into",
"the",
"appropriate",
"copies",
"out",
"of",
"appropriate",
"physical",
"registers",
"."
] | [
"MCS51",
"MCS51",
"ISD::InputArg",
"16",
"MCS51",
"MCS51",
"1",
"2",
"0"
] | MCS51ISelLowering | LowerCallResult | MCS51 | MPU | LLVM | 30,342 | 173 | 1 | [] |
[
"<s>",
"static",
"int",
"frv_memory_move_cost",
"(",
"machine_mode",
"mode",
"ATTRIBUTE_UNUSED",
",",
"reg_class_t",
"rclass",
"ATTRIBUTE_UNUSED",
",",
"bool",
"in",
"ATTRIBUTE_UNUSED",
")",
"{",
"return",
"4",
";",
"}",
"</s>"
] | [
"Worker",
"function",
"for",
"TARGET_MEMORY_MOVE_COST",
"."
] | [
"frv",
"4"
] | frv | frv_memory_move_cost | frv | VLIW | GCC | 30,343 | 21 | 1 | [] |
[
"<s>",
"void",
"ARMAsmBackend",
"::",
"applyFixup",
"(",
"const",
"MCAssembler",
"&",
"Asm",
",",
"const",
"MCFixup",
"&",
"Fixup",
",",
"const",
"MCValue",
"&",
"Target",
",",
"MutableArrayRef",
"<",
"char",
">",
"Data",
",",
"uint64_t",
"Value",
",",
"bool",
"IsResolved",
",",
"const",
"MCSubtargetInfo",
"*",
"STI",
")",
"const",
"{",
"unsigned",
"Kind",
"=",
"Fixup",
".",
"getKind",
"(",
")",
";",
"if",
"(",
"Kind",
">=",
"FirstLiteralRelocationKind",
")",
"return",
";",
"unsigned",
"NumBytes",
"=",
"getFixupKindNumBytes",
"(",
"Kind",
")",
";",
"MCContext",
"&",
"Ctx",
"=",
"Asm",
".",
"getContext",
"(",
")",
";",
"Value",
"=",
"adjustFixupValue",
"(",
"Asm",
",",
"Fixup",
",",
"Target",
",",
"Value",
",",
"IsResolved",
",",
"Ctx",
",",
"STI",
")",
";",
"if",
"(",
"!",
"Value",
")",
"return",
";",
"unsigned",
"Offset",
"=",
"Fixup",
".",
"getOffset",
"(",
")",
";",
"assert",
"(",
"Offset",
"+",
"NumBytes",
"<=",
"Data",
".",
"size",
"(",
")",
"&&",
"\"Invalid fixup offset!\"",
")",
";",
"unsigned",
"FullSizeBytes",
";",
"if",
"(",
"Endian",
"==",
"support",
"::",
"big",
")",
"{",
"FullSizeBytes",
"=",
"getFixupKindContainerSizeBytes",
"(",
"Kind",
")",
";",
"assert",
"(",
"(",
"Offset",
"+",
"FullSizeBytes",
")",
"<=",
"Data",
".",
"size",
"(",
")",
"&&",
"\"Invalid fixup size!\"",
")",
";",
"assert",
"(",
"NumBytes",
"<=",
"FullSizeBytes",
"&&",
"\"Invalid fixup size!\"",
")",
";",
"}",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"!=",
"NumBytes",
";",
"++",
"i",
")",
"{",
"unsigned",
"Idx",
"=",
"Endian",
"==",
"support",
"::",
"little",
"?",
"i",
":",
"(",
"FullSizeBytes",
"-",
"1",
"-",
"i",
")",
";",
"Data",
"[",
"Offset",
"+",
"Idx",
"]",
"|=",
"uint8_t",
"(",
"(",
"Value",
">>",
"(",
"i",
"*",
"8",
")",
")",
"&",
"0xff",
")",
";",
"}",
"}",
"</s>"
] | [
"Apply",
"the",
"Value",
"for",
"given",
"Fixup",
"into",
"the",
"provided",
"data",
"fragment",
",",
"at",
"the",
"offset",
"specified",
"by",
"the",
"fixup",
"and",
"following",
"the",
"fixup",
"kind",
"as",
"appropriate",
"."
] | [
"ARM",
"ARM",
"\"Invalid fixup offset!\"",
"support::big",
"\"Invalid fixup size!\"",
"\"Invalid fixup size!\"",
"0",
"support::little",
"1",
"8",
"0xff"
] | ARMAsmBackend10 | applyFixup | ARM | CPU | LLVM | 30,344 | 228 | 1 | [] |
[
"<s>",
"const",
"TargetRegisterClass",
"*",
"M680x0RegisterInfo",
"::",
"intRegClass",
"(",
"unsigned",
"size",
")",
"const",
"{",
"return",
"&",
"M680x0",
"::",
"DR32RegClass",
";",
"}",
"</s>"
] | [
"Return",
"GPR",
"register",
"class",
"."
] | [
"M680x0",
"M680x0",
"M680x0::DR32RegClass"
] | M680x0RegisterInfo | intRegClass | M680x0 | MPU | LLVM | 30,345 | 19 | 1 | [] |
[
"<s>",
"StringRef",
"AMDGPUIntrinsicInfo",
"::",
"getName",
"(",
"unsigned",
"IntrID",
",",
"ArrayRef",
"<",
"Type",
"*",
">",
"Tys",
")",
"const",
"{",
"if",
"(",
"IntrID",
"<",
"Intrinsic",
"::",
"num_intrinsics",
")",
"return",
"StringRef",
"(",
")",
";",
"assert",
"(",
"IntrID",
"<",
"SIIntrinsic",
"::",
"num_AMDGPU_intrinsics",
"&&",
"\"Invalid intrinsic ID\"",
")",
";",
"return",
"IntrinsicNameTable",
"[",
"IntrID",
"-",
"Intrinsic",
"::",
"num_intrinsics",
"]",
";",
"}",
"</s>"
] | [
"Return",
"a",
"string",
"with",
"the",
"name",
"of",
"the",
"plan",
"and",
"the",
"applicable",
"VFs",
"and",
"UFs",
"."
] | [
"AMDGPU",
"AMDGPU",
"Intrinsic::num_intrinsics",
"SIIntrinsic::num_AMDGPU_intrinsics",
"\"Invalid intrinsic ID\"",
"Intrinsic::num_intrinsics"
] | AMDGPUIntrinsicInfo8 | getName | AMDGPU | GPU | LLVM | 30,346 | 52 | 1 | [] |
[
"<s>",
"bool",
"X86AsmPrinter",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"Subtarget",
"=",
"&",
"MF",
".",
"getSubtarget",
"<",
"X86Subtarget",
">",
"(",
")",
";",
"SMShadowTracker",
".",
"startFunction",
"(",
"MF",
")",
";",
"CodeEmitter",
".",
"reset",
"(",
"TM",
".",
"getTarget",
"(",
")",
".",
"createMCCodeEmitter",
"(",
"*",
"Subtarget",
"->",
"getInstrInfo",
"(",
")",
",",
"MF",
".",
"getContext",
"(",
")",
")",
")",
";",
"EmitFPOData",
"=",
"Subtarget",
"->",
"isTargetWin32",
"(",
")",
"&&",
"MF",
".",
"getMMI",
"(",
")",
".",
"getModule",
"(",
")",
"->",
"getCodeViewFlag",
"(",
")",
";",
"SetupMachineFunction",
"(",
"MF",
")",
";",
"if",
"(",
"Subtarget",
"->",
"isTargetCOFF",
"(",
")",
")",
"{",
"bool",
"Local",
"=",
"MF",
".",
"getFunction",
"(",
")",
".",
"hasLocalLinkage",
"(",
")",
";",
"OutStreamer",
"->",
"BeginCOFFSymbolDef",
"(",
"CurrentFnSym",
")",
";",
"OutStreamer",
"->",
"EmitCOFFSymbolStorageClass",
"(",
"Local",
"?",
"COFF",
"::",
"IMAGE_SYM_CLASS_STATIC",
":",
"COFF",
"::",
"IMAGE_SYM_CLASS_EXTERNAL",
")",
";",
"OutStreamer",
"->",
"EmitCOFFSymbolType",
"(",
"COFF",
"::",
"IMAGE_SYM_DTYPE_FUNCTION",
"<<",
"COFF",
"::",
"SCT_COMPLEX_TYPE_SHIFT",
")",
";",
"OutStreamer",
"->",
"EndCOFFSymbolDef",
"(",
")",
";",
"}",
"emitFunctionBody",
"(",
")",
";",
"emitXRayTable",
"(",
")",
";",
"EmitFPOData",
"=",
"false",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"X86",
"X86",
"X86"
] | X86AsmPrinter36 | runOnMachineFunction | X86 | CPU | LLVM | 30,347 | 163 | 1 | [] |
[
"<s>",
"static",
"bool",
"sh_legitimize_address_displacement",
"(",
"rtx",
"*",
"disp",
",",
"rtx",
"*",
"offs",
",",
"machine_mode",
"mode",
")",
"{",
"if",
"(",
"(",
"TARGET_FPU_DOUBLE",
"&&",
"mode",
"==",
"DFmode",
")",
"||",
"(",
"TARGET_SH2E",
"&&",
"mode",
"==",
"SFmode",
")",
")",
"return",
"false",
";",
"struct",
"disp_adjust",
"adj",
"=",
"sh_find_mov_disp_adjust",
"(",
"mode",
",",
"INTVAL",
"(",
"*",
"disp",
")",
")",
";",
"if",
"(",
"adj",
".",
"offset_adjust",
"!=",
"NULL_RTX",
"&&",
"adj",
".",
"mov_disp",
"!=",
"NULL_RTX",
")",
"{",
"*",
"disp",
"=",
"adj",
".",
"mov_disp",
";",
"*",
"offs",
"=",
"adj",
".",
"offset_adjust",
";",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"DISP",
"can",
"be",
"legitimized",
"."
] | [
"sh"
] | sh6 | sh_legitimize_address_displacement | sh | CPU | GCC | 30,348 | 89 | 1 | [] |
[
"<s>",
"int",
"HexagonMCInstrInfo",
"::",
"getMaxValue",
"(",
"MCInstrInfo",
"const",
"&",
"MCII",
",",
"MCInst",
"const",
"&",
"MCI",
")",
"{",
"uint64_t",
"const",
"F",
"=",
"HexagonMCInstrInfo",
"::",
"getDesc",
"(",
"MCII",
",",
"MCI",
")",
".",
"TSFlags",
";",
"unsigned",
"isSigned",
"=",
"(",
"F",
">>",
"HexagonII",
"::",
"ExtentSignedPos",
")",
"&",
"HexagonII",
"::",
"ExtentSignedMask",
";",
"unsigned",
"bits",
"=",
"(",
"F",
">>",
"HexagonII",
"::",
"ExtentBitsPos",
")",
"&",
"HexagonII",
"::",
"ExtentBitsMask",
";",
"if",
"(",
"isSigned",
")",
"return",
"~",
"(",
"-",
"1U",
"<<",
"(",
"bits",
"-",
"1",
")",
")",
";",
"else",
"return",
"~",
"(",
"-",
"1U",
"<<",
"bits",
")",
";",
"}",
"</s>"
] | [
"Return",
"the",
"maximal",
"unsigned",
"value",
"possible",
"given",
"these",
"KnownBits",
"."
] | [
"Hexagon",
"Hexagon",
"Hexagon",
"HexagonII::ExtentSignedPos",
"HexagonII::ExtentSignedMask",
"HexagonII::ExtentBitsPos",
"HexagonII::ExtentBitsMask",
"1U",
"1",
"1U"
] | HexagonMCInstrInfo | getMaxValue | Hexagon | DSP | LLVM | 30,349 | 89 | 1 | [] |
[
"<s>",
"char",
"*",
"aarch64_output_sve_cnt_pat_immediate",
"(",
"const",
"char",
"*",
"prefix",
",",
"const",
"char",
"*",
"operands",
",",
"rtx",
"*",
"cnt_pat",
")",
"{",
"aarch64_svpattern",
"pattern",
"=",
"(",
"aarch64_svpattern",
")",
"INTVAL",
"(",
"cnt_pat",
"[",
"0",
"]",
")",
";",
"unsigned",
"int",
"nelts_per_vq",
"=",
"INTVAL",
"(",
"cnt_pat",
"[",
"1",
"]",
")",
";",
"unsigned",
"int",
"factor",
"=",
"INTVAL",
"(",
"cnt_pat",
"[",
"2",
"]",
")",
"*",
"nelts_per_vq",
";",
"return",
"aarch64_output_sve_cnt_immediate",
"(",
"prefix",
",",
"operands",
",",
"pattern",
",",
"factor",
",",
"nelts_per_vq",
")",
";",
"}",
"</s>"
] | [
"Return",
"the",
"asm",
"string",
"for",
"an",
"instruction",
"with",
"a",
"CNT-like",
"vector",
"size",
"operand",
"(",
"a",
"vector",
"pattern",
"followed",
"by",
"a",
"multiplier",
"in",
"the",
"range",
"[",
"1",
",",
"16",
"]",
")",
".",
"PREFIX",
"is",
"the",
"mnemonic",
"without",
"the",
"size",
"suffix",
"and",
"OPERANDS",
"is",
"the",
"first",
"part",
"of",
"the",
"operands",
"template",
"(",
"the",
"part",
"that",
"comes",
"before",
"the",
"vector",
"size",
"itself",
")",
".",
"CNT_PAT",
"[",
"0",
"..",
"2",
"]",
"are",
"the",
"operands",
"of",
"the",
"UNSPEC_SVE_CNT_PAT",
";",
"see",
"aarch64_sve_cnt_pat",
"for",
"details",
"."
] | [
"aarch64",
"0",
"1",
"2"
] | aarch64 | aarch64_output_sve_cnt_pat_immediate | aarch64 | CPU | GCC | 30,350 | 74 | 1 | [] |
[
"<s>",
"static",
"inline",
"void",
"aarch64_adjust_sve_callee_save_base",
"(",
"machine_mode",
"mode",
",",
"rtx",
"&",
"base_rtx",
",",
"rtx",
"&",
"anchor_reg",
",",
"poly_int64",
"&",
"offset",
",",
"rtx",
"&",
"ptrue",
")",
"{",
"if",
"(",
"maybe_ge",
"(",
"offset",
",",
"8",
"*",
"GET_MODE_SIZE",
"(",
"mode",
")",
")",
")",
"{",
"poly_int64",
"anchor_offset",
"=",
"16",
"*",
"GET_MODE_SIZE",
"(",
"mode",
")",
";",
"if",
"(",
"!",
"anchor_reg",
")",
"{",
"anchor_reg",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"STACK_CLASH_SVE_CFA_REGNUM",
")",
";",
"emit_insn",
"(",
"gen_add3_insn",
"(",
"anchor_reg",
",",
"base_rtx",
",",
"gen_int_mode",
"(",
"anchor_offset",
",",
"Pmode",
")",
")",
")",
";",
"}",
"base_rtx",
"=",
"anchor_reg",
";",
"offset",
"-=",
"anchor_offset",
";",
"}",
"if",
"(",
"!",
"ptrue",
")",
"{",
"int",
"pred_reg",
"=",
"cfun",
"->",
"machine",
"->",
"frame",
".",
"spare_pred_reg",
";",
"emit_move_insn",
"(",
"gen_rtx_REG",
"(",
"VNx16BImode",
",",
"pred_reg",
")",
",",
"CONSTM1_RTX",
"(",
"VNx16BImode",
")",
")",
";",
"ptrue",
"=",
"gen_rtx_REG",
"(",
"VNx2BImode",
",",
"pred_reg",
")",
";",
"}",
"}",
"</s>"
] | [
"The",
"caller",
"is",
"going",
"to",
"use",
"ST1D",
"or",
"LD1D",
"to",
"save",
"or",
"restore",
"an",
"SVE",
"register",
"in",
"mode",
"MODE",
"at",
"BASE_RTX",
"+",
"OFFSET",
",",
"where",
"OFFSET",
"is",
"in",
"the",
"range",
"[",
"1",
",",
"16",
"]",
"*",
"GET_MODE_SIZE",
"(",
"MODE",
")",
".",
"Prepare",
"for",
"this",
"by",
":",
"(",
"1",
")",
"updating",
"BASE_RTX",
"+",
"OFFSET",
"so",
"that",
"it",
"is",
"a",
"legitimate",
"ST1D",
"or",
"LD1D",
"address",
"(",
"2",
")",
"setting",
"PRED",
"to",
"a",
"valid",
"predicate",
"register",
"for",
"the",
"ST1D",
"or",
"LD1D",
",",
"if",
"the",
"variable",
"is",
"n't",
"already",
"nonnull",
"(",
"1",
")",
"is",
"needed",
"when",
"OFFSET",
"is",
"in",
"the",
"range",
"[",
"8",
",",
"16",
"]",
"*",
"GET_MODE_SIZE",
"(",
"MODE",
")",
".",
"Handle",
"this",
"case",
"using",
"a",
"temporary",
"base",
"register",
"that",
"is",
"suitable",
"for",
"all",
"offsets",
"in",
"that",
"range",
".",
"Use",
"ANCHOR_REG",
"as",
"this",
"base",
"register",
"if",
"it",
"is",
"nonnull",
",",
"otherwise",
"create",
"a",
"new",
"register",
"and",
"store",
"it",
"in",
"ANCHOR_REG",
"."
] | [
"aarch64",
"8",
"16"
] | aarch64 | aarch64_adjust_sve_callee_save_base | aarch64 | CPU | GCC | 30,351 | 135 | 1 | [] |
[
"<s>",
"const",
"MCFixupKindInfo",
"&",
"getFixupKindInfo",
"(",
"MCFixupKind",
"Kind",
")",
"const",
"{",
"const",
"static",
"MCFixupKindInfo",
"Infos",
"[",
"X86",
"::",
"NumTargetFixupKinds",
"]",
"=",
"{",
"{",
"\"reloc_riprel_4byte\"",
",",
"0",
",",
"4",
"*",
"8",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"reloc_riprel_4byte_movq_load\"",
",",
"0",
",",
"4",
"*",
"8",
",",
"MCFixupKindInfo",
"::",
"FKF_IsPCRel",
"}",
",",
"{",
"\"reloc_signed_4byte\"",
",",
"0",
",",
"4",
"*",
"8",
",",
"0",
"}",
",",
"{",
"\"reloc_global_offset_table\"",
",",
"0",
",",
"4",
"*",
"8",
",",
"0",
"}",
"}",
";",
"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",
"."
] | [
"X86",
"X86::NumTargetFixupKinds",
"\"reloc_riprel_4byte\"",
"0",
"4",
"8",
"\"reloc_riprel_4byte_movq_load\"",
"0",
"4",
"8",
"\"reloc_signed_4byte\"",
"0",
"4",
"8",
"0",
"\"reloc_global_offset_table\"",
"0",
"4",
"8",
"0",
"\"Invalid kind!\""
] | X86AsmBackend20 | getFixupKindInfo | X86 | CPU | LLVM | 30,352 | 113 | 1 | [] |
[
"<s>",
"static",
"bool",
"ix86_unordered_fp_compare",
"(",
"enum",
"rtx_code",
"code",
")",
"{",
"if",
"(",
"!",
"TARGET_IEEE_FP",
")",
"return",
"false",
";",
"switch",
"(",
"code",
")",
"{",
"case",
"GT",
":",
"case",
"GE",
":",
"case",
"LT",
":",
"case",
"LE",
":",
"return",
"false",
";",
"case",
"EQ",
":",
"case",
"NE",
":",
"case",
"LTGT",
":",
"case",
"UNORDERED",
":",
"case",
"ORDERED",
":",
"case",
"UNLT",
":",
"case",
"UNLE",
":",
"case",
"UNGT",
":",
"case",
"UNGE",
":",
"case",
"UNEQ",
":",
"return",
"true",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"}",
"</s>"
] | [
"Figure",
"out",
"whether",
"to",
"use",
"unordered",
"fp",
"comparisons",
"."
] | [
"i386"
] | i3867 | ix86_unordered_fp_compare | i386 | CPU | GCC | 30,353 | 78 | 1 | [] |
[
"<s>",
"FastISel",
"*",
"PPC",
"::",
"createFastISel",
"(",
"FunctionLoweringInfo",
"&",
"FuncInfo",
",",
"const",
"TargetLibraryInfo",
"*",
"LibInfo",
")",
"{",
"const",
"PPCSubtarget",
"&",
"Subtarget",
"=",
"FuncInfo",
".",
"MF",
"->",
"getSubtarget",
"<",
"PPCSubtarget",
">",
"(",
")",
";",
"if",
"(",
"Subtarget",
".",
"isPPC64",
"(",
")",
"&&",
"Subtarget",
".",
"isSVR4ABI",
"(",
")",
")",
"return",
"new",
"PPCFastISel",
"(",
"FuncInfo",
",",
"LibInfo",
")",
";",
"return",
"nullptr",
";",
"}",
"</s>"
] | [
"This",
"method",
"returns",
"a",
"target",
"specific",
"FastISel",
"object",
",",
"or",
"null",
"if",
"the",
"target",
"does",
"not",
"support",
"``",
"fast",
"''",
"ISel",
"."
] | [
"PowerPC",
"PPC::createFastISel",
"PPC",
"PPC",
"PPC",
"PPC"
] | PPCFastISel (2) | createFastISel | PowerPC | CPU | LLVM | 30,354 | 59 | 1 | [] |
[
"<s>",
"void",
"P2AsmPrinter",
"::",
"emitFunctionBodyEnd",
"(",
")",
"{",
"}",
"</s>"
] | [
"Targets",
"can",
"override",
"this",
"to",
"emit",
"stuff",
"after",
"the",
"last",
"basic",
"block",
"in",
"the",
"function",
"."
] | [
"P2",
"P2"
] | P2AsmPrinter | emitFunctionBodyEnd | P2 | MPU | LLVM | 30,355 | 8 | 1 | [] |
[
"<s>",
"unsigned",
"MipsOptimizePICCall",
"::",
"getReg",
"(",
"ValueType",
"Entry",
")",
"{",
"unsigned",
"Reg",
"=",
"ScopedHT",
".",
"lookup",
"(",
"Entry",
")",
".",
"second",
";",
"assert",
"(",
"Reg",
")",
";",
"return",
"Reg",
";",
"}",
"</s>"
] | [
"Returns",
"the",
"register",
"associated",
"with",
"this",
"edge",
"."
] | [
"Mips",
"Mips"
] | MipsOptimizePICCall15 | getReg | Mips | CPU | LLVM | 30,356 | 30 | 1 | [] |
[
"<s>",
"void",
"SPUInstrInfo",
"::",
"storeRegToStackSlot",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"MI",
",",
"unsigned",
"SrcReg",
",",
"bool",
"isKill",
",",
"int",
"FrameIdx",
",",
"const",
"TargetRegisterClass",
"*",
"RC",
")",
"const",
"{",
"unsigned",
"opc",
";",
"bool",
"isValidFrameIdx",
"=",
"(",
"FrameIdx",
"<",
"SPUFrameInfo",
"::",
"maxFrameOffset",
"(",
")",
")",
";",
"if",
"(",
"RC",
"==",
"SPU",
"::",
"GPRCRegisterClass",
")",
"{",
"opc",
"=",
"(",
"isValidFrameIdx",
"?",
"SPU",
"::",
"STQDr128",
":",
"SPU",
"::",
"STQXr128",
")",
";",
"}",
"else",
"if",
"(",
"RC",
"==",
"SPU",
"::",
"R64CRegisterClass",
")",
"{",
"opc",
"=",
"(",
"isValidFrameIdx",
"?",
"SPU",
"::",
"STQDr64",
":",
"SPU",
"::",
"STQXr64",
")",
";",
"}",
"else",
"if",
"(",
"RC",
"==",
"SPU",
"::",
"R64FPRegisterClass",
")",
"{",
"opc",
"=",
"(",
"isValidFrameIdx",
"?",
"SPU",
"::",
"STQDr64",
":",
"SPU",
"::",
"STQXr64",
")",
";",
"}",
"else",
"if",
"(",
"RC",
"==",
"SPU",
"::",
"R32CRegisterClass",
")",
"{",
"opc",
"=",
"(",
"isValidFrameIdx",
"?",
"SPU",
"::",
"STQDr32",
":",
"SPU",
"::",
"STQXr32",
")",
";",
"}",
"else",
"if",
"(",
"RC",
"==",
"SPU",
"::",
"R32FPRegisterClass",
")",
"{",
"opc",
"=",
"(",
"isValidFrameIdx",
"?",
"SPU",
"::",
"STQDr32",
":",
"SPU",
"::",
"STQXr32",
")",
";",
"}",
"else",
"if",
"(",
"RC",
"==",
"SPU",
"::",
"R16CRegisterClass",
")",
"{",
"opc",
"=",
"(",
"isValidFrameIdx",
"?",
"SPU",
"::",
"STQDr16",
":",
"SPU",
"::",
"STQXr16",
")",
";",
"}",
"else",
"if",
"(",
"RC",
"==",
"SPU",
"::",
"R8CRegisterClass",
")",
"{",
"opc",
"=",
"(",
"isValidFrameIdx",
"?",
"SPU",
"::",
"STQDr8",
":",
"SPU",
"::",
"STQXr8",
")",
";",
"}",
"else",
"if",
"(",
"RC",
"==",
"SPU",
"::",
"VECREGRegisterClass",
")",
"{",
"opc",
"=",
"(",
"isValidFrameIdx",
")",
"?",
"SPU",
"::",
"STQDv16i8",
":",
"SPU",
"::",
"STQXv16i8",
";",
"}",
"else",
"{",
"llvm_unreachable",
"(",
"\"Unknown regclass!\"",
")",
";",
"}",
"DebugLoc",
"DL",
";",
"if",
"(",
"MI",
"!=",
"MBB",
".",
"end",
"(",
")",
")",
"DL",
"=",
"MI",
"->",
"getDebugLoc",
"(",
")",
";",
"addFrameReference",
"(",
"BuildMI",
"(",
"MBB",
",",
"MI",
",",
"DL",
",",
"get",
"(",
"opc",
")",
")",
".",
"addReg",
"(",
"SrcReg",
",",
"getKillRegState",
"(",
"isKill",
")",
")",
",",
"FrameIdx",
")",
";",
"}",
"</s>"
] | [
"Store",
"the",
"specified",
"register",
"of",
"the",
"given",
"register",
"class",
"to",
"the",
"specified",
"stack",
"frame",
"index",
"."
] | [
"CellSPU",
"SPU",
"SPU",
"SPU::GPRCRegisterClass",
"SPU::STQDr128",
"SPU::STQXr128",
"SPU::R64CRegisterClass",
"SPU::STQDr64",
"SPU::STQXr64",
"SPU::R64FPRegisterClass",
"SPU::STQDr64",
"SPU::STQXr64",
"SPU::R32CRegisterClass",
"SPU::STQDr32",
"SPU::STQXr32",
"SPU::R32FPRegisterClass",
"SPU::STQDr32",
"SPU::STQXr32",
"SPU::R16CRegisterClass",
"SPU::STQDr16",
"SPU::STQXr16",
"SPU::R8CRegisterClass",
"SPU::STQDr8",
"SPU::STQXr8",
"SPU::VECREGRegisterClass",
"SPU::STQDv16i8",
"SPU::STQXv16i8",
"\"Unknown regclass!\""
] | SPUInstrInfo | storeRegToStackSlot | CellSPU | MPU | LLVM | 30,357 | 304 | 1 | [] |
[
"<s>",
"static",
"long",
"ppc_linux_aux_vector",
"(",
"long",
"which",
")",
"{",
"extern",
"long",
"*",
"__libc_stack_end",
";",
"long",
"argc",
";",
"char",
"*",
"*",
"argv",
";",
"char",
"*",
"*",
"envp",
";",
"struct",
"auxv",
"{",
"long",
"a_type",
";",
"long",
"a_val",
";",
"}",
"*",
"auxp",
";",
"argc",
"=",
"__libc_stack_end",
"[",
"0",
"]",
";",
"argv",
"=",
"(",
"char",
"*",
"*",
")",
"__libc_stack_end",
"+",
"1",
";",
"envp",
"=",
"argv",
"+",
"argc",
"+",
"1",
";",
"while",
"(",
"*",
"envp",
"++",
")",
"continue",
";",
"for",
"(",
"auxp",
"=",
"(",
"struct",
"auxv",
"*",
")",
"envp",
";",
"auxp",
"->",
"a_type",
"!=",
"0",
";",
"++",
"auxp",
")",
"if",
"(",
"auxp",
"->",
"a_type",
"==",
"which",
")",
"return",
"auxp",
"->",
"a_val",
";",
"return",
"0",
";",
"}",
"</s>"
] | [
"Find",
"an",
"entry",
"in",
"the",
"process",
"auxiliary",
"vector",
".",
"The",
"canonical",
"way",
"to",
"test",
"for",
"VMX",
"is",
"to",
"look",
"at",
"AT_HWCAP",
"."
] | [
"rs6000",
"0",
"1",
"1",
"0",
"0"
] | linux-unwind | ppc_linux_aux_vector | rs6000 | CPU | GCC | 30,358 | 110 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"getPassName",
"(",
")",
"const",
"override",
"{",
"return",
"\"AMDGPU IR optimizations\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"AMDGPU",
"\"AMDGPU IR optimizations\""
] | AMDGPUCodeGenPrepare3 | getPassName | AMDGPU | GPU | LLVM | 30,359 | 13 | 1 | [] |
[
"<s>",
"static",
"bool",
"ix86_contains_aligned_value_p",
"(",
"const_tree",
"type",
")",
"{",
"machine_mode",
"mode",
"=",
"TYPE_MODE",
"(",
"type",
")",
";",
"if",
"(",
"mode",
"==",
"XFmode",
"||",
"mode",
"==",
"XCmode",
")",
"return",
"false",
";",
"if",
"(",
"TYPE_ALIGN",
"(",
"type",
")",
"<",
"128",
")",
"return",
"false",
";",
"if",
"(",
"AGGREGATE_TYPE_P",
"(",
"type",
")",
")",
"{",
"switch",
"(",
"TREE_CODE",
"(",
"type",
")",
")",
"{",
"case",
"RECORD_TYPE",
":",
"case",
"UNION_TYPE",
":",
"case",
"QUAL_UNION_TYPE",
":",
"{",
"tree",
"field",
";",
"for",
"(",
"field",
"=",
"TYPE_FIELDS",
"(",
"type",
")",
";",
"field",
";",
"field",
"=",
"DECL_CHAIN",
"(",
"field",
")",
")",
"{",
"if",
"(",
"TREE_CODE",
"(",
"field",
")",
"==",
"FIELD_DECL",
"&&",
"ix86_contains_aligned_value_p",
"(",
"TREE_TYPE",
"(",
"field",
")",
")",
")",
"return",
"true",
";",
"}",
"break",
";",
"}",
"case",
"ARRAY_TYPE",
":",
"if",
"(",
"ix86_contains_aligned_value_p",
"(",
"TREE_TYPE",
"(",
"type",
")",
")",
")",
"return",
"true",
";",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"}",
"else",
"return",
"TYPE_ALIGN",
"(",
"type",
")",
">=",
"128",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Return",
"true",
"when",
"TYPE",
"should",
"be",
"128bit",
"aligned",
"for",
"32bit",
"argument",
"passing",
"ABI",
"."
] | [
"i386",
"128",
"128"
] | i386 | ix86_contains_aligned_value_p | i386 | CPU | GCC | 30,360 | 152 | 1 | [] |
[
"<s>",
"void",
"MipsAsmBackend",
"::",
"applyFixup",
"(",
"const",
"MCAssembler",
"&",
"Asm",
",",
"const",
"MCFixup",
"&",
"Fixup",
",",
"const",
"MCValue",
"&",
"Target",
",",
"MutableArrayRef",
"<",
"char",
">",
"Data",
",",
"uint64_t",
"Value",
",",
"bool",
"IsResolved",
",",
"const",
"MCSubtargetInfo",
"*",
"STI",
")",
"const",
"{",
"MCFixupKind",
"Kind",
"=",
"Fixup",
".",
"getKind",
"(",
")",
";",
"MCContext",
"&",
"Ctx",
"=",
"Asm",
".",
"getContext",
"(",
")",
";",
"Value",
"=",
"adjustFixupValue",
"(",
"Fixup",
",",
"Value",
",",
"Ctx",
")",
";",
"if",
"(",
"!",
"Value",
")",
"return",
";",
"unsigned",
"Offset",
"=",
"Fixup",
".",
"getOffset",
"(",
")",
";",
"unsigned",
"NumBytes",
"=",
"(",
"getFixupKindInfo",
"(",
"Kind",
")",
".",
"TargetSize",
"+",
"7",
")",
"/",
"8",
";",
"unsigned",
"FullSize",
";",
"switch",
"(",
"(",
"unsigned",
")",
"Kind",
")",
"{",
"case",
"FK_Data_2",
":",
"case",
"Mips",
"::",
"fixup_Mips_16",
":",
"case",
"Mips",
"::",
"fixup_MICROMIPS_PC10_S1",
":",
"FullSize",
"=",
"2",
";",
"break",
";",
"case",
"FK_Data_8",
":",
"case",
"Mips",
"::",
"fixup_Mips_64",
":",
"FullSize",
"=",
"8",
";",
"break",
";",
"case",
"FK_Data_4",
":",
"default",
":",
"FullSize",
"=",
"4",
";",
"break",
";",
"}",
"uint64_t",
"CurVal",
"=",
"0",
";",
"bool",
"microMipsLEByteOrder",
"=",
"needsMMLEByteOrder",
"(",
"(",
"unsigned",
")",
"Kind",
")",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"!=",
"NumBytes",
";",
"++",
"i",
")",
"{",
"unsigned",
"Idx",
"=",
"Endian",
"==",
"support",
"::",
"little",
"?",
"(",
"microMipsLEByteOrder",
"?",
"calculateMMLEIndex",
"(",
"i",
")",
":",
"i",
")",
":",
"(",
"FullSize",
"-",
"1",
"-",
"i",
")",
";",
"CurVal",
"|=",
"(",
"uint64_t",
")",
"(",
"(",
"uint8_t",
")",
"Data",
"[",
"Offset",
"+",
"Idx",
"]",
")",
"<<",
"(",
"i",
"*",
"8",
")",
";",
"}",
"uint64_t",
"Mask",
"=",
"(",
"(",
"uint64_t",
")",
"(",
"-",
"1",
")",
">>",
"(",
"64",
"-",
"getFixupKindInfo",
"(",
"Kind",
")",
".",
"TargetSize",
")",
")",
";",
"CurVal",
"|=",
"Value",
"&",
"Mask",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"!=",
"NumBytes",
";",
"++",
"i",
")",
"{",
"unsigned",
"Idx",
"=",
"Endian",
"==",
"support",
"::",
"little",
"?",
"(",
"microMipsLEByteOrder",
"?",
"calculateMMLEIndex",
"(",
"i",
")",
":",
"i",
")",
":",
"(",
"FullSize",
"-",
"1",
"-",
"i",
")",
";",
"Data",
"[",
"Offset",
"+",
"Idx",
"]",
"=",
"(",
"uint8_t",
")",
"(",
"(",
"CurVal",
">>",
"(",
"i",
"*",
"8",
")",
")",
"&",
"0xff",
")",
";",
"}",
"}",
"</s>"
] | [
"Apply",
"the",
"Value",
"for",
"given",
"Fixup",
"into",
"the",
"provided",
"data",
"fragment",
",",
"at",
"the",
"offset",
"specified",
"by",
"the",
"fixup",
"and",
"following",
"the",
"fixup",
"kind",
"as",
"appropriate",
"."
] | [
"Mips",
"Mips",
"7",
"8",
"Mips::fixup_Mips_16",
"Mips::fixup_MICROMIPS_PC10_S1",
"2",
"Mips::fixup_Mips_64",
"8",
"4",
"0",
"Mips",
"0",
"support::little",
"Mips",
"1",
"8",
"1",
"64",
"0",
"support::little",
"Mips",
"1",
"8",
"0xff"
] | MipsAsmBackend16 | applyFixup | Mips | CPU | LLVM | 30,361 | 339 | 1 | [] |
[
"<s>",
"void",
"PPCAIXAsmPrinter",
"::",
"emitEndOfAsmFile",
"(",
"Module",
"&",
"M",
")",
"{",
"if",
"(",
"M",
".",
"empty",
"(",
")",
")",
"return",
";",
"OutStreamer",
"->",
"SwitchSection",
"(",
"getObjFileLowering",
"(",
")",
".",
"getTOCBaseSection",
"(",
")",
")",
";",
"PPCTargetStreamer",
"&",
"TS",
"=",
"static_cast",
"<",
"PPCTargetStreamer",
"&",
">",
"(",
"*",
"OutStreamer",
"->",
"getTargetStreamer",
"(",
")",
")",
";",
"const",
"unsigned",
"EntryByteSize",
"=",
"Subtarget",
"->",
"isPPC64",
"(",
")",
"?",
"8",
":",
"4",
";",
"const",
"unsigned",
"TOCEntriesByteSize",
"=",
"TOC",
".",
"size",
"(",
")",
"*",
"EntryByteSize",
";",
"if",
"(",
"TOCEntriesByteSize",
">",
"32767",
")",
"{",
"report_fatal_error",
"(",
"\"Handling of TOC entry displacement larger than 32767 \"",
"\"is not yet implemented.\"",
")",
";",
"}",
"for",
"(",
"auto",
"&",
"I",
":",
"TOC",
")",
"{",
"MCSectionXCOFF",
"*",
"TCEntry",
"=",
"cast",
"<",
"MCSectionXCOFF",
">",
"(",
"getObjFileLowering",
"(",
")",
".",
"getSectionForTOCEntry",
"(",
"I",
".",
"first",
")",
")",
";",
"cast",
"<",
"MCSymbolXCOFF",
">",
"(",
"I",
".",
"second",
")",
"->",
"setContainingCsect",
"(",
"TCEntry",
")",
";",
"OutStreamer",
"->",
"SwitchSection",
"(",
"TCEntry",
")",
";",
"OutStreamer",
"->",
"emitLabel",
"(",
"I",
".",
"second",
")",
";",
"TS",
".",
"emitTCEntry",
"(",
"*",
"I",
".",
"first",
")",
";",
"}",
"}",
"</s>"
] | [
"This",
"virtual",
"method",
"can",
"be",
"overridden",
"by",
"targets",
"that",
"want",
"to",
"emit",
"something",
"at",
"the",
"end",
"of",
"their",
"file",
"."
] | [
"PowerPC",
"PPC",
"PPC",
"PPC",
"PPC",
"8",
"4",
"32767",
"\"Handling of TOC entry displacement larger than 32767 \"",
"\"is not yet implemented.\""
] | PPCAsmPrinter62 | emitEndOfAsmFile | PowerPC | CPU | LLVM | 30,362 | 164 | 1 | [] |
[
"<s>",
"bool",
"SIAnnotateControlFlow",
"::",
"runOnFunction",
"(",
"Function",
"&",
"F",
")",
"{",
"DT",
"=",
"&",
"getAnalysis",
"<",
"DominatorTreeWrapperPass",
">",
"(",
")",
".",
"getDomTree",
"(",
")",
";",
"for",
"(",
"df_iterator",
"<",
"BasicBlock",
"*",
">",
"I",
"=",
"df_begin",
"(",
"&",
"F",
".",
"getEntryBlock",
"(",
")",
")",
",",
"E",
"=",
"df_end",
"(",
"&",
"F",
".",
"getEntryBlock",
"(",
")",
")",
";",
"I",
"!=",
"E",
";",
"++",
"I",
")",
"{",
"BranchInst",
"*",
"Term",
"=",
"dyn_cast",
"<",
"BranchInst",
">",
"(",
"(",
"*",
"I",
")",
"->",
"getTerminator",
"(",
")",
")",
";",
"if",
"(",
"!",
"Term",
"||",
"Term",
"->",
"isUnconditional",
"(",
")",
")",
"{",
"if",
"(",
"isTopOfStack",
"(",
"*",
"I",
")",
")",
"closeControlFlow",
"(",
"*",
"I",
")",
";",
"continue",
";",
"}",
"if",
"(",
"I",
".",
"nodeVisited",
"(",
"Term",
"->",
"getSuccessor",
"(",
"1",
")",
")",
")",
"{",
"if",
"(",
"isTopOfStack",
"(",
"*",
"I",
")",
")",
"closeControlFlow",
"(",
"*",
"I",
")",
";",
"handleLoop",
"(",
"Term",
")",
";",
"continue",
";",
"}",
"if",
"(",
"isTopOfStack",
"(",
"*",
"I",
")",
")",
"{",
"PHINode",
"*",
"Phi",
"=",
"dyn_cast",
"<",
"PHINode",
">",
"(",
"Term",
"->",
"getCondition",
"(",
")",
")",
";",
"if",
"(",
"Phi",
"&&",
"Phi",
"->",
"getParent",
"(",
")",
"==",
"*",
"I",
"&&",
"isElse",
"(",
"Phi",
")",
")",
"{",
"insertElse",
"(",
"Term",
")",
";",
"eraseIfUnused",
"(",
"Phi",
")",
";",
"continue",
";",
"}",
"closeControlFlow",
"(",
"*",
"I",
")",
";",
"}",
"openIf",
"(",
"Term",
")",
";",
"}",
"assert",
"(",
"Stack",
".",
"empty",
"(",
")",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"runOnFunction",
"-",
"Virtual",
"method",
"overriden",
"by",
"subclasses",
"to",
"do",
"the",
"per-function",
"processing",
"of",
"the",
"pass",
"."
] | [
"R600",
"SI",
"1"
] | SIAnnotateControlFlow | runOnFunction | R600 | GPU | LLVM | 30,363 | 231 | 1 | [] |
[
"<s>",
"bool",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"override",
"{",
"if",
"(",
"!",
"skipFunction",
"(",
"MF",
".",
"getFunction",
"(",
")",
")",
")",
"{",
"initialize",
"(",
"MF",
")",
";",
"return",
"processAtomicInsts",
"(",
")",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"BPF"
] | BPFMIChecking3 | runOnMachineFunction | BPF | Virtual ISA | LLVM | 30,364 | 37 | 1 | [] |
[
"<s>",
"static",
"bool",
"avr_hard_regno_scratch_ok",
"(",
"unsigned",
"int",
"regno",
")",
"{",
"if",
"(",
"(",
"cfun",
"->",
"machine",
"->",
"is_interrupt",
"||",
"cfun",
"->",
"machine",
"->",
"is_signal",
")",
"&&",
"!",
"df_regs_ever_live_p",
"(",
"regno",
")",
")",
"return",
"false",
";",
"if",
"(",
"(",
"!",
"reload_completed",
"||",
"frame_pointer_needed",
")",
"&&",
"(",
"regno",
"==",
"REG_Y",
"||",
"regno",
"==",
"REG_Y",
"+",
"1",
")",
")",
"{",
"return",
"false",
";",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"SCRATCH",
"are",
"safe",
"to",
"be",
"allocated",
"as",
"a",
"scratch",
"registers",
"(",
"for",
"a",
"define_peephole2",
")",
"in",
"the",
"current",
"function",
"."
] | [
"avr",
"1"
] | avr | avr_hard_regno_scratch_ok | avr | MPU | GCC | 30,365 | 64 | 1 | [] |
[
"<s>",
"void",
"mmix_output_register_setting",
"(",
"FILE",
"*",
"stream",
",",
"int",
"regno",
",",
"int64_t",
"value",
",",
"int",
"do_begin_end",
")",
"{",
"if",
"(",
"do_begin_end",
")",
"fprintf",
"(",
"stream",
",",
"\"\\t\"",
")",
";",
"if",
"(",
"insn_const_int_ok_for_constraint",
"(",
"value",
",",
"CONSTRAINT_K",
")",
")",
"fprintf",
"(",
"stream",
",",
"\"NEGU %s,0,%\"",
"PRId64",
",",
"reg_names",
"[",
"regno",
"]",
",",
"-",
"value",
")",
";",
"else",
"if",
"(",
"mmix_shiftable_wyde_value",
"(",
"(",
"uint64_t",
")",
"value",
")",
")",
"{",
"mmix_output_shiftvalue_op_from_str",
"(",
"stream",
",",
"\"SET\"",
",",
"(",
"uint64_t",
")",
"value",
")",
";",
"fprintf",
"(",
"stream",
",",
"\" %s,\"",
",",
"reg_names",
"[",
"regno",
"]",
")",
";",
"mmix_output_shifted_value",
"(",
"stream",
",",
"(",
"uint64_t",
")",
"value",
")",
";",
"}",
"else",
"if",
"(",
"mmix_shiftable_wyde_value",
"(",
"-",
"(",
"uint64_t",
")",
"value",
")",
")",
"{",
"mmix_output_shiftvalue_op_from_str",
"(",
"stream",
",",
"\"SET\"",
",",
"-",
"(",
"uint64_t",
")",
"value",
")",
";",
"fprintf",
"(",
"stream",
",",
"\" %s,\"",
",",
"reg_names",
"[",
"regno",
"]",
")",
";",
"mmix_output_shifted_value",
"(",
"stream",
",",
"-",
"(",
"uint64_t",
")",
"value",
")",
";",
"fprintf",
"(",
"stream",
",",
"\"\\n\\tNEGU %s,0,%s\"",
",",
"reg_names",
"[",
"regno",
"]",
",",
"reg_names",
"[",
"regno",
"]",
")",
";",
"}",
"else",
"if",
"(",
"mmix_shiftable_wyde_value",
"(",
"~",
"(",
"uint64_t",
")",
"value",
")",
")",
"{",
"mmix_output_shiftvalue_op_from_str",
"(",
"stream",
",",
"\"SET\"",
",",
"~",
"(",
"uint64_t",
")",
"value",
")",
";",
"fprintf",
"(",
"stream",
",",
"\" %s,\"",
",",
"reg_names",
"[",
"regno",
"]",
")",
";",
"mmix_output_shifted_value",
"(",
"stream",
",",
"~",
"(",
"uint64_t",
")",
"value",
")",
";",
"fprintf",
"(",
"stream",
",",
"\"\\n\\tNOR %s,%s,0\"",
",",
"reg_names",
"[",
"regno",
"]",
",",
"reg_names",
"[",
"regno",
"]",
")",
";",
"}",
"else",
"{",
"static",
"const",
"char",
"*",
"const",
"higher_parts",
"[",
"]",
"=",
"{",
"\"L\"",
",",
"\"ML\"",
",",
"\"MH\"",
",",
"\"H\"",
"}",
";",
"const",
"char",
"*",
"op",
"=",
"\"SET\"",
";",
"const",
"char",
"*",
"line_begin",
"=",
"\"\"",
";",
"int",
"insns",
"=",
"0",
";",
"int",
"i",
";",
"int64_t",
"tmpvalue",
"=",
"value",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"4",
"&&",
"tmpvalue",
"!=",
"0",
";",
"i",
"++",
")",
"{",
"if",
"(",
"tmpvalue",
"&",
"65535",
")",
"insns",
"++",
";",
"tmpvalue",
">>=",
"16",
";",
"}",
"if",
"(",
"TARGET_BASE_ADDRESSES",
"&&",
"insns",
"==",
"3",
")",
"{",
"fprintf",
"(",
"stream",
",",
"\"LDA %s,\"",
",",
"reg_names",
"[",
"regno",
"]",
")",
";",
"mmix_output_octa",
"(",
"stream",
",",
"value",
",",
"0",
")",
";",
"}",
"else",
"{",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"4",
"&&",
"value",
"!=",
"0",
";",
"i",
"++",
")",
"{",
"if",
"(",
"value",
"&",
"65535",
")",
"{",
"fprintf",
"(",
"stream",
",",
"\"%s%s%s %s,#%x\"",
",",
"line_begin",
",",
"op",
",",
"higher_parts",
"[",
"i",
"]",
",",
"reg_names",
"[",
"regno",
"]",
",",
"(",
"int",
")",
"(",
"value",
"&",
"65535",
")",
")",
";",
"op",
"=",
"\"INC\"",
";",
"line_begin",
"=",
"\"\\n\\t\"",
";",
"}",
"value",
">>=",
"16",
";",
"}",
"}",
"}",
"if",
"(",
"do_begin_end",
")",
"fprintf",
"(",
"stream",
",",
"\"\\n\"",
")",
";",
"}",
"</s>"
] | [
"Output",
"an",
"optimal",
"sequence",
"for",
"setting",
"a",
"register",
"to",
"a",
"specific",
"constant",
".",
"Used",
"in",
"an",
"alternative",
"for",
"const_ints",
"in",
"movdi",
",",
"and",
"when",
"using",
"large",
"stack-frame",
"offsets",
".",
"Use",
"do_begin_end",
"to",
"say",
"if",
"a",
"line-starting",
"TAB",
"and",
"newline",
"before",
"the",
"first",
"insn",
"and",
"after",
"the",
"last",
"insn",
"is",
"wanted",
"."
] | [
"mmix",
"\"\\t\"",
"\"NEGU %s,0,%\"",
"\"SET\"",
"\" %s,\"",
"\"SET\"",
"\" %s,\"",
"\"\\n\\tNEGU %s,0,%s\"",
"\"SET\"",
"\" %s,\"",
"\"\\n\\tNOR %s,%s,0\"",
"\"L\"",
"\"ML\"",
"\"MH\"",
"\"H\"",
"\"SET\"",
"\"\"",
"0",
"0",
"4",
"0",
"65535",
"16",
"3",
"\"LDA %s,\"",
"0",
"0",
"4",
"0",
"65535",
"\"%s%s%s %s,#%x\"",
"65535",
"\"INC\"",
"\"\\n\\t\"",
"16",
"\"\\n\""
] | mmix | mmix_output_register_setting | mmix | CPU | GCC | 30,366 | 430 | 1 | [] |
[
"<s>",
"static",
"rtx",
"nios2_large_got_address",
"(",
"rtx",
"offset",
",",
"rtx",
"tmp",
")",
"{",
"if",
"(",
"!",
"tmp",
")",
"tmp",
"=",
"gen_reg_rtx",
"(",
"Pmode",
")",
";",
"emit_move_insn",
"(",
"tmp",
",",
"offset",
")",
";",
"return",
"gen_rtx_PLUS",
"(",
"Pmode",
",",
"tmp",
",",
"pic_offset_table_rtx",
")",
";",
"}",
"</s>"
] | [
"Generate",
"GOT",
"pointer",
"based",
"address",
"with",
"large",
"offset",
"."
] | [
"nios2"
] | nios2 | nios2_large_got_address | nios2 | MPU | GCC | 30,367 | 41 | 1 | [] |
[
"<s>",
"void",
"function_builder",
"::",
"add_unique_function",
"(",
"const",
"function_instance",
"&",
"instance",
",",
"tree",
"return_type",
",",
"vec",
"<",
"tree",
">",
"&",
"argument_types",
",",
"uint64_t",
"required_extensions",
",",
"bool",
"force_direct_overloads",
")",
"{",
"char",
"*",
"name",
"=",
"get_name",
"(",
"instance",
",",
"false",
")",
";",
"tree",
"fntype",
"=",
"build_function_type_array",
"(",
"return_type",
",",
"argument_types",
".",
"length",
"(",
")",
",",
"argument_types",
".",
"address",
"(",
")",
")",
";",
"tree",
"attrs",
"=",
"get_attributes",
"(",
"instance",
")",
";",
"registered_function",
"&",
"rfn",
"=",
"add_function",
"(",
"instance",
",",
"name",
",",
"fntype",
",",
"attrs",
",",
"required_extensions",
",",
"false",
")",
";",
"hashval_t",
"hash",
"=",
"instance",
".",
"hash",
"(",
")",
";",
"registered_function",
"*",
"*",
"rfn_slot",
"=",
"function_table",
"->",
"find_slot_with_hash",
"(",
"instance",
",",
"hash",
",",
"INSERT",
")",
";",
"gcc_assert",
"(",
"!",
"*",
"rfn_slot",
")",
";",
"*",
"rfn_slot",
"=",
"&",
"rfn",
";",
"if",
"(",
"m_direct_overloads",
"||",
"force_direct_overloads",
")",
"{",
"char",
"*",
"overload_name",
"=",
"get_name",
"(",
"instance",
",",
"true",
")",
";",
"if",
"(",
"strcmp",
"(",
"name",
",",
"overload_name",
")",
"!=",
"0",
")",
"{",
"tree",
"attrs",
"=",
"get_attributes",
"(",
"instance",
")",
";",
"add_function",
"(",
"instance",
",",
"overload_name",
",",
"fntype",
",",
"attrs",
",",
"required_extensions",
",",
"false",
")",
";",
"}",
"}",
"obstack_free",
"(",
"&",
"m_string_obstack",
",",
"name",
")",
";",
"}",
"</s>"
] | [
"Add",
"a",
"built-in",
"function",
"for",
"INSTANCE",
",",
"with",
"the",
"argument",
"types",
"given",
"by",
"ARGUMENT_TYPES",
"and",
"the",
"return",
"type",
"given",
"by",
"RETURN_TYPE",
".",
"NAME",
"is",
"the",
"``",
"full",
"''",
"name",
"for",
"C",
"function",
".",
"OVERLOAD_NAME",
"is",
"the",
"``",
"short",
"''",
"name",
"for",
"C++",
"overloaded",
"function",
".",
"OVERLOAD_NAME",
"can",
"be",
"nullptr",
"because",
"some",
"instance",
"does",
"n't",
"have",
"C++",
"overloaded",
"function",
"."
] | [
"aarch64",
"0"
] | aarch64-sve-builtins | add_unique_function | aarch64 | CPU | GCC | 30,368 | 187 | 1 | [] |
[
"<s>",
"unsigned",
"ARMBaseRegisterInfo",
"::",
"getFrameRegister",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"const",
"TargetFrameLowering",
"*",
"TFI",
"=",
"MF",
".",
"getSubtarget",
"(",
")",
".",
"getFrameLowering",
"(",
")",
";",
"if",
"(",
"TFI",
"->",
"hasFP",
"(",
"MF",
")",
")",
"return",
"FramePtr",
";",
"return",
"ARM",
"::",
"SP",
";",
"}",
"</s>"
] | [
"Debug",
"information",
"queries",
"."
] | [
"ARM",
"ARM",
"ARM::SP"
] | ARMBaseRegisterInfo37 | getFrameRegister | ARM | CPU | LLVM | 30,369 | 45 | 1 | [] |
[
"<s>",
"const",
"Nios2RegisterInfo",
"*",
"getRegisterInfo",
"(",
")",
"const",
"override",
"{",
"return",
"&",
"InstrInfo",
"->",
"getRegisterInfo",
"(",
")",
";",
"}",
"</s>"
] | [
"getRegisterInfo",
"-",
"TargetInstrInfo",
"is",
"a",
"superset",
"of",
"MRegister",
"info",
"."
] | [
"Nios2",
"Nios2"
] | Nios2Subtarget | getRegisterInfo | Nios2 | MPU | LLVM | 30,370 | 18 | 1 | [] |
[
"<s>",
"bool",
"HexagonTargetLowering",
"::",
"IsEligibleForTailCallOptimization",
"(",
"SDValue",
"Callee",
",",
"CallingConv",
"::",
"ID",
"CalleeCC",
",",
"bool",
"isVarArg",
",",
"bool",
"isCalleeStructRet",
",",
"bool",
"isCallerStructRet",
",",
"const",
"SmallVectorImpl",
"<",
"ISD",
"::",
"OutputArg",
">",
"&",
"Outs",
",",
"const",
"SmallVectorImpl",
"<",
"SDValue",
">",
"&",
"OutVals",
",",
"const",
"SmallVectorImpl",
"<",
"ISD",
"::",
"InputArg",
">",
"&",
"Ins",
",",
"SelectionDAG",
"&",
"DAG",
")",
"const",
"{",
"const",
"Function",
"*",
"CallerF",
"=",
"DAG",
".",
"getMachineFunction",
"(",
")",
".",
"getFunction",
"(",
")",
";",
"CallingConv",
"::",
"ID",
"CallerCC",
"=",
"CallerF",
"->",
"getCallingConv",
"(",
")",
";",
"bool",
"CCMatch",
"=",
"CallerCC",
"==",
"CalleeCC",
";",
"if",
"(",
"!",
"(",
"dyn_cast",
"<",
"GlobalAddressSDNode",
">",
"(",
"Callee",
")",
")",
"&&",
"!",
"(",
"dyn_cast",
"<",
"ExternalSymbolSDNode",
">",
"(",
"Callee",
")",
")",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"!",
"CCMatch",
")",
"return",
"false",
";",
"if",
"(",
"isVarArg",
")",
"return",
"false",
";",
"if",
"(",
"isCalleeStructRet",
"||",
"isCallerStructRet",
")",
"return",
"false",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"IsEligibleForTailCallOptimization",
"-",
"Check",
"whether",
"the",
"call",
"is",
"eligible",
"for",
"tail",
"call",
"optimization",
"."
] | [
"Hexagon",
"Hexagon",
"ISD::OutputArg",
"ISD::InputArg"
] | HexagonISelLowering (2)2 | IsEligibleForTailCallOptimization | Hexagon | DSP | LLVM | 30,371 | 146 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"nds32_output_casesi_pc_relative",
"(",
"rtx",
"*",
"operands",
")",
"{",
"machine_mode",
"mode",
";",
"rtx",
"diff_vec",
";",
"diff_vec",
"=",
"PATTERN",
"(",
"NEXT_INSN",
"(",
"as_a",
"<",
"rtx_insn",
"*",
">",
"(",
"operands",
"[",
"1",
"]",
")",
")",
")",
";",
"gcc_assert",
"(",
"GET_CODE",
"(",
"diff_vec",
")",
"==",
"ADDR_DIFF_VEC",
")",
";",
"output_asm_insn",
"(",
"\"la\\t$ta, %l1\"",
",",
"operands",
")",
";",
"mode",
"=",
"GET_MODE",
"(",
"diff_vec",
")",
";",
"switch",
"(",
"mode",
")",
"{",
"case",
"QImode",
":",
"output_asm_insn",
"(",
"\"lb\\t%2, [$ta + %0 << 0]\"",
",",
"operands",
")",
";",
"break",
";",
"case",
"HImode",
":",
"output_asm_insn",
"(",
"\"lh\\t%2, [$ta + %0 << 1]\"",
",",
"operands",
")",
";",
"break",
";",
"case",
"SImode",
":",
"output_asm_insn",
"(",
"\"lw\\t%2, [$ta + %0 << 2]\"",
",",
"operands",
")",
";",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"output_asm_insn",
"(",
"\"add\\t$ta, %2, $ta\"",
",",
"operands",
")",
";",
"if",
"(",
"TARGET_16_BIT",
")",
"return",
"\"jr5\\t$ta\"",
";",
"else",
"return",
"\"jr\\t$ta\"",
";",
"}",
"</s>"
] | [
"Function",
"to",
"generate",
"PC",
"relative",
"jump",
"table",
".",
"Refer",
"to",
"nds32.md",
"for",
"more",
"details",
".",
"The",
"following",
"is",
"the",
"sample",
"for",
"the",
"case",
"that",
"diff",
"value",
"can",
"be",
"presented",
"in",
"'.short",
"'",
"size",
".",
"addi",
"$",
"r1",
",",
"$",
"r1",
",",
"-",
"(",
"case_lower_bound",
")",
"slti",
"$",
"ta",
",",
"$",
"r1",
",",
"(",
"case_number",
")",
"beqz",
"$",
"ta",
",",
".L_skip_label",
"la",
"$",
"ta",
",",
".L35",
"!",
"get",
"jump",
"table",
"address",
"lh",
"$",
"r1",
",",
"[",
"$",
"ta",
"+",
"$",
"r1",
"<",
"<",
"1",
"]",
"!",
"load",
"symbol",
"diff",
"from",
"jump",
"table",
"entry",
"addi",
"$",
"ta",
",",
"$",
"r1",
",",
"$",
"ta",
"jr5",
"$",
"ta",
"!",
"jump",
"table",
"entry",
"L35",
":",
".short",
".L25-.L35",
".short",
".L26-.L35",
".short",
".L27-.L35",
".short",
".L28-.L35",
".short",
".L29-.L35",
".short",
".L30-.L35",
".short",
".L31-.L35",
".short",
".L32-.L35",
".short",
".L33-.L35",
".short",
".L34-.L35"
] | [
"nds32",
"1",
"\"la\\t$ta, %l1\"",
"\"lb\\t%2, [$ta + %0 << 0]\"",
"\"lh\\t%2, [$ta + %0 << 1]\"",
"\"lw\\t%2, [$ta + %0 << 2]\"",
"\"add\\t$ta, %2, $ta\"",
"\"jr5\\t$ta\"",
"\"jr\\t$ta\""
] | nds32-md-auxiliary2 | nds32_output_casesi_pc_relative | nds32 | CPU | GCC | 30,372 | 127 | 1 | [] |
[
"<s>",
"const",
"XCoreInstrInfo",
"*",
"getInstrInfo",
"(",
")",
"const",
"override",
"{",
"return",
"getSubtargetImpl",
"(",
")",
"->",
"getInstrInfo",
"(",
")",
";",
"}",
"</s>"
] | [
"TargetInstrInfo",
"getter",
"."
] | [
"XCore",
"XCore"
] | XCoreTargetMachine | getInstrInfo | XCore | MPU | LLVM | 30,373 | 19 | 1 | [] |
[
"<s>",
"static",
"unsigned",
"int",
"compute_saved_regs",
"(",
"void",
")",
"{",
"unsigned",
"int",
"saved_regs",
"=",
"0",
";",
"int",
"regno",
";",
"for",
"(",
"regno",
"=",
"0",
";",
"regno",
"<=",
"HARD_FRAME_POINTER_REGNUM",
";",
"regno",
"++",
")",
"{",
"if",
"(",
"WORD_REG_USED",
"(",
"regno",
")",
")",
"saved_regs",
"|=",
"1",
"<<",
"regno",
";",
"}",
"if",
"(",
"frame_pointer_needed",
")",
"saved_regs",
"&=",
"~",
"(",
"1",
"<<",
"HARD_FRAME_POINTER_REGNUM",
")",
";",
"return",
"saved_regs",
";",
"}",
"</s>"
] | [
"Compute",
"which",
"registers",
"to",
"push/pop",
".",
"Return",
"a",
"bit",
"vector",
"of",
"registers",
"."
] | [
"h8300",
"0",
"0",
"1",
"1"
] | h8300 | compute_saved_regs | h8300 | MPU | GCC | 30,374 | 62 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"msp430_propagate_region_opt",
"(",
"int",
"argc",
",",
"const",
"char",
"*",
"*",
"argv",
")",
"{",
"if",
"(",
"strcmp",
"(",
"argv",
"[",
"0",
"]",
",",
"\"lower\"",
")",
"!=",
"0",
")",
"return",
"argv",
"[",
"0",
"]",
";",
"else",
"if",
"(",
"(",
"argc",
"==",
"2",
")",
"&&",
"(",
"strcmp",
"(",
"argv",
"[",
"1",
"]",
",",
"\"-muse-lower-region-prefix\"",
")",
"==",
"0",
")",
")",
"return",
"argv",
"[",
"0",
"]",
";",
"return",
"\"none\"",
";",
"}",
"</s>"
] | [
"Spec",
"function",
".",
"Propagate",
"-m",
"{",
"code",
",",
"data",
"}",
"-region=",
"to",
"the",
"linker",
",",
"unless",
"the",
"lower",
"region",
"has",
"been",
"specified",
"without",
"-muse-lower-region-prefix",
"also",
"being",
"used",
"."
] | [
"msp430",
"0",
"\"lower\"",
"0",
"0",
"2",
"1",
"\"-muse-lower-region-prefix\"",
"0",
"0",
"\"none\""
] | driver-msp430 | msp430_propagate_region_opt | msp430 | MPU | GCC | 30,375 | 68 | 1 | [] |
[
"<s>",
"size_t",
"getSize",
"(",
")",
"const",
"{",
"return",
"sizeof",
"(",
"*",
"this",
")",
"+",
"alignTo",
"(",
"namesz",
",",
"ALIGN",
")",
"+",
"alignTo",
"(",
"descsz",
",",
"ALIGN",
")",
";",
"}",
"</s>"
] | [
"Return",
"the",
"number",
"of",
"bytes",
"in",
"the",
"encoding",
"of",
"this",
"instruction",
",",
"or",
"zero",
"if",
"the",
"encoding",
"size",
"can",
"not",
"be",
"known",
"from",
"the",
"opcode",
"."
] | [
"AMDGPU"
] | CodeObject | getSize | AMDGPU | GPU | LLVM | 30,376 | 28 | 1 | [] |
[
"<s>",
"bool",
"s390_function_arg_vector",
"(",
"machine_mode",
"mode",
",",
"const_tree",
"type",
")",
"{",
"if",
"(",
"!",
"TARGET_VX_ABI",
")",
"return",
"false",
";",
"if",
"(",
"s390_function_arg_size",
"(",
"mode",
",",
"type",
")",
">",
"16",
")",
"return",
"false",
";",
"if",
"(",
"!",
"type",
")",
"return",
"VECTOR_MODE_P",
"(",
"mode",
")",
";",
"while",
"(",
"TREE_CODE",
"(",
"type",
")",
"==",
"RECORD_TYPE",
")",
"{",
"tree",
"field",
",",
"single",
"=",
"NULL_TREE",
";",
"for",
"(",
"field",
"=",
"TYPE_FIELDS",
"(",
"type",
")",
";",
"field",
";",
"field",
"=",
"DECL_CHAIN",
"(",
"field",
")",
")",
"{",
"if",
"(",
"TREE_CODE",
"(",
"field",
")",
"!=",
"FIELD_DECL",
")",
"continue",
";",
"if",
"(",
"single",
"==",
"NULL_TREE",
")",
"single",
"=",
"TREE_TYPE",
"(",
"field",
")",
";",
"else",
"return",
"false",
";",
"}",
"if",
"(",
"single",
"==",
"NULL_TREE",
")",
"return",
"false",
";",
"else",
"{",
"if",
"(",
"int_size_in_bytes",
"(",
"single",
")",
"<=",
"0",
"||",
"int_size_in_bytes",
"(",
"single",
")",
"!=",
"int_size_in_bytes",
"(",
"type",
")",
")",
"return",
"false",
";",
"type",
"=",
"single",
";",
"}",
"}",
"return",
"VECTOR_TYPE_P",
"(",
"type",
")",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"a",
"function",
"argument",
"of",
"type",
"TYPE",
"and",
"mode",
"MODE",
"is",
"to",
"be",
"passed",
"in",
"a",
"vector",
"register",
",",
"if",
"available",
"."
] | [
"s390",
"16",
"0"
] | s3905 | s390_function_arg_vector | s390 | MPU | GCC | 30,377 | 154 | 1 | [] |
[
"<s>",
"bool",
"AArch64InstrInfo",
"::",
"analyzeCompare",
"(",
"const",
"MachineInstr",
"*",
"MI",
",",
"unsigned",
"&",
"SrcReg",
",",
"unsigned",
"&",
"SrcReg2",
",",
"int",
"&",
"CmpMask",
",",
"int",
"&",
"CmpValue",
")",
"const",
"{",
"switch",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"break",
";",
"case",
"AArch64",
"::",
"SUBSWrr",
":",
"case",
"AArch64",
"::",
"SUBSWrs",
":",
"case",
"AArch64",
"::",
"SUBSWrx",
":",
"case",
"AArch64",
"::",
"SUBSXrr",
":",
"case",
"AArch64",
"::",
"SUBSXrs",
":",
"case",
"AArch64",
"::",
"SUBSXrx",
":",
"case",
"AArch64",
"::",
"ADDSWrr",
":",
"case",
"AArch64",
"::",
"ADDSWrs",
":",
"case",
"AArch64",
"::",
"ADDSWrx",
":",
"case",
"AArch64",
"::",
"ADDSXrr",
":",
"case",
"AArch64",
"::",
"ADDSXrs",
":",
"case",
"AArch64",
"::",
"ADDSXrx",
":",
"SrcReg",
"=",
"MI",
"->",
"getOperand",
"(",
"1",
")",
".",
"getReg",
"(",
")",
";",
"SrcReg2",
"=",
"MI",
"->",
"getOperand",
"(",
"2",
")",
".",
"getReg",
"(",
")",
";",
"CmpMask",
"=",
"~",
"0",
";",
"CmpValue",
"=",
"0",
";",
"return",
"true",
";",
"case",
"AArch64",
"::",
"SUBSWri",
":",
"case",
"AArch64",
"::",
"ADDSWri",
":",
"case",
"AArch64",
"::",
"SUBSXri",
":",
"case",
"AArch64",
"::",
"ADDSXri",
":",
"SrcReg",
"=",
"MI",
"->",
"getOperand",
"(",
"1",
")",
".",
"getReg",
"(",
")",
";",
"SrcReg2",
"=",
"0",
";",
"CmpMask",
"=",
"~",
"0",
";",
"CmpValue",
"=",
"MI",
"->",
"getOperand",
"(",
"2",
")",
".",
"getImm",
"(",
")",
";",
"return",
"true",
";",
"case",
"AArch64",
"::",
"ANDSWri",
":",
"case",
"AArch64",
"::",
"ANDSXri",
":",
"SrcReg",
"=",
"MI",
"->",
"getOperand",
"(",
"1",
")",
".",
"getReg",
"(",
")",
";",
"SrcReg2",
"=",
"0",
";",
"CmpMask",
"=",
"~",
"0",
";",
"CmpValue",
"=",
"AArch64_AM",
"::",
"decodeLogicalImmediate",
"(",
"MI",
"->",
"getOperand",
"(",
"2",
")",
".",
"getImm",
"(",
")",
",",
"MI",
"->",
"getOpcode",
"(",
")",
"==",
"AArch64",
"::",
"ANDSWri",
"?",
"32",
":",
"64",
")",
";",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"analyzeCompare",
"-",
"For",
"a",
"comparison",
"instruction",
",",
"return",
"the",
"source",
"registers",
"in",
"SrcReg",
"and",
"SrcReg2",
"if",
"having",
"two",
"register",
"operands",
",",
"and",
"the",
"value",
"it",
"compares",
"against",
"in",
"CmpValue",
"."
] | [
"AArch64",
"AArch64",
"AArch64::SUBSWrr",
"AArch64::SUBSWrs",
"AArch64::SUBSWrx",
"AArch64::SUBSXrr",
"AArch64::SUBSXrs",
"AArch64::SUBSXrx",
"AArch64::ADDSWrr",
"AArch64::ADDSWrs",
"AArch64::ADDSWrx",
"AArch64::ADDSXrr",
"AArch64::ADDSXrs",
"AArch64::ADDSXrx",
"1",
"2",
"0",
"0",
"AArch64::SUBSWri",
"AArch64::ADDSWri",
"AArch64::SUBSXri",
"AArch64::ADDSXri",
"1",
"0",
"0",
"2",
"AArch64::ANDSWri",
"AArch64::ANDSXri",
"1",
"0",
"0",
"AArch64_AM::decodeLogicalImmediate",
"2",
"AArch64::ANDSWri",
"32",
"64"
] | AArch64InstrInfo4 | analyzeCompare | AArch64 | CPU | LLVM | 30,378 | 269 | 1 | [] |
[
"<s>",
"static",
"const",
"char",
"*",
"sparc_mangle_type",
"(",
"const_tree",
"type",
")",
"{",
"if",
"(",
"!",
"TARGET_64BIT",
"&&",
"TYPE_MAIN_VARIANT",
"(",
"type",
")",
"==",
"long_double_type_node",
"&&",
"TARGET_LONG_DOUBLE_128",
")",
"return",
"\"g\"",
";",
"return",
"NULL",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_MANGLE_TYPE",
"."
] | [
"sparc",
"\"g\""
] | sparc4 | sparc_mangle_type | sparc | CPU | GCC | 30,379 | 31 | 1 | [] |
[
"<s>",
"bool",
"isReg",
"(",
"RegisterKind",
"RegKind",
")",
"const",
"{",
"return",
"Kind",
"==",
"KindReg",
"&&",
"Reg",
".",
"Kind",
"==",
"RegKind",
";",
"}",
"</s>"
] | [
"isReg",
"-",
"Is",
"this",
"a",
"register",
"operand",
"?"
] | [
"RISCV"
] | RISCVAsmParser (2)1 | isReg | RISCV | CPU | LLVM | 30,380 | 20 | 1 | [] |
[
"<s>",
"CCAssignFn",
"*",
"ARMTargetLowering",
"::",
"CCAssignFnForCall",
"(",
"CallingConv",
"::",
"ID",
"CC",
",",
"bool",
"isVarArg",
")",
"const",
"{",
"return",
"CCAssignFnForNode",
"(",
"CC",
",",
"false",
",",
"isVarArg",
")",
";",
"}",
"</s>"
] | [
"Selects",
"the",
"correct",
"CCAssignFn",
"for",
"a",
"given",
"CallingConvention",
"value",
"."
] | [
"ARM",
"ARM"
] | ARMISelLowering (2)5 | CCAssignFnForCall | ARM | CPU | LLVM | 30,381 | 27 | 1 | [] |
[
"<s>",
"bool",
"SIFoldOperands",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"if",
"(",
"skipFunction",
"(",
"MF",
".",
"getFunction",
"(",
")",
")",
")",
"return",
"false",
";",
"MRI",
"=",
"&",
"MF",
".",
"getRegInfo",
"(",
")",
";",
"ST",
"=",
"&",
"MF",
".",
"getSubtarget",
"<",
"GCNSubtarget",
">",
"(",
")",
";",
"TII",
"=",
"ST",
"->",
"getInstrInfo",
"(",
")",
";",
"TRI",
"=",
"&",
"TII",
"->",
"getRegisterInfo",
"(",
")",
";",
"MFI",
"=",
"MF",
".",
"getInfo",
"<",
"SIMachineFunctionInfo",
">",
"(",
")",
";",
"bool",
"IsIEEEMode",
"=",
"MFI",
"->",
"getMode",
"(",
")",
".",
"IEEE",
";",
"bool",
"HasNSZ",
"=",
"MFI",
"->",
"hasNoSignedZerosFPMath",
"(",
")",
";",
"for",
"(",
"MachineBasicBlock",
"*",
"MBB",
":",
"depth_first",
"(",
"&",
"MF",
")",
")",
"{",
"MachineBasicBlock",
"::",
"iterator",
"I",
",",
"Next",
";",
"MachineOperand",
"*",
"CurrentKnownM0Val",
"=",
"nullptr",
";",
"for",
"(",
"I",
"=",
"MBB",
"->",
"begin",
"(",
")",
";",
"I",
"!=",
"MBB",
"->",
"end",
"(",
")",
";",
"I",
"=",
"Next",
")",
"{",
"Next",
"=",
"std",
"::",
"next",
"(",
"I",
")",
";",
"MachineInstr",
"&",
"MI",
"=",
"*",
"I",
";",
"tryFoldInst",
"(",
"TII",
",",
"&",
"MI",
")",
";",
"if",
"(",
"!",
"TII",
"->",
"isFoldableCopy",
"(",
"MI",
")",
")",
"{",
"if",
"(",
"CurrentKnownM0Val",
"&&",
"MI",
".",
"modifiesRegister",
"(",
"AMDGPU",
"::",
"M0",
",",
"TRI",
")",
")",
"CurrentKnownM0Val",
"=",
"nullptr",
";",
"if",
"(",
"IsIEEEMode",
"||",
"(",
"!",
"HasNSZ",
"&&",
"!",
"MI",
".",
"getFlag",
"(",
"MachineInstr",
"::",
"FmNsz",
")",
")",
"||",
"!",
"tryFoldOMod",
"(",
"MI",
")",
")",
"tryFoldClamp",
"(",
"MI",
")",
";",
"continue",
";",
"}",
"if",
"(",
"MI",
".",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
"==",
"AMDGPU",
"::",
"M0",
")",
"{",
"MachineOperand",
"&",
"NewM0Val",
"=",
"MI",
".",
"getOperand",
"(",
"1",
")",
";",
"if",
"(",
"CurrentKnownM0Val",
"&&",
"CurrentKnownM0Val",
"->",
"isIdenticalTo",
"(",
"NewM0Val",
")",
")",
"{",
"MI",
".",
"eraseFromParent",
"(",
")",
";",
"continue",
";",
"}",
"CurrentKnownM0Val",
"=",
"(",
"NewM0Val",
".",
"isReg",
"(",
")",
"&&",
"NewM0Val",
".",
"getReg",
"(",
")",
".",
"isPhysical",
"(",
")",
")",
"?",
"nullptr",
":",
"&",
"NewM0Val",
";",
"continue",
";",
"}",
"MachineOperand",
"&",
"OpToFold",
"=",
"MI",
".",
"getOperand",
"(",
"1",
")",
";",
"bool",
"FoldingImm",
"=",
"OpToFold",
".",
"isImm",
"(",
")",
"||",
"OpToFold",
".",
"isFI",
"(",
")",
"||",
"OpToFold",
".",
"isGlobal",
"(",
")",
";",
"if",
"(",
"!",
"FoldingImm",
"&&",
"!",
"OpToFold",
".",
"isReg",
"(",
")",
")",
"continue",
";",
"if",
"(",
"OpToFold",
".",
"isReg",
"(",
")",
"&&",
"!",
"Register",
"::",
"isVirtualRegister",
"(",
"OpToFold",
".",
"getReg",
"(",
")",
")",
")",
"continue",
";",
"MachineOperand",
"&",
"Dst",
"=",
"MI",
".",
"getOperand",
"(",
"0",
")",
";",
"if",
"(",
"Dst",
".",
"isReg",
"(",
")",
"&&",
"!",
"Register",
"::",
"isVirtualRegister",
"(",
"Dst",
".",
"getReg",
"(",
")",
")",
")",
"continue",
";",
"foldInstOperand",
"(",
"MI",
",",
"OpToFold",
")",
";",
"}",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"AMDGPU",
"SI",
"SI",
"AMDGPU::M0",
"0",
"AMDGPU::M0",
"1",
"1",
"0"
] | SIFoldOperands13 | runOnMachineFunction | AMDGPU | GPU | LLVM | 30,382 | 421 | 1 | [] |
[
"<s>",
"void",
"X86PassConfig",
"::",
"addPreRegAlloc",
"(",
")",
"{",
"addPass",
"(",
"createX86FixupSetCC",
"(",
")",
")",
";",
"if",
"(",
"getOptLevel",
"(",
")",
"!=",
"CodeGenOpt",
"::",
"None",
")",
"addPass",
"(",
"createX86OptimizeLEAs",
"(",
")",
")",
";",
"addPass",
"(",
"createX86CallFrameOptimization",
"(",
")",
")",
";",
"addPass",
"(",
"createX86WinAllocaExpander",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"This",
"method",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"immediately",
"before",
"register",
"allocation",
"."
] | [
"X86",
"X86",
"X86",
"X86",
"X86",
"X86"
] | X86TargetMachine124 | addPreRegAlloc | X86 | CPU | LLVM | 30,383 | 46 | 1 | [] |
[
"<s>",
"bool",
"PPCInstrInfo",
"::",
"analyzeCompare",
"(",
"const",
"MachineInstr",
"&",
"MI",
",",
"unsigned",
"&",
"SrcReg",
",",
"unsigned",
"&",
"SrcReg2",
",",
"int",
"&",
"Mask",
",",
"int",
"&",
"Value",
")",
"const",
"{",
"unsigned",
"Opc",
"=",
"MI",
".",
"getOpcode",
"(",
")",
";",
"switch",
"(",
"Opc",
")",
"{",
"default",
":",
"return",
"false",
";",
"case",
"PPC",
"::",
"CMPWI",
":",
"case",
"PPC",
"::",
"CMPLWI",
":",
"case",
"PPC",
"::",
"CMPDI",
":",
"case",
"PPC",
"::",
"CMPLDI",
":",
"SrcReg",
"=",
"MI",
".",
"getOperand",
"(",
"1",
")",
".",
"getReg",
"(",
")",
";",
"SrcReg2",
"=",
"0",
";",
"Value",
"=",
"MI",
".",
"getOperand",
"(",
"2",
")",
".",
"getImm",
"(",
")",
";",
"Mask",
"=",
"0xFFFF",
";",
"return",
"true",
";",
"case",
"PPC",
"::",
"CMPW",
":",
"case",
"PPC",
"::",
"CMPLW",
":",
"case",
"PPC",
"::",
"CMPD",
":",
"case",
"PPC",
"::",
"CMPLD",
":",
"case",
"PPC",
"::",
"FCMPUS",
":",
"case",
"PPC",
"::",
"FCMPUD",
":",
"SrcReg",
"=",
"MI",
".",
"getOperand",
"(",
"1",
")",
".",
"getReg",
"(",
")",
";",
"SrcReg2",
"=",
"MI",
".",
"getOperand",
"(",
"2",
")",
".",
"getReg",
"(",
")",
";",
"return",
"true",
";",
"}",
"}",
"</s>"
] | [
"analyzeCompare",
"-",
"For",
"a",
"comparison",
"instruction",
",",
"return",
"the",
"source",
"registers",
"in",
"SrcReg",
"and",
"SrcReg2",
"if",
"having",
"two",
"register",
"operands",
",",
"and",
"the",
"value",
"it",
"compares",
"against",
"in",
"CmpValue",
"."
] | [
"PowerPC",
"PPC",
"PPC::CMPWI",
"PPC::CMPLWI",
"PPC::CMPDI",
"PPC::CMPLDI",
"1",
"0",
"2",
"0xFFFF",
"PPC::CMPW",
"PPC::CMPLW",
"PPC::CMPD",
"PPC::CMPLD",
"PPC::FCMPUS",
"PPC::FCMPUD",
"1",
"2"
] | PPCInstrInfo100 | analyzeCompare | PowerPC | CPU | LLVM | 30,384 | 165 | 1 | [] |
[
"<s>",
"MachineInstr",
"*",
"SIInstrInfo",
"::",
"commuteInstructionImpl",
"(",
"MachineInstr",
"&",
"MI",
",",
"bool",
"NewMI",
",",
"unsigned",
"Src0Idx",
",",
"unsigned",
"Src1Idx",
")",
"const",
"{",
"assert",
"(",
"!",
"NewMI",
"&&",
"\"this should never be used\"",
")",
";",
"unsigned",
"Opc",
"=",
"MI",
".",
"getOpcode",
"(",
")",
";",
"int",
"CommutedOpcode",
"=",
"commuteOpcode",
"(",
"Opc",
")",
";",
"if",
"(",
"CommutedOpcode",
"==",
"-",
"1",
")",
"return",
"nullptr",
";",
"assert",
"(",
"AMDGPU",
"::",
"getNamedOperandIdx",
"(",
"Opc",
",",
"AMDGPU",
"::",
"OpName",
"::",
"src0",
")",
"==",
"static_cast",
"<",
"int",
">",
"(",
"Src0Idx",
")",
"&&",
"AMDGPU",
"::",
"getNamedOperandIdx",
"(",
"Opc",
",",
"AMDGPU",
"::",
"OpName",
"::",
"src1",
")",
"==",
"static_cast",
"<",
"int",
">",
"(",
"Src1Idx",
")",
"&&",
"\"inconsistency with findCommutedOpIndices\"",
")",
";",
"MachineOperand",
"&",
"Src0",
"=",
"MI",
".",
"getOperand",
"(",
"Src0Idx",
")",
";",
"MachineOperand",
"&",
"Src1",
"=",
"MI",
".",
"getOperand",
"(",
"Src1Idx",
")",
";",
"MachineInstr",
"*",
"CommutedMI",
"=",
"nullptr",
";",
"if",
"(",
"Src0",
".",
"isReg",
"(",
")",
"&&",
"Src1",
".",
"isReg",
"(",
")",
")",
"{",
"if",
"(",
"isOperandLegal",
"(",
"MI",
",",
"Src1Idx",
",",
"&",
"Src0",
")",
")",
"{",
"CommutedMI",
"=",
"TargetInstrInfo",
"::",
"commuteInstructionImpl",
"(",
"MI",
",",
"NewMI",
",",
"Src0Idx",
",",
"Src1Idx",
")",
";",
"}",
"}",
"else",
"if",
"(",
"Src0",
".",
"isReg",
"(",
")",
"&&",
"!",
"Src1",
".",
"isReg",
"(",
")",
")",
"{",
"CommutedMI",
"=",
"swapRegAndNonRegOperand",
"(",
"MI",
",",
"Src0",
",",
"Src1",
")",
";",
"}",
"else",
"if",
"(",
"!",
"Src0",
".",
"isReg",
"(",
")",
"&&",
"Src1",
".",
"isReg",
"(",
")",
")",
"{",
"if",
"(",
"isOperandLegal",
"(",
"MI",
",",
"Src1Idx",
",",
"&",
"Src0",
")",
")",
"CommutedMI",
"=",
"swapRegAndNonRegOperand",
"(",
"MI",
",",
"Src1",
",",
"Src0",
")",
";",
"}",
"else",
"{",
"return",
"nullptr",
";",
"}",
"if",
"(",
"CommutedMI",
")",
"{",
"swapSourceModifiers",
"(",
"MI",
",",
"Src0",
",",
"AMDGPU",
"::",
"OpName",
"::",
"src0_modifiers",
",",
"Src1",
",",
"AMDGPU",
"::",
"OpName",
"::",
"src1_modifiers",
")",
";",
"CommutedMI",
"->",
"setDesc",
"(",
"get",
"(",
"CommutedOpcode",
")",
")",
";",
"}",
"return",
"CommutedMI",
";",
"}",
"</s>"
] | [
"Commutes",
"the",
"operands",
"in",
"the",
"given",
"instruction",
"by",
"changing",
"the",
"operands",
"order",
"and/or",
"changing",
"the",
"instruction",
"'s",
"opcode",
"and/or",
"the",
"immediate",
"value",
"operand",
"."
] | [
"AMDGPU",
"SI",
"\"this should never be used\"",
"1",
"AMDGPU::getNamedOperandIdx",
"AMDGPU::OpName",
"AMDGPU::getNamedOperandIdx",
"AMDGPU::OpName",
"\"inconsistency with findCommutedOpIndices\"",
"AMDGPU::OpName",
"AMDGPU::OpName"
] | SIInstrInfo (2) | commuteInstructionImpl | AMDGPU | GPU | LLVM | 30,385 | 293 | 1 | [] |
[
"<s>",
"static",
"unsigned",
"int",
"rs6000_hard_regno_nregs_hook",
"(",
"unsigned",
"int",
"regno",
",",
"machine_mode",
"mode",
")",
"{",
"return",
"rs6000_hard_regno_nregs",
"[",
"mode",
"]",
"[",
"regno",
"]",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_HARD_REGNO_NREGS",
"."
] | [
"rs6000"
] | rs6000 | rs6000_hard_regno_nregs_hook | rs6000 | CPU | GCC | 30,386 | 23 | 1 | [] |
[
"<s>",
"unsigned",
"SparcInstrInfo",
"::",
"isLoadFromStackSlot",
"(",
"const",
"MachineInstr",
"*",
"MI",
",",
"int",
"&",
"FrameIndex",
")",
"const",
"{",
"if",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
"==",
"SP",
"::",
"LDri",
"||",
"MI",
"->",
"getOpcode",
"(",
")",
"==",
"SP",
"::",
"LDXri",
"||",
"MI",
"->",
"getOpcode",
"(",
")",
"==",
"SP",
"::",
"LDFri",
"||",
"MI",
"->",
"getOpcode",
"(",
")",
"==",
"SP",
"::",
"LDDFri",
")",
"{",
"if",
"(",
"MI",
"->",
"getOperand",
"(",
"1",
")",
".",
"isFI",
"(",
")",
"&&",
"MI",
"->",
"getOperand",
"(",
"2",
")",
".",
"isImm",
"(",
")",
"&&",
"MI",
"->",
"getOperand",
"(",
"2",
")",
".",
"getImm",
"(",
")",
"==",
"0",
")",
"{",
"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",
"."
] | [
"Sparc",
"Sparc",
"SP::LDri",
"SP::LDXri",
"SP::LDFri",
"SP::LDDFri",
"1",
"2",
"2",
"0",
"1",
"0",
"0"
] | SparcInstrInfo2 | isLoadFromStackSlot | Sparc | CPU | LLVM | 30,387 | 128 | 1 | [] |
[
"<s>",
"bool",
"R600Packetizer",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"Fn",
")",
"{",
"const",
"TargetInstrInfo",
"*",
"TII",
"=",
"Fn",
".",
"getSubtarget",
"(",
")",
".",
"getInstrInfo",
"(",
")",
";",
"MachineLoopInfo",
"&",
"MLI",
"=",
"getAnalysis",
"<",
"MachineLoopInfo",
">",
"(",
")",
";",
"R600PacketizerList",
"Packetizer",
"(",
"Fn",
",",
"MLI",
")",
";",
"assert",
"(",
"Packetizer",
".",
"getResourceTracker",
"(",
")",
"&&",
"\"Empty DFA table!\"",
")",
";",
"if",
"(",
"Packetizer",
".",
"getResourceTracker",
"(",
")",
"->",
"getInstrItins",
"(",
")",
"->",
"isEmpty",
"(",
")",
")",
"return",
"false",
";",
"for",
"(",
"MachineFunction",
"::",
"iterator",
"MBB",
"=",
"Fn",
".",
"begin",
"(",
")",
",",
"MBBe",
"=",
"Fn",
".",
"end",
"(",
")",
";",
"MBB",
"!=",
"MBBe",
";",
"++",
"MBB",
")",
"{",
"MachineBasicBlock",
"::",
"iterator",
"End",
"=",
"MBB",
"->",
"end",
"(",
")",
";",
"MachineBasicBlock",
"::",
"iterator",
"MI",
"=",
"MBB",
"->",
"begin",
"(",
")",
";",
"while",
"(",
"MI",
"!=",
"End",
")",
"{",
"if",
"(",
"MI",
"->",
"isKill",
"(",
")",
"||",
"MI",
"->",
"getOpcode",
"(",
")",
"==",
"AMDGPU",
"::",
"IMPLICIT_DEF",
"||",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
"==",
"AMDGPU",
"::",
"CF_ALU",
"&&",
"!",
"MI",
"->",
"getOperand",
"(",
"8",
")",
".",
"getImm",
"(",
")",
")",
")",
"{",
"MachineBasicBlock",
"::",
"iterator",
"DeleteMI",
"=",
"MI",
";",
"++",
"MI",
";",
"MBB",
"->",
"erase",
"(",
"DeleteMI",
")",
";",
"End",
"=",
"MBB",
"->",
"end",
"(",
")",
";",
"continue",
";",
"}",
"++",
"MI",
";",
"}",
"}",
"for",
"(",
"MachineFunction",
"::",
"iterator",
"MBB",
"=",
"Fn",
".",
"begin",
"(",
")",
",",
"MBBe",
"=",
"Fn",
".",
"end",
"(",
")",
";",
"MBB",
"!=",
"MBBe",
";",
"++",
"MBB",
")",
"{",
"unsigned",
"RemainingCount",
"=",
"MBB",
"->",
"size",
"(",
")",
";",
"for",
"(",
"MachineBasicBlock",
"::",
"iterator",
"RegionEnd",
"=",
"MBB",
"->",
"end",
"(",
")",
";",
"RegionEnd",
"!=",
"MBB",
"->",
"begin",
"(",
")",
";",
")",
"{",
"MachineBasicBlock",
"::",
"iterator",
"I",
"=",
"RegionEnd",
";",
"for",
"(",
";",
"I",
"!=",
"MBB",
"->",
"begin",
"(",
")",
";",
"--",
"I",
",",
"--",
"RemainingCount",
")",
"{",
"if",
"(",
"TII",
"->",
"isSchedulingBoundary",
"(",
"&",
"*",
"std",
"::",
"prev",
"(",
"I",
")",
",",
"&",
"*",
"MBB",
",",
"Fn",
")",
")",
"break",
";",
"}",
"I",
"=",
"MBB",
"->",
"begin",
"(",
")",
";",
"if",
"(",
"I",
"==",
"RegionEnd",
")",
"{",
"RegionEnd",
"=",
"std",
"::",
"prev",
"(",
"RegionEnd",
")",
";",
"--",
"RemainingCount",
";",
"continue",
";",
"}",
"if",
"(",
"I",
"==",
"std",
"::",
"prev",
"(",
"RegionEnd",
")",
")",
"{",
"RegionEnd",
"=",
"std",
"::",
"prev",
"(",
"RegionEnd",
")",
";",
"continue",
";",
"}",
"Packetizer",
".",
"PacketizeMIs",
"(",
"&",
"*",
"MBB",
",",
"&",
"*",
"I",
",",
"RegionEnd",
")",
";",
"RegionEnd",
"=",
"I",
";",
"}",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"AMDGPU",
"R600",
"R600",
"\"Empty DFA table!\"",
"AMDGPU::IMPLICIT_DEF",
"AMDGPU::CF_ALU",
"8"
] | R600Packetizer23 | runOnMachineFunction | AMDGPU | GPU | LLVM | 30,388 | 398 | 1 | [] |
[
"<s>",
"bool",
"SIAnnotateControlFlow",
"::",
"runOnFunction",
"(",
"Function",
"&",
"F",
")",
"{",
"DT",
"=",
"&",
"getAnalysis",
"<",
"DominatorTreeWrapperPass",
">",
"(",
")",
".",
"getDomTree",
"(",
")",
";",
"LI",
"=",
"&",
"getAnalysis",
"<",
"LoopInfoWrapperPass",
">",
"(",
")",
".",
"getLoopInfo",
"(",
")",
";",
"for",
"(",
"df_iterator",
"<",
"BasicBlock",
"*",
">",
"I",
"=",
"df_begin",
"(",
"&",
"F",
".",
"getEntryBlock",
"(",
")",
")",
",",
"E",
"=",
"df_end",
"(",
"&",
"F",
".",
"getEntryBlock",
"(",
")",
")",
";",
"I",
"!=",
"E",
";",
"++",
"I",
")",
"{",
"BranchInst",
"*",
"Term",
"=",
"dyn_cast",
"<",
"BranchInst",
">",
"(",
"(",
"*",
"I",
")",
"->",
"getTerminator",
"(",
")",
")",
";",
"if",
"(",
"!",
"Term",
"||",
"Term",
"->",
"isUnconditional",
"(",
")",
")",
"{",
"if",
"(",
"isTopOfStack",
"(",
"*",
"I",
")",
")",
"closeControlFlow",
"(",
"*",
"I",
")",
";",
"continue",
";",
"}",
"if",
"(",
"I",
".",
"nodeVisited",
"(",
"Term",
"->",
"getSuccessor",
"(",
"1",
")",
")",
")",
"{",
"if",
"(",
"isTopOfStack",
"(",
"*",
"I",
")",
")",
"closeControlFlow",
"(",
"*",
"I",
")",
";",
"handleLoop",
"(",
"Term",
")",
";",
"continue",
";",
"}",
"if",
"(",
"isTopOfStack",
"(",
"*",
"I",
")",
")",
"{",
"PHINode",
"*",
"Phi",
"=",
"dyn_cast",
"<",
"PHINode",
">",
"(",
"Term",
"->",
"getCondition",
"(",
")",
")",
";",
"if",
"(",
"Phi",
"&&",
"Phi",
"->",
"getParent",
"(",
")",
"==",
"*",
"I",
"&&",
"isElse",
"(",
"Phi",
")",
")",
"{",
"insertElse",
"(",
"Term",
")",
";",
"eraseIfUnused",
"(",
"Phi",
")",
";",
"continue",
";",
"}",
"closeControlFlow",
"(",
"*",
"I",
")",
";",
"}",
"openIf",
"(",
"Term",
")",
";",
"}",
"assert",
"(",
"Stack",
".",
"empty",
"(",
")",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"runOnFunction",
"-",
"Virtual",
"method",
"overriden",
"by",
"subclasses",
"to",
"do",
"the",
"per-function",
"processing",
"of",
"the",
"pass",
"."
] | [
"AMDGPU",
"SI",
"1"
] | SIAnnotateControlFlow14 | runOnFunction | AMDGPU | GPU | LLVM | 30,389 | 245 | 1 | [] |
[
"<s>",
"FastISel",
"*",
"ARM",
"::",
"createFastISel",
"(",
"FunctionLoweringInfo",
"&",
"funcInfo",
",",
"const",
"TargetLibraryInfo",
"*",
"libInfo",
")",
"{",
"const",
"TargetMachine",
"&",
"TM",
"=",
"funcInfo",
".",
"MF",
"->",
"getTarget",
"(",
")",
";",
"const",
"ARMSubtarget",
"*",
"Subtarget",
"=",
"&",
"TM",
".",
"getSubtarget",
"<",
"ARMSubtarget",
">",
"(",
")",
";",
"bool",
"UseFastISel",
"=",
"false",
";",
"UseFastISel",
"|=",
"Subtarget",
"->",
"isTargetIOS",
"(",
")",
"&&",
"!",
"Subtarget",
"->",
"isThumb1Only",
"(",
")",
";",
"UseFastISel",
"|=",
"Subtarget",
"->",
"isTargetLinux",
"(",
")",
"&&",
"!",
"Subtarget",
"->",
"isThumb",
"(",
")",
";",
"UseFastISel",
"|=",
"Subtarget",
"->",
"isTargetNaCl",
"(",
")",
"&&",
"!",
"Subtarget",
"->",
"isThumb",
"(",
")",
";",
"if",
"(",
"UseFastISel",
")",
"{",
"TM",
".",
"Options",
".",
"NoFramePointerElim",
"=",
"true",
";",
"return",
"new",
"ARMFastISel",
"(",
"funcInfo",
",",
"libInfo",
")",
";",
"}",
"return",
"0",
";",
"}",
"</s>"
] | [
"This",
"method",
"returns",
"a",
"target",
"specific",
"FastISel",
"object",
",",
"or",
"null",
"if",
"the",
"target",
"does",
"not",
"support",
"``",
"fast",
"''",
"ISel",
"."
] | [
"ARM",
"ARM::createFastISel",
"ARM",
"ARM",
"ARM",
"0"
] | ARMFastISel (2)1 | createFastISel | ARM | CPU | LLVM | 30,390 | 121 | 1 | [] |
[
"<s>",
"bool",
"BPFAsmPrinter",
"::",
"doInitialization",
"(",
"Module",
"&",
"M",
")",
"{",
"AsmPrinter",
"::",
"doInitialization",
"(",
"M",
")",
";",
"if",
"(",
"MAI",
"->",
"doesSupportDebugInformation",
"(",
")",
"&&",
"!",
"M",
".",
"debug_compile_units",
"(",
")",
".",
"empty",
"(",
")",
")",
"{",
"BTF",
"=",
"new",
"BTFDebug",
"(",
"this",
")",
";",
"Handlers",
".",
"push_back",
"(",
"HandlerInfo",
"(",
"std",
"::",
"unique_ptr",
"<",
"BTFDebug",
">",
"(",
"BTF",
")",
",",
"\"emit\"",
",",
"\"Debug Info Emission\"",
",",
"\"BTF\"",
",",
"\"BTF Emission\"",
")",
")",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"Set",
"up",
"the",
"AsmPrinter",
"when",
"we",
"are",
"working",
"on",
"a",
"new",
"module",
"."
] | [
"BPF",
"BPF",
"\"emit\"",
"\"Debug Info Emission\"",
"\"BTF\"",
"\"BTF Emission\""
] | BPFAsmPrinter12 | doInitialization | BPF | Virtual ISA | LLVM | 30,391 | 76 | 1 | [] |
[
"<s>",
"void",
"MOSInstrInfo",
"::",
"insertIndirectBranch",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"&",
"NewDestBB",
",",
"MachineBasicBlock",
"&",
"RestoreBB",
",",
"const",
"DebugLoc",
"&",
"DL",
",",
"int64_t",
"BrOffset",
",",
"RegScavenger",
"*",
"RS",
")",
"const",
"{",
"MachineIRBuilder",
"Builder",
"(",
"MBB",
",",
"MBB",
".",
"end",
"(",
")",
")",
";",
"Builder",
".",
"setDebugLoc",
"(",
"DL",
")",
";",
"Builder",
".",
"buildInstr",
"(",
"MOS",
"::",
"JMP",
")",
".",
"addMBB",
"(",
"&",
"NewDestBB",
")",
";",
"}",
"</s>"
] | [
"Insert",
"an",
"unconditional",
"indirect",
"branch",
"at",
"the",
"end",
"of",
"MBB",
"to",
"NewDestBB",
"."
] | [
"MOS",
"MOS",
"MOS::JMP"
] | MOSInstrInfo | insertIndirectBranch | MOS | MPU | LLVM | 30,392 | 66 | 1 | [] |
[
"<s>",
"static",
"bool",
"pa_can_change_mode_class",
"(",
"machine_mode",
"from",
",",
"machine_mode",
"to",
",",
"reg_class_t",
"rclass",
")",
"{",
"if",
"(",
"from",
"==",
"to",
")",
"return",
"true",
";",
"if",
"(",
"GET_MODE_SIZE",
"(",
"from",
")",
"==",
"GET_MODE_SIZE",
"(",
"to",
")",
")",
"return",
"true",
";",
"if",
"(",
"!",
"GET_MODE_SIZE",
"(",
"from",
")",
"||",
"!",
"GET_MODE_SIZE",
"(",
"to",
")",
")",
"return",
"false",
";",
"if",
"(",
"COMPLEX_MODE_P",
"(",
"from",
")",
"||",
"VECTOR_MODE_P",
"(",
"from",
")",
"||",
"COMPLEX_MODE_P",
"(",
"to",
")",
"||",
"VECTOR_MODE_P",
"(",
"to",
")",
")",
"return",
"false",
";",
"if",
"(",
"MAYBE_FP_REG_CLASS_P",
"(",
"rclass",
")",
")",
"return",
"TARGET_64BIT",
"&&",
"from",
"==",
"DImode",
"&&",
"to",
"==",
"SImode",
";",
"if",
"(",
"GET_MODE_SIZE",
"(",
"to",
")",
">",
"UNITS_PER_WORD",
"&&",
"GET_MODE_SIZE",
"(",
"to",
")",
">",
"GET_MODE_SIZE",
"(",
"from",
")",
")",
"return",
"false",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_CAN_CHANGE_MODE_CLASS",
"."
] | [
"pa"
] | pa | pa_can_change_mode_class | pa | CPU | GCC | 30,393 | 124 | 1 | [] |
[
"<s>",
"virtual",
"const",
"WDC65816Subtarget",
"*",
"getSubtargetImpl",
"(",
")",
"const",
"{",
"return",
"&",
"Subtarget",
";",
"}",
"</s>"
] | [
"Virtual",
"method",
"implemented",
"by",
"subclasses",
"that",
"returns",
"a",
"reference",
"to",
"that",
"target",
"'s",
"TargetSubtargetInfo-derived",
"member",
"variable",
"."
] | [
"WDC65816",
"WDC"
] | WDC65816TargetMachine | getSubtargetImpl | WDC65816 | MPU | LLVM | 30,394 | 14 | 1 | [] |
[
"<s>",
"void",
"X86DAGToDAGISel",
"::",
"PreprocessISelDAG",
"(",
")",
"{",
"OptForSize",
"=",
"MF",
"->",
"getFunction",
"(",
")",
"->",
"hasFnAttr",
"(",
"Attribute",
"::",
"OptimizeForSize",
")",
";",
"for",
"(",
"SelectionDAG",
"::",
"allnodes_iterator",
"I",
"=",
"CurDAG",
"->",
"allnodes_begin",
"(",
")",
",",
"E",
"=",
"CurDAG",
"->",
"allnodes_end",
"(",
")",
";",
"I",
"!=",
"E",
";",
")",
"{",
"SDNode",
"*",
"N",
"=",
"I",
"++",
";",
"if",
"(",
"OptLevel",
"!=",
"CodeGenOpt",
"::",
"None",
"&&",
"N",
"->",
"getOpcode",
"(",
")",
"==",
"X86ISD",
"::",
"CALL",
")",
"{",
"SDValue",
"Chain",
"=",
"N",
"->",
"getOperand",
"(",
"0",
")",
";",
"SDValue",
"Load",
"=",
"N",
"->",
"getOperand",
"(",
"1",
")",
";",
"if",
"(",
"!",
"isCalleeLoad",
"(",
"Load",
",",
"Chain",
")",
")",
"continue",
";",
"MoveBelowCallSeqStart",
"(",
"CurDAG",
",",
"Load",
",",
"SDValue",
"(",
"N",
",",
"0",
")",
",",
"Chain",
")",
";",
"++",
"NumLoadMoved",
";",
"continue",
";",
"}",
"if",
"(",
"N",
"->",
"getOpcode",
"(",
")",
"!=",
"ISD",
"::",
"FP_ROUND",
"&&",
"N",
"->",
"getOpcode",
"(",
")",
"!=",
"ISD",
"::",
"FP_EXTEND",
")",
"continue",
";",
"EVT",
"SrcVT",
"=",
"N",
"->",
"getOperand",
"(",
"0",
")",
".",
"getValueType",
"(",
")",
";",
"EVT",
"DstVT",
"=",
"N",
"->",
"getValueType",
"(",
"0",
")",
";",
"bool",
"SrcIsSSE",
"=",
"X86Lowering",
".",
"isScalarFPTypeInSSEReg",
"(",
"SrcVT",
")",
";",
"bool",
"DstIsSSE",
"=",
"X86Lowering",
".",
"isScalarFPTypeInSSEReg",
"(",
"DstVT",
")",
";",
"if",
"(",
"SrcIsSSE",
"&&",
"DstIsSSE",
")",
"continue",
";",
"if",
"(",
"!",
"SrcIsSSE",
"&&",
"!",
"DstIsSSE",
")",
"{",
"if",
"(",
"N",
"->",
"getOpcode",
"(",
")",
"==",
"ISD",
"::",
"FP_EXTEND",
")",
"continue",
";",
"if",
"(",
"N",
"->",
"getConstantOperandVal",
"(",
"1",
")",
")",
"continue",
";",
"}",
"EVT",
"MemVT",
";",
"if",
"(",
"N",
"->",
"getOpcode",
"(",
")",
"==",
"ISD",
"::",
"FP_ROUND",
")",
"MemVT",
"=",
"DstVT",
";",
"else",
"MemVT",
"=",
"SrcIsSSE",
"?",
"SrcVT",
":",
"DstVT",
";",
"SDValue",
"MemTmp",
"=",
"CurDAG",
"->",
"CreateStackTemporary",
"(",
"MemVT",
")",
";",
"DebugLoc",
"dl",
"=",
"N",
"->",
"getDebugLoc",
"(",
")",
";",
"SDValue",
"Store",
"=",
"CurDAG",
"->",
"getTruncStore",
"(",
"CurDAG",
"->",
"getEntryNode",
"(",
")",
",",
"dl",
",",
"N",
"->",
"getOperand",
"(",
"0",
")",
",",
"MemTmp",
",",
"NULL",
",",
"0",
",",
"MemVT",
",",
"false",
",",
"false",
",",
"0",
")",
";",
"SDValue",
"Result",
"=",
"CurDAG",
"->",
"getExtLoad",
"(",
"ISD",
"::",
"EXTLOAD",
",",
"dl",
",",
"DstVT",
",",
"Store",
",",
"MemTmp",
",",
"NULL",
",",
"0",
",",
"MemVT",
",",
"false",
",",
"false",
",",
"0",
")",
";",
"--",
"I",
";",
"CurDAG",
"->",
"ReplaceAllUsesOfValueWith",
"(",
"SDValue",
"(",
"N",
",",
"0",
")",
",",
"Result",
")",
";",
"++",
"I",
";",
"CurDAG",
"->",
"DeleteNode",
"(",
"N",
")",
";",
"}",
"}",
"</s>"
] | [
"PreprocessISelDAG",
"-",
"This",
"hook",
"allows",
"targets",
"to",
"hack",
"on",
"the",
"graph",
"before",
"instruction",
"selection",
"starts",
"."
] | [
"X86",
"X86",
"X86ISD::CALL",
"0",
"1",
"0",
"ISD::FP_ROUND",
"ISD::FP_EXTEND",
"0",
"0",
"X86",
"X86",
"ISD::FP_EXTEND",
"1",
"ISD::FP_ROUND",
"0",
"0",
"0",
"ISD::EXTLOAD",
"0",
"0",
"0"
] | X86ISelDAGToDAG91 | PreprocessISelDAG | X86 | CPU | LLVM | 30,395 | 385 | 1 | [] |
[
"<s>",
"void",
"MipsInstrInfo",
"::",
"copyPhysReg",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"I",
",",
"DebugLoc",
"DL",
",",
"unsigned",
"DestReg",
",",
"unsigned",
"SrcReg",
",",
"bool",
"KillSrc",
")",
"const",
"{",
"unsigned",
"Opc",
"=",
"0",
",",
"ZeroReg",
"=",
"0",
";",
"if",
"(",
"Mips",
"::",
"CPURegsRegClass",
".",
"contains",
"(",
"DestReg",
")",
")",
"{",
"if",
"(",
"Mips",
"::",
"CPURegsRegClass",
".",
"contains",
"(",
"SrcReg",
")",
")",
"Opc",
"=",
"Mips",
"::",
"ADDu",
",",
"ZeroReg",
"=",
"Mips",
"::",
"ZERO",
";",
"else",
"if",
"(",
"Mips",
"::",
"CCRRegClass",
".",
"contains",
"(",
"SrcReg",
")",
")",
"Opc",
"=",
"Mips",
"::",
"CFC1",
";",
"else",
"if",
"(",
"Mips",
"::",
"FGR32RegClass",
".",
"contains",
"(",
"SrcReg",
")",
")",
"Opc",
"=",
"Mips",
"::",
"MFC1",
";",
"else",
"if",
"(",
"SrcReg",
"==",
"Mips",
"::",
"HI",
")",
"Opc",
"=",
"Mips",
"::",
"MFHI",
",",
"SrcReg",
"=",
"0",
";",
"else",
"if",
"(",
"SrcReg",
"==",
"Mips",
"::",
"LO",
")",
"Opc",
"=",
"Mips",
"::",
"MFLO",
",",
"SrcReg",
"=",
"0",
";",
"}",
"else",
"if",
"(",
"Mips",
"::",
"CPURegsRegClass",
".",
"contains",
"(",
"SrcReg",
")",
")",
"{",
"if",
"(",
"Mips",
"::",
"CCRRegClass",
".",
"contains",
"(",
"DestReg",
")",
")",
"Opc",
"=",
"Mips",
"::",
"CTC1",
";",
"else",
"if",
"(",
"Mips",
"::",
"FGR32RegClass",
".",
"contains",
"(",
"DestReg",
")",
")",
"Opc",
"=",
"Mips",
"::",
"MTC1",
";",
"else",
"if",
"(",
"DestReg",
"==",
"Mips",
"::",
"HI",
")",
"Opc",
"=",
"Mips",
"::",
"MTHI",
",",
"DestReg",
"=",
"0",
";",
"else",
"if",
"(",
"DestReg",
"==",
"Mips",
"::",
"LO",
")",
"Opc",
"=",
"Mips",
"::",
"MTLO",
",",
"DestReg",
"=",
"0",
";",
"}",
"else",
"if",
"(",
"Mips",
"::",
"FGR32RegClass",
".",
"contains",
"(",
"DestReg",
",",
"SrcReg",
")",
")",
"Opc",
"=",
"Mips",
"::",
"FMOV_S",
";",
"else",
"if",
"(",
"Mips",
"::",
"AFGR64RegClass",
".",
"contains",
"(",
"DestReg",
",",
"SrcReg",
")",
")",
"Opc",
"=",
"Mips",
"::",
"FMOV_D32",
";",
"else",
"if",
"(",
"Mips",
"::",
"CCRRegClass",
".",
"contains",
"(",
"DestReg",
",",
"SrcReg",
")",
")",
"Opc",
"=",
"Mips",
"::",
"MOVCCRToCCR",
";",
"else",
"if",
"(",
"Mips",
"::",
"CPU64RegsRegClass",
".",
"contains",
"(",
"DestReg",
")",
")",
"{",
"if",
"(",
"Mips",
"::",
"CPU64RegsRegClass",
".",
"contains",
"(",
"SrcReg",
")",
")",
"Opc",
"=",
"Mips",
"::",
"DADDu",
",",
"ZeroReg",
"=",
"Mips",
"::",
"ZERO_64",
";",
"else",
"if",
"(",
"SrcReg",
"==",
"Mips",
"::",
"HI64",
")",
"Opc",
"=",
"Mips",
"::",
"MFHI64",
",",
"SrcReg",
"=",
"0",
";",
"else",
"if",
"(",
"SrcReg",
"==",
"Mips",
"::",
"LO64",
")",
"Opc",
"=",
"Mips",
"::",
"MFLO64",
",",
"SrcReg",
"=",
"0",
";",
"}",
"else",
"if",
"(",
"Mips",
"::",
"CPU64RegsRegClass",
".",
"contains",
"(",
"SrcReg",
")",
")",
"{",
"if",
"(",
"DestReg",
"==",
"Mips",
"::",
"HI64",
")",
"Opc",
"=",
"Mips",
"::",
"MTHI64",
",",
"DestReg",
"=",
"0",
";",
"else",
"if",
"(",
"DestReg",
"==",
"Mips",
"::",
"LO64",
")",
"Opc",
"=",
"Mips",
"::",
"MTLO64",
",",
"DestReg",
"=",
"0",
";",
"}",
"assert",
"(",
"Opc",
"&&",
"\"Cannot copy registers\"",
")",
";",
"MachineInstrBuilder",
"MIB",
"=",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"Opc",
")",
")",
";",
"if",
"(",
"DestReg",
")",
"MIB",
".",
"addReg",
"(",
"DestReg",
",",
"RegState",
"::",
"Define",
")",
";",
"if",
"(",
"ZeroReg",
")",
"MIB",
".",
"addReg",
"(",
"ZeroReg",
")",
";",
"if",
"(",
"SrcReg",
")",
"MIB",
".",
"addReg",
"(",
"SrcReg",
",",
"getKillRegState",
"(",
"KillSrc",
")",
")",
";",
"}",
"</s>"
] | [
"}",
"Branch",
"Analysis",
"&",
"Modification"
] | [
"Mips",
"Mips",
"0",
"0",
"Mips::CPURegsRegClass",
"Mips::CPURegsRegClass",
"Mips::ADDu",
"Mips::ZERO",
"Mips::CCRRegClass",
"Mips::CFC1",
"Mips::FGR32RegClass",
"Mips::MFC1",
"Mips::HI",
"Mips::MFHI",
"0",
"Mips::LO",
"Mips::MFLO",
"0",
"Mips::CPURegsRegClass",
"Mips::CCRRegClass",
"Mips::CTC1",
"Mips::FGR32RegClass",
"Mips::MTC1",
"Mips::HI",
"Mips::MTHI",
"0",
"Mips::LO",
"Mips::MTLO",
"0",
"Mips::FGR32RegClass",
"Mips::FMOV_S",
"Mips::AFGR64RegClass",
"Mips::FMOV_D32",
"Mips::CCRRegClass",
"Mips::MOVCCRToCCR",
"Mips::CPU64RegsRegClass",
"Mips::CPU64RegsRegClass",
"Mips::DADDu",
"Mips::ZERO_64",
"Mips::HI64",
"Mips::MFHI64",
"0",
"Mips::LO64",
"Mips::MFLO64",
"0",
"Mips::CPU64RegsRegClass",
"Mips::HI64",
"Mips::MTHI64",
"0",
"Mips::LO64",
"Mips::MTLO64",
"0",
"\"Cannot copy registers\""
] | MipsInstrInfo62 | copyPhysReg | Mips | CPU | LLVM | 30,396 | 487 | 1 | [] |
[
"<s>",
"unsigned",
"PPCInstrInfo",
"::",
"isLoadFromStackSlot",
"(",
"const",
"MachineInstr",
"*",
"MI",
",",
"int",
"&",
"FrameIndex",
")",
"const",
"{",
"switch",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"break",
";",
"case",
"PPC",
"::",
"LD",
":",
"case",
"PPC",
"::",
"LWZ",
":",
"case",
"PPC",
"::",
"LFS",
":",
"case",
"PPC",
"::",
"LFD",
":",
"if",
"(",
"MI",
"->",
"getOperand",
"(",
"1",
")",
".",
"isImm",
"(",
")",
"&&",
"!",
"MI",
"->",
"getOperand",
"(",
"1",
")",
".",
"getImm",
"(",
")",
"&&",
"MI",
"->",
"getOperand",
"(",
"2",
")",
".",
"isFI",
"(",
")",
")",
"{",
"FrameIndex",
"=",
"MI",
"->",
"getOperand",
"(",
"2",
")",
".",
"getIndex",
"(",
")",
";",
"return",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
";",
"}",
"break",
";",
"}",
"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",
"."
] | [
"PowerPC",
"PPC",
"PPC::LD",
"PPC::LWZ",
"PPC::LFS",
"PPC::LFD",
"1",
"1",
"2",
"2",
"0",
"0"
] | PPCInstrInfo107 | isLoadFromStackSlot | PowerPC | CPU | LLVM | 30,397 | 119 | 1 | [] |
[
"<s>",
"const",
"R600InstrInfo",
"*",
"getInstrInfo",
"(",
")",
"const",
"override",
"{",
"return",
"&",
"InstrInfo",
";",
"}",
"</s>"
] | [
"TargetInstrInfo",
"getter",
"."
] | [
"AMDGPU",
"R600"
] | AMDGPUSubtarget | getInstrInfo | AMDGPU | GPU | LLVM | 30,398 | 14 | 1 | [] |
[
"<s>",
"void",
"moxie_print_operand_address",
"(",
"FILE",
"*",
"file",
",",
"rtx",
"x",
")",
"{",
"switch",
"(",
"GET_CODE",
"(",
"x",
")",
")",
"{",
"case",
"REG",
":",
"fprintf",
"(",
"file",
",",
"\"(%s)\"",
",",
"reg_names",
"[",
"REGNO",
"(",
"x",
")",
"]",
")",
";",
"break",
";",
"case",
"PLUS",
":",
"switch",
"(",
"GET_CODE",
"(",
"XEXP",
"(",
"x",
",",
"1",
")",
")",
")",
"{",
"case",
"CONST_INT",
":",
"fprintf",
"(",
"file",
",",
"\"%ld(%s)\"",
",",
"INTVAL",
"(",
"XEXP",
"(",
"x",
",",
"1",
")",
")",
",",
"reg_names",
"[",
"REGNO",
"(",
"XEXP",
"(",
"x",
",",
"0",
")",
")",
"]",
")",
";",
"break",
";",
"case",
"SYMBOL_REF",
":",
"output_addr_const",
"(",
"file",
",",
"XEXP",
"(",
"x",
",",
"1",
")",
")",
";",
"fprintf",
"(",
"file",
",",
"\"(%s)\"",
",",
"reg_names",
"[",
"REGNO",
"(",
"XEXP",
"(",
"x",
",",
"0",
")",
")",
"]",
")",
";",
"break",
";",
"case",
"CONST",
":",
"{",
"rtx",
"plus",
"=",
"XEXP",
"(",
"XEXP",
"(",
"x",
",",
"1",
")",
",",
"0",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"XEXP",
"(",
"plus",
",",
"0",
")",
")",
"==",
"SYMBOL_REF",
"&&",
"CONST_INT_P",
"(",
"XEXP",
"(",
"plus",
",",
"1",
")",
")",
")",
"{",
"output_addr_const",
"(",
"file",
",",
"XEXP",
"(",
"plus",
",",
"0",
")",
")",
";",
"fprintf",
"(",
"file",
",",
"\"+%ld(%s)\"",
",",
"INTVAL",
"(",
"XEXP",
"(",
"plus",
",",
"1",
")",
")",
",",
"reg_names",
"[",
"REGNO",
"(",
"XEXP",
"(",
"x",
",",
"0",
")",
")",
"]",
")",
";",
"}",
"else",
"abort",
"(",
")",
";",
"}",
"break",
";",
"default",
":",
"abort",
"(",
")",
";",
"}",
"break",
";",
"default",
":",
"output_addr_const",
"(",
"file",
",",
"x",
")",
";",
"break",
";",
"}",
"}",
"</s>"
] | [
"The",
"PRINT_OPERAND_ADDRESS",
"worker",
"."
] | [
"moxie",
"\"(%s)\"",
"1",
"\"%ld(%s)\"",
"1",
"0",
"1",
"\"(%s)\"",
"0",
"1",
"0",
"0",
"1",
"0",
"\"+%ld(%s)\"",
"1",
"0"
] | moxie2 | moxie_print_operand_address | moxie | CPU | GCC | 30,399 | 244 | 1 | [] |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.