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>",
"const",
"LegalizerInfo",
"*",
"getLegalizerInfo",
"(",
")",
"const",
"override",
"{",
"return",
"nullptr",
";",
"}",
"</s>"
] | [
"Expose",
"LegalizerInfo",
"so",
"the",
"clients",
"can",
"re-use",
"."
] | [
"X86"
] | X86TargetMachine45 | getLegalizerInfo | X86 | CPU | LLVM | 34,600 | 13 | 1 | [] |
[
"<s>",
"bool",
"PPCAsmPrinter",
"::",
"PrintAsmMemoryOperand",
"(",
"const",
"MachineInstr",
"*",
"MI",
",",
"unsigned",
"OpNo",
",",
"unsigned",
"AsmVariant",
",",
"const",
"char",
"*",
"ExtraCode",
")",
"{",
"if",
"(",
"ExtraCode",
"&&",
"ExtraCode",
"[",
"0",
"]",
")",
"return",
"true",
";",
"if",
"(",
"MI",
"->",
"getOperand",
"(",
"OpNo",
")",
".",
"isReg",
"(",
")",
")",
"printMemRegReg",
"(",
"MI",
",",
"OpNo",
")",
";",
"else",
"printMemRegImm",
"(",
"MI",
",",
"OpNo",
")",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Print",
"the",
"specified",
"operand",
"of",
"MI",
",",
"an",
"INLINEASM",
"instruction",
",",
"using",
"the",
"specified",
"assembler",
"variant",
"as",
"an",
"address",
"."
] | [
"PowerPC",
"PPC",
"0"
] | PPCAsmPrinter30 | PrintAsmMemoryOperand | PowerPC | CPU | LLVM | 34,601 | 66 | 1 | [] |
[
"<s>",
"void",
"thumb1_final_prescan_insn",
"(",
"rtx_insn",
"*",
"insn",
")",
"{",
"if",
"(",
"flag_print_asm_name",
")",
"asm_fprintf",
"(",
"asm_out_file",
",",
"\"%@ 0x%04x\\n\"",
",",
"INSN_ADDRESSES",
"(",
"INSN_UID",
"(",
"insn",
")",
")",
")",
";",
"if",
"(",
"INSN_CODE",
"(",
"insn",
")",
"!=",
"CODE_FOR_cbranchsi4_insn",
")",
"{",
"enum",
"attr_conds",
"conds",
";",
"if",
"(",
"cfun",
"->",
"machine",
"->",
"thumb1_cc_insn",
")",
"{",
"if",
"(",
"modified_in_p",
"(",
"cfun",
"->",
"machine",
"->",
"thumb1_cc_op0",
",",
"insn",
")",
"||",
"modified_in_p",
"(",
"cfun",
"->",
"machine",
"->",
"thumb1_cc_op1",
",",
"insn",
")",
")",
"CC_STATUS_INIT",
";",
"}",
"conds",
"=",
"get_attr_conds",
"(",
"insn",
")",
";",
"if",
"(",
"conds",
"==",
"CONDS_SET",
")",
"{",
"rtx",
"set",
"=",
"single_set",
"(",
"insn",
")",
";",
"cfun",
"->",
"machine",
"->",
"thumb1_cc_insn",
"=",
"insn",
";",
"cfun",
"->",
"machine",
"->",
"thumb1_cc_op0",
"=",
"SET_DEST",
"(",
"set",
")",
";",
"cfun",
"->",
"machine",
"->",
"thumb1_cc_op1",
"=",
"const0_rtx",
";",
"cfun",
"->",
"machine",
"->",
"thumb1_cc_mode",
"=",
"CC_NZmode",
";",
"if",
"(",
"INSN_CODE",
"(",
"insn",
")",
"==",
"CODE_FOR_thumb1_subsi3_insn",
")",
"{",
"rtx",
"src1",
"=",
"XEXP",
"(",
"SET_SRC",
"(",
"set",
")",
",",
"1",
")",
";",
"if",
"(",
"src1",
"==",
"const0_rtx",
")",
"cfun",
"->",
"machine",
"->",
"thumb1_cc_mode",
"=",
"CCmode",
";",
"}",
"else",
"if",
"(",
"REG_P",
"(",
"SET_DEST",
"(",
"set",
")",
")",
"&&",
"REG_P",
"(",
"SET_SRC",
"(",
"set",
")",
")",
")",
"{",
"cfun",
"->",
"machine",
"->",
"thumb1_cc_op0",
"=",
"SET_SRC",
"(",
"set",
")",
";",
"}",
"}",
"else",
"if",
"(",
"conds",
"!=",
"CONDS_NOCOND",
")",
"cfun",
"->",
"machine",
"->",
"thumb1_cc_insn",
"=",
"NULL_RTX",
";",
"}",
"if",
"(",
"cfun",
"->",
"machine",
"->",
"lr_save_eliminated",
"&&",
"get_attr_far_jump",
"(",
"insn",
")",
"==",
"FAR_JUMP_YES",
")",
"internal_error",
"(",
"\"Unexpected thumb1 far jump\"",
")",
";",
"}",
"</s>"
] | [
"Scan",
"INSN",
"just",
"before",
"assembler",
"is",
"output",
"for",
"it",
".",
"For",
"Thumb-1",
",",
"we",
"track",
"the",
"status",
"of",
"the",
"condition",
"codes",
";",
"this",
"information",
"is",
"used",
"in",
"the",
"cbranchsi4_insn",
"pattern",
"."
] | [
"arm",
"\"%@ 0x%04x\\n\"",
"1",
"\"Unexpected thumb1 far jump\""
] | arm | thumb1_final_prescan_insn | arm | CPU | GCC | 34,602 | 242 | 1 | [] |
[
"<s>",
"void",
"emitBasicBlockEnd",
"(",
"const",
"MachineBasicBlock",
"&",
"MBB",
")",
"override",
"{",
"}",
"</s>"
] | [
"Targets",
"can",
"override",
"this",
"to",
"emit",
"stuff",
"at",
"the",
"end",
"of",
"a",
"basic",
"block",
"."
] | [
"SPIRV"
] | SPIRVAsmPrinter | emitBasicBlockEnd | SPIRV | Virtual ISA | LLVM | 34,603 | 11 | 1 | [] |
[
"<s>",
"bool",
"systemSupportsUnalignedAccess",
"(",
")",
"const",
"{",
"return",
"hasMips32r6",
"(",
")",
";",
"}",
"</s>"
] | [
"Does",
"the",
"system",
"support",
"unaligned",
"memory",
"access",
"."
] | [
"Mips",
"Mips"
] | MipsSubtarget (2) | systemSupportsUnalignedAccess | Mips | CPU | LLVM | 34,604 | 12 | 1 | [] |
[
"<s>",
"static",
"void",
"rs6000_density_test",
"(",
"rs6000_cost_data",
"*",
"data",
")",
"{",
"const",
"int",
"DENSITY_PCT_THRESHOLD",
"=",
"85",
";",
"const",
"int",
"DENSITY_SIZE_THRESHOLD",
"=",
"70",
";",
"const",
"int",
"DENSITY_PENALTY",
"=",
"10",
";",
"struct",
"loop",
"*",
"loop",
"=",
"data",
"->",
"loop_info",
";",
"basic_block",
"*",
"bbs",
"=",
"get_loop_body",
"(",
"loop",
")",
";",
"int",
"nbbs",
"=",
"loop",
"->",
"num_nodes",
";",
"loop_vec_info",
"loop_vinfo",
"=",
"loop_vec_info_for_loop",
"(",
"data",
"->",
"loop_info",
")",
";",
"int",
"vec_cost",
"=",
"data",
"->",
"cost",
"[",
"vect_body",
"]",
",",
"not_vec_cost",
"=",
"0",
";",
"int",
"i",
",",
"density_pct",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"nbbs",
";",
"i",
"++",
")",
"{",
"basic_block",
"bb",
"=",
"bbs",
"[",
"i",
"]",
";",
"gimple_stmt_iterator",
"gsi",
";",
"for",
"(",
"gsi",
"=",
"gsi_start_bb",
"(",
"bb",
")",
";",
"!",
"gsi_end_p",
"(",
"gsi",
")",
";",
"gsi_next",
"(",
"&",
"gsi",
")",
")",
"{",
"gimple",
"*",
"stmt",
"=",
"gsi_stmt",
"(",
"gsi",
")",
";",
"if",
"(",
"is_gimple_debug",
"(",
"stmt",
")",
")",
"continue",
";",
"stmt_vec_info",
"stmt_info",
"=",
"loop_vinfo",
"->",
"lookup_stmt",
"(",
"stmt",
")",
";",
"if",
"(",
"!",
"STMT_VINFO_RELEVANT_P",
"(",
"stmt_info",
")",
"&&",
"!",
"STMT_VINFO_IN_PATTERN_P",
"(",
"stmt_info",
")",
")",
"not_vec_cost",
"++",
";",
"}",
"}",
"free",
"(",
"bbs",
")",
";",
"density_pct",
"=",
"(",
"vec_cost",
"*",
"100",
")",
"/",
"(",
"vec_cost",
"+",
"not_vec_cost",
")",
";",
"if",
"(",
"density_pct",
">",
"DENSITY_PCT_THRESHOLD",
"&&",
"vec_cost",
"+",
"not_vec_cost",
">",
"DENSITY_SIZE_THRESHOLD",
")",
"{",
"data",
"->",
"cost",
"[",
"vect_body",
"]",
"=",
"vec_cost",
"*",
"(",
"100",
"+",
"DENSITY_PENALTY",
")",
"/",
"100",
";",
"if",
"(",
"dump_enabled_p",
"(",
")",
")",
"dump_printf_loc",
"(",
"MSG_NOTE",
",",
"vect_location",
",",
"\"density %d%%, cost %d exceeds threshold, penalizing \"",
"\"loop body cost by %d%%\"",
",",
"density_pct",
",",
"vec_cost",
"+",
"not_vec_cost",
",",
"DENSITY_PENALTY",
")",
";",
"}",
"}",
"</s>"
] | [
"Test",
"for",
"likely",
"overcommitment",
"of",
"vector",
"hardware",
"resources",
".",
"If",
"a",
"loop",
"iteration",
"is",
"relatively",
"large",
",",
"and",
"too",
"large",
"a",
"percentage",
"of",
"instructions",
"in",
"the",
"loop",
"are",
"vectorized",
",",
"the",
"cost",
"model",
"may",
"not",
"adequately",
"reflect",
"delays",
"from",
"unavailable",
"vector",
"resources",
".",
"Penalize",
"the",
"loop",
"body",
"cost",
"for",
"this",
"case",
"."
] | [
"rs6000",
"85",
"70",
"10",
"0",
"0",
"100",
"100",
"100",
"\"density %d%%, cost %d exceeds threshold, penalizing \"",
"\"loop body cost by %d%%\""
] | rs60001 | rs6000_density_test | rs6000 | CPU | GCC | 34,605 | 250 | 1 | [] |
[
"<s>",
"bool",
"isToken",
"(",
")",
"const",
"override",
"{",
"return",
"Kind",
"==",
"Token",
";",
"}",
"</s>"
] | [
"isToken",
"-",
"Is",
"this",
"a",
"token",
"operand",
"?"
] | [
"AGC"
] | AGCAsmParser | isToken | AGC | MPU | LLVM | 34,606 | 13 | 1 | [] |
[
"<s>",
"bool",
"VideocoreAsmParser",
"::",
"ParseInstruction",
"(",
"ParseInstructionInfo",
"&",
"Info",
",",
"StringRef",
"Name",
",",
"SMLoc",
"NameLoc",
",",
"SmallVectorImpl",
"<",
"MCParsedAsmOperand",
"*",
">",
"&",
"Operands",
")",
"{",
"unsigned",
"CondCode",
";",
"StringRef",
"Postfix",
";",
"StringRef",
"Mnemonic",
"=",
"splitMnemonic",
"(",
"Name",
",",
"CondCode",
",",
"Postfix",
")",
";",
"Operands",
".",
"push_back",
"(",
"VideocoreOperand",
"::",
"createToken",
"(",
"Mnemonic",
",",
"NameLoc",
")",
")",
";",
"if",
"(",
"Postfix",
"!=",
"\"\"",
")",
"{",
"Postfix",
"=",
"\".\"",
"+",
"Postfix",
".",
"str",
"(",
")",
";",
"Operands",
".",
"push_back",
"(",
"VideocoreOperand",
"::",
"createToken",
"(",
"Postfix",
",",
"NameLoc",
")",
")",
";",
"}",
"int",
"numOperands",
"=",
"0",
";",
"if",
"(",
"getLexer",
"(",
")",
".",
"isNot",
"(",
"AsmToken",
"::",
"EndOfStatement",
")",
")",
"{",
"if",
"(",
"parseOperand",
"(",
"Operands",
",",
"Mnemonic",
")",
")",
"{",
"Parser",
".",
"eatToEndOfStatement",
"(",
")",
";",
"return",
"true",
";",
"}",
"numOperands",
"++",
";",
"while",
"(",
"getLexer",
"(",
")",
".",
"is",
"(",
"AsmToken",
"::",
"Comma",
")",
")",
"{",
"Parser",
".",
"Lex",
"(",
")",
";",
"if",
"(",
"parseOperand",
"(",
"Operands",
",",
"Mnemonic",
")",
")",
"{",
"Parser",
".",
"eatToEndOfStatement",
"(",
")",
";",
"return",
"true",
";",
"}",
"numOperands",
"++",
";",
"}",
"while",
"(",
"getLexer",
"(",
")",
".",
"isNot",
"(",
"AsmToken",
"::",
"EndOfStatement",
")",
")",
"{",
"SMLoc",
"Loc",
"=",
"getLexer",
"(",
")",
".",
"getLoc",
"(",
")",
";",
"StringRef",
"Str",
"=",
"getLexer",
"(",
")",
".",
"getTok",
"(",
")",
".",
"getString",
"(",
")",
";",
"Operands",
".",
"push_back",
"(",
"VideocoreOperand",
"::",
"createToken",
"(",
"Str",
",",
"Loc",
")",
")",
";",
"Parser",
".",
"Lex",
"(",
")",
";",
"}",
"}",
"if",
"(",
"InstructionIsConditional",
"(",
"Mnemonic",
",",
"numOperands",
",",
"Operands",
")",
")",
"{",
"SMLoc",
"S",
"=",
"SMLoc",
"::",
"getFromPointer",
"(",
"NameLoc",
".",
"getPointer",
"(",
")",
"+",
"Mnemonic",
".",
"size",
"(",
")",
")",
";",
"SMLoc",
"E",
"=",
"SMLoc",
"::",
"getFromPointer",
"(",
"NameLoc",
".",
"getPointer",
"(",
")",
"+",
"Name",
".",
"size",
"(",
")",
")",
";",
"Operands",
".",
"insert",
"(",
"Operands",
".",
"begin",
"(",
")",
"+",
"1",
",",
"VideocoreOperand",
"::",
"createCondCode",
"(",
"CondCode",
",",
"S",
",",
"E",
")",
")",
";",
"}",
"else",
"if",
"(",
"CondCode",
"!=",
"VCCC",
"::",
"AL",
")",
"{",
"SMLoc",
"Loc",
"=",
"SMLoc",
"::",
"getFromPointer",
"(",
"NameLoc",
".",
"getPointer",
"(",
")",
"+",
"Mnemonic",
".",
"size",
"(",
")",
")",
";",
"Error",
"(",
"Loc",
",",
"\"Unexpected Condition Code\"",
")",
";",
"return",
"true",
";",
"}",
"Parser",
".",
"Lex",
"(",
")",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"ParseInstruction",
"-",
"Parse",
"one",
"assembly",
"instruction",
"."
] | [
"Videocore",
"Videocore",
"Videocore",
"\"\"",
"\".\"",
"Videocore",
"0",
"Videocore",
"1",
"Videocore",
"VCCC::AL",
"\"Unexpected Condition Code\""
] | VideocoreAsmParser | ParseInstruction | Videocore | DSP | LLVM | 34,607 | 364 | 1 | [] |
[
"<s>",
"explicit",
"value",
"(",
"Value",
"*",
"Val",
",",
"const",
"value_var",
"&",
"v",
")",
"{",
"*",
"static_cast",
"<",
"value_var",
"*",
">",
"(",
"this",
")",
"=",
"v",
";",
"llvmVal",
"=",
"Val",
";",
"}",
"</s>"
] | [
"The",
"root",
"value",
"we",
"are",
"switching",
"on",
"."
] | [
"TVM"
] | TVMReFunc | value | TVM | Virtual ISA | LLVM | 34,608 | 30 | 1 | [] |
[
"<s>",
"static",
"X86Operand",
"*",
"CreateMem",
"(",
"unsigned",
"SegReg",
",",
"const",
"MCExpr",
"*",
"Disp",
",",
"unsigned",
"BaseReg",
",",
"unsigned",
"IndexReg",
",",
"unsigned",
"Scale",
",",
"SMLoc",
"StartLoc",
",",
"SMLoc",
"EndLoc",
",",
"unsigned",
"Size",
"=",
"0",
")",
"{",
"assert",
"(",
"(",
"SegReg",
"||",
"BaseReg",
"||",
"IndexReg",
")",
"&&",
"\"Invalid memory operand!\"",
")",
";",
"assert",
"(",
"(",
"(",
"Scale",
"==",
"1",
"||",
"Scale",
"==",
"2",
"||",
"Scale",
"==",
"4",
"||",
"Scale",
"==",
"8",
")",
")",
"&&",
"\"Invalid scale!\"",
")",
";",
"X86Operand",
"*",
"Res",
"=",
"new",
"X86Operand",
"(",
"Memory",
",",
"StartLoc",
",",
"EndLoc",
")",
";",
"Res",
"->",
"Mem",
".",
"SegReg",
"=",
"SegReg",
";",
"Res",
"->",
"Mem",
".",
"Disp",
"=",
"Disp",
";",
"Res",
"->",
"Mem",
".",
"BaseReg",
"=",
"BaseReg",
";",
"Res",
"->",
"Mem",
".",
"IndexReg",
"=",
"IndexReg",
";",
"Res",
"->",
"Mem",
".",
"Scale",
"=",
"Scale",
";",
"Res",
"->",
"Mem",
".",
"Size",
"=",
"Size",
";",
"return",
"Res",
";",
"}",
"</s>"
] | [
"Create",
"a",
"generalized",
"memory",
"operand",
"."
] | [
"X86",
"X86",
"0",
"\"Invalid memory operand!\"",
"1",
"2",
"4",
"8",
"\"Invalid scale!\"",
"X86",
"X86"
] | X86AsmParser124 | CreateMem | X86 | CPU | LLVM | 34,609 | 138 | 1 | [] |
[
"<s>",
"void",
"print",
"(",
")",
"{",
"if",
"(",
"numSymbols",
"==",
"0",
")",
"{",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"<",
"size",
";",
"i",
"++",
")",
"{",
"if",
"(",
"i",
")",
"O",
"<<",
"\", \"",
";",
"O",
"<<",
"(",
"unsigned",
"int",
")",
"buffer",
"[",
"i",
"]",
";",
"}",
"}",
"else",
"{",
"unsigned",
"int",
"pos",
"=",
"0",
";",
"unsigned",
"int",
"nSym",
"=",
"0",
";",
"unsigned",
"int",
"nextSymbolPos",
"=",
"symbolPosInBuffer",
"[",
"nSym",
"]",
";",
"unsigned",
"int",
"nBytes",
"=",
"4",
";",
"if",
"(",
"AP",
".",
"nvptxSubtarget",
".",
"is64Bit",
"(",
")",
")",
"nBytes",
"=",
"8",
";",
"for",
"(",
"pos",
"=",
"0",
";",
"pos",
"<",
"size",
";",
"pos",
"+=",
"nBytes",
")",
"{",
"if",
"(",
"pos",
")",
"O",
"<<",
"\", \"",
";",
"if",
"(",
"pos",
"==",
"nextSymbolPos",
")",
"{",
"Value",
"*",
"v",
"=",
"Symbols",
"[",
"nSym",
"]",
";",
"if",
"(",
"GlobalValue",
"*",
"GVar",
"=",
"dyn_cast",
"<",
"GlobalValue",
">",
"(",
"v",
")",
")",
"{",
"MCSymbol",
"*",
"Name",
"=",
"AP",
".",
"Mang",
"->",
"getSymbol",
"(",
"GVar",
")",
";",
"O",
"<<",
"*",
"Name",
";",
"}",
"else",
"if",
"(",
"ConstantExpr",
"*",
"Cexpr",
"=",
"dyn_cast",
"<",
"ConstantExpr",
">",
"(",
"v",
")",
")",
"{",
"O",
"<<",
"*",
"nvptx",
"::",
"LowerConstant",
"(",
"Cexpr",
",",
"AP",
")",
";",
"}",
"else",
"llvm_unreachable",
"(",
"\"symbol type unknown\"",
")",
";",
"nSym",
"++",
";",
"if",
"(",
"nSym",
">=",
"numSymbols",
")",
"nextSymbolPos",
"=",
"size",
"+",
"1",
";",
"else",
"nextSymbolPos",
"=",
"symbolPosInBuffer",
"[",
"nSym",
"]",
";",
"}",
"else",
"if",
"(",
"nBytes",
"==",
"4",
")",
"O",
"<<",
"*",
"(",
"unsigned",
"int",
"*",
")",
"(",
"buffer",
"+",
"pos",
")",
";",
"else",
"O",
"<<",
"*",
"(",
"unsigned",
"long",
"long",
"*",
")",
"(",
"buffer",
"+",
"pos",
")",
";",
"}",
"}",
"}",
"</s>"
] | [
"print",
"-",
"Print",
"a",
"debug",
"representation",
"of",
"the",
"operand",
"to",
"the",
"given",
"stream",
"."
] | [
"NVPTX",
"0",
"0",
"\", \"",
"0",
"0",
"4",
"8",
"0",
"\", \"",
"nvptx::LowerConstant",
"\"symbol type unknown\"",
"1",
"4"
] | NVPTXAsmPrinter17 | print | NVPTX | GPU | LLVM | 34,610 | 263 | 1 | [] |
[
"<s>",
"static",
"tree",
"ix86_get_builtin_type",
"(",
"enum",
"ix86_builtin_type",
"tcode",
")",
"{",
"unsigned",
"int",
"index",
";",
"tree",
"type",
",",
"itype",
";",
"gcc_assert",
"(",
"(",
"unsigned",
")",
"tcode",
"<",
"ARRAY_SIZE",
"(",
"ix86_builtin_type_tab",
")",
")",
";",
"type",
"=",
"ix86_builtin_type_tab",
"[",
"(",
"int",
")",
"tcode",
"]",
";",
"if",
"(",
"type",
"!=",
"NULL",
")",
"return",
"type",
";",
"gcc_assert",
"(",
"tcode",
">",
"IX86_BT_LAST_PRIM",
")",
";",
"if",
"(",
"tcode",
"<=",
"IX86_BT_LAST_VECT",
")",
"{",
"machine_mode",
"mode",
";",
"index",
"=",
"tcode",
"-",
"IX86_BT_LAST_PRIM",
"-",
"1",
";",
"itype",
"=",
"ix86_get_builtin_type",
"(",
"ix86_builtin_type_vect_base",
"[",
"index",
"]",
")",
";",
"mode",
"=",
"ix86_builtin_type_vect_mode",
"[",
"index",
"]",
";",
"type",
"=",
"build_vector_type_for_mode",
"(",
"itype",
",",
"mode",
")",
";",
"}",
"else",
"{",
"int",
"quals",
";",
"index",
"=",
"tcode",
"-",
"IX86_BT_LAST_VECT",
"-",
"1",
";",
"if",
"(",
"tcode",
"<=",
"IX86_BT_LAST_PTR",
")",
"quals",
"=",
"TYPE_UNQUALIFIED",
";",
"else",
"quals",
"=",
"TYPE_QUAL_CONST",
";",
"itype",
"=",
"ix86_get_builtin_type",
"(",
"ix86_builtin_type_ptr_base",
"[",
"index",
"]",
")",
";",
"if",
"(",
"quals",
"!=",
"TYPE_UNQUALIFIED",
")",
"itype",
"=",
"build_qualified_type",
"(",
"itype",
",",
"quals",
")",
";",
"type",
"=",
"build_pointer_type",
"(",
"itype",
")",
";",
"}",
"ix86_builtin_type_tab",
"[",
"(",
"int",
")",
"tcode",
"]",
"=",
"type",
";",
"return",
"type",
";",
"}",
"</s>"
] | [
"Retrieve",
"an",
"element",
"from",
"the",
"above",
"table",
",",
"building",
"some",
"of",
"the",
"types",
"lazily",
"."
] | [
"i386",
"1",
"1"
] | i386-builtins | ix86_get_builtin_type | i386 | CPU | GCC | 34,611 | 177 | 1 | [] |
[
"<s>",
"static",
"void",
"report_missing_extension",
"(",
"location_t",
"location",
",",
"tree",
"fndecl",
",",
"const",
"char",
"*",
"extension",
")",
"{",
"if",
"(",
"reported_missing_extension_p",
")",
"return",
";",
"error_at",
"(",
"location",
",",
"\"ACLE function %qD requires ISA extension %qs\"",
",",
"fndecl",
",",
"extension",
")",
";",
"inform",
"(",
"location",
",",
"\"you can enable %qs using the command-line\"",
"\" option %<-march%>, or by using the %<target%>\"",
"\" attribute or pragma\"",
",",
"extension",
")",
";",
"reported_missing_extension_p",
"=",
"true",
";",
"}",
"</s>"
] | [
"Report",
"an",
"error",
"against",
"LOCATION",
"that",
"the",
"user",
"has",
"tried",
"to",
"use",
"function",
"FNDECL",
"when",
"extension",
"EXTENSION",
"is",
"disabled",
"."
] | [
"aarch64",
"\"ACLE function %qD requires ISA extension %qs\"",
"\"you can enable %qs using the command-line\"",
"\" option %<-march%>, or by using the %<target%>\"",
"\" attribute or pragma\""
] | aarch64-sve-builtins | report_missing_extension | aarch64 | CPU | GCC | 34,612 | 49 | 1 | [] |
[
"<s>",
"static",
"void",
"tilepro_function_arg_advance",
"(",
"cumulative_args_t",
"cum_v",
",",
"const",
"function_arg_info",
"&",
"arg",
")",
"{",
"CUMULATIVE_ARGS",
"*",
"cum",
"=",
"get_cumulative_args",
"(",
"cum_v",
")",
";",
"int",
"byte_size",
"=",
"arg",
".",
"promoted_size_in_bytes",
"(",
")",
";",
"int",
"word_size",
"=",
"(",
"byte_size",
"+",
"UNITS_PER_WORD",
"-",
"1",
")",
"/",
"UNITS_PER_WORD",
";",
"bool",
"doubleword_aligned_p",
";",
"doubleword_aligned_p",
"=",
"tilepro_function_arg_boundary",
"(",
"arg",
".",
"mode",
",",
"arg",
".",
"type",
")",
">",
"BITS_PER_WORD",
";",
"if",
"(",
"doubleword_aligned_p",
")",
"*",
"cum",
"+=",
"*",
"cum",
"&",
"1",
";",
"if",
"(",
"*",
"cum",
"<",
"TILEPRO_NUM_ARG_REGS",
"&&",
"*",
"cum",
"+",
"word_size",
">",
"TILEPRO_NUM_ARG_REGS",
")",
"*",
"cum",
"=",
"TILEPRO_NUM_ARG_REGS",
";",
"*",
"cum",
"+=",
"word_size",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_FUNCTION_ARG_ADVANCE",
"."
] | [
"tilepro",
"1",
"1"
] | tilepro | tilepro_function_arg_advance | tilepro | VLIW | GCC | 34,613 | 99 | 1 | [] |
[
"<s>",
"bool",
"ARMAsmBackend",
"::",
"writeNopData",
"(",
"uint64_t",
"Count",
",",
"MCObjectWriter",
"*",
"OW",
")",
"const",
"{",
"const",
"uint16_t",
"Thumb1_16bitNopEncoding",
"=",
"0x46c0",
";",
"const",
"uint16_t",
"Thumb2_16bitNopEncoding",
"=",
"0xbf00",
";",
"const",
"uint32_t",
"ARMv4_NopEncoding",
"=",
"0xe1a0000",
";",
"const",
"uint32_t",
"ARMv6T2_NopEncoding",
"=",
"0xe320f000",
";",
"if",
"(",
"isThumb",
"(",
")",
")",
"{",
"const",
"uint16_t",
"nopEncoding",
"=",
"hasNOP",
"(",
")",
"?",
"Thumb2_16bitNopEncoding",
":",
"Thumb1_16bitNopEncoding",
";",
"uint64_t",
"NumNops",
"=",
"Count",
"/",
"2",
";",
"for",
"(",
"uint64_t",
"i",
"=",
"0",
";",
"i",
"!=",
"NumNops",
";",
"++",
"i",
")",
"OW",
"->",
"Write16",
"(",
"nopEncoding",
")",
";",
"if",
"(",
"Count",
"&",
"1",
")",
"OW",
"->",
"Write8",
"(",
"0",
")",
";",
"return",
"true",
";",
"}",
"const",
"uint32_t",
"nopEncoding",
"=",
"hasNOP",
"(",
")",
"?",
"ARMv6T2_NopEncoding",
":",
"ARMv4_NopEncoding",
";",
"uint64_t",
"NumNops",
"=",
"Count",
"/",
"4",
";",
"for",
"(",
"uint64_t",
"i",
"=",
"0",
";",
"i",
"!=",
"NumNops",
";",
"++",
"i",
")",
"OW",
"->",
"Write32",
"(",
"nopEncoding",
")",
";",
"switch",
"(",
"Count",
"%",
"4",
")",
"{",
"default",
":",
"break",
";",
"case",
"1",
":",
"OW",
"->",
"Write8",
"(",
"0",
")",
";",
"break",
";",
"case",
"2",
":",
"OW",
"->",
"Write16",
"(",
"0",
")",
";",
"break",
";",
"case",
"3",
":",
"OW",
"->",
"Write16",
"(",
"0",
")",
";",
"OW",
"->",
"Write8",
"(",
"0xa0",
")",
";",
"break",
";",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"Write",
"an",
"(",
"optimal",
")",
"nop",
"sequence",
"of",
"Count",
"bytes",
"to",
"the",
"given",
"output",
"."
] | [
"ARM",
"ARM",
"0x46c0",
"0xbf00",
"ARM",
"0xe1a0000",
"ARM",
"0xe320f000",
"2",
"0",
"1",
"0",
"ARM",
"ARM",
"4",
"0",
"4",
"1",
"0",
"2",
"0",
"3",
"0",
"0xa0"
] | ARMAsmBackend13 | writeNopData | ARM | CPU | LLVM | 34,614 | 201 | 1 | [] |
[
"<s>",
"unsigned",
"X86InstrInfo",
"::",
"removeBranch",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"int",
"*",
"BytesRemoved",
")",
"const",
"{",
"assert",
"(",
"!",
"BytesRemoved",
"&&",
"\"code size not handled\"",
")",
";",
"MachineBasicBlock",
"::",
"iterator",
"I",
"=",
"MBB",
".",
"end",
"(",
")",
";",
"unsigned",
"Count",
"=",
"0",
";",
"while",
"(",
"I",
"!=",
"MBB",
".",
"begin",
"(",
")",
")",
"{",
"--",
"I",
";",
"if",
"(",
"I",
"->",
"isDebugValue",
"(",
")",
")",
"continue",
";",
"if",
"(",
"I",
"->",
"getOpcode",
"(",
")",
"!=",
"X86",
"::",
"JMP_1",
"&&",
"getCondFromBranchOpc",
"(",
"I",
"->",
"getOpcode",
"(",
")",
")",
"==",
"X86",
"::",
"COND_INVALID",
")",
"break",
";",
"I",
"->",
"eraseFromParent",
"(",
")",
";",
"I",
"=",
"MBB",
".",
"end",
"(",
")",
";",
"++",
"Count",
";",
"}",
"return",
"Count",
";",
"}",
"</s>"
] | [
"Remove",
"the",
"branching",
"code",
"at",
"the",
"end",
"of",
"the",
"specific",
"MBB",
"."
] | [
"X86",
"X86",
"\"code size not handled\"",
"0",
"X86::JMP_1",
"X86::COND_INVALID"
] | X86InstrInfo112 | removeBranch | X86 | CPU | LLVM | 34,615 | 112 | 1 | [] |
[
"<s>",
"void",
"LanaiInstrInfo",
"::",
"loadRegFromStackSlot",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"Position",
",",
"unsigned",
"DestinationRegister",
",",
"int",
"FrameIndex",
",",
"const",
"TargetRegisterClass",
"*",
"RegisterClass",
",",
"const",
"TargetRegisterInfo",
"*",
"RegisterInfo",
")",
"const",
"{",
"DebugLoc",
"DL",
";",
"if",
"(",
"Position",
"!=",
"MBB",
".",
"end",
"(",
")",
")",
"{",
"DL",
"=",
"Position",
"->",
"getDebugLoc",
"(",
")",
";",
"}",
"if",
"(",
"!",
"Lanai",
"::",
"GPRRegClass",
".",
"hasSubClassEq",
"(",
"RegisterClass",
")",
")",
"{",
"llvm_unreachable",
"(",
"\"Can't load this register from stack slot\"",
")",
";",
"}",
"BuildMI",
"(",
"MBB",
",",
"Position",
",",
"DL",
",",
"get",
"(",
"Lanai",
"::",
"LDW_RI",
")",
",",
"DestinationRegister",
")",
".",
"addFrameIndex",
"(",
"FrameIndex",
")",
".",
"addImm",
"(",
"0",
")",
".",
"addImm",
"(",
"LPAC",
"::",
"ADD",
")",
";",
"}",
"</s>"
] | [
"Load",
"the",
"specified",
"register",
"of",
"the",
"given",
"register",
"class",
"from",
"the",
"specified",
"stack",
"frame",
"index",
"."
] | [
"Lanai",
"Lanai",
"Lanai::GPRRegClass",
"\"Can't load this register from stack slot\"",
"Lanai::LDW_RI",
"0"
] | LanaiInstrInfo | loadRegFromStackSlot | Lanai | CPU | LLVM | 34,616 | 110 | 1 | [] |
[
"<s>",
"static",
"int",
"rs6000_tls_symbol_ref_1",
"(",
"rtx",
"*",
"x",
",",
"void",
"*",
"data",
"ATTRIBUTE_UNUSED",
")",
"{",
"return",
"RS6000_SYMBOL_REF_TLS_P",
"(",
"*",
"x",
")",
";",
"}",
"</s>"
] | [
"Return",
"1",
"if",
"*",
"X",
"is",
"a",
"thread-local",
"symbol",
".",
"This",
"is",
"the",
"same",
"as",
"rs6000_tls_symbol_ref",
"except",
"for",
"the",
"type",
"of",
"the",
"unused",
"argument",
"."
] | [
"rs6000"
] | rs60003 | rs6000_tls_symbol_ref_1 | rs6000 | CPU | GCC | 34,617 | 22 | 1 | [] |
[
"<s>",
"const",
"MCExpr",
"*",
"getSubExpr",
"(",
")",
"const",
"{",
"return",
"Expr",
";",
"}",
"</s>"
] | [
"getSubExpr",
"-",
"Get",
"the",
"child",
"of",
"this",
"expression",
"."
] | [
"M88k"
] | M88kMCExpr | getSubExpr | M88k | MPU | LLVM | 34,618 | 12 | 1 | [] |
[
"<s>",
"bool",
"X86CallLowering",
"::",
"lowerFormalArguments",
"(",
"MachineIRBuilder",
"&",
"MIRBuilder",
",",
"const",
"Function",
"&",
"F",
",",
"ArrayRef",
"<",
"unsigned",
">",
"VRegs",
")",
"const",
"{",
"if",
"(",
"F",
".",
"arg_empty",
"(",
")",
")",
"return",
"true",
";",
"if",
"(",
"F",
".",
"isVarArg",
"(",
")",
")",
"return",
"false",
";",
"MachineFunction",
"&",
"MF",
"=",
"MIRBuilder",
".",
"getMF",
"(",
")",
";",
"MachineRegisterInfo",
"&",
"MRI",
"=",
"MF",
".",
"getRegInfo",
"(",
")",
";",
"auto",
"DL",
"=",
"MF",
".",
"getDataLayout",
"(",
")",
";",
"SmallVector",
"<",
"ArgInfo",
",",
"8",
">",
"SplitArgs",
";",
"unsigned",
"Idx",
"=",
"0",
";",
"for",
"(",
"auto",
"&",
"Arg",
":",
"F",
".",
"args",
"(",
")",
")",
"{",
"ArgInfo",
"OrigArg",
"(",
"VRegs",
"[",
"Idx",
"]",
",",
"Arg",
".",
"getType",
"(",
")",
")",
";",
"setArgFlags",
"(",
"OrigArg",
",",
"Idx",
"+",
"1",
",",
"DL",
",",
"F",
")",
";",
"splitToValueTypes",
"(",
"OrigArg",
",",
"SplitArgs",
",",
"DL",
",",
"MRI",
",",
"[",
"&",
"]",
"(",
"ArrayRef",
"<",
"unsigned",
">",
"Regs",
")",
"{",
"MIRBuilder",
".",
"buildMerge",
"(",
"VRegs",
"[",
"Idx",
"]",
",",
"Regs",
")",
";",
"}",
")",
";",
"Idx",
"++",
";",
"}",
"MachineBasicBlock",
"&",
"MBB",
"=",
"MIRBuilder",
".",
"getMBB",
"(",
")",
";",
"if",
"(",
"!",
"MBB",
".",
"empty",
"(",
")",
")",
"MIRBuilder",
".",
"setInstr",
"(",
"*",
"MBB",
".",
"begin",
"(",
")",
")",
";",
"FormalArgHandler",
"Handler",
"(",
"MIRBuilder",
",",
"MRI",
",",
"CC_X86",
",",
"DL",
")",
";",
"if",
"(",
"!",
"handleAssignments",
"(",
"MIRBuilder",
",",
"SplitArgs",
",",
"Handler",
")",
")",
"return",
"false",
";",
"MIRBuilder",
".",
"setMBB",
"(",
"MBB",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"This",
"hook",
"must",
"be",
"implemented",
"to",
"lower",
"the",
"incoming",
"(",
"formal",
")",
"arguments",
",",
"described",
"by",
"VRegs",
",",
"for",
"GlobalISel",
"."
] | [
"X86",
"X86",
"8",
"0",
"1",
"X86"
] | X86CallLowering6 | lowerFormalArguments | X86 | CPU | LLVM | 34,619 | 236 | 1 | [] |
[
"<s>",
"static",
"void",
"cr16_create_dwarf_for_multi_push",
"(",
"rtx",
"insn",
")",
"{",
"rtx",
"dwarf",
",",
"reg",
",",
"tmp",
";",
"int",
"i",
",",
"j",
",",
"from",
",",
"to",
",",
"word_cnt",
",",
"dwarf_par_index",
",",
"inc",
";",
"machine_mode",
"mode",
";",
"int",
"num_regs",
"=",
"0",
",",
"offset",
"=",
"0",
",",
"split_here",
"=",
"0",
",",
"total_push_bytes",
"=",
"0",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<=",
"current_frame_info",
".",
"last_reg_to_save",
";",
"++",
"i",
")",
"{",
"if",
"(",
"current_frame_info",
".",
"save_regs",
"[",
"i",
"]",
")",
"{",
"++",
"num_regs",
";",
"if",
"(",
"i",
"<",
"CR16_FIRST_DWORD_REGISTER",
")",
"total_push_bytes",
"+=",
"2",
";",
"else",
"total_push_bytes",
"+=",
"4",
";",
"}",
"}",
"if",
"(",
"!",
"num_regs",
")",
"return",
";",
"dwarf",
"=",
"gen_rtx_SEQUENCE",
"(",
"VOIDmode",
",",
"rtvec_alloc",
"(",
"num_regs",
"+",
"1",
")",
")",
";",
"dwarf_par_index",
"=",
"num_regs",
";",
"from",
"=",
"current_frame_info",
".",
"last_reg_to_save",
"+",
"1",
";",
"to",
"=",
"current_frame_info",
".",
"last_reg_to_save",
";",
"word_cnt",
"=",
"0",
";",
"for",
"(",
"i",
"=",
"current_frame_info",
".",
"last_reg_to_save",
";",
"i",
">=",
"0",
";",
")",
"{",
"if",
"(",
"!",
"current_frame_info",
".",
"save_regs",
"[",
"i",
"]",
"||",
"i",
"==",
"0",
"||",
"split_here",
")",
"{",
"if",
"(",
"i",
"==",
"0",
"&&",
"current_frame_info",
".",
"save_regs",
"[",
"i",
"]",
")",
"from",
"=",
"0",
";",
"for",
"(",
"j",
"=",
"to",
";",
"j",
">=",
"from",
";",
"--",
"j",
")",
"{",
"if",
"(",
"j",
"<",
"CR16_FIRST_DWORD_REGISTER",
")",
"{",
"mode",
"=",
"HImode",
";",
"inc",
"=",
"1",
";",
"}",
"else",
"{",
"mode",
"=",
"SImode",
";",
"inc",
"=",
"2",
";",
"}",
"reg",
"=",
"gen_rtx_REG",
"(",
"mode",
",",
"j",
")",
";",
"offset",
"+=",
"2",
"*",
"inc",
";",
"tmp",
"=",
"gen_rtx_SET",
"(",
"gen_frame_mem",
"(",
"mode",
",",
"plus_constant",
"(",
"Pmode",
",",
"stack_pointer_rtx",
",",
"total_push_bytes",
"-",
"offset",
")",
")",
",",
"reg",
")",
";",
"RTX_FRAME_RELATED_P",
"(",
"tmp",
")",
"=",
"1",
";",
"XVECEXP",
"(",
"dwarf",
",",
"0",
",",
"dwarf_par_index",
"--",
")",
"=",
"tmp",
";",
"}",
"from",
"=",
"i",
";",
"to",
"=",
"--",
"i",
";",
"split_here",
"=",
"0",
";",
"word_cnt",
"=",
"0",
";",
"continue",
";",
"}",
"if",
"(",
"i",
"!=",
"RETURN_ADDRESS_REGNUM",
")",
"{",
"inc",
"=",
"(",
"i",
"<",
"CR16_FIRST_DWORD_REGISTER",
")",
"?",
"1",
":",
"2",
";",
"if",
"(",
"word_cnt",
"+",
"inc",
">=",
"MAX_COUNT",
"||",
"FRAME_POINTER_REGNUM",
"==",
"i",
")",
"{",
"split_here",
"=",
"1",
";",
"from",
"=",
"i",
";",
"continue",
";",
"}",
"word_cnt",
"+=",
"inc",
";",
"}",
"from",
"=",
"i",
"--",
";",
"}",
"tmp",
"=",
"gen_rtx_SET",
"(",
"stack_pointer_rtx",
",",
"gen_rtx_PLUS",
"(",
"SImode",
",",
"stack_pointer_rtx",
",",
"GEN_INT",
"(",
"-",
"offset",
")",
")",
")",
";",
"RTX_FRAME_RELATED_P",
"(",
"tmp",
")",
"=",
"1",
";",
"XVECEXP",
"(",
"dwarf",
",",
"0",
",",
"0",
")",
"=",
"tmp",
";",
"add_reg_note",
"(",
"insn",
",",
"REG_FRAME_RELATED_EXPR",
",",
"dwarf",
")",
";",
"}",
"</s>"
] | [
"Generate",
"DWARF2",
"annotation",
"for",
"multi-push",
"instruction",
"."
] | [
"cr16",
"0",
"0",
"0",
"0",
"0",
"2",
"4",
"1",
"1",
"0",
"0",
"0",
"0",
"0",
"1",
"2",
"2",
"1",
"0",
"0",
"0",
"1",
"2",
"1",
"1",
"0",
"0"
] | cr16 | cr16_create_dwarf_for_multi_push | cr16 | MPU | GCC | 34,620 | 408 | 1 | [] |
[
"<s>",
"static",
"void",
"do_unlink",
"(",
"rtx",
"spreg",
",",
"HOST_WIDE_INT",
"frame_size",
",",
"bool",
"all",
",",
"int",
"epilogue_p",
")",
"{",
"frame_size",
"+=",
"arg_area_size",
"(",
")",
";",
"if",
"(",
"stack_frame_needed_p",
"(",
")",
")",
"emit_insn",
"(",
"gen_unlink",
"(",
")",
")",
";",
"else",
"{",
"rtx",
"postinc",
"=",
"gen_rtx_MEM",
"(",
"Pmode",
",",
"gen_rtx_POST_INC",
"(",
"Pmode",
",",
"spreg",
")",
")",
";",
"add_to_reg",
"(",
"spreg",
",",
"frame_size",
",",
"0",
",",
"epilogue_p",
")",
";",
"if",
"(",
"all",
"||",
"must_save_fp_p",
"(",
")",
")",
"{",
"rtx",
"fpreg",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"REG_FP",
")",
";",
"emit_move_insn",
"(",
"fpreg",
",",
"postinc",
")",
";",
"emit_use",
"(",
"fpreg",
")",
";",
"}",
"if",
"(",
"all",
"||",
"must_save_rets_p",
"(",
")",
")",
"{",
"emit_move_insn",
"(",
"bfin_rets_rtx",
",",
"postinc",
")",
";",
"emit_use",
"(",
"bfin_rets_rtx",
")",
";",
"}",
"}",
"}",
"</s>"
] | [
"Like",
"do_link",
",",
"but",
"used",
"for",
"epilogues",
"to",
"deallocate",
"the",
"stack",
"frame",
"."
] | [
"bfin",
"0"
] | bfin | do_unlink | bfin | DSP | GCC | 34,621 | 120 | 1 | [] |
[
"<s>",
"static",
"bool",
"needs_neutering_p",
"(",
"rtx_insn",
"*",
"insn",
")",
"{",
"if",
"(",
"!",
"INSN_P",
"(",
"insn",
")",
")",
"return",
"false",
";",
"switch",
"(",
"recog_memoized",
"(",
"insn",
")",
")",
"{",
"case",
"CODE_FOR_nvptx_fork",
":",
"case",
"CODE_FOR_nvptx_forked",
":",
"case",
"CODE_FOR_nvptx_joining",
":",
"case",
"CODE_FOR_nvptx_join",
":",
"case",
"CODE_FOR_nvptx_barsync",
":",
"return",
"false",
";",
"default",
":",
"return",
"true",
";",
"}",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"INSN",
"needs",
"neutering",
"."
] | [
"nvptx"
] | nvptx | needs_neutering_p | nvptx | GPU | GCC | 34,622 | 53 | 1 | [] |
[
"<s>",
"static",
"void",
"nios2_asm_function_prologue",
"(",
"FILE",
"*",
"file",
")",
"{",
"if",
"(",
"flag_verbose_asm",
"||",
"flag_debug_asm",
")",
"{",
"nios2_compute_frame_layout",
"(",
")",
";",
"nios2_dump_frame_layout",
"(",
"file",
")",
";",
"}",
"}",
"</s>"
] | [
"Implement",
"TARGET_ASM_FUNCTION_PROLOGUE",
"."
] | [
"nios2"
] | nios2 | nios2_asm_function_prologue | nios2 | MPU | GCC | 34,623 | 27 | 1 | [] |
[
"<s>",
"bool",
"M68kRegisterInfo",
"::",
"requiresRegisterScavenging",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"return",
"true",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"the",
"target",
"requires",
"(",
"and",
"can",
"make",
"use",
"of",
")",
"the",
"register",
"scavenger",
"."
] | [
"M68k",
"M68k"
] | M68kRegisterInfo | requiresRegisterScavenging | M68k | MPU | LLVM | 34,624 | 16 | 1 | [] |
[
"<s>",
"bool",
"ARMCodeGenPrepare",
"::",
"runOnFunction",
"(",
"Function",
"&",
"F",
")",
"{",
"if",
"(",
"skipFunction",
"(",
"F",
")",
"||",
"DisableCGP",
")",
"return",
"false",
";",
"auto",
"*",
"TPC",
"=",
"&",
"getAnalysis",
"<",
"TargetPassConfig",
">",
"(",
")",
";",
"if",
"(",
"!",
"TPC",
")",
"return",
"false",
";",
"const",
"TargetMachine",
"&",
"TM",
"=",
"TPC",
"->",
"getTM",
"<",
"TargetMachine",
">",
"(",
")",
";",
"ST",
"=",
"&",
"TM",
".",
"getSubtarget",
"<",
"ARMSubtarget",
">",
"(",
"F",
")",
";",
"bool",
"MadeChange",
"=",
"false",
";",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"ARM CGP: Running on \"",
"<<",
"F",
".",
"getName",
"(",
")",
"<<",
"\"\\n\"",
")",
";",
"for",
"(",
"BasicBlock",
"&",
"BB",
":",
"F",
")",
"{",
"auto",
"&",
"Insts",
"=",
"BB",
".",
"getInstList",
"(",
")",
";",
"for",
"(",
"auto",
"&",
"I",
":",
"Insts",
")",
"{",
"if",
"(",
"AllVisited",
".",
"count",
"(",
"&",
"I",
")",
")",
"continue",
";",
"if",
"(",
"isa",
"<",
"ICmpInst",
">",
"(",
"I",
")",
")",
"{",
"auto",
"&",
"CI",
"=",
"cast",
"<",
"ICmpInst",
">",
"(",
"I",
")",
";",
"if",
"(",
"CI",
".",
"isSigned",
"(",
")",
"||",
"!",
"isa",
"<",
"IntegerType",
">",
"(",
"CI",
".",
"getOperand",
"(",
"0",
")",
"->",
"getType",
"(",
")",
")",
")",
"continue",
";",
"for",
"(",
"auto",
"&",
"Op",
":",
"CI",
".",
"operands",
"(",
")",
")",
"{",
"if",
"(",
"auto",
"*",
"I",
"=",
"dyn_cast",
"<",
"Instruction",
">",
"(",
"Op",
")",
")",
"MadeChange",
"|=",
"TryToPromote",
"(",
"I",
")",
";",
"}",
"}",
"}",
"Promoter",
"->",
"Cleanup",
"(",
")",
";",
"LLVM_DEBUG",
"(",
"if",
"(",
"verifyFunction",
"(",
"F",
",",
"&",
"dbgs",
"(",
")",
")",
")",
"{",
"dbgs",
"(",
")",
";",
"report_fatal_error",
"(",
"\"Broken function after type promotion\"",
")",
";",
"}",
")",
";",
"}",
"if",
"(",
"MadeChange",
")",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"After ARMCodeGenPrepare: \"",
"<<",
"F",
"<<",
"\"\\n\"",
")",
";",
"return",
"MadeChange",
";",
"}",
"</s>"
] | [
"runOnFunction",
"-",
"Virtual",
"method",
"overriden",
"by",
"subclasses",
"to",
"do",
"the",
"per-function",
"processing",
"of",
"the",
"pass",
"."
] | [
"ARM",
"ARM",
"ARM",
"\"ARM CGP: Running on \"",
"\"\\n\"",
"0",
"\"Broken function after type promotion\"",
"\"After ARMCodeGenPrepare: \"",
"\"\\n\""
] | ARMCodeGenPrepare11 | runOnFunction | ARM | CPU | LLVM | 34,625 | 274 | 1 | [] |
[
"<s>",
"void",
"ARMBaseRegisterInfo",
"::",
"updateRegAllocHint",
"(",
"unsigned",
"Reg",
",",
"unsigned",
"NewReg",
",",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"MachineRegisterInfo",
"*",
"MRI",
"=",
"&",
"MF",
".",
"getRegInfo",
"(",
")",
";",
"std",
"::",
"pair",
"<",
"unsigned",
",",
"unsigned",
">",
"Hint",
"=",
"MRI",
"->",
"getRegAllocationHint",
"(",
"Reg",
")",
";",
"if",
"(",
"(",
"Hint",
".",
"first",
"==",
"(",
"unsigned",
")",
"ARMRI",
"::",
"RegPairOdd",
"||",
"Hint",
".",
"first",
"==",
"(",
"unsigned",
")",
"ARMRI",
"::",
"RegPairEven",
")",
"&&",
"Register",
"::",
"isVirtualRegister",
"(",
"Hint",
".",
"second",
")",
")",
"{",
"unsigned",
"OtherReg",
"=",
"Hint",
".",
"second",
";",
"Hint",
"=",
"MRI",
"->",
"getRegAllocationHint",
"(",
"OtherReg",
")",
";",
"if",
"(",
"Hint",
".",
"second",
"==",
"Reg",
")",
"{",
"MRI",
"->",
"setRegAllocationHint",
"(",
"OtherReg",
",",
"Hint",
".",
"first",
",",
"NewReg",
")",
";",
"if",
"(",
"Register",
"::",
"isVirtualRegister",
"(",
"NewReg",
")",
")",
"MRI",
"->",
"setRegAllocationHint",
"(",
"NewReg",
",",
"Hint",
".",
"first",
"==",
"(",
"unsigned",
")",
"ARMRI",
"::",
"RegPairOdd",
"?",
"ARMRI",
"::",
"RegPairEven",
":",
"ARMRI",
"::",
"RegPairOdd",
",",
"OtherReg",
")",
";",
"}",
"}",
"}",
"</s>"
] | [
"A",
"callback",
"to",
"allow",
"target",
"a",
"chance",
"to",
"update",
"register",
"allocation",
"hints",
"when",
"a",
"register",
"is",
"``",
"changed",
"''",
"(",
"e.g",
"."
] | [
"ARM",
"ARM",
"ARMRI::RegPairOdd",
"ARMRI::RegPairEven",
"ARMRI::RegPairOdd",
"ARMRI::RegPairEven",
"ARMRI::RegPairOdd"
] | ARMBaseRegisterInfo17 | updateRegAllocHint | ARM | CPU | LLVM | 34,626 | 159 | 1 | [] |
[
"<s>",
"bool",
"ARMPassConfig",
"::",
"addPreSched2",
"(",
")",
"{",
"if",
"(",
"getOptLevel",
"(",
")",
"!=",
"CodeGenOpt",
"::",
"None",
")",
"{",
"if",
"(",
"!",
"getARMSubtarget",
"(",
")",
".",
"isThumb1Only",
"(",
")",
")",
"PM",
".",
"add",
"(",
"createARMLoadStoreOptimizationPass",
"(",
")",
")",
";",
"if",
"(",
"getARMSubtarget",
"(",
")",
".",
"hasNEON",
"(",
")",
")",
"PM",
".",
"add",
"(",
"createExecutionDependencyFixPass",
"(",
"&",
"ARM",
"::",
"DPRRegClass",
")",
")",
";",
"}",
"PM",
".",
"add",
"(",
"createARMExpandPseudoPass",
"(",
")",
")",
";",
"if",
"(",
"getOptLevel",
"(",
")",
"!=",
"CodeGenOpt",
"::",
"None",
")",
"{",
"if",
"(",
"!",
"getARMSubtarget",
"(",
")",
".",
"isThumb1Only",
"(",
")",
")",
"addPass",
"(",
"IfConverterID",
")",
";",
"}",
"if",
"(",
"getARMSubtarget",
"(",
")",
".",
"isThumb2",
"(",
")",
")",
"PM",
".",
"add",
"(",
"createThumb2ITBlockPass",
"(",
")",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"This",
"method",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"after",
"prolog-epilog",
"insertion",
"and",
"before",
"the",
"second",
"instruction",
"scheduling",
"pass",
"."
] | [
"ARM",
"ARM",
"ARM",
"ARM",
"ARM",
"ARM::DPRRegClass",
"ARM",
"ARM",
"ARM"
] | ARMTargetMachine109 | addPreSched2 | ARM | CPU | LLVM | 34,627 | 122 | 1 | [] |
[
"<s>",
"Register",
"SIRegisterInfo",
"::",
"materializeFrameBaseRegister",
"(",
"MachineBasicBlock",
"*",
"MBB",
",",
"int",
"FrameIdx",
",",
"int64_t",
"Offset",
")",
"const",
"{",
"MachineBasicBlock",
"::",
"iterator",
"Ins",
"=",
"MBB",
"->",
"begin",
"(",
")",
";",
"DebugLoc",
"DL",
";",
"if",
"(",
"Ins",
"!=",
"MBB",
"->",
"end",
"(",
")",
")",
"DL",
"=",
"Ins",
"->",
"getDebugLoc",
"(",
")",
";",
"MachineFunction",
"*",
"MF",
"=",
"MBB",
"->",
"getParent",
"(",
")",
";",
"const",
"SIInstrInfo",
"*",
"TII",
"=",
"ST",
".",
"getInstrInfo",
"(",
")",
";",
"MachineRegisterInfo",
"&",
"MRI",
"=",
"MF",
"->",
"getRegInfo",
"(",
")",
";",
"unsigned",
"MovOpc",
"=",
"ST",
".",
"enableFlatScratch",
"(",
")",
"?",
"AMDGPU",
"::",
"S_MOV_B32",
":",
"AMDGPU",
"::",
"V_MOV_B32_e32",
";",
"Register",
"BaseReg",
"=",
"MRI",
".",
"createVirtualRegister",
"(",
"ST",
".",
"enableFlatScratch",
"(",
")",
"?",
"&",
"AMDGPU",
"::",
"SReg_32_XEXEC_HIRegClass",
":",
"&",
"AMDGPU",
"::",
"VGPR_32RegClass",
")",
";",
"if",
"(",
"Offset",
"==",
"0",
")",
"{",
"BuildMI",
"(",
"*",
"MBB",
",",
"Ins",
",",
"DL",
",",
"TII",
"->",
"get",
"(",
"MovOpc",
")",
",",
"BaseReg",
")",
".",
"addFrameIndex",
"(",
"FrameIdx",
")",
";",
"return",
"BaseReg",
";",
"}",
"Register",
"OffsetReg",
"=",
"MRI",
".",
"createVirtualRegister",
"(",
"&",
"AMDGPU",
"::",
"SReg_32_XM0RegClass",
")",
";",
"Register",
"FIReg",
"=",
"MRI",
".",
"createVirtualRegister",
"(",
"ST",
".",
"enableFlatScratch",
"(",
")",
"?",
"&",
"AMDGPU",
"::",
"SReg_32_XM0RegClass",
":",
"&",
"AMDGPU",
"::",
"VGPR_32RegClass",
")",
";",
"BuildMI",
"(",
"*",
"MBB",
",",
"Ins",
",",
"DL",
",",
"TII",
"->",
"get",
"(",
"AMDGPU",
"::",
"S_MOV_B32",
")",
",",
"OffsetReg",
")",
".",
"addImm",
"(",
"Offset",
")",
";",
"BuildMI",
"(",
"*",
"MBB",
",",
"Ins",
",",
"DL",
",",
"TII",
"->",
"get",
"(",
"MovOpc",
")",
",",
"FIReg",
")",
".",
"addFrameIndex",
"(",
"FrameIdx",
")",
";",
"if",
"(",
"ST",
".",
"enableFlatScratch",
"(",
")",
")",
"{",
"BuildMI",
"(",
"*",
"MBB",
",",
"Ins",
",",
"DL",
",",
"TII",
"->",
"get",
"(",
"AMDGPU",
"::",
"S_ADD_U32",
")",
",",
"BaseReg",
")",
".",
"addReg",
"(",
"OffsetReg",
",",
"RegState",
"::",
"Kill",
")",
".",
"addReg",
"(",
"FIReg",
")",
";",
"return",
"BaseReg",
";",
"}",
"TII",
"->",
"getAddNoCarry",
"(",
"*",
"MBB",
",",
"Ins",
",",
"DL",
",",
"BaseReg",
")",
".",
"addReg",
"(",
"OffsetReg",
",",
"RegState",
"::",
"Kill",
")",
".",
"addReg",
"(",
"FIReg",
")",
".",
"addImm",
"(",
"0",
")",
";",
"return",
"BaseReg",
";",
"}",
"</s>"
] | [
"Insert",
"defining",
"instruction",
"(",
"s",
")",
"for",
"a",
"pointer",
"to",
"FrameIdx",
"before",
"insertion",
"point",
"I",
"."
] | [
"AMDGPU",
"SI",
"SI",
"AMDGPU::S_MOV_B32",
"AMDGPU::V_MOV_B32_e32",
"AMDGPU::SReg_32_XEXEC_HIRegClass",
"AMDGPU::VGPR_32RegClass",
"0",
"AMDGPU::SReg_32_XM0RegClass",
"AMDGPU::SReg_32_XM0RegClass",
"AMDGPU::VGPR_32RegClass",
"AMDGPU::S_MOV_B32",
"AMDGPU::S_ADD_U32",
"0"
] | SIRegisterInfo46 | materializeFrameBaseRegister | AMDGPU | GPU | LLVM | 34,628 | 328 | 1 | [] |
[
"<s>",
"int",
"arm_no_early_store_addr_dep",
"(",
"rtx",
"producer",
",",
"rtx",
"consumer",
")",
"{",
"rtx",
"value",
"=",
"arm_find_sub_rtx_with_code",
"(",
"PATTERN",
"(",
"producer",
")",
",",
"SET",
",",
"false",
")",
";",
"rtx",
"addr",
"=",
"arm_find_sub_rtx_with_code",
"(",
"PATTERN",
"(",
"consumer",
")",
",",
"SET",
",",
"false",
")",
";",
"if",
"(",
"value",
")",
"value",
"=",
"SET_DEST",
"(",
"value",
")",
";",
"if",
"(",
"addr",
")",
"addr",
"=",
"SET_DEST",
"(",
"addr",
")",
";",
"if",
"(",
"!",
"value",
"||",
"!",
"addr",
")",
"return",
"0",
";",
"return",
"!",
"reg_overlap_mentioned_p",
"(",
"value",
",",
"addr",
")",
";",
"}",
"</s>"
] | [
"Return",
"nonzero",
"if",
"the",
"CONSUMER",
"instruction",
"(",
"a",
"store",
")",
"does",
"not",
"need",
"PRODUCER",
"'s",
"value",
"to",
"calculate",
"the",
"address",
"."
] | [
"arm",
"0"
] | aarch-common | arm_no_early_store_addr_dep | arm | CPU | GCC | 34,629 | 83 | 1 | [] |
[
"<s>",
"unsigned",
"HexagonInstrInfo",
"::",
"getUnits",
"(",
"const",
"MachineInstr",
"&",
"MI",
")",
"const",
"{",
"const",
"TargetSubtargetInfo",
"&",
"ST",
"=",
"MI",
".",
"getParent",
"(",
")",
"->",
"getParent",
"(",
")",
"->",
"getSubtarget",
"(",
")",
";",
"const",
"InstrItineraryData",
"&",
"II",
"=",
"*",
"ST",
".",
"getInstrItineraryData",
"(",
")",
";",
"const",
"InstrStage",
"&",
"IS",
"=",
"*",
"II",
".",
"beginStage",
"(",
"MI",
".",
"getDesc",
"(",
")",
".",
"getSchedClass",
"(",
")",
")",
";",
"return",
"IS",
".",
"getUnits",
"(",
")",
";",
"}",
"</s>"
] | [
"Returns",
"the",
"choice",
"of",
"FUs",
"."
] | [
"Hexagon",
"Hexagon"
] | HexagonInstrInfo10 | getUnits | Hexagon | DSP | LLVM | 34,630 | 72 | 1 | [] |
[
"<s>",
"int",
"arc_output_addsi",
"(",
"rtx",
"*",
"operands",
",",
"bool",
"cond_p",
",",
"bool",
"output_p",
")",
"{",
"char",
"format",
"[",
"35",
"]",
";",
"int",
"match",
"=",
"operands_match_p",
"(",
"operands",
"[",
"0",
"]",
",",
"operands",
"[",
"1",
"]",
")",
";",
"int",
"match2",
"=",
"operands_match_p",
"(",
"operands",
"[",
"0",
"]",
",",
"operands",
"[",
"2",
"]",
")",
";",
"int",
"intval",
"=",
"(",
"REG_P",
"(",
"operands",
"[",
"2",
"]",
")",
"?",
"1",
":",
"CONST_INT_P",
"(",
"operands",
"[",
"2",
"]",
")",
"?",
"INTVAL",
"(",
"operands",
"[",
"2",
"]",
")",
":",
"0xbadc057",
")",
";",
"int",
"neg_intval",
"=",
"-",
"intval",
";",
"int",
"short_0",
"=",
"arc_check_short_reg_p",
"(",
"operands",
"[",
"0",
"]",
")",
";",
"int",
"short_p",
"=",
"(",
"!",
"cond_p",
"&&",
"short_0",
"&&",
"arc_check_short_reg_p",
"(",
"operands",
"[",
"1",
"]",
")",
")",
";",
"int",
"ret",
"=",
"0",
";",
"&&",
"REGNO",
"(",
"OP",
")",
"!=",
"30",
")",
"\\",
"||",
"!",
"TARGET_V2",
")",
")",
"if",
"(",
"output_p",
")",
"\\",
"output_asm_insn",
"(",
"FORMAT",
",",
"operands",
")",
";",
"\\",
"return",
"ret",
";",
"\\",
"}",
"</s>"
] | [
"Emit",
"code",
"for",
"an",
"addsi3",
"instruction",
"with",
"OPERANDS",
".",
"COND_P",
"indicates",
"if",
"this",
"will",
"use",
"conditional",
"execution",
".",
"Return",
"the",
"length",
"of",
"the",
"instruction",
".",
"If",
"OUTPUT_P",
"is",
"false",
",",
"do",
"n't",
"actually",
"output",
"the",
"instruction",
",",
"just",
"return",
"its",
"length",
"."
] | [
"arc",
"35",
"0",
"1",
"0",
"2",
"2",
"1",
"2",
"2",
"0xbadc057",
"0",
"1",
"0",
"30"
] | arc1 | arc_output_addsi | arc | MPU | GCC | 34,631 | 157 | 1 | [] |
[
"<s>",
"SDNode",
"*",
"PPCDAGToDAGISel",
"::",
"getGlobalBaseReg",
"(",
")",
"{",
"if",
"(",
"!",
"GlobalBaseReg",
")",
"{",
"const",
"TargetInstrInfo",
"&",
"TII",
"=",
"*",
"TM",
".",
"getInstrInfo",
"(",
")",
";",
"MachineBasicBlock",
"&",
"FirstMBB",
"=",
"MF",
"->",
"front",
"(",
")",
";",
"MachineBasicBlock",
"::",
"iterator",
"MBBI",
"=",
"FirstMBB",
".",
"begin",
"(",
")",
";",
"DebugLoc",
"dl",
";",
"if",
"(",
"PPCLowering",
".",
"getPointerTy",
"(",
")",
"==",
"MVT",
"::",
"i32",
")",
"{",
"GlobalBaseReg",
"=",
"RegInfo",
"->",
"createVirtualRegister",
"(",
"&",
"PPC",
"::",
"GPRCRegClass",
")",
";",
"BuildMI",
"(",
"FirstMBB",
",",
"MBBI",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"PPC",
"::",
"MovePCtoLR",
")",
")",
";",
"BuildMI",
"(",
"FirstMBB",
",",
"MBBI",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"PPC",
"::",
"MFLR",
")",
",",
"GlobalBaseReg",
")",
";",
"}",
"else",
"{",
"GlobalBaseReg",
"=",
"RegInfo",
"->",
"createVirtualRegister",
"(",
"&",
"PPC",
"::",
"G8RCRegClass",
")",
";",
"BuildMI",
"(",
"FirstMBB",
",",
"MBBI",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"PPC",
"::",
"MovePCtoLR8",
")",
")",
";",
"BuildMI",
"(",
"FirstMBB",
",",
"MBBI",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"PPC",
"::",
"MFLR8",
")",
",",
"GlobalBaseReg",
")",
";",
"}",
"}",
"return",
"CurDAG",
"->",
"getRegister",
"(",
"GlobalBaseReg",
",",
"PPCLowering",
".",
"getPointerTy",
"(",
")",
")",
".",
"getNode",
"(",
")",
";",
"}",
"</s>"
] | [
"getGlobalBaseReg",
"-",
"Return",
"a",
"virtual",
"register",
"initialized",
"with",
"the",
"the",
"global",
"base",
"register",
"value",
"."
] | [
"PowerPC",
"PPC",
"PPC",
"MVT::i32",
"PPC::GPRCRegClass",
"PPC::MovePCtoLR",
"PPC::MFLR",
"PPC::G8RCRegClass",
"PPC::MovePCtoLR8",
"PPC::MFLR8",
"PPC"
] | PPCISelDAGToDAG106 | getGlobalBaseReg | PowerPC | CPU | LLVM | 34,632 | 187 | 1 | [] |
[
"<s>",
"static",
"int",
"num_insns_constant_multi",
"(",
"HOST_WIDE_INT",
"value",
",",
"machine_mode",
"mode",
")",
"{",
"int",
"nregs",
"=",
"(",
"GET_MODE_SIZE",
"(",
"mode",
")",
"+",
"UNITS_PER_WORD",
"-",
"1",
")",
"/",
"UNITS_PER_WORD",
";",
"int",
"total",
"=",
"0",
";",
"while",
"(",
"nregs",
"--",
">",
"0",
")",
"{",
"HOST_WIDE_INT",
"low",
"=",
"sext_hwi",
"(",
"value",
",",
"BITS_PER_WORD",
")",
";",
"int",
"insns",
"=",
"num_insns_constant_gpr",
"(",
"low",
")",
";",
"if",
"(",
"insns",
">",
"2",
"&&",
"rs6000_is_valid_and_mask",
"(",
"GEN_INT",
"(",
"low",
")",
",",
"DImode",
")",
")",
"insns",
"=",
"2",
";",
"total",
"+=",
"insns",
";",
"value",
">>=",
"(",
"BITS_PER_WORD",
"-",
"1",
")",
";",
"value",
">>=",
"1",
";",
"}",
"return",
"total",
";",
"}",
"</s>"
] | [
"Helper",
"for",
"num_insns_constant",
".",
"Allow",
"constants",
"formed",
"by",
"the",
"num_insns_constant_gpr",
"sequences",
",",
"plus",
"li",
"-1",
",",
"rldicl/rldicr/rlwinm",
",",
"and",
"handle",
"modes",
"that",
"require",
"multiple",
"gprs",
"."
] | [
"rs6000",
"1",
"0",
"0",
"2",
"2",
"1",
"1"
] | rs6000 | num_insns_constant_multi | rs6000 | CPU | GCC | 34,633 | 99 | 1 | [] |
[
"<s>",
"int",
"mn10300_split_and_operand_count",
"(",
"rtx",
"op",
")",
"{",
"HOST_WIDE_INT",
"val",
"=",
"INTVAL",
"(",
"op",
")",
";",
"int",
"count",
";",
"if",
"(",
"val",
"<",
"0",
")",
"{",
"count",
"=",
"exact_log2",
"(",
"-",
"val",
")",
";",
"if",
"(",
"count",
"<",
"0",
")",
"return",
"0",
";",
"if",
"(",
"count",
">",
"(",
"optimize_insn_for_speed_p",
"(",
")",
"?",
"2",
":",
"4",
")",
")",
"return",
"0",
";",
"return",
"count",
";",
"}",
"else",
"{",
"count",
"=",
"exact_log2",
"(",
"val",
"+",
"1",
")",
";",
"count",
"=",
"32",
"-",
"count",
";",
"if",
"(",
"count",
">",
"(",
"optimize_insn_for_speed_p",
"(",
")",
"?",
"2",
":",
"4",
")",
")",
"return",
"0",
";",
"return",
"-",
"count",
";",
"}",
"}",
"</s>"
] | [
"This",
"function",
"is",
"used",
"to",
"help",
"split",
":",
"(",
"set",
"(",
"reg",
")",
"(",
"and",
"(",
"reg",
")",
"(",
"int",
")",
")",
")",
"into",
":",
"(",
"set",
"(",
"reg",
")",
"(",
"shift",
"(",
"reg",
")",
"(",
"int",
")",
")",
"(",
"set",
"(",
"reg",
")",
"(",
"shift",
"(",
"reg",
")",
"(",
"int",
")",
")",
"where",
"the",
"shitfs",
"will",
"be",
"shorter",
"than",
"the",
"``",
"and",
"''",
"insn",
".",
"It",
"returns",
"the",
"number",
"of",
"bits",
"that",
"should",
"be",
"shifted",
".",
"A",
"positive",
"values",
"means",
"that",
"the",
"low",
"bits",
"are",
"to",
"be",
"cleared",
"(",
"and",
"hence",
"the",
"shifts",
"should",
"be",
"right",
"followed",
"by",
"left",
")",
"whereas",
"a",
"negative",
"value",
"means",
"that",
"the",
"high",
"bits",
"are",
"to",
"be",
"cleared",
"(",
"left",
"followed",
"by",
"right",
")",
".",
"Zero",
"is",
"returned",
"when",
"it",
"would",
"not",
"be",
"economical",
"to",
"split",
"the",
"AND",
"."
] | [
"mn10300",
"0",
"0",
"0",
"2",
"4",
"0",
"1",
"32",
"2",
"4",
"0"
] | mn10300 | mn10300_split_and_operand_count | mn10300 | MPU | GCC | 34,634 | 103 | 1 | [] |
[
"<s>",
"bool",
"ARMTargetLowering",
"::",
"isShuffleMaskLegal",
"(",
"ArrayRef",
"<",
"int",
">",
"M",
",",
"EVT",
"VT",
")",
"const",
"{",
"if",
"(",
"VT",
".",
"getVectorNumElements",
"(",
")",
"==",
"4",
"&&",
"(",
"VT",
".",
"is128BitVector",
"(",
")",
"||",
"VT",
".",
"is64BitVector",
"(",
")",
")",
")",
"{",
"unsigned",
"PFIndexes",
"[",
"4",
"]",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"!=",
"4",
";",
"++",
"i",
")",
"{",
"if",
"(",
"M",
"[",
"i",
"]",
"<",
"0",
")",
"PFIndexes",
"[",
"i",
"]",
"=",
"8",
";",
"else",
"PFIndexes",
"[",
"i",
"]",
"=",
"M",
"[",
"i",
"]",
";",
"}",
"unsigned",
"PFTableIndex",
"=",
"PFIndexes",
"[",
"0",
"]",
"*",
"9",
"*",
"9",
"*",
"9",
"+",
"PFIndexes",
"[",
"1",
"]",
"*",
"9",
"*",
"9",
"+",
"PFIndexes",
"[",
"2",
"]",
"*",
"9",
"+",
"PFIndexes",
"[",
"3",
"]",
";",
"unsigned",
"PFEntry",
"=",
"PerfectShuffleTable",
"[",
"PFTableIndex",
"]",
";",
"unsigned",
"Cost",
"=",
"(",
"PFEntry",
">>",
"30",
")",
";",
"if",
"(",
"Cost",
"<=",
"4",
"&&",
"(",
"Subtarget",
"->",
"hasNEON",
"(",
")",
"||",
"isLegalMVEShuffleOp",
"(",
"PFEntry",
")",
")",
")",
"return",
"true",
";",
"}",
"bool",
"ReverseVEXT",
",",
"isV_UNDEF",
";",
"unsigned",
"Imm",
",",
"WhichResult",
";",
"unsigned",
"EltSize",
"=",
"VT",
".",
"getScalarSizeInBits",
"(",
")",
";",
"if",
"(",
"EltSize",
">=",
"32",
"||",
"ShuffleVectorSDNode",
"::",
"isSplatMask",
"(",
"&",
"M",
"[",
"0",
"]",
",",
"VT",
")",
"||",
"ShuffleVectorInst",
"::",
"isIdentityMask",
"(",
"M",
")",
"||",
"isVREVMask",
"(",
"M",
",",
"VT",
",",
"64",
")",
"||",
"isVREVMask",
"(",
"M",
",",
"VT",
",",
"32",
")",
"||",
"isVREVMask",
"(",
"M",
",",
"VT",
",",
"16",
")",
")",
"return",
"true",
";",
"else",
"if",
"(",
"Subtarget",
"->",
"hasNEON",
"(",
")",
"&&",
"(",
"isVEXTMask",
"(",
"M",
",",
"VT",
",",
"ReverseVEXT",
",",
"Imm",
")",
"||",
"isVTBLMask",
"(",
"M",
",",
"VT",
")",
"||",
"isNEONTwoResultShuffleMask",
"(",
"M",
",",
"VT",
",",
"WhichResult",
",",
"isV_UNDEF",
")",
")",
")",
"return",
"true",
";",
"else",
"if",
"(",
"Subtarget",
"->",
"hasNEON",
"(",
")",
"&&",
"(",
"VT",
"==",
"MVT",
"::",
"v8i16",
"||",
"VT",
"==",
"MVT",
"::",
"v16i8",
")",
"&&",
"isReverseMask",
"(",
"M",
",",
"VT",
")",
")",
"return",
"true",
";",
"else",
"if",
"(",
"Subtarget",
"->",
"hasMVEIntegerOps",
"(",
")",
"&&",
"(",
"isVMOVNMask",
"(",
"M",
",",
"VT",
",",
"0",
")",
"||",
"isVMOVNMask",
"(",
"M",
",",
"VT",
",",
"1",
")",
")",
")",
"return",
"true",
";",
"else",
"return",
"false",
";",
"}",
"</s>"
] | [
"Targets",
"can",
"use",
"this",
"to",
"indicate",
"that",
"they",
"only",
"support",
"some",
"VECTOR_SHUFFLE",
"operations",
",",
"those",
"with",
"specific",
"masks",
"."
] | [
"ARM",
"ARM",
"4",
"4",
"0",
"4",
"0",
"8",
"0",
"9",
"9",
"9",
"1",
"9",
"9",
"2",
"9",
"3",
"30",
"4",
"32",
"0",
"64",
"32",
"16",
"MVT::v8i16",
"MVT::v16i8",
"0",
"1"
] | ARMISelLowering (2)6 | isShuffleMaskLegal | ARM | CPU | LLVM | 34,635 | 353 | 1 | [] |
[
"<s>",
"static",
"void",
"alpha_expand_unaligned_load_words",
"(",
"rtx",
"*",
"out_regs",
",",
"rtx",
"smem",
",",
"HOST_WIDE_INT",
"words",
",",
"HOST_WIDE_INT",
"ofs",
")",
"{",
"rtx",
"const",
"im8",
"=",
"GEN_INT",
"(",
"-",
"8",
")",
";",
"rtx",
"ext_tmps",
"[",
"MAX_MOVE_WORDS",
"]",
",",
"data_regs",
"[",
"MAX_MOVE_WORDS",
"+",
"1",
"]",
";",
"rtx",
"sreg",
",",
"areg",
",",
"tmp",
",",
"smema",
";",
"HOST_WIDE_INT",
"i",
";",
"smema",
"=",
"XEXP",
"(",
"smem",
",",
"0",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"smema",
")",
"==",
"LO_SUM",
")",
"smema",
"=",
"force_reg",
"(",
"Pmode",
",",
"smema",
")",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"words",
";",
"++",
"i",
")",
"{",
"data_regs",
"[",
"i",
"]",
"=",
"out_regs",
"[",
"i",
"]",
";",
"ext_tmps",
"[",
"i",
"]",
"=",
"gen_reg_rtx",
"(",
"DImode",
")",
";",
"}",
"data_regs",
"[",
"words",
"]",
"=",
"gen_reg_rtx",
"(",
"DImode",
")",
";",
"if",
"(",
"ofs",
"!=",
"0",
")",
"smem",
"=",
"adjust_address",
"(",
"smem",
",",
"GET_MODE",
"(",
"smem",
")",
",",
"ofs",
")",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"words",
";",
"++",
"i",
")",
"{",
"tmp",
"=",
"change_address",
"(",
"smem",
",",
"DImode",
",",
"gen_rtx_AND",
"(",
"DImode",
",",
"plus_constant",
"(",
"DImode",
",",
"smema",
",",
"8",
"*",
"i",
")",
",",
"im8",
")",
")",
";",
"set_mem_alias_set",
"(",
"tmp",
",",
"0",
")",
";",
"emit_move_insn",
"(",
"data_regs",
"[",
"i",
"]",
",",
"tmp",
")",
";",
"}",
"tmp",
"=",
"change_address",
"(",
"smem",
",",
"DImode",
",",
"gen_rtx_AND",
"(",
"DImode",
",",
"plus_constant",
"(",
"DImode",
",",
"smema",
",",
"8",
"*",
"words",
"-",
"1",
")",
",",
"im8",
")",
")",
";",
"set_mem_alias_set",
"(",
"tmp",
",",
"0",
")",
";",
"emit_move_insn",
"(",
"data_regs",
"[",
"words",
"]",
",",
"tmp",
")",
";",
"sreg",
"=",
"copy_addr_to_reg",
"(",
"smema",
")",
";",
"areg",
"=",
"expand_binop",
"(",
"DImode",
",",
"and_optab",
",",
"sreg",
",",
"GEN_INT",
"(",
"7",
")",
",",
"NULL",
",",
"1",
",",
"OPTAB_WIDEN",
")",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"words",
";",
"++",
"i",
")",
"{",
"emit_insn",
"(",
"gen_extql",
"(",
"data_regs",
"[",
"i",
"]",
",",
"data_regs",
"[",
"i",
"]",
",",
"sreg",
")",
")",
";",
"emit_insn",
"(",
"gen_extqh",
"(",
"ext_tmps",
"[",
"i",
"]",
",",
"data_regs",
"[",
"i",
"+",
"1",
"]",
",",
"sreg",
")",
")",
";",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"VOIDmode",
",",
"ext_tmps",
"[",
"i",
"]",
",",
"gen_rtx_IF_THEN_ELSE",
"(",
"DImode",
",",
"gen_rtx_EQ",
"(",
"DImode",
",",
"areg",
",",
"const0_rtx",
")",
",",
"const0_rtx",
",",
"ext_tmps",
"[",
"i",
"]",
")",
")",
")",
";",
"}",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"words",
";",
"++",
"i",
")",
"{",
"out_regs",
"[",
"i",
"]",
"=",
"expand_binop",
"(",
"DImode",
",",
"ior_optab",
",",
"data_regs",
"[",
"i",
"]",
",",
"ext_tmps",
"[",
"i",
"]",
",",
"data_regs",
"[",
"i",
"]",
",",
"1",
",",
"OPTAB_WIDEN",
")",
";",
"}",
"}",
"</s>"
] | [
"Load",
"an",
"integral",
"number",
"of",
"consecutive",
"unaligned",
"quadwords",
"."
] | [
"alpha",
"8",
"1",
"0",
"0",
"0",
"0",
"8",
"0",
"8",
"1",
"0",
"7",
"1",
"0",
"1",
"0",
"1"
] | alpha4 | alpha_expand_unaligned_load_words | alpha | MPU | GCC | 34,636 | 413 | 1 | [] |
[
"<s>",
"static",
"rtx",
"aarch64_expand_builtin_ls64",
"(",
"int",
"fcode",
",",
"tree",
"exp",
",",
"rtx",
"target",
")",
"{",
"expand_operand",
"ops",
"[",
"3",
"]",
";",
"switch",
"(",
"fcode",
")",
"{",
"case",
"AARCH64_LS64_BUILTIN_LD64B",
":",
"{",
"rtx",
"op0",
"=",
"expand_normal",
"(",
"CALL_EXPR_ARG",
"(",
"exp",
",",
"0",
")",
")",
";",
"create_output_operand",
"(",
"&",
"ops",
"[",
"0",
"]",
",",
"target",
",",
"V8DImode",
")",
";",
"create_input_operand",
"(",
"&",
"ops",
"[",
"1",
"]",
",",
"op0",
",",
"DImode",
")",
";",
"expand_insn",
"(",
"CODE_FOR_ld64b",
",",
"2",
",",
"ops",
")",
";",
"return",
"ops",
"[",
"0",
"]",
".",
"value",
";",
"}",
"case",
"AARCH64_LS64_BUILTIN_ST64B",
":",
"{",
"rtx",
"op0",
"=",
"expand_normal",
"(",
"CALL_EXPR_ARG",
"(",
"exp",
",",
"0",
")",
")",
";",
"rtx",
"op1",
"=",
"expand_normal",
"(",
"CALL_EXPR_ARG",
"(",
"exp",
",",
"1",
")",
")",
";",
"create_output_operand",
"(",
"&",
"ops",
"[",
"0",
"]",
",",
"op0",
",",
"DImode",
")",
";",
"create_input_operand",
"(",
"&",
"ops",
"[",
"1",
"]",
",",
"op1",
",",
"V8DImode",
")",
";",
"expand_insn",
"(",
"CODE_FOR_st64b",
",",
"2",
",",
"ops",
")",
";",
"return",
"const0_rtx",
";",
"}",
"case",
"AARCH64_LS64_BUILTIN_ST64BV",
":",
"{",
"rtx",
"op0",
"=",
"expand_normal",
"(",
"CALL_EXPR_ARG",
"(",
"exp",
",",
"0",
")",
")",
";",
"rtx",
"op1",
"=",
"expand_normal",
"(",
"CALL_EXPR_ARG",
"(",
"exp",
",",
"1",
")",
")",
";",
"create_output_operand",
"(",
"&",
"ops",
"[",
"0",
"]",
",",
"target",
",",
"DImode",
")",
";",
"create_input_operand",
"(",
"&",
"ops",
"[",
"1",
"]",
",",
"op0",
",",
"DImode",
")",
";",
"create_input_operand",
"(",
"&",
"ops",
"[",
"2",
"]",
",",
"op1",
",",
"V8DImode",
")",
";",
"expand_insn",
"(",
"CODE_FOR_st64bv",
",",
"3",
",",
"ops",
")",
";",
"return",
"ops",
"[",
"0",
"]",
".",
"value",
";",
"}",
"case",
"AARCH64_LS64_BUILTIN_ST64BV0",
":",
"{",
"rtx",
"op0",
"=",
"expand_normal",
"(",
"CALL_EXPR_ARG",
"(",
"exp",
",",
"0",
")",
")",
";",
"rtx",
"op1",
"=",
"expand_normal",
"(",
"CALL_EXPR_ARG",
"(",
"exp",
",",
"1",
")",
")",
";",
"create_output_operand",
"(",
"&",
"ops",
"[",
"0",
"]",
",",
"target",
",",
"DImode",
")",
";",
"create_input_operand",
"(",
"&",
"ops",
"[",
"1",
"]",
",",
"op0",
",",
"DImode",
")",
";",
"create_input_operand",
"(",
"&",
"ops",
"[",
"2",
"]",
",",
"op1",
",",
"V8DImode",
")",
";",
"expand_insn",
"(",
"CODE_FOR_st64bv0",
",",
"3",
",",
"ops",
")",
";",
"return",
"ops",
"[",
"0",
"]",
".",
"value",
";",
"}",
"}",
"gcc_unreachable",
"(",
")",
";",
"}",
"</s>"
] | [
"Function",
"to",
"expand",
"an",
"expression",
"EXP",
"which",
"calls",
"one",
"of",
"the",
"Load/Store",
"64",
"Byte",
"extension",
"(",
"LS64",
")",
"builtins",
"FCODE",
"with",
"the",
"result",
"going",
"to",
"TARGET",
"."
] | [
"aarch64",
"3",
"0",
"0",
"1",
"2",
"0",
"0",
"1",
"0",
"1",
"2",
"0",
"1",
"0",
"1",
"2",
"3",
"0",
"0",
"1",
"0",
"1",
"2",
"3",
"0"
] | aarch64-builtins | aarch64_expand_builtin_ls64 | aarch64 | CPU | GCC | 34,637 | 335 | 1 | [] |
[
"<s>",
"int",
"s390_class_max_nregs",
"(",
"enum",
"reg_class",
"rclass",
",",
"machine_mode",
"mode",
")",
"{",
"switch",
"(",
"rclass",
")",
"{",
"case",
"FP_REGS",
":",
"if",
"(",
"GET_MODE_CLASS",
"(",
"mode",
")",
"==",
"MODE_COMPLEX_FLOAT",
")",
"return",
"2",
"*",
"(",
"(",
"GET_MODE_SIZE",
"(",
"mode",
")",
"/",
"2",
"+",
"8",
"-",
"1",
")",
"/",
"8",
")",
";",
"else",
"return",
"(",
"GET_MODE_SIZE",
"(",
"mode",
")",
"+",
"8",
"-",
"1",
")",
"/",
"8",
";",
"case",
"ACCESS_REGS",
":",
"return",
"(",
"GET_MODE_SIZE",
"(",
"mode",
")",
"+",
"4",
"-",
"1",
")",
"/",
"4",
";",
"default",
":",
"break",
";",
"}",
"return",
"(",
"GET_MODE_SIZE",
"(",
"mode",
")",
"+",
"UNITS_PER_WORD",
"-",
"1",
")",
"/",
"UNITS_PER_WORD",
";",
"}",
"</s>"
] | [
"Maximum",
"number",
"of",
"registers",
"to",
"represent",
"a",
"value",
"of",
"mode",
"MODE",
"in",
"a",
"register",
"of",
"class",
"RCLASS",
"."
] | [
"s390",
"2",
"2",
"8",
"1",
"8",
"8",
"1",
"8",
"4",
"1",
"4",
"1"
] | s3904 | s390_class_max_nregs | s390 | MPU | GCC | 34,638 | 100 | 1 | [] |
[
"<s>",
"VariantKind",
"getKind",
"(",
")",
"const",
"{",
"return",
"Kind",
";",
"}",
"</s>"
] | [
"Returns",
"the",
"Kind",
"of",
"lane",
"offset",
"."
] | [
"GBZ80"
] | GBZ80MCExpr | getKind | GBZ80 | MPU | LLVM | 34,639 | 10 | 1 | [] |
[
"<s>",
"static",
"char",
"*",
"detect_caches_darwin",
"(",
"void",
")",
"{",
"unsigned",
"l1_sizekb",
",",
"l1_line",
",",
"l1_assoc",
",",
"l2_sizekb",
";",
"size_t",
"len",
"=",
"4",
";",
"static",
"int",
"l1_size_name",
"[",
"2",
"]",
"=",
"{",
"CTL_HW",
",",
"HW_L1DCACHESIZE",
"}",
";",
"static",
"int",
"l1_line_name",
"[",
"2",
"]",
"=",
"{",
"CTL_HW",
",",
"HW_CACHELINE",
"}",
";",
"static",
"int",
"l2_size_name",
"[",
"2",
"]",
"=",
"{",
"CTL_HW",
",",
"HW_L2CACHESIZE",
"}",
";",
"sysctl",
"(",
"l1_size_name",
",",
"2",
",",
"&",
"l1_sizekb",
",",
"&",
"len",
",",
"NULL",
",",
"0",
")",
";",
"sysctl",
"(",
"l1_line_name",
",",
"2",
",",
"&",
"l1_line",
",",
"&",
"len",
",",
"NULL",
",",
"0",
")",
";",
"sysctl",
"(",
"l2_size_name",
",",
"2",
",",
"&",
"l2_sizekb",
",",
"&",
"len",
",",
"NULL",
",",
"0",
")",
";",
"l1_assoc",
"=",
"0",
";",
"return",
"describe_cache",
"(",
"l1_sizekb",
"/",
"1024",
",",
"l1_line",
",",
"l1_assoc",
",",
"l2_sizekb",
"/",
"1024",
")",
";",
"}",
"</s>"
] | [
"Returns",
"the",
"description",
"of",
"caches",
"on",
"Darwin",
"."
] | [
"rs6000",
"4",
"2",
"2",
"2",
"2",
"0",
"2",
"0",
"2",
"0",
"0",
"1024",
"1024"
] | driver-rs6000 | detect_caches_darwin | rs6000 | CPU | GCC | 34,640 | 133 | 1 | [] |
[
"<s>",
"unsigned",
"getGlobalBaseReg",
"(",
")",
"const",
"{",
"return",
"GlobalBaseReg",
";",
"}",
"</s>"
] | [
"getGlobalBaseReg",
"-",
"Return",
"a",
"virtual",
"register",
"initialized",
"with",
"the",
"the",
"global",
"base",
"register",
"value",
"."
] | [
"Videocore"
] | VideocoreMachineFunctionInfo | getGlobalBaseReg | Videocore | DSP | LLVM | 34,641 | 10 | 1 | [] |
[
"<s>",
"static",
"void",
"emit_split_stack_prologue",
"(",
"rs6000_stack_t",
"*",
"info",
",",
"rtx_insn",
"*",
"sp_adjust",
",",
"HOST_WIDE_INT",
"frame_off",
",",
"rtx",
"frame_reg_rtx",
")",
"{",
"cfun",
"->",
"machine",
"->",
"split_stack_argp_used",
"=",
"true",
";",
"if",
"(",
"sp_adjust",
")",
"{",
"rtx",
"r12",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"12",
")",
";",
"rtx",
"sp_reg_rtx",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"STACK_POINTER_REGNUM",
")",
";",
"rtx",
"set_r12",
"=",
"gen_rtx_SET",
"(",
"r12",
",",
"sp_reg_rtx",
")",
";",
"emit_insn_before",
"(",
"set_r12",
",",
"sp_adjust",
")",
";",
"}",
"else",
"if",
"(",
"frame_off",
"!=",
"0",
"||",
"REGNO",
"(",
"frame_reg_rtx",
")",
"!=",
"12",
")",
"{",
"rtx",
"r12",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"12",
")",
";",
"if",
"(",
"frame_off",
"==",
"0",
")",
"emit_move_insn",
"(",
"r12",
",",
"frame_reg_rtx",
")",
";",
"else",
"emit_insn",
"(",
"gen_add3_insn",
"(",
"r12",
",",
"frame_reg_rtx",
",",
"GEN_INT",
"(",
"frame_off",
")",
")",
")",
";",
"}",
"if",
"(",
"info",
"->",
"push_p",
")",
"{",
"rtx",
"r12",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"12",
")",
";",
"rtx",
"r29",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"29",
")",
";",
"rtx",
"cr7",
"=",
"gen_rtx_REG",
"(",
"CCUNSmode",
",",
"CR7_REGNO",
")",
";",
"rtx",
"not_more",
"=",
"gen_label_rtx",
"(",
")",
";",
"rtx",
"jump",
";",
"jump",
"=",
"gen_rtx_IF_THEN_ELSE",
"(",
"VOIDmode",
",",
"gen_rtx_GEU",
"(",
"VOIDmode",
",",
"cr7",
",",
"const0_rtx",
")",
",",
"gen_rtx_LABEL_REF",
"(",
"VOIDmode",
",",
"not_more",
")",
",",
"pc_rtx",
")",
";",
"jump",
"=",
"emit_jump_insn",
"(",
"gen_rtx_SET",
"(",
"pc_rtx",
",",
"jump",
")",
")",
";",
"JUMP_LABEL",
"(",
"jump",
")",
"=",
"not_more",
";",
"LABEL_NUSES",
"(",
"not_more",
")",
"+=",
"1",
";",
"emit_move_insn",
"(",
"r12",
",",
"r29",
")",
";",
"emit_label",
"(",
"not_more",
")",
";",
"}",
"}",
"</s>"
] | [
"Set",
"up",
"the",
"arg",
"pointer",
"(",
"r12",
")",
"for",
"-fsplit-stack",
"code",
".",
"If",
"__morestack",
"was",
"called",
",",
"it",
"left",
"the",
"arg",
"pointer",
"to",
"the",
"old",
"stack",
"in",
"r29",
".",
"Otherwise",
",",
"the",
"arg",
"pointer",
"is",
"the",
"top",
"of",
"the",
"current",
"frame",
"."
] | [
"rs6000",
"12",
"0",
"12",
"12",
"0",
"12",
"29",
"1"
] | rs6000-logue | emit_split_stack_prologue | rs6000 | CPU | GCC | 34,642 | 237 | 1 | [] |
[
"<s>",
"bool",
"X86FrameLowering",
"::",
"hasFP",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"const",
"MachineFrameInfo",
"&",
"MFI",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
";",
"return",
"(",
"MF",
".",
"getTarget",
"(",
")",
".",
"Options",
".",
"DisableFramePointerElim",
"(",
"MF",
")",
"||",
"TRI",
"->",
"needsStackRealignment",
"(",
"MF",
")",
"||",
"MFI",
".",
"hasVarSizedObjects",
"(",
")",
"||",
"MFI",
".",
"isFrameAddressTaken",
"(",
")",
"||",
"MFI",
".",
"hasOpaqueSPAdjustment",
"(",
")",
"||",
"MF",
".",
"getInfo",
"<",
"X86MachineFunctionInfo",
">",
"(",
")",
"->",
"getForceFramePointer",
"(",
")",
"||",
"MF",
".",
"getInfo",
"<",
"X86MachineFunctionInfo",
">",
"(",
")",
"->",
"hasPreallocatedCall",
"(",
")",
"||",
"MF",
".",
"callsUnwindInit",
"(",
")",
"||",
"MF",
".",
"hasEHFunclets",
"(",
")",
"||",
"MF",
".",
"callsEHReturn",
"(",
")",
"||",
"MFI",
".",
"hasStackMap",
"(",
")",
"||",
"MFI",
".",
"hasPatchPoint",
"(",
")",
"||",
"MFI",
".",
"hasCopyImplyingStackAdjustment",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"hasFP",
"-",
"Return",
"true",
"if",
"the",
"specified",
"function",
"should",
"have",
"a",
"dedicated",
"frame",
"pointer",
"register",
"."
] | [
"X86",
"X86",
"X86",
"X86"
] | X86FrameLowering101 | hasFP | X86 | CPU | LLVM | 34,643 | 127 | 1 | [] |
[
"<s>",
"void",
"MMIXInstrInfo",
"::",
"copyPhysReg",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"MBBI",
",",
"const",
"DebugLoc",
"&",
"DL",
",",
"MCRegister",
"DstReg",
",",
"MCRegister",
"SrcReg",
",",
"bool",
"KillSrc",
")",
"const",
"{",
"assert",
"(",
"MMIX",
"::",
"GPRRegClass",
".",
"contains",
"(",
"DstReg",
",",
"SrcReg",
")",
"&&",
"\"Impossible reg-to-reg copy\"",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"MBBI",
",",
"DL",
",",
"get",
"(",
"MMIX",
"::",
"ADD_I",
")",
",",
"DstReg",
")",
".",
"addReg",
"(",
"SrcReg",
",",
"getKillRegState",
"(",
"KillSrc",
")",
")",
".",
"addImm",
"(",
"0",
")",
";",
"}",
"</s>"
] | [
"}",
"Branch",
"Analysis",
"&",
"Modification"
] | [
"MMIX",
"MMIX",
"MMIX::GPRRegClass",
"\"Impossible reg-to-reg copy\"",
"MMIX::ADD_I",
"0"
] | MMIXInstrInfo | copyPhysReg | MMIX | CPU | LLVM | 34,644 | 80 | 1 | [] |
[
"<s>",
"bool",
"SystemZTargetLowering",
"::",
"isLegalAddressingMode",
"(",
"const",
"DataLayout",
"&",
"DL",
",",
"const",
"AddrMode",
"&",
"AM",
",",
"Type",
"*",
"Ty",
",",
"unsigned",
"AS",
")",
"const",
"{",
"if",
"(",
"AM",
".",
"BaseGV",
")",
"return",
"false",
";",
"if",
"(",
"!",
"isInt",
"<",
"20",
">",
"(",
"AM",
".",
"BaseOffs",
")",
")",
"return",
"false",
";",
"return",
"AM",
".",
"Scale",
"==",
"0",
"||",
"AM",
".",
"Scale",
"==",
"1",
";",
"}",
"</s>"
] | [
"isLegalAddressingMode",
"-",
"Return",
"true",
"if",
"the",
"addressing",
"mode",
"represented",
"by",
"AM",
"is",
"legal",
"for",
"this",
"target",
",",
"for",
"a",
"load/store",
"of",
"the",
"specified",
"type",
"."
] | [
"SystemZ",
"SystemZ",
"20",
"0",
"1"
] | SystemZISelLowering (2)1 | isLegalAddressingMode | SystemZ | CPU | LLVM | 34,645 | 63 | 1 | [] |
[
"<s>",
"static",
"void",
"pa_output_function_prologue",
"(",
"FILE",
"*",
"file",
",",
"HOST_WIDE_INT",
"size",
"ATTRIBUTE_UNUSED",
")",
"{",
"ASM_OUTPUT_LABEL",
"(",
"file",
",",
"XSTR",
"(",
"XEXP",
"(",
"DECL_RTL",
"(",
"current_function_decl",
")",
",",
"0",
")",
",",
"0",
")",
")",
";",
"fputs",
"(",
"\"\\t.PROC\\n\"",
",",
"file",
")",
";",
"fprintf",
"(",
"file",
",",
"\"\\t.CALLINFO FRAME=\"",
"HOST_WIDE_INT_PRINT_DEC",
",",
"actual_fsize",
")",
";",
"if",
"(",
"regs_ever_live",
"[",
"2",
"]",
")",
"fputs",
"(",
"\",CALLS,SAVE_RP\"",
",",
"file",
")",
";",
"else",
"fputs",
"(",
"\",NO_CALLS\"",
",",
"file",
")",
";",
"if",
"(",
"frame_pointer_needed",
")",
"fputs",
"(",
"\",SAVE_SP\"",
",",
"file",
")",
";",
"if",
"(",
"gr_saved",
")",
"fprintf",
"(",
"file",
",",
"\",ENTRY_GR=%d\"",
",",
"gr_saved",
"+",
"2",
")",
";",
"if",
"(",
"fr_saved",
")",
"fprintf",
"(",
"file",
",",
"\",ENTRY_FR=%d\"",
",",
"fr_saved",
"+",
"11",
")",
";",
"fputs",
"(",
"\"\\n\\t.ENTRY\\n\"",
",",
"file",
")",
";",
"remove_useless_addtr_insns",
"(",
"0",
")",
";",
"}",
"</s>"
] | [
"On",
"HP-PA",
",",
"move-double",
"insns",
"between",
"fpu",
"and",
"cpu",
"need",
"an",
"8-byte",
"block",
"of",
"memory",
".",
"If",
"any",
"fpu",
"reg",
"is",
"used",
"in",
"the",
"function",
",",
"we",
"allocate",
"such",
"a",
"block",
"here",
",",
"at",
"the",
"bottom",
"of",
"the",
"frame",
",",
"just",
"in",
"case",
"it",
"'s",
"needed",
".",
"If",
"this",
"function",
"is",
"a",
"leaf",
"procedure",
",",
"then",
"we",
"may",
"choose",
"not",
"to",
"do",
"a",
"``",
"save",
"''",
"insn",
".",
"The",
"decision",
"about",
"whether",
"or",
"not",
"to",
"do",
"this",
"is",
"made",
"in",
"regclass.c",
"."
] | [
"pa",
"0",
"0",
"\"\\t.PROC\\n\"",
"\"\\t.CALLINFO FRAME=\"",
"2",
"\",CALLS,SAVE_RP\"",
"\",NO_CALLS\"",
"\",SAVE_SP\"",
"\",ENTRY_GR=%d\"",
"2",
"\",ENTRY_FR=%d\"",
"11",
"\"\\n\\t.ENTRY\\n\"",
"0"
] | pa3 | pa_output_function_prologue | pa | CPU | GCC | 34,646 | 126 | 1 | [] |
[
"<s>",
"BitVector",
"Tile64RegisterInfo",
"::",
"getReservedRegs",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"BitVector",
"Reserved",
"(",
"getNumRegs",
"(",
")",
")",
";",
"Reserved",
".",
"set",
"(",
"T64",
"::",
"R51",
")",
";",
"Reserved",
".",
"set",
"(",
"T64",
"::",
"FramePointer",
")",
";",
"Reserved",
".",
"set",
"(",
"T64",
"::",
"ThreadLocalData",
")",
";",
"Reserved",
".",
"set",
"(",
"T64",
"::",
"StackPointer",
")",
";",
"Reserved",
".",
"set",
"(",
"T64",
"::",
"LinkRegister",
")",
";",
"Reserved",
".",
"set",
"(",
"T64",
"::",
"SN",
")",
";",
"Reserved",
".",
"set",
"(",
"T64",
"::",
"IDN0",
")",
";",
"Reserved",
".",
"set",
"(",
"T64",
"::",
"IDN1",
")",
";",
"Reserved",
".",
"set",
"(",
"T64",
"::",
"UDN0",
")",
";",
"Reserved",
".",
"set",
"(",
"T64",
"::",
"UDN1",
")",
";",
"Reserved",
".",
"set",
"(",
"T64",
"::",
"UDN2",
")",
";",
"Reserved",
".",
"set",
"(",
"T64",
"::",
"UDN3",
")",
";",
"Reserved",
".",
"set",
"(",
"T64",
"::",
"Zero",
")",
";",
"return",
"Reserved",
";",
"}",
"</s>"
] | [
"getReservedRegs",
"-",
"Returns",
"a",
"bitset",
"indexed",
"by",
"physical",
"register",
"number",
"indicating",
"if",
"a",
"register",
"is",
"a",
"special",
"register",
"that",
"has",
"particular",
"uses",
"and",
"should",
"be",
"considered",
"unavailable",
"at",
"all",
"times",
",",
"e.g",
"."
] | [
"Tile64",
"T64::R51",
"T64::FramePointer",
"T64::ThreadLocalData",
"T64::StackPointer",
"T64::LinkRegister",
"T64::SN",
"T64::IDN0",
"T64::IDN1",
"T64::UDN0",
"T64::UDN1",
"T64::UDN2",
"T64::UDN3",
"T64::Zero"
] | Tile64RegisterInfo | getReservedRegs | Tile64 | VLIW | LLVM | 34,647 | 141 | 1 | [] |
[
"<s>",
"MCFragment",
"*",
"findAssociatedFragment",
"(",
")",
"const",
"override",
"{",
"return",
"getSubExpr",
"(",
")",
"->",
"findAssociatedFragment",
"(",
")",
";",
"}",
"</s>"
] | [
"Find",
"the",
"``",
"associated",
"section",
"''",
"for",
"this",
"expression",
",",
"which",
"is",
"currently",
"defined",
"as",
"the",
"absolute",
"section",
"for",
"constants",
",",
"or",
"otherwise",
"the",
"section",
"associated",
"with",
"the",
"first",
"defined",
"symbol",
"in",
"the",
"expression",
"."
] | [
"ARM"
] | ARMMCExpr17 | findAssociatedFragment | ARM | CPU | LLVM | 34,648 | 18 | 1 | [] |
[
"<s>",
"unsigned",
"RISCVTargetLowering",
"::",
"getNumRegistersForCallingConv",
"(",
"LLVMContext",
"&",
"Context",
",",
"CallingConv",
"::",
"ID",
"CC",
",",
"EVT",
"VT",
")",
"const",
"{",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"f16",
"&&",
"Subtarget",
".",
"hasStdExtF",
"(",
")",
"&&",
"!",
"Subtarget",
".",
"hasStdExtZfh",
"(",
")",
")",
"return",
"1",
";",
"return",
"TargetLowering",
"::",
"getNumRegistersForCallingConv",
"(",
"Context",
",",
"CC",
",",
"VT",
")",
";",
"}",
"</s>"
] | [
"Certain",
"targets",
"require",
"unusual",
"breakdowns",
"of",
"certain",
"types",
"."
] | [
"RISCV",
"RISCV",
"MVT::f16",
"1"
] | RISCVISelLowering1 | getNumRegistersForCallingConv | RISCV | CPU | LLVM | 34,649 | 56 | 1 | [] |
[
"<s>",
"void",
"ix86_output_patchable_area",
"(",
"unsigned",
"int",
"patch_area_size",
",",
"bool",
"record_p",
")",
"{",
"default_print_patchable_function_entry",
"(",
"asm_out_file",
",",
"patch_area_size",
",",
"record_p",
")",
";",
"}",
"</s>"
] | [
"Output",
"patchable",
"area",
".",
"NB",
":",
"default_print_patchable_function_entry",
"is",
"n't",
"available",
"in",
"i386.md",
"."
] | [
"i386"
] | i386 | ix86_output_patchable_area | i386 | CPU | GCC | 34,650 | 21 | 1 | [] |
[
"<s>",
"bool",
"has",
"(",
"Register",
"R",
")",
"const",
"{",
"if",
"(",
"!",
"R",
".",
"isVirtual",
"(",
")",
")",
"return",
"true",
";",
"MapType",
"::",
"const_iterator",
"F",
"=",
"Map",
".",
"find",
"(",
"R",
")",
";",
"return",
"F",
"!=",
"Map",
".",
"end",
"(",
")",
";",
"}",
"</s>"
] | [
"Tests",
"whether",
"a",
"library",
"function",
"is",
"available",
"."
] | [
"Hexagon"
] | HexagonConstPropagation11 | has | Hexagon | DSP | LLVM | 34,651 | 42 | 1 | [] |
[
"<s>",
"bool",
"frv_function_value_regno_p",
"(",
"const",
"unsigned",
"int",
"regno",
")",
"{",
"return",
"(",
"regno",
"==",
"RETURN_VALUE_REGNUM",
")",
";",
"}",
"</s>"
] | [
"Implements",
"FUNCTION_VALUE_REGNO_P",
"."
] | [
"frv"
] | frv | frv_function_value_regno_p | frv | VLIW | GCC | 34,652 | 17 | 1 | [] |
[
"<s>",
"unsigned",
"ARM64TTI",
"::",
"getIntImmCost",
"(",
"Intrinsic",
"::",
"ID",
"IID",
",",
"unsigned",
"Idx",
",",
"const",
"APInt",
"&",
"Imm",
",",
"Type",
"*",
"Ty",
")",
"const",
"{",
"assert",
"(",
"Ty",
"->",
"isIntegerTy",
"(",
")",
")",
";",
"unsigned",
"BitSize",
"=",
"Ty",
"->",
"getPrimitiveSizeInBits",
"(",
")",
";",
"if",
"(",
"BitSize",
"==",
"0",
")",
"return",
"TCC_Free",
";",
"switch",
"(",
"IID",
")",
"{",
"default",
":",
"return",
"TCC_Free",
";",
"case",
"Intrinsic",
"::",
"sadd_with_overflow",
":",
"case",
"Intrinsic",
"::",
"uadd_with_overflow",
":",
"case",
"Intrinsic",
"::",
"ssub_with_overflow",
":",
"case",
"Intrinsic",
"::",
"usub_with_overflow",
":",
"case",
"Intrinsic",
"::",
"smul_with_overflow",
":",
"case",
"Intrinsic",
"::",
"umul_with_overflow",
":",
"if",
"(",
"Idx",
"==",
"1",
")",
"{",
"unsigned",
"NumConstants",
"=",
"(",
"BitSize",
"+",
"63",
")",
"/",
"64",
";",
"unsigned",
"Cost",
"=",
"ARM64TTI",
"::",
"getIntImmCost",
"(",
"Imm",
",",
"Ty",
")",
";",
"return",
"(",
"Cost",
"<=",
"NumConstants",
"*",
"TCC_Basic",
")",
"?",
"static_cast",
"<",
"unsigned",
">",
"(",
"TCC_Free",
")",
":",
"Cost",
";",
"}",
"break",
";",
"case",
"Intrinsic",
"::",
"experimental_stackmap",
":",
"if",
"(",
"(",
"Idx",
"<",
"2",
")",
"||",
"(",
"Imm",
".",
"getBitWidth",
"(",
")",
"<=",
"64",
"&&",
"isInt",
"<",
"64",
">",
"(",
"Imm",
".",
"getSExtValue",
"(",
")",
")",
")",
")",
"return",
"TCC_Free",
";",
"break",
";",
"case",
"Intrinsic",
"::",
"experimental_patchpoint_void",
":",
"case",
"Intrinsic",
"::",
"experimental_patchpoint_i64",
":",
"if",
"(",
"(",
"Idx",
"<",
"4",
")",
"||",
"(",
"Imm",
".",
"getBitWidth",
"(",
")",
"<=",
"64",
"&&",
"isInt",
"<",
"64",
">",
"(",
"Imm",
".",
"getSExtValue",
"(",
")",
")",
")",
")",
"return",
"TCC_Free",
";",
"break",
";",
"}",
"return",
"ARM64TTI",
"::",
"getIntImmCost",
"(",
"Imm",
",",
"Ty",
")",
";",
"}",
"</s>"
] | [
"Calculate",
"the",
"cost",
"of",
"materializing",
"a",
"64-bit",
"value",
"."
] | [
"ARM64",
"ARM64TTI::getIntImmCost",
"Intrinsic::ID",
"0",
"Intrinsic::sadd_with_overflow",
"Intrinsic::uadd_with_overflow",
"Intrinsic::ssub_with_overflow",
"Intrinsic::usub_with_overflow",
"Intrinsic::smul_with_overflow",
"Intrinsic::umul_with_overflow",
"1",
"63",
"64",
"ARM64TTI::getIntImmCost",
"Intrinsic::experimental_stackmap",
"2",
"64",
"64",
"Intrinsic::experimental_patchpoint_void",
"Intrinsic::experimental_patchpoint_i64",
"4",
"64",
"64",
"ARM64TTI::getIntImmCost"
] | ARM64TargetTransformInfo | getIntImmCost | ARM64 | CPU | LLVM | 34,653 | 240 | 1 | [] |
[
"<s>",
"static",
"void",
"arm_emit_load_exclusive",
"(",
"machine_mode",
"mode",
",",
"rtx",
"rval",
",",
"rtx",
"mem",
",",
"bool",
"acq",
")",
"{",
"rtx",
"(",
"*",
"gen",
")",
"(",
"rtx",
",",
"rtx",
")",
";",
"if",
"(",
"acq",
")",
"{",
"switch",
"(",
"mode",
")",
"{",
"case",
"E_QImode",
":",
"gen",
"=",
"gen_arm_load_acquire_exclusiveqi",
";",
"break",
";",
"case",
"E_HImode",
":",
"gen",
"=",
"gen_arm_load_acquire_exclusivehi",
";",
"break",
";",
"case",
"E_SImode",
":",
"gen",
"=",
"gen_arm_load_acquire_exclusivesi",
";",
"break",
";",
"case",
"E_DImode",
":",
"gen",
"=",
"gen_arm_load_acquire_exclusivedi",
";",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"}",
"else",
"{",
"switch",
"(",
"mode",
")",
"{",
"case",
"E_QImode",
":",
"gen",
"=",
"gen_arm_load_exclusiveqi",
";",
"break",
";",
"case",
"E_HImode",
":",
"gen",
"=",
"gen_arm_load_exclusivehi",
";",
"break",
";",
"case",
"E_SImode",
":",
"gen",
"=",
"gen_arm_load_exclusivesi",
";",
"break",
";",
"case",
"E_DImode",
":",
"gen",
"=",
"gen_arm_load_exclusivedi",
";",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"}",
"emit_insn",
"(",
"gen",
"(",
"rval",
",",
"mem",
")",
")",
";",
"}",
"</s>"
] | [
"Emit",
"the",
"load-exclusive",
"and",
"store-exclusive",
"instructions",
".",
"Use",
"acquire",
"and",
"release",
"versions",
"if",
"necessary",
"."
] | [
"arm"
] | arm | arm_emit_load_exclusive | arm | CPU | GCC | 34,654 | 144 | 1 | [] |
[
"<s>",
"void",
"SparcFrameLowering",
"::",
"emitPrologue",
"(",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"SparcMachineFunctionInfo",
"*",
"FuncInfo",
"=",
"MF",
".",
"getInfo",
"<",
"SparcMachineFunctionInfo",
">",
"(",
")",
";",
"MachineBasicBlock",
"&",
"MBB",
"=",
"MF",
".",
"front",
"(",
")",
";",
"MachineFrameInfo",
"*",
"MFI",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
";",
"const",
"SparcInstrInfo",
"&",
"TII",
"=",
"*",
"static_cast",
"<",
"const",
"SparcInstrInfo",
"*",
">",
"(",
"MF",
".",
"getTarget",
"(",
")",
".",
"getInstrInfo",
"(",
")",
")",
";",
"MachineBasicBlock",
"::",
"iterator",
"MBBI",
"=",
"MBB",
".",
"begin",
"(",
")",
";",
"DebugLoc",
"dl",
"=",
"MBBI",
"!=",
"MBB",
".",
"end",
"(",
")",
"?",
"MBBI",
"->",
"getDebugLoc",
"(",
")",
":",
"DebugLoc",
"(",
")",
";",
"int",
"NumBytes",
"=",
"(",
"int",
")",
"MFI",
"->",
"getStackSize",
"(",
")",
";",
"unsigned",
"SAVEri",
"=",
"SP",
"::",
"SAVEri",
";",
"unsigned",
"SAVErr",
"=",
"SP",
"::",
"SAVErr",
";",
"if",
"(",
"FuncInfo",
"->",
"isLeafProc",
"(",
")",
")",
"{",
"if",
"(",
"NumBytes",
"==",
"0",
")",
"return",
";",
"SAVEri",
"=",
"SP",
"::",
"ADDri",
";",
"SAVErr",
"=",
"SP",
"::",
"ADDrr",
";",
"}",
"NumBytes",
"=",
"-",
"SubTarget",
".",
"getAdjustedFrameSize",
"(",
"NumBytes",
")",
";",
"emitSPAdjustment",
"(",
"MF",
",",
"MBB",
",",
"MBBI",
",",
"NumBytes",
",",
"SAVErr",
",",
"SAVEri",
")",
";",
"MachineModuleInfo",
"&",
"MMI",
"=",
"MF",
".",
"getMMI",
"(",
")",
";",
"const",
"MCRegisterInfo",
"*",
"MRI",
"=",
"MMI",
".",
"getContext",
"(",
")",
".",
"getRegisterInfo",
"(",
")",
";",
"MCSymbol",
"*",
"FrameLabel",
"=",
"MMI",
".",
"getContext",
"(",
")",
".",
"CreateTempSymbol",
"(",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"MBBI",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"SP",
"::",
"PROLOG_LABEL",
")",
")",
".",
"addSym",
"(",
"FrameLabel",
")",
";",
"unsigned",
"regFP",
"=",
"MRI",
"->",
"getDwarfRegNum",
"(",
"SP",
"::",
"I6",
",",
"true",
")",
";",
"MMI",
".",
"addFrameInst",
"(",
"MCCFIInstruction",
"::",
"createDefCfaRegister",
"(",
"FrameLabel",
",",
"regFP",
")",
")",
";",
"MMI",
".",
"addFrameInst",
"(",
"MCCFIInstruction",
"::",
"createWindowSave",
"(",
"FrameLabel",
")",
")",
";",
"unsigned",
"regInRA",
"=",
"MRI",
"->",
"getDwarfRegNum",
"(",
"SP",
"::",
"I7",
",",
"true",
")",
";",
"unsigned",
"regOutRA",
"=",
"MRI",
"->",
"getDwarfRegNum",
"(",
"SP",
"::",
"O7",
",",
"true",
")",
";",
"MMI",
".",
"addFrameInst",
"(",
"MCCFIInstruction",
"::",
"createRegister",
"(",
"FrameLabel",
",",
"regOutRA",
",",
"regInRA",
")",
")",
";",
"}",
"</s>"
] | [
"emitProlog/emitEpilog",
"-",
"These",
"methods",
"insert",
"prolog",
"and",
"epilog",
"code",
"into",
"the",
"function",
"."
] | [
"Sparc",
"Sparc",
"Sparc",
"Sparc",
"Sparc",
"Sparc",
"SP::SAVEri",
"SP::SAVErr",
"0",
"SP::ADDri",
"SP::ADDrr",
"SP",
"SP::PROLOG_LABEL",
"SP::I6",
"SP::I7",
"SP::O7"
] | SparcFrameLowering44 | emitPrologue | Sparc | CPU | LLVM | 34,655 | 328 | 1 | [] |
[
"<s>",
"void",
"BPFPassConfig",
"::",
"addMachineSSAOptimization",
"(",
")",
"{",
"addPass",
"(",
"createBPFMISimplifyPatchablePass",
"(",
")",
")",
";",
"TargetPassConfig",
"::",
"addMachineSSAOptimization",
"(",
")",
";",
"const",
"BPFSubtarget",
"*",
"Subtarget",
"=",
"getBPFTargetMachine",
"(",
")",
".",
"getSubtargetImpl",
"(",
")",
";",
"if",
"(",
"!",
"DisableMIPeephole",
")",
"{",
"if",
"(",
"Subtarget",
"->",
"getHasAlu32",
"(",
")",
")",
"addPass",
"(",
"createBPFMIPeepholePass",
"(",
")",
")",
";",
"addPass",
"(",
"createBPFMIPeepholeTruncElimPass",
"(",
")",
")",
";",
"}",
"}",
"</s>"
] | [
"Methods",
"with",
"trivial",
"inline",
"returns",
"are",
"convenient",
"points",
"in",
"the",
"common",
"codegen",
"pass",
"pipeline",
"where",
"targets",
"may",
"insert",
"passes",
"."
] | [
"BPF",
"BPF",
"BPF",
"BPF",
"BPF",
"BPF",
"BPF"
] | BPFTargetMachine | addMachineSSAOptimization | BPF | Virtual ISA | LLVM | 34,656 | 63 | 1 | [] |
[
"<s>",
"DecodeStatus",
"OR1KDisassembler",
"::",
"getInstruction",
"(",
"MCInst",
"&",
"Instr",
",",
"uint64_t",
"&",
"Size",
",",
"ArrayRef",
"<",
"uint8_t",
">",
"Bytes",
",",
"uint64_t",
"Address",
",",
"raw_ostream",
"&",
"vStream",
",",
"raw_ostream",
"&",
"cStream",
")",
"const",
"{",
"uint32_t",
"Insn",
";",
"DecodeStatus",
"Result",
"=",
"readInstruction32",
"(",
"Bytes",
",",
"Address",
",",
"Size",
",",
"Insn",
")",
";",
"if",
"(",
"Result",
"==",
"MCDisassembler",
"::",
"Fail",
")",
"return",
"MCDisassembler",
"::",
"Fail",
";",
"Result",
"=",
"decodeInstruction",
"(",
"DecoderTableOR1K32",
",",
"Instr",
",",
"Insn",
",",
"Address",
",",
"this",
",",
"STI",
")",
";",
"if",
"(",
"Result",
"!=",
"MCDisassembler",
"::",
"Fail",
")",
"{",
"Size",
"=",
"4",
";",
"return",
"Result",
";",
"}",
"return",
"MCDisassembler",
"::",
"Fail",
";",
"}",
"</s>"
] | [
"Returns",
"the",
"disassembly",
"of",
"a",
"single",
"instruction",
"."
] | [
"OR1K",
"OR1K",
"OR1K",
"4"
] | OR1KDisassembler1 | getInstruction | OR1K | CPU | LLVM | 34,657 | 102 | 1 | [] |
[
"<s>",
"void",
"Thumb2InstrInfo",
"::",
"loadRegFromStackSlot",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"I",
",",
"unsigned",
"DestReg",
",",
"int",
"FI",
",",
"const",
"TargetRegisterClass",
"*",
"RC",
",",
"const",
"TargetRegisterInfo",
"*",
"TRI",
")",
"const",
"{",
"if",
"(",
"RC",
"==",
"ARM",
"::",
"GPRRegisterClass",
"||",
"RC",
"==",
"ARM",
"::",
"tGPRRegisterClass",
"||",
"RC",
"==",
"ARM",
"::",
"tcGPRRegisterClass",
"||",
"RC",
"==",
"ARM",
"::",
"rGPRRegisterClass",
"||",
"RC",
"==",
"ARM",
"::",
"GPRnopcRegisterClass",
")",
"{",
"DebugLoc",
"DL",
";",
"if",
"(",
"I",
"!=",
"MBB",
".",
"end",
"(",
")",
")",
"DL",
"=",
"I",
"->",
"getDebugLoc",
"(",
")",
";",
"MachineFunction",
"&",
"MF",
"=",
"*",
"MBB",
".",
"getParent",
"(",
")",
";",
"MachineFrameInfo",
"&",
"MFI",
"=",
"*",
"MF",
".",
"getFrameInfo",
"(",
")",
";",
"MachineMemOperand",
"*",
"MMO",
"=",
"MF",
".",
"getMachineMemOperand",
"(",
"MachinePointerInfo",
"::",
"getFixedStack",
"(",
"FI",
")",
",",
"MachineMemOperand",
"::",
"MOLoad",
",",
"MFI",
".",
"getObjectSize",
"(",
"FI",
")",
",",
"MFI",
".",
"getObjectAlignment",
"(",
"FI",
")",
")",
";",
"AddDefaultPred",
"(",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"ARM",
"::",
"t2LDRi12",
")",
",",
"DestReg",
")",
".",
"addFrameIndex",
"(",
"FI",
")",
".",
"addImm",
"(",
"0",
")",
".",
"addMemOperand",
"(",
"MMO",
")",
")",
";",
"return",
";",
"}",
"ARMBaseInstrInfo",
"::",
"loadRegFromStackSlot",
"(",
"MBB",
",",
"I",
",",
"DestReg",
",",
"FI",
",",
"RC",
",",
"TRI",
")",
";",
"}",
"</s>"
] | [
"Load",
"the",
"specified",
"register",
"of",
"the",
"given",
"register",
"class",
"from",
"the",
"specified",
"stack",
"frame",
"index",
"."
] | [
"ARM",
"ARM::GPRRegisterClass",
"ARM::tGPRRegisterClass",
"ARM::tcGPRRegisterClass",
"ARM::rGPRRegisterClass",
"ARM::GPRnopcRegisterClass",
"ARM::t2LDRi12",
"0",
"ARM"
] | Thumb2InstrInfo41 | loadRegFromStackSlot | ARM | CPU | LLVM | 34,658 | 199 | 1 | [] |
[
"<s>",
"static",
"MCSymbol",
"*",
"GetSymbolFromOperand",
"(",
"const",
"MachineOperand",
"&",
"MO",
",",
"AsmPrinter",
"&",
"AP",
")",
"{",
"const",
"TargetMachine",
"&",
"TM",
"=",
"AP",
".",
"TM",
";",
"Mangler",
"*",
"Mang",
"=",
"AP",
".",
"Mang",
";",
"const",
"DataLayout",
"*",
"DL",
"=",
"TM",
".",
"getDataLayout",
"(",
")",
";",
"MCContext",
"&",
"Ctx",
"=",
"AP",
".",
"OutContext",
";",
"SmallString",
"<",
"128",
">",
"Name",
";",
"StringRef",
"Suffix",
";",
"if",
"(",
"MO",
".",
"getTargetFlags",
"(",
")",
"==",
"PPCII",
"::",
"MO_DARWIN_STUB",
")",
"Suffix",
"=",
"\"$stub\"",
";",
"else",
"if",
"(",
"MO",
".",
"getTargetFlags",
"(",
")",
"&",
"PPCII",
"::",
"MO_NLP_FLAG",
")",
"Suffix",
"=",
"\"$non_lazy_ptr\"",
";",
"if",
"(",
"!",
"Suffix",
".",
"empty",
"(",
")",
")",
"Name",
"+=",
"DL",
"->",
"getPrivateGlobalPrefix",
"(",
")",
";",
"unsigned",
"PrefixLen",
"=",
"Name",
".",
"size",
"(",
")",
";",
"if",
"(",
"!",
"MO",
".",
"isGlobal",
"(",
")",
")",
"{",
"assert",
"(",
"MO",
".",
"isSymbol",
"(",
")",
"&&",
"\"Isn't a symbol reference\"",
")",
";",
"Mang",
"->",
"getNameWithPrefix",
"(",
"Name",
",",
"MO",
".",
"getSymbolName",
"(",
")",
")",
";",
"}",
"else",
"{",
"const",
"GlobalValue",
"*",
"GV",
"=",
"MO",
".",
"getGlobal",
"(",
")",
";",
"TM",
".",
"getNameWithPrefix",
"(",
"Name",
",",
"GV",
",",
"*",
"Mang",
")",
";",
"}",
"unsigned",
"OrigLen",
"=",
"Name",
".",
"size",
"(",
")",
"-",
"PrefixLen",
";",
"Name",
"+=",
"Suffix",
";",
"MCSymbol",
"*",
"Sym",
"=",
"Ctx",
".",
"GetOrCreateSymbol",
"(",
"Name",
".",
"str",
"(",
")",
")",
";",
"StringRef",
"OrigName",
"=",
"StringRef",
"(",
"Name",
")",
".",
"substr",
"(",
"PrefixLen",
",",
"OrigLen",
")",
";",
"if",
"(",
"MO",
".",
"getTargetFlags",
"(",
")",
"==",
"PPCII",
"::",
"MO_DARWIN_STUB",
")",
"{",
"MachineModuleInfoImpl",
"::",
"StubValueTy",
"&",
"StubSym",
"=",
"getMachOMMI",
"(",
"AP",
")",
".",
"getFnStubEntry",
"(",
"Sym",
")",
";",
"if",
"(",
"StubSym",
".",
"getPointer",
"(",
")",
")",
"return",
"Sym",
";",
"if",
"(",
"MO",
".",
"isGlobal",
"(",
")",
")",
"{",
"StubSym",
"=",
"MachineModuleInfoImpl",
"::",
"StubValueTy",
"(",
"AP",
".",
"getSymbol",
"(",
"MO",
".",
"getGlobal",
"(",
")",
")",
",",
"!",
"MO",
".",
"getGlobal",
"(",
")",
"->",
"hasInternalLinkage",
"(",
")",
")",
";",
"}",
"else",
"{",
"StubSym",
"=",
"MachineModuleInfoImpl",
"::",
"StubValueTy",
"(",
"Ctx",
".",
"GetOrCreateSymbol",
"(",
"OrigName",
")",
",",
"false",
")",
";",
"}",
"return",
"Sym",
";",
"}",
"if",
"(",
"MO",
".",
"getTargetFlags",
"(",
")",
"&",
"PPCII",
"::",
"MO_NLP_FLAG",
")",
"{",
"MachineModuleInfoMachO",
"&",
"MachO",
"=",
"getMachOMMI",
"(",
"AP",
")",
";",
"MachineModuleInfoImpl",
"::",
"StubValueTy",
"&",
"StubSym",
"=",
"(",
"MO",
".",
"getTargetFlags",
"(",
")",
"&",
"PPCII",
"::",
"MO_NLP_HIDDEN_FLAG",
")",
"?",
"MachO",
".",
"getHiddenGVStubEntry",
"(",
"Sym",
")",
":",
"MachO",
".",
"getGVStubEntry",
"(",
"Sym",
")",
";",
"if",
"(",
"!",
"StubSym",
".",
"getPointer",
"(",
")",
")",
"{",
"assert",
"(",
"MO",
".",
"isGlobal",
"(",
")",
"&&",
"\"Extern symbol not handled yet\"",
")",
";",
"StubSym",
"=",
"MachineModuleInfoImpl",
"::",
"StubValueTy",
"(",
"AP",
".",
"getSymbol",
"(",
"MO",
".",
"getGlobal",
"(",
")",
")",
",",
"!",
"MO",
".",
"getGlobal",
"(",
")",
"->",
"hasInternalLinkage",
"(",
")",
")",
";",
"}",
"return",
"Sym",
";",
"}",
"return",
"Sym",
";",
"}",
"</s>"
] | [
"Lower",
"an",
"MO_GlobalAddress",
"or",
"MO_ExternalSymbol",
"operand",
"to",
"an",
"MCSymbol",
"."
] | [
"PowerPC",
"128",
"PPCII::MO_DARWIN_STUB",
"\"$stub\"",
"PPCII::MO_NLP_FLAG",
"\"$non_lazy_ptr\"",
"\"Isn't a symbol reference\"",
"PPCII::MO_DARWIN_STUB",
"PPCII::MO_NLP_FLAG",
"PPCII::MO_NLP_HIDDEN_FLAG",
"\"Extern symbol not handled yet\""
] | PPCMCInstLower1 | GetSymbolFromOperand | PowerPC | CPU | LLVM | 34,659 | 440 | 1 | [] |
[
"<s>",
"rtx",
"sfunc_uses_reg",
"(",
"rtx_insn",
"*",
"insn",
")",
"{",
"int",
"i",
";",
"rtx",
"pattern",
",",
"part",
",",
"reg_part",
",",
"reg",
";",
"if",
"(",
"!",
"NONJUMP_INSN_P",
"(",
"insn",
")",
")",
"return",
"NULL_RTX",
";",
"pattern",
"=",
"PATTERN",
"(",
"insn",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"pattern",
")",
"!=",
"PARALLEL",
"||",
"get_attr_type",
"(",
"insn",
")",
"!=",
"TYPE_SFUNC",
")",
"return",
"NULL_RTX",
";",
"for",
"(",
"reg_part",
"=",
"NULL_RTX",
",",
"i",
"=",
"XVECLEN",
"(",
"pattern",
",",
"0",
")",
"-",
"1",
";",
"i",
">=",
"1",
";",
"i",
"--",
")",
"{",
"part",
"=",
"XVECEXP",
"(",
"pattern",
",",
"0",
",",
"i",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"part",
")",
"==",
"USE",
"&&",
"GET_MODE",
"(",
"XEXP",
"(",
"part",
",",
"0",
")",
")",
"==",
"SImode",
")",
"reg_part",
"=",
"part",
";",
"}",
"if",
"(",
"!",
"reg_part",
")",
"return",
"NULL_RTX",
";",
"reg",
"=",
"XEXP",
"(",
"reg_part",
",",
"0",
")",
";",
"for",
"(",
"i",
"=",
"XVECLEN",
"(",
"pattern",
",",
"0",
")",
"-",
"1",
";",
"i",
">=",
"0",
";",
"i",
"--",
")",
"{",
"part",
"=",
"XVECEXP",
"(",
"pattern",
",",
"0",
",",
"i",
")",
";",
"if",
"(",
"part",
"==",
"reg_part",
"||",
"GET_CODE",
"(",
"part",
")",
"==",
"CLOBBER",
")",
"continue",
";",
"if",
"(",
"reg_mentioned_p",
"(",
"reg",
",",
"(",
"(",
"GET_CODE",
"(",
"part",
")",
"==",
"SET",
"&&",
"REG_P",
"(",
"SET_DEST",
"(",
"part",
")",
")",
")",
"?",
"SET_SRC",
"(",
"part",
")",
":",
"part",
")",
")",
")",
"return",
"NULL_RTX",
";",
"}",
"return",
"reg",
";",
"}",
"</s>"
] | [
"If",
"the",
"instruction",
"INSN",
"is",
"implemented",
"by",
"a",
"special",
"function",
",",
"and",
"we",
"can",
"positively",
"find",
"the",
"register",
"that",
"is",
"used",
"to",
"call",
"the",
"sfunc",
",",
"and",
"this",
"register",
"is",
"not",
"used",
"anywhere",
"else",
"in",
"this",
"instruction",
"-",
"except",
"as",
"the",
"destination",
"of",
"a",
"set",
",",
"return",
"this",
"register",
";",
"else",
",",
"return",
"0",
"."
] | [
"sh",
"0",
"1",
"1",
"0",
"0",
"0",
"0",
"1",
"0",
"0"
] | sh4 | sfunc_uses_reg | sh | CPU | GCC | 34,660 | 224 | 1 | [] |
[
"<s>",
"unsigned",
"Z80oldRegisterInfo",
"::",
"getRegPressureLimit",
"(",
"const",
"TargetRegisterClass",
"*",
"RC",
",",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"return",
"3",
";",
"const",
"Z80oldFrameLowering",
"*",
"TFI",
"=",
"getFrameLowering",
"(",
"MF",
")",
";",
"switch",
"(",
"RC",
"->",
"getID",
"(",
")",
")",
"{",
"default",
":",
"return",
"0",
";",
"case",
"Z80old",
"::",
"R16RegClassID",
":",
"return",
"2",
";",
"}",
"}",
"</s>"
] | [
"Return",
"the",
"register",
"pressure",
"``",
"high",
"water",
"mark",
"''",
"for",
"the",
"specific",
"register",
"class",
"."
] | [
"Z80old",
"Z80old",
"3",
"Z80old",
"0",
"Z80old::R16RegClassID",
"2"
] | Z80oldRegisterInfo | getRegPressureLimit | Z80old | MPU | LLVM | 34,661 | 53 | 1 | [] |
[
"<s>",
"bool",
"X86InsertPrefetch",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"if",
"(",
"!",
"Reader",
")",
"return",
"false",
";",
"const",
"FunctionSamples",
"*",
"Samples",
"=",
"Reader",
"->",
"getSamplesFor",
"(",
"MF",
".",
"getFunction",
"(",
")",
")",
";",
"if",
"(",
"!",
"Samples",
")",
"return",
"false",
";",
"bool",
"Changed",
"=",
"false",
";",
"const",
"TargetInstrInfo",
"*",
"TII",
"=",
"MF",
".",
"getSubtarget",
"(",
")",
".",
"getInstrInfo",
"(",
")",
";",
"SmallVector",
"<",
"PrefetchInfo",
",",
"4",
">",
"Prefetches",
";",
"for",
"(",
"auto",
"&",
"MBB",
":",
"MF",
")",
"{",
"for",
"(",
"auto",
"MI",
"=",
"MBB",
".",
"instr_begin",
"(",
")",
";",
"MI",
"!=",
"MBB",
".",
"instr_end",
"(",
")",
";",
")",
"{",
"auto",
"Current",
"=",
"MI",
";",
"++",
"MI",
";",
"int",
"Offset",
"=",
"X86II",
"::",
"getMemoryOperandNo",
"(",
"Current",
"->",
"getDesc",
"(",
")",
".",
"TSFlags",
")",
";",
"if",
"(",
"Offset",
"<",
"0",
")",
"continue",
";",
"unsigned",
"Bias",
"=",
"X86II",
"::",
"getOperandBias",
"(",
"Current",
"->",
"getDesc",
"(",
")",
")",
";",
"int",
"MemOpOffset",
"=",
"Offset",
"+",
"Bias",
";",
"if",
"(",
"!",
"IsMemOpCompatibleWithPrefetch",
"(",
"*",
"Current",
",",
"MemOpOffset",
")",
")",
"continue",
";",
"Prefetches",
".",
"clear",
"(",
")",
";",
"if",
"(",
"!",
"findPrefetchInfo",
"(",
"Samples",
",",
"*",
"Current",
",",
"Prefetches",
")",
")",
"continue",
";",
"assert",
"(",
"!",
"Prefetches",
".",
"empty",
"(",
")",
"&&",
"\"The Prefetches vector should contain at least a value if \"",
"\"findPrefetchInfo returned true.\"",
")",
";",
"for",
"(",
"auto",
"&",
"PrefInfo",
":",
"Prefetches",
")",
"{",
"unsigned",
"PFetchInstrID",
"=",
"PrefInfo",
".",
"InstructionID",
";",
"int64_t",
"Delta",
"=",
"PrefInfo",
".",
"Delta",
";",
"const",
"MCInstrDesc",
"&",
"Desc",
"=",
"TII",
"->",
"get",
"(",
"PFetchInstrID",
")",
";",
"MachineInstr",
"*",
"PFetch",
"=",
"MF",
".",
"CreateMachineInstr",
"(",
"Desc",
",",
"Current",
"->",
"getDebugLoc",
"(",
")",
",",
"true",
")",
";",
"MachineInstrBuilder",
"MIB",
"(",
"MF",
",",
"PFetch",
")",
";",
"static_assert",
"(",
"X86",
"::",
"AddrBaseReg",
"==",
"0",
"&&",
"X86",
"::",
"AddrScaleAmt",
"==",
"1",
"&&",
"X86",
"::",
"AddrIndexReg",
"==",
"2",
"&&",
"X86",
"::",
"AddrDisp",
"==",
"3",
"&&",
"X86",
"::",
"AddrSegmentReg",
"==",
"4",
",",
"\"Unexpected change in X86 operand offset order.\"",
")",
";",
"MIB",
".",
"addReg",
"(",
"Current",
"->",
"getOperand",
"(",
"MemOpOffset",
"+",
"X86",
"::",
"AddrBaseReg",
")",
".",
"getReg",
"(",
")",
")",
".",
"addImm",
"(",
"Current",
"->",
"getOperand",
"(",
"MemOpOffset",
"+",
"X86",
"::",
"AddrScaleAmt",
")",
".",
"getImm",
"(",
")",
")",
".",
"addReg",
"(",
"Current",
"->",
"getOperand",
"(",
"MemOpOffset",
"+",
"X86",
"::",
"AddrIndexReg",
")",
".",
"getReg",
"(",
")",
")",
".",
"addImm",
"(",
"Current",
"->",
"getOperand",
"(",
"MemOpOffset",
"+",
"X86",
"::",
"AddrDisp",
")",
".",
"getImm",
"(",
")",
"+",
"Delta",
")",
".",
"addReg",
"(",
"Current",
"->",
"getOperand",
"(",
"MemOpOffset",
"+",
"X86",
"::",
"AddrSegmentReg",
")",
".",
"getReg",
"(",
")",
")",
";",
"if",
"(",
"!",
"Current",
"->",
"memoperands_empty",
"(",
")",
")",
"{",
"MachineMemOperand",
"*",
"CurrentOp",
"=",
"*",
"(",
"Current",
"->",
"memoperands_begin",
"(",
")",
")",
";",
"MIB",
".",
"addMemOperand",
"(",
"MF",
".",
"getMachineMemOperand",
"(",
"CurrentOp",
",",
"CurrentOp",
"->",
"getOffset",
"(",
")",
"+",
"Delta",
",",
"CurrentOp",
"->",
"getSize",
"(",
")",
")",
")",
";",
"}",
"MBB",
".",
"insert",
"(",
"Current",
",",
"PFetch",
")",
";",
"Changed",
"=",
"true",
";",
"}",
"}",
"}",
"return",
"Changed",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"X86",
"X86",
"4",
"X86II::getMemoryOperandNo",
"0",
"X86II::getOperandBias",
"\"The Prefetches vector should contain at least a value if \"",
"\"findPrefetchInfo returned true.\"",
"X86::AddrBaseReg",
"0",
"X86::AddrScaleAmt",
"1",
"X86::AddrIndexReg",
"2",
"X86::AddrDisp",
"3",
"X86::AddrSegmentReg",
"4",
"\"Unexpected change in X86 operand offset order.\"",
"X86::AddrBaseReg",
"X86::AddrScaleAmt",
"X86::AddrIndexReg",
"X86::AddrDisp",
"X86::AddrSegmentReg"
] | X86InsertPrefetch3 | runOnMachineFunction | X86 | CPU | LLVM | 34,662 | 461 | 1 | [] |
[
"<s>",
"void",
"applyFixup",
"(",
"const",
"MCFixup",
"&",
"Fixup",
",",
"char",
"*",
"Data",
",",
"unsigned",
"DataSize",
",",
"uint64_t",
"Value",
")",
"const",
"{",
"MCFixupKind",
"Kind",
"=",
"Fixup",
".",
"getKind",
"(",
")",
";",
"Value",
"=",
"adjustFixupValue",
"(",
"(",
"unsigned",
")",
"Kind",
",",
"Value",
")",
";",
"if",
"(",
"!",
"Value",
")",
"return",
";",
"unsigned",
"Offset",
"=",
"Fixup",
".",
"getOffset",
"(",
")",
";",
"unsigned",
"NumBytes",
"=",
"(",
"(",
"getFixupKindInfo",
"(",
"Kind",
")",
".",
"TargetSize",
"-",
"1",
")",
"/",
"8",
")",
"+",
"1",
";",
"uint64_t",
"Mask",
"=",
"(",
"(",
"uint64_t",
")",
"1",
"<<",
"getFixupKindInfo",
"(",
"Kind",
")",
".",
"TargetSize",
")",
"-",
"1",
";",
"uint64_t",
"CurVal",
"=",
"0",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"!=",
"NumBytes",
";",
"++",
"i",
")",
"CurVal",
"|=",
"(",
"(",
"uint8_t",
")",
"Data",
"[",
"Offset",
"+",
"i",
"]",
")",
"<<",
"(",
"i",
"*",
"8",
")",
";",
"CurVal",
"=",
"(",
"CurVal",
"&",
"~",
"Mask",
")",
"|",
"(",
"(",
"CurVal",
"+",
"Value",
")",
"&",
"Mask",
")",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"!=",
"NumBytes",
";",
"++",
"i",
")",
"{",
"Data",
"[",
"Offset",
"+",
"i",
"]",
"=",
"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",
"1",
"8",
"1",
"1",
"1",
"0",
"0",
"8",
"0",
"8",
"0xff"
] | MipsAsmBackend43 | applyFixup | Mips | CPU | LLVM | 34,663 | 193 | 1 | [] |
[
"<s>",
"void",
"print",
"(",
"raw_ostream",
"&",
"OS",
")",
"const",
"override",
"{",
"switch",
"(",
"Kind",
")",
"{",
"case",
"OpKind_Imm",
":",
"OS",
"<<",
"\"Imm: \"",
"<<",
"getImm",
"(",
")",
"<<",
"\"\\n\"",
";",
"break",
";",
"case",
"OpKind_Token",
":",
"OS",
"<<",
"\"Token: \"",
"<<",
"getToken",
"(",
")",
"<<",
"\"\\n\"",
";",
"break",
";",
"case",
"OpKind_Reg",
":",
"OS",
"<<",
"\"Reg: \"",
";",
"OS",
"<<",
"\"%r\"",
";",
"OS",
"<<",
"\"\\n\"",
";",
"break",
";",
"}",
"}",
"</s>"
] | [
"print",
"-",
"Print",
"a",
"debug",
"representation",
"of",
"the",
"operand",
"to",
"the",
"given",
"stream",
"."
] | [
"M88k",
"\"Imm: \"",
"\"\\n\"",
"\"Token: \"",
"\"\\n\"",
"\"Reg: \"",
"\"%r\"",
"\"\\n\""
] | M88kAsmParser | print | M88k | MPU | LLVM | 34,664 | 64 | 1 | [] |
[
"<s>",
"void",
"Thumb1RegisterInfo",
"::",
"resolveFrameIndex",
"(",
"MachineInstr",
"&",
"MI",
",",
"unsigned",
"BaseReg",
",",
"int64_t",
"Offset",
")",
"const",
"{",
"const",
"ARMBaseInstrInfo",
"&",
"TII",
"=",
"*",
"static_cast",
"<",
"const",
"ARMBaseInstrInfo",
"*",
">",
"(",
"MI",
".",
"getParent",
"(",
")",
"->",
"getParent",
"(",
")",
"->",
"getTarget",
"(",
")",
".",
"getInstrInfo",
"(",
")",
")",
";",
"int",
"Off",
"=",
"Offset",
";",
"unsigned",
"i",
"=",
"0",
";",
"while",
"(",
"!",
"MI",
".",
"getOperand",
"(",
"i",
")",
".",
"isFI",
"(",
")",
")",
"{",
"++",
"i",
";",
"assert",
"(",
"i",
"<",
"MI",
".",
"getNumOperands",
"(",
")",
"&&",
"\"Instr doesn't have FrameIndex operand!\"",
")",
";",
"}",
"bool",
"Done",
"=",
"rewriteFrameIndex",
"(",
"MI",
",",
"i",
",",
"BaseReg",
",",
"Off",
",",
"TII",
")",
";",
"assert",
"(",
"Done",
"&&",
"\"Unable to resolve frame index!\"",
")",
";",
"(",
"void",
")",
"Done",
";",
"}",
"</s>"
] | [
"Resolve",
"a",
"frame",
"index",
"operand",
"of",
"an",
"instruction",
"to",
"reference",
"the",
"indicated",
"base",
"register",
"plus",
"offset",
"instead",
"."
] | [
"ARM",
"ARM",
"ARM",
"0",
"\"Instr doesn't have FrameIndex operand!\"",
"\"Unable to resolve frame index!\""
] | Thumb1RegisterInfo1 | resolveFrameIndex | ARM | CPU | LLVM | 34,665 | 120 | 1 | [] |
[
"<s>",
"void",
"aarch64_split_atomic_op",
"(",
"enum",
"rtx_code",
"code",
",",
"rtx",
"old_out",
",",
"rtx",
"new_out",
",",
"rtx",
"mem",
",",
"rtx",
"value",
",",
"rtx",
"model_rtx",
",",
"rtx",
"cond",
")",
"{",
"machine_mode",
"mode",
"=",
"GET_MODE",
"(",
"mem",
")",
";",
"machine_mode",
"wmode",
"=",
"(",
"mode",
"==",
"DImode",
"?",
"DImode",
":",
"SImode",
")",
";",
"const",
"enum",
"memmodel",
"model",
"=",
"memmodel_from_int",
"(",
"INTVAL",
"(",
"model_rtx",
")",
")",
";",
"const",
"bool",
"is_sync",
"=",
"is_mm_sync",
"(",
"model",
")",
";",
"rtx_code_label",
"*",
"label",
";",
"rtx",
"x",
";",
"label",
"=",
"gen_label_rtx",
"(",
")",
";",
"emit_label",
"(",
"label",
")",
";",
"if",
"(",
"new_out",
")",
"new_out",
"=",
"gen_lowpart",
"(",
"wmode",
",",
"new_out",
")",
";",
"if",
"(",
"old_out",
")",
"old_out",
"=",
"gen_lowpart",
"(",
"wmode",
",",
"old_out",
")",
";",
"else",
"old_out",
"=",
"new_out",
";",
"value",
"=",
"simplify_gen_subreg",
"(",
"wmode",
",",
"value",
",",
"mode",
",",
"0",
")",
";",
"if",
"(",
"is_sync",
")",
"aarch64_emit_load_exclusive",
"(",
"mode",
",",
"old_out",
",",
"mem",
",",
"GEN_INT",
"(",
"MEMMODEL_RELAXED",
")",
")",
";",
"else",
"aarch64_emit_load_exclusive",
"(",
"mode",
",",
"old_out",
",",
"mem",
",",
"model_rtx",
")",
";",
"switch",
"(",
"code",
")",
"{",
"case",
"SET",
":",
"new_out",
"=",
"value",
";",
"break",
";",
"case",
"NOT",
":",
"x",
"=",
"gen_rtx_AND",
"(",
"wmode",
",",
"old_out",
",",
"value",
")",
";",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"new_out",
",",
"x",
")",
")",
";",
"x",
"=",
"gen_rtx_NOT",
"(",
"wmode",
",",
"new_out",
")",
";",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"new_out",
",",
"x",
")",
")",
";",
"break",
";",
"case",
"MINUS",
":",
"if",
"(",
"CONST_INT_P",
"(",
"value",
")",
")",
"{",
"value",
"=",
"GEN_INT",
"(",
"-",
"INTVAL",
"(",
"value",
")",
")",
";",
"code",
"=",
"PLUS",
";",
"}",
"default",
":",
"x",
"=",
"gen_rtx_fmt_ee",
"(",
"code",
",",
"wmode",
",",
"old_out",
",",
"value",
")",
";",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"new_out",
",",
"x",
")",
")",
";",
"break",
";",
"}",
"aarch64_emit_store_exclusive",
"(",
"mode",
",",
"cond",
",",
"mem",
",",
"gen_lowpart",
"(",
"mode",
",",
"new_out",
")",
",",
"model_rtx",
")",
";",
"x",
"=",
"gen_rtx_NE",
"(",
"VOIDmode",
",",
"cond",
",",
"const0_rtx",
")",
";",
"x",
"=",
"gen_rtx_IF_THEN_ELSE",
"(",
"VOIDmode",
",",
"x",
",",
"gen_rtx_LABEL_REF",
"(",
"Pmode",
",",
"label",
")",
",",
"pc_rtx",
")",
";",
"aarch64_emit_unlikely_jump",
"(",
"gen_rtx_SET",
"(",
"pc_rtx",
",",
"x",
")",
")",
";",
"if",
"(",
"is_sync",
")",
"aarch64_emit_post_barrier",
"(",
"model",
")",
";",
"}",
"</s>"
] | [
"Split",
"an",
"atomic",
"operation",
"."
] | [
"aarch64",
"0"
] | aarch643 | aarch64_split_atomic_op | aarch64 | CPU | GCC | 34,666 | 342 | 1 | [] |
[
"<s>",
"bool",
"sh_symbian_dllexport_p",
"(",
"tree",
"decl",
")",
"{",
"tree",
"exp",
";",
"if",
"(",
"TREE_CODE",
"(",
"decl",
")",
"!=",
"VAR_DECL",
"&&",
"TREE_CODE",
"(",
"decl",
")",
"!=",
"FUNCTION_DECL",
")",
"return",
"false",
";",
"exp",
"=",
"lookup_attribute",
"(",
"\"dllexport\"",
",",
"DECL_ATTRIBUTES",
"(",
"decl",
")",
")",
";",
"if",
"(",
"exp",
"==",
"NULL",
")",
"{",
"tree",
"class",
"=",
"sh_symbian_associated_type",
"(",
"decl",
")",
";",
"if",
"(",
"class",
")",
"exp",
"=",
"lookup_attribute",
"(",
"\"dllexport\"",
",",
"TYPE_ATTRIBUTES",
"(",
"class",
")",
")",
";",
"}",
"if",
"(",
"exp",
")",
"{",
"print_node_brief",
"(",
"stderr",
",",
"\"dllexport:\"",
",",
"decl",
",",
"0",
")",
";",
"fprintf",
"(",
"stderr",
",",
"\"\\n\"",
")",
";",
"}",
"else",
"if",
"(",
"TREE_CODE",
"(",
"decl",
")",
"!=",
"FUNCTION_DECL",
")",
"{",
"print_node_brief",
"(",
"stderr",
",",
"\"no dllexport:\"",
",",
"decl",
",",
"0",
")",
";",
"fprintf",
"(",
"stderr",
",",
"\"\\n\"",
")",
";",
"}",
"return",
"exp",
"?",
"true",
":",
"false",
";",
"}",
"</s>"
] | [
"Return",
"nonzero",
"if",
"DECL",
"is",
"a",
"dllexport",
"'d",
"object",
"."
] | [
"sh",
"\"dllexport\"",
"\"dllexport\"",
"\"dllexport:\"",
"0",
"\"\\n\"",
"\"no dllexport:\"",
"0",
"\"\\n\""
] | symbian | sh_symbian_dllexport_p | sh | CPU | GCC | 34,667 | 135 | 1 | [] |
[
"<s>",
"ARMSubtarget",
"::",
"ARMSubtarget",
"(",
"const",
"Triple",
"&",
"TT",
",",
"const",
"std",
"::",
"string",
"&",
"CPU",
",",
"const",
"std",
"::",
"string",
"&",
"FS",
",",
"const",
"ARMBaseTargetMachine",
"&",
"TM",
",",
"bool",
"IsLittle",
")",
":",
"ARMGenSubtargetInfo",
"(",
"TT",
",",
"CPU",
",",
"FS",
")",
",",
"UseMulOps",
"(",
"UseFusedMulOps",
")",
",",
"GenExecuteOnly",
"(",
"EnableExecuteOnly",
")",
",",
"CPUString",
"(",
"CPU",
")",
",",
"IsLittle",
"(",
"IsLittle",
")",
",",
"TargetTriple",
"(",
"TT",
")",
",",
"Options",
"(",
"TM",
".",
"Options",
")",
",",
"TM",
"(",
"TM",
")",
",",
"FrameLowering",
"(",
"initializeFrameLowering",
"(",
"CPU",
",",
"FS",
")",
")",
",",
"InstrInfo",
"(",
"isThumb1Only",
"(",
")",
"?",
"(",
"ARMBaseInstrInfo",
"*",
")",
"new",
"Thumb1InstrInfo",
"(",
"*",
"this",
")",
":",
"!",
"isThumb",
"(",
")",
"?",
"(",
"ARMBaseInstrInfo",
"*",
")",
"new",
"ARMInstrInfo",
"(",
"*",
"this",
")",
":",
"(",
"ARMBaseInstrInfo",
"*",
")",
"new",
"Thumb2InstrInfo",
"(",
"*",
"this",
")",
")",
",",
"TLInfo",
"(",
"TM",
",",
"*",
"this",
")",
"{",
"}",
"</s>"
] | [
"This",
"constructor",
"initializes",
"the",
"data",
"members",
"to",
"match",
"that",
"of",
"the",
"specified",
"triple",
"."
] | [
"ARM",
"ARM",
"ARM",
"ARM",
"ARM",
"ARM",
"ARM",
"ARM",
"ARM"
] | ARMSubtarget31 | ARMSubtarget | ARM | CPU | LLVM | 34,668 | 142 | 1 | [] |
[
"<s>",
"DecodeStatus",
"getInstruction",
"(",
"MCInst",
"&",
"MI",
",",
"uint64_t",
"&",
"Size",
",",
"ArrayRef",
"<",
"uint8_t",
">",
"Bytes",
",",
"uint64_t",
"Address",
",",
"raw_ostream",
"&",
"OS",
",",
"raw_ostream",
"&",
"CS",
")",
"const",
"override",
"{",
"if",
"(",
"Bytes",
".",
"size",
"(",
")",
"<",
"2",
")",
"{",
"Size",
"=",
"0",
";",
"return",
"MCDisassembler",
"::",
"Fail",
";",
"}",
"uint16_t",
"Insn",
"=",
"0",
";",
"DecodeStatus",
"Result",
"=",
"MCDisassembler",
"::",
"Fail",
";",
"Insn",
"=",
"(",
"Bytes",
"[",
"1",
"]",
"<<",
"8",
")",
"|",
"(",
"Bytes",
"[",
"0",
"]",
"<<",
"0",
")",
";",
"Result",
"=",
"decodeInstruction",
"(",
"DecoderTable16",
",",
"MI",
",",
"Insn",
",",
"Address",
",",
"this",
",",
"STI",
")",
";",
"if",
"(",
"Result",
"!=",
"MCDisassembler",
"::",
"Fail",
")",
"{",
"Size",
"=",
"2",
";",
"return",
"Result",
";",
"}",
"return",
"MCDisassembler",
"::",
"Fail",
";",
"}",
"</s>"
] | [
"Returns",
"the",
"disassembly",
"of",
"a",
"single",
"instruction",
"."
] | [
"J2",
"2",
"0",
"0",
"1",
"8",
"0",
"0",
"2"
] | J2Disassembler | getInstruction | J2 | MPU | LLVM | 34,669 | 124 | 1 | [] |
[
"<s>",
"bool",
"isAtomic",
"(",
"uint16_t",
"Opcode",
")",
"const",
"{",
"return",
"get",
"(",
"Opcode",
")",
".",
"TSFlags",
"&",
"(",
"SIInstrFlags",
"::",
"IsAtomicRet",
"|",
"SIInstrFlags",
"::",
"IsAtomicNoRet",
")",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"this",
"operation",
"has",
"an",
"atomic",
"ordering",
"requirement",
"of",
"unordered",
"or",
"higher",
",",
"false",
"otherwise",
"."
] | [
"AMDGPU",
"SIInstrFlags::IsAtomicRet",
"SIInstrFlags::IsAtomicNoRet"
] | SIInstrInfo10 | isAtomic | AMDGPU | GPU | LLVM | 34,670 | 27 | 1 | [] |
[
"<s>",
"void",
"emitValueToOffset",
"(",
"const",
"MCExpr",
"*",
"Offset",
",",
"unsigned",
"char",
"Value",
",",
"SMLoc",
"Loc",
")",
"override",
"{",
"}",
"</s>"
] | [
"Emit",
"some",
"number",
"of",
"copies",
"of",
"Value",
"until",
"the",
"byte",
"offset",
"Offset",
"is",
"reached",
"."
] | [
"Patmos"
] | PatmosInstrInfo1 | emitValueToOffset | Patmos | VLIW | LLVM | 34,671 | 18 | 1 | [] |
[
"<s>",
"static",
"bool",
"arm_evpc_neon_vtrn",
"(",
"struct",
"expand_vec_perm_d",
"*",
"d",
")",
"{",
"unsigned",
"int",
"i",
",",
"odd",
",",
"mask",
",",
"nelt",
"=",
"d",
"->",
"perm",
".",
"length",
"(",
")",
";",
"rtx",
"out0",
",",
"out1",
",",
"in0",
",",
"in1",
";",
"rtx",
"(",
"*",
"gen",
")",
"(",
"rtx",
",",
"rtx",
",",
"rtx",
",",
"rtx",
")",
";",
"if",
"(",
"GET_MODE_UNIT_SIZE",
"(",
"d",
"->",
"vmode",
")",
">=",
"8",
")",
"return",
"false",
";",
"if",
"(",
"d",
"->",
"perm",
"[",
"0",
"]",
"==",
"0",
")",
"odd",
"=",
"0",
";",
"else",
"if",
"(",
"d",
"->",
"perm",
"[",
"0",
"]",
"==",
"1",
")",
"odd",
"=",
"1",
";",
"else",
"return",
"false",
";",
"mask",
"=",
"(",
"d",
"->",
"one_vector_p",
"?",
"nelt",
"-",
"1",
":",
"2",
"*",
"nelt",
"-",
"1",
")",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"nelt",
";",
"i",
"+=",
"2",
")",
"{",
"if",
"(",
"d",
"->",
"perm",
"[",
"i",
"]",
"!=",
"i",
"+",
"odd",
")",
"return",
"false",
";",
"if",
"(",
"d",
"->",
"perm",
"[",
"i",
"+",
"1",
"]",
"!=",
"(",
"(",
"i",
"+",
"nelt",
"+",
"odd",
")",
"&",
"mask",
")",
")",
"return",
"false",
";",
"}",
"if",
"(",
"d",
"->",
"testing_p",
")",
"return",
"true",
";",
"switch",
"(",
"d",
"->",
"vmode",
")",
"{",
"case",
"E_V16QImode",
":",
"gen",
"=",
"gen_neon_vtrnv16qi_internal",
";",
"break",
";",
"case",
"E_V8QImode",
":",
"gen",
"=",
"gen_neon_vtrnv8qi_internal",
";",
"break",
";",
"case",
"E_V8HImode",
":",
"gen",
"=",
"gen_neon_vtrnv8hi_internal",
";",
"break",
";",
"case",
"E_V4HImode",
":",
"gen",
"=",
"gen_neon_vtrnv4hi_internal",
";",
"break",
";",
"case",
"E_V8HFmode",
":",
"gen",
"=",
"gen_neon_vtrnv8hf_internal",
";",
"break",
";",
"case",
"E_V4HFmode",
":",
"gen",
"=",
"gen_neon_vtrnv4hf_internal",
";",
"break",
";",
"case",
"E_V4SImode",
":",
"gen",
"=",
"gen_neon_vtrnv4si_internal",
";",
"break",
";",
"case",
"E_V2SImode",
":",
"gen",
"=",
"gen_neon_vtrnv2si_internal",
";",
"break",
";",
"case",
"E_V2SFmode",
":",
"gen",
"=",
"gen_neon_vtrnv2sf_internal",
";",
"break",
";",
"case",
"E_V4SFmode",
":",
"gen",
"=",
"gen_neon_vtrnv4sf_internal",
";",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"in0",
"=",
"d",
"->",
"op0",
";",
"in1",
"=",
"d",
"->",
"op1",
";",
"if",
"(",
"BYTES_BIG_ENDIAN",
")",
"{",
"std",
"::",
"swap",
"(",
"in0",
",",
"in1",
")",
";",
"odd",
"=",
"!",
"odd",
";",
"}",
"out0",
"=",
"d",
"->",
"target",
";",
"out1",
"=",
"gen_reg_rtx",
"(",
"d",
"->",
"vmode",
")",
";",
"if",
"(",
"odd",
")",
"std",
"::",
"swap",
"(",
"out0",
",",
"out1",
")",
";",
"emit_insn",
"(",
"gen",
"(",
"out0",
",",
"in0",
",",
"in1",
",",
"out1",
")",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Recognize",
"patterns",
"for",
"the",
"VTRN",
"insns",
"."
] | [
"arm",
"8",
"0",
"0",
"0",
"0",
"1",
"1",
"1",
"2",
"1",
"0",
"2",
"1"
] | arm7 | arm_evpc_neon_vtrn | arm | CPU | GCC | 34,672 | 368 | 1 | [] |
[
"<s>",
"bool",
"aarch64_legitimate_address_p",
"(",
"machine_mode",
"mode",
",",
"rtx",
"x",
",",
"RTX_CODE",
"outer_code",
",",
"bool",
"strict_p",
")",
"{",
"struct",
"aarch64_address_info",
"addr",
";",
"return",
"aarch64_classify_address",
"(",
"&",
"addr",
",",
"x",
",",
"mode",
",",
"outer_code",
",",
"strict_p",
")",
";",
"}",
"</s>"
] | [
"Return",
"TRUE",
"if",
"X",
"is",
"a",
"legitimate",
"address",
"for",
"accessing",
"memory",
"in",
"mode",
"MODE",
".",
"OUTER_CODE",
"will",
"be",
"PARALLEL",
"if",
"this",
"is",
"a",
"load/store",
"pair",
"operation",
"."
] | [
"aarch64"
] | aarch642 | aarch64_legitimate_address_p | aarch64 | CPU | GCC | 34,673 | 36 | 1 | [] |
[
"<s>",
"void",
"MipsRegisterBankInfo",
"::",
"applyMappingImpl",
"(",
"const",
"OperandsMapper",
"&",
"OpdMapper",
")",
"const",
"{",
"MachineInstr",
"&",
"MI",
"=",
"OpdMapper",
".",
"getMI",
"(",
")",
";",
"InstListTy",
"NewInstrs",
";",
"MachineFunction",
"*",
"MF",
"=",
"MI",
".",
"getMF",
"(",
")",
";",
"MachineRegisterInfo",
"&",
"MRI",
"=",
"OpdMapper",
".",
"getMRI",
"(",
")",
";",
"const",
"LegalizerInfo",
"&",
"LegInfo",
"=",
"*",
"MF",
"->",
"getSubtarget",
"(",
")",
".",
"getLegalizerInfo",
"(",
")",
";",
"InstManager",
"NewInstrObserver",
"(",
"NewInstrs",
")",
";",
"MachineIRBuilder",
"B",
"(",
"MI",
",",
"NewInstrObserver",
")",
";",
"LegalizerHelper",
"Helper",
"(",
"*",
"MF",
",",
"NewInstrObserver",
",",
"B",
")",
";",
"LegalizationArtifactCombiner",
"ArtCombiner",
"(",
"B",
",",
"MF",
"->",
"getRegInfo",
"(",
")",
",",
"LegInfo",
")",
";",
"switch",
"(",
"MI",
".",
"getOpcode",
"(",
")",
")",
"{",
"case",
"TargetOpcode",
"::",
"G_LOAD",
":",
"case",
"TargetOpcode",
"::",
"G_STORE",
":",
"case",
"TargetOpcode",
"::",
"G_PHI",
":",
"case",
"TargetOpcode",
"::",
"G_SELECT",
":",
"case",
"TargetOpcode",
"::",
"G_IMPLICIT_DEF",
":",
"{",
"Helper",
".",
"narrowScalar",
"(",
"MI",
",",
"0",
",",
"LLT",
"::",
"scalar",
"(",
"32",
")",
")",
";",
"while",
"(",
"!",
"NewInstrs",
".",
"empty",
"(",
")",
")",
"{",
"MachineInstr",
"*",
"NewMI",
"=",
"NewInstrs",
".",
"pop_back_val",
"(",
")",
";",
"if",
"(",
"NewMI",
"->",
"getOpcode",
"(",
")",
"==",
"TargetOpcode",
"::",
"G_UNMERGE_VALUES",
")",
"combineAwayG_UNMERGE_VALUES",
"(",
"ArtCombiner",
",",
"*",
"NewMI",
",",
"NewInstrObserver",
")",
";",
"else",
"if",
"(",
"NewMI",
"->",
"getOpcode",
"(",
")",
"==",
"TargetOpcode",
"::",
"G_MERGE_VALUES",
")",
"continue",
";",
"else",
"setRegBank",
"(",
"*",
"NewMI",
",",
"MRI",
")",
";",
"}",
"return",
";",
"}",
"case",
"TargetOpcode",
"::",
"G_UNMERGE_VALUES",
":",
"combineAwayG_UNMERGE_VALUES",
"(",
"ArtCombiner",
",",
"MI",
",",
"NewInstrObserver",
")",
";",
"return",
";",
"default",
":",
"break",
";",
"}",
"return",
"applyDefaultMapping",
"(",
"OpdMapper",
")",
";",
"}",
"</s>"
] | [
"See",
"RegisterBankInfo",
":",
":applyMapping",
"."
] | [
"Mips",
"Mips",
"0",
"32"
] | MipsRegisterBankInfo20 | applyMappingImpl | Mips | CPU | LLVM | 34,674 | 249 | 1 | [] |
[
"<s>",
"bool",
"and_operands_ok",
"(",
"machine_mode",
"mode",
",",
"rtx",
"op1",
",",
"rtx",
"op2",
")",
"{",
"return",
"(",
"memory_operand",
"(",
"op1",
",",
"mode",
")",
"?",
"and_load_operand",
"(",
"op2",
",",
"mode",
")",
":",
"and_reg_operand",
"(",
"op2",
",",
"mode",
")",
")",
";",
"}",
"</s>"
] | [
"Return",
"true",
"iff",
"OP1",
"and",
"OP2",
"are",
"valid",
"operands",
"together",
"for",
"the",
"*",
"and",
"<",
"MODE",
">",
"3",
"and",
"*",
"and",
"<",
"MODE",
">",
"3_mips16",
"patterns",
".",
"For",
"the",
"cases",
"to",
"consider",
",",
"see",
"the",
"table",
"in",
"the",
"comment",
"before",
"the",
"pattern",
"."
] | [
"mips"
] | mips4 | and_operands_ok | mips | CPU | GCC | 34,675 | 38 | 1 | [] |
[
"<s>",
"bool",
"XCoreAsmPrinter",
"::",
"PrintAsmMemoryOperand",
"(",
"const",
"MachineInstr",
"*",
"MI",
",",
"unsigned",
"OpNum",
",",
"unsigned",
"AsmVariant",
",",
"const",
"char",
"*",
"ExtraCode",
",",
"raw_ostream",
"&",
"O",
")",
"{",
"if",
"(",
"ExtraCode",
"&&",
"ExtraCode",
"[",
"0",
"]",
")",
"{",
"return",
"true",
";",
"}",
"printOperand",
"(",
"MI",
",",
"OpNum",
",",
"O",
")",
";",
"O",
"<<",
"'['",
";",
"printOperand",
"(",
"MI",
",",
"OpNum",
"+",
"1",
",",
"O",
")",
";",
"O",
"<<",
"']'",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Print",
"the",
"specified",
"operand",
"of",
"MI",
",",
"an",
"INLINEASM",
"instruction",
",",
"using",
"the",
"specified",
"assembler",
"variant",
"as",
"an",
"address",
"."
] | [
"XCore",
"XCore",
"0",
"1"
] | XCoreAsmPrinter (2) | PrintAsmMemoryOperand | XCore | MPU | LLVM | 34,676 | 72 | 1 | [] |
[
"<s>",
"const",
"TargetRegisterClass",
"*",
"CJGRegisterInfo",
"::",
"getPointerRegClass",
"(",
"const",
"MachineFunction",
"&",
"MF",
",",
"unsigned",
"Kind",
")",
"const",
"{",
"return",
"&",
"CJG",
"::",
"GPRegsRegClass",
";",
"}",
"</s>"
] | [
"getPointerRegClass",
"-",
"Returns",
"a",
"TargetRegisterClass",
"used",
"for",
"pointer",
"values",
"."
] | [
"CJG",
"CJG",
"CJG::GPRegsRegClass"
] | CJGRegisterInfo | getPointerRegClass | CJG | CPU | LLVM | 34,677 | 24 | 1 | [] |
[
"<s>",
"static",
"void",
"increment_stack",
"(",
"HOST_WIDE_INT",
"amount",
")",
"{",
"rtx",
"inc",
";",
"rtx",
"sp",
"=",
"stack_pointer_rtx",
";",
"if",
"(",
"amount",
"==",
"0",
")",
"return",
";",
"if",
"(",
"amount",
"<",
"0",
")",
"{",
"inc",
"=",
"GEN_INT",
"(",
"-",
"amount",
")",
";",
"if",
"(",
"TARGET_LARGE",
")",
"F",
"(",
"emit_insn",
"(",
"gen_subpsi3",
"(",
"sp",
",",
"sp",
",",
"inc",
")",
")",
")",
";",
"else",
"F",
"(",
"emit_insn",
"(",
"gen_subhi3",
"(",
"sp",
",",
"sp",
",",
"inc",
")",
")",
")",
";",
"}",
"else",
"{",
"inc",
"=",
"GEN_INT",
"(",
"amount",
")",
";",
"if",
"(",
"TARGET_LARGE",
")",
"F",
"(",
"emit_insn",
"(",
"gen_addpsi3",
"(",
"sp",
",",
"sp",
",",
"inc",
")",
")",
")",
";",
"else",
"F",
"(",
"emit_insn",
"(",
"gen_addhi3",
"(",
"sp",
",",
"sp",
",",
"inc",
")",
")",
")",
";",
"}",
"}",
"</s>"
] | [
"Common",
"code",
"to",
"change",
"the",
"stack",
"pointer",
"."
] | [
"msp430",
"0",
"0"
] | msp430 | increment_stack | msp430 | MPU | GCC | 34,678 | 121 | 1 | [] |
[
"<s>",
"static",
"machine_mode",
"arg_promotion",
"(",
"machine_mode",
"mode",
")",
"{",
"if",
"(",
"mode",
"==",
"QImode",
"||",
"mode",
"==",
"HImode",
")",
"return",
"SImode",
";",
"return",
"mode",
";",
"}",
"</s>"
] | [
"Perform",
"a",
"mode",
"promotion",
"for",
"a",
"function",
"argument",
"with",
"MODE",
".",
"Return",
"the",
"promoted",
"mode",
"."
] | [
"nvptx"
] | nvptx2 | arg_promotion | nvptx | GPU | GCC | 34,679 | 25 | 1 | [] |
[
"<s>",
"inline",
"const",
"BitTracker",
"::",
"RegisterCell",
"&",
"BitTracker",
"::",
"lookup",
"(",
"unsigned",
"Reg",
")",
"const",
"{",
"CellMapType",
"::",
"const_iterator",
"F",
"=",
"Map",
".",
"find",
"(",
"Reg",
")",
";",
"assert",
"(",
"F",
"!=",
"Map",
".",
"end",
"(",
")",
")",
";",
"return",
"F",
"->",
"second",
";",
"}",
"</s>"
] | [
"This",
"method",
"finds",
"the",
"value",
"with",
"the",
"given",
"Name",
"in",
"the",
"the",
"symbol",
"table",
"."
] | [
"Hexagon"
] | BitTracker | lookup | Hexagon | DSP | LLVM | 34,680 | 44 | 1 | [] |
[
"<s>",
"void",
"mprocRegisterInfo",
"::",
"processFunctionBeforeFrameFinalized",
"(",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"}",
"</s>"
] | [
"processFunctionBeforeFrameFinalized",
"-",
"This",
"method",
"is",
"called",
"immediately",
"before",
"the",
"specified",
"function",
"'s",
"frame",
"layout",
"(",
"MF.getFrameInfo",
"(",
")",
")",
"is",
"finalized",
"."
] | [
"mproc",
"mproc"
] | mprocRegisterInfo | processFunctionBeforeFrameFinalized | mproc | Virtual ISA | LLVM | 34,681 | 12 | 1 | [] |
[
"<s>",
"int",
"sparc_split_regreg_legitimate",
"(",
"rtx",
"reg1",
",",
"rtx",
"reg2",
")",
"{",
"int",
"regno1",
",",
"regno2",
";",
"if",
"(",
"GET_CODE",
"(",
"reg1",
")",
"==",
"SUBREG",
")",
"reg1",
"=",
"SUBREG_REG",
"(",
"reg1",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"reg1",
")",
"!=",
"REG",
")",
"return",
"0",
";",
"regno1",
"=",
"REGNO",
"(",
"reg1",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"reg2",
")",
"==",
"SUBREG",
")",
"reg2",
"=",
"SUBREG_REG",
"(",
"reg2",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"reg2",
")",
"!=",
"REG",
")",
"return",
"0",
";",
"regno2",
"=",
"REGNO",
"(",
"reg2",
")",
";",
"if",
"(",
"SPARC_INT_REG_P",
"(",
"regno1",
")",
"&&",
"SPARC_INT_REG_P",
"(",
"regno2",
")",
")",
"return",
"1",
";",
"if",
"(",
"TARGET_VIS3",
")",
"{",
"if",
"(",
"(",
"SPARC_INT_REG_P",
"(",
"regno1",
")",
"&&",
"SPARC_FP_REG_P",
"(",
"regno2",
")",
")",
"||",
"(",
"SPARC_FP_REG_P",
"(",
"regno1",
")",
"&&",
"SPARC_INT_REG_P",
"(",
"regno2",
")",
")",
")",
"return",
"1",
";",
"}",
"return",
"0",
";",
"}",
"</s>"
] | [
"Like",
"sparc_splitdi_legitimate",
"but",
"for",
"REG",
"<",
"--",
">",
"REG",
"moves",
"."
] | [
"sparc",
"0",
"0",
"1",
"1",
"0"
] | sparc4 | sparc_split_regreg_legitimate | sparc | CPU | GCC | 34,682 | 139 | 1 | [] |
[
"<s>",
"bool",
"X86AsmParser",
"::",
"ParseDirective",
"(",
"AsmToken",
"DirectiveID",
")",
"{",
"StringRef",
"IDVal",
"=",
"DirectiveID",
".",
"getIdentifier",
"(",
")",
";",
"if",
"(",
"IDVal",
"==",
"\".word\"",
")",
"return",
"ParseDirectiveWord",
"(",
"2",
",",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"else",
"if",
"(",
"IDVal",
".",
"startswith",
"(",
"\".code\"",
")",
")",
"return",
"ParseDirectiveCode",
"(",
"IDVal",
",",
"DirectiveID",
".",
"getLoc",
"(",
")",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"ParseDirective",
"-",
"Parse",
"a",
"target",
"specific",
"assembler",
"directive",
"This",
"method",
"is",
"deprecated",
",",
"use",
"'parseDirective",
"'",
"instead",
"."
] | [
"X86",
"X86",
"\".word\"",
"2",
"\".code\""
] | X86AsmParser72 | ParseDirective | X86 | CPU | LLVM | 34,683 | 62 | 1 | [] |
[
"<s>",
"void",
"storeRegToStackSlot",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"MBBI",
",",
"unsigned",
"SrcReg",
",",
"bool",
"isKill",
",",
"int",
"FrameIndex",
",",
"const",
"TargetRegisterClass",
"*",
"RC",
",",
"const",
"TargetRegisterInfo",
"*",
"TRI",
")",
"const",
"override",
"{",
"storeRegToStack",
"(",
"MBB",
",",
"MBBI",
",",
"SrcReg",
",",
"isKill",
",",
"FrameIndex",
",",
"RC",
",",
"TRI",
",",
"0",
")",
";",
"}",
"</s>"
] | [
"Store",
"the",
"specified",
"register",
"of",
"the",
"given",
"register",
"class",
"to",
"the",
"specified",
"stack",
"frame",
"index",
"."
] | [
"Cpu0",
"0"
] | Cpu0InstrInfo | storeRegToStackSlot | Cpu0 | CPU | LLVM | 34,684 | 54 | 1 | [] |
[
"<s>",
"const",
"uint16_t",
"*",
"ARMBaseRegisterInfo",
"::",
"getCalleeSavedRegs",
"(",
"const",
"MachineFunction",
"*",
"MF",
")",
"const",
"{",
"if",
"(",
"ReserveR9",
")",
"return",
"CSR_NaCl_SaveList",
";",
"bool",
"ghcCall",
"=",
"false",
";",
"if",
"(",
"MF",
")",
"{",
"const",
"Function",
"*",
"F",
"=",
"MF",
"->",
"getFunction",
"(",
")",
";",
"ghcCall",
"=",
"(",
"F",
"?",
"F",
"->",
"getCallingConv",
"(",
")",
"==",
"CallingConv",
"::",
"GHC",
":",
"false",
")",
";",
"}",
"if",
"(",
"ghcCall",
")",
"{",
"return",
"CSR_GHC_SaveList",
";",
"}",
"else",
"{",
"return",
"(",
"STI",
".",
"isTargetIOS",
"(",
")",
"&&",
"!",
"STI",
".",
"isAAPCS_ABI",
"(",
")",
")",
"?",
"CSR_iOS_SaveList",
":",
"CSR_AAPCS_SaveList",
";",
"}",
"}",
"</s>"
] | [
"Code",
"Generation",
"virtual",
"methods",
"..."
] | [
"ARM",
"ARM"
] | ARMBaseRegisterInfo43 | getCalleeSavedRegs | ARM | CPU | LLVM | 34,685 | 94 | 1 | [] |
[
"<s>",
"SDValue",
"AArch64TargetLowering",
"::",
"PerformDAGCombine",
"(",
"SDNode",
"*",
"N",
",",
"DAGCombinerInfo",
"&",
"DCI",
")",
"const",
"{",
"switch",
"(",
"N",
"->",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"break",
";",
"case",
"ISD",
"::",
"AND",
":",
"return",
"PerformANDCombine",
"(",
"N",
",",
"DCI",
")",
";",
"case",
"ISD",
"::",
"OR",
":",
"return",
"PerformORCombine",
"(",
"N",
",",
"DCI",
",",
"getSubtarget",
"(",
")",
")",
";",
"case",
"ISD",
"::",
"SHL",
":",
"case",
"ISD",
"::",
"SRA",
":",
"case",
"ISD",
"::",
"SRL",
":",
"return",
"PerformShiftCombine",
"(",
"N",
",",
"DCI",
",",
"getSubtarget",
"(",
")",
")",
";",
"case",
"ISD",
"::",
"SETCC",
":",
"return",
"PerformSETCCCombine",
"(",
"N",
",",
"DCI",
".",
"DAG",
")",
";",
"case",
"ISD",
"::",
"VSELECT",
":",
"return",
"PerformVSelectCombine",
"(",
"N",
",",
"DCI",
".",
"DAG",
")",
";",
"case",
"ISD",
"::",
"SIGN_EXTEND",
":",
"return",
"PerformSignExtendCombine",
"(",
"N",
",",
"DCI",
".",
"DAG",
")",
";",
"case",
"ISD",
"::",
"INTRINSIC_WO_CHAIN",
":",
"return",
"PerformIntrinsicCombine",
"(",
"N",
",",
"DCI",
".",
"DAG",
")",
";",
"case",
"AArch64ISD",
"::",
"NEON_VDUPLANE",
":",
"return",
"CombineVLDDUP",
"(",
"N",
",",
"DCI",
")",
";",
"case",
"AArch64ISD",
"::",
"NEON_LD2DUP",
":",
"case",
"AArch64ISD",
"::",
"NEON_LD3DUP",
":",
"case",
"AArch64ISD",
"::",
"NEON_LD4DUP",
":",
"return",
"CombineBaseUpdate",
"(",
"N",
",",
"DCI",
")",
";",
"case",
"ISD",
"::",
"INTRINSIC_VOID",
":",
"case",
"ISD",
"::",
"INTRINSIC_W_CHAIN",
":",
"switch",
"(",
"cast",
"<",
"ConstantSDNode",
">",
"(",
"N",
"->",
"getOperand",
"(",
"1",
")",
")",
"->",
"getZExtValue",
"(",
")",
")",
"{",
"case",
"Intrinsic",
"::",
"arm_neon_vld1",
":",
"case",
"Intrinsic",
"::",
"arm_neon_vld2",
":",
"case",
"Intrinsic",
"::",
"arm_neon_vld3",
":",
"case",
"Intrinsic",
"::",
"arm_neon_vld4",
":",
"case",
"Intrinsic",
"::",
"arm_neon_vst1",
":",
"case",
"Intrinsic",
"::",
"arm_neon_vst2",
":",
"case",
"Intrinsic",
"::",
"arm_neon_vst3",
":",
"case",
"Intrinsic",
"::",
"arm_neon_vst4",
":",
"case",
"Intrinsic",
"::",
"arm_neon_vld2lane",
":",
"case",
"Intrinsic",
"::",
"arm_neon_vld3lane",
":",
"case",
"Intrinsic",
"::",
"arm_neon_vld4lane",
":",
"case",
"Intrinsic",
"::",
"aarch64_neon_vld1x2",
":",
"case",
"Intrinsic",
"::",
"aarch64_neon_vld1x3",
":",
"case",
"Intrinsic",
"::",
"aarch64_neon_vld1x4",
":",
"case",
"Intrinsic",
"::",
"aarch64_neon_vst1x2",
":",
"case",
"Intrinsic",
"::",
"aarch64_neon_vst1x3",
":",
"case",
"Intrinsic",
"::",
"aarch64_neon_vst1x4",
":",
"case",
"Intrinsic",
"::",
"arm_neon_vst2lane",
":",
"case",
"Intrinsic",
"::",
"arm_neon_vst3lane",
":",
"case",
"Intrinsic",
"::",
"arm_neon_vst4lane",
":",
"return",
"CombineBaseUpdate",
"(",
"N",
",",
"DCI",
")",
";",
"default",
":",
"break",
";",
"}",
"}",
"return",
"SDValue",
"(",
")",
";",
"}",
"</s>"
] | [
"This",
"method",
"will",
"be",
"invoked",
"for",
"all",
"target",
"nodes",
"and",
"for",
"any",
"target-independent",
"nodes",
"that",
"the",
"target",
"has",
"registered",
"with",
"invoke",
"it",
"for",
"."
] | [
"AArch64",
"AArch64",
"ISD::AND",
"ISD::OR",
"ISD::SHL",
"ISD::SRA",
"ISD::SRL",
"ISD::SETCC",
"ISD::VSELECT",
"ISD::SIGN_EXTEND",
"ISD::INTRINSIC_WO_CHAIN",
"AArch64ISD::NEON_VDUPLANE",
"AArch64ISD::NEON_LD2DUP",
"AArch64ISD::NEON_LD3DUP",
"AArch64ISD::NEON_LD4DUP",
"ISD::INTRINSIC_VOID",
"ISD::INTRINSIC_W_CHAIN",
"1",
"Intrinsic::arm_neon_vld1",
"Intrinsic::arm_neon_vld2",
"Intrinsic::arm_neon_vld3",
"Intrinsic::arm_neon_vld4",
"Intrinsic::arm_neon_vst1",
"Intrinsic::arm_neon_vst2",
"Intrinsic::arm_neon_vst3",
"Intrinsic::arm_neon_vst4",
"Intrinsic::arm_neon_vld2lane",
"Intrinsic::arm_neon_vld3lane",
"Intrinsic::arm_neon_vld4lane",
"Intrinsic::aarch64_neon_vld1x2",
"Intrinsic::aarch64_neon_vld1x3",
"Intrinsic::aarch64_neon_vld1x4",
"Intrinsic::aarch64_neon_vst1x2",
"Intrinsic::aarch64_neon_vst1x3",
"Intrinsic::aarch64_neon_vst1x4",
"Intrinsic::arm_neon_vst2lane",
"Intrinsic::arm_neon_vst3lane",
"Intrinsic::arm_neon_vst4lane"
] | AArch64ISelLowering60 | PerformDAGCombine | AArch64 | CPU | LLVM | 34,686 | 331 | 1 | [] |
[
"<s>",
"StringRef",
"getPassName",
"(",
")",
"const",
"override",
"{",
"return",
"\"Hexagon Hardware Loop Fixup\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"Hexagon",
"\"Hexagon Hardware Loop Fixup\""
] | HexagonFixupHwLoops11 | getPassName | Hexagon | DSP | LLVM | 34,687 | 11 | 1 | [] |
[
"<s>",
"Register",
"getFrameRegister",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"override",
"{",
"return",
"0",
";",
"}",
"</s>"
] | [
"Debug",
"information",
"queries",
"."
] | [
"SPIRV",
"0"
] | SPIRVRegisterInfo | getFrameRegister | SPIRV | Virtual ISA | LLVM | 34,688 | 15 | 1 | [] |
[
"<s>",
"unsigned",
"getSlotSize",
"(",
")",
"const",
"{",
"return",
"4",
";",
"}",
"</s>"
] | [
"getSlotSize",
"-",
"Stack",
"slot",
"size",
"in",
"bytes",
"."
] | [
"M680x0",
"4"
] | M680x0Subtarget | getSlotSize | M680x0 | MPU | LLVM | 34,689 | 10 | 1 | [] |
[
"<s>",
"void",
"getAnalysisUsage",
"(",
"AnalysisUsage",
"&",
"AU",
")",
"const",
"override",
"{",
"AU",
".",
"setPreservesCFG",
"(",
")",
";",
"AU",
".",
"addPreserved",
"<",
"SlotIndexes",
">",
"(",
")",
";",
"AU",
".",
"addPreserved",
"<",
"LiveIntervals",
">",
"(",
")",
";",
"AU",
".",
"addPreserved",
"<",
"LiveVariables",
">",
"(",
")",
";",
"AU",
".",
"addRequired",
"<",
"LiveIntervals",
">",
"(",
")",
";",
"MachineFunctionPass",
"::",
"getAnalysisUsage",
"(",
"AU",
")",
";",
"}",
"</s>"
] | [
"getAnalysisUsage",
"-",
"Subclasses",
"that",
"override",
"getAnalysisUsage",
"must",
"call",
"this",
"."
] | [
"AMDGPU"
] | SILoadStoreOptimizer19 | getAnalysisUsage | AMDGPU | GPU | LLVM | 34,690 | 60 | 1 | [] |
[
"<s>",
"DecodeStatus",
"NyuziDisassembler",
"::",
"getInstruction",
"(",
"MCInst",
"&",
"instr",
",",
"uint64_t",
"&",
"Size",
",",
"ArrayRef",
"<",
"uint8_t",
">",
"Bytes",
",",
"uint64_t",
"Address",
",",
"raw_ostream",
"&",
"vStream",
",",
"raw_ostream",
"&",
"cStream",
")",
"const",
"{",
"uint32_t",
"Insn",
";",
"DecodeStatus",
"Result",
"=",
"readInstruction32",
"(",
"Bytes",
",",
"Address",
",",
"Size",
",",
"Insn",
")",
";",
"if",
"(",
"Result",
"==",
"MCDisassembler",
"::",
"Fail",
")",
"return",
"MCDisassembler",
"::",
"Fail",
";",
"Result",
"=",
"decodeInstruction",
"(",
"DecoderTable32",
",",
"instr",
",",
"Insn",
",",
"Address",
",",
"this",
",",
"STI",
")",
";",
"if",
"(",
"Result",
"!=",
"MCDisassembler",
"::",
"Fail",
")",
"{",
"Size",
"=",
"4",
";",
"return",
"Result",
";",
"}",
"return",
"MCDisassembler",
"::",
"Fail",
";",
"}",
"</s>"
] | [
"Returns",
"the",
"disassembly",
"of",
"a",
"single",
"instruction",
"."
] | [
"Nyuzi",
"Nyuzi",
"4"
] | NyuziDisassembler | getInstruction | Nyuzi | GPU | LLVM | 34,691 | 102 | 1 | [] |
[
"<s>",
"bool",
"XCoreRegisterInfo",
"::",
"trackLivenessAfterRegAlloc",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"return",
"true",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"the",
"live-ins",
"should",
"be",
"tracked",
"after",
"register",
"allocation",
"."
] | [
"XCore",
"XCore"
] | XCoreRegisterInfo (2)1 | trackLivenessAfterRegAlloc | XCore | MPU | LLVM | 34,692 | 16 | 1 | [] |
[
"<s>",
"static",
"bool",
"m32r_rtx_costs",
"(",
"rtx",
"x",
",",
"int",
"code",
",",
"int",
"outer_code",
"ATTRIBUTE_UNUSED",
",",
"int",
"opno",
"ATTRIBUTE_UNUSED",
",",
"int",
"*",
"total",
",",
"bool",
"speed",
"ATTRIBUTE_UNUSED",
")",
"{",
"switch",
"(",
"code",
")",
"{",
"case",
"CONST_INT",
":",
"if",
"(",
"INT16_P",
"(",
"INTVAL",
"(",
"x",
")",
")",
")",
"{",
"*",
"total",
"=",
"0",
";",
"return",
"true",
";",
"}",
"case",
"CONST",
":",
"case",
"LABEL_REF",
":",
"case",
"SYMBOL_REF",
":",
"*",
"total",
"=",
"COSTS_N_INSNS",
"(",
"1",
")",
";",
"return",
"true",
";",
"case",
"CONST_DOUBLE",
":",
"{",
"rtx",
"high",
",",
"low",
";",
"split_double",
"(",
"x",
",",
"&",
"high",
",",
"&",
"low",
")",
";",
"*",
"total",
"=",
"COSTS_N_INSNS",
"(",
"!",
"INT16_P",
"(",
"INTVAL",
"(",
"high",
")",
")",
"+",
"!",
"INT16_P",
"(",
"INTVAL",
"(",
"low",
")",
")",
")",
";",
"return",
"true",
";",
"}",
"case",
"MULT",
":",
"*",
"total",
"=",
"COSTS_N_INSNS",
"(",
"3",
")",
";",
"return",
"true",
";",
"case",
"DIV",
":",
"case",
"UDIV",
":",
"case",
"MOD",
":",
"case",
"UMOD",
":",
"*",
"total",
"=",
"COSTS_N_INSNS",
"(",
"10",
")",
";",
"return",
"true",
";",
"default",
":",
"return",
"false",
";",
"}",
"}",
"</s>"
] | [
"Cost",
"functions",
"."
] | [
"m32r",
"0",
"1",
"3",
"10"
] | m32r4 | m32r_rtx_costs | m32r | MPU | GCC | 34,693 | 167 | 1 | [] |
[
"<s>",
"static",
"void",
"avr_print_operand_address",
"(",
"FILE",
"*",
"file",
",",
"machine_mode",
",",
"rtx",
"addr",
")",
"{",
"if",
"(",
"AVR_TINY",
"&&",
"avr_address_tiny_pm_p",
"(",
"addr",
")",
")",
"{",
"addr",
"=",
"plus_constant",
"(",
"Pmode",
",",
"addr",
",",
"AVR_TINY_PM_OFFSET",
")",
";",
"}",
"switch",
"(",
"GET_CODE",
"(",
"addr",
")",
")",
"{",
"case",
"REG",
":",
"fprintf",
"(",
"file",
",",
"\"%s\"",
",",
"ptrreg_to_str",
"(",
"REGNO",
"(",
"addr",
")",
")",
")",
";",
"break",
";",
"case",
"PRE_DEC",
":",
"fprintf",
"(",
"file",
",",
"\"-%s\"",
",",
"ptrreg_to_str",
"(",
"REGNO",
"(",
"XEXP",
"(",
"addr",
",",
"0",
")",
")",
")",
")",
";",
"break",
";",
"case",
"POST_INC",
":",
"fprintf",
"(",
"file",
",",
"\"%s+\"",
",",
"ptrreg_to_str",
"(",
"REGNO",
"(",
"XEXP",
"(",
"addr",
",",
"0",
")",
")",
")",
")",
";",
"break",
";",
"default",
":",
"if",
"(",
"CONSTANT_ADDRESS_P",
"(",
"addr",
")",
"&&",
"text_segment_operand",
"(",
"addr",
",",
"VOIDmode",
")",
")",
"{",
"rtx",
"x",
"=",
"addr",
";",
"if",
"(",
"GET_CODE",
"(",
"x",
")",
"==",
"CONST",
")",
"x",
"=",
"XEXP",
"(",
"x",
",",
"0",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"x",
")",
"==",
"PLUS",
"&&",
"CONST_INT_P",
"(",
"XEXP",
"(",
"x",
",",
"1",
")",
")",
")",
"{",
"fprintf",
"(",
"file",
",",
"\"gs(\"",
")",
";",
"output_addr_const",
"(",
"file",
",",
"XEXP",
"(",
"x",
",",
"0",
")",
")",
";",
"fprintf",
"(",
"file",
",",
"\"+\"",
"HOST_WIDE_INT_PRINT_DEC",
"\")\"",
",",
"2",
"*",
"INTVAL",
"(",
"XEXP",
"(",
"x",
",",
"1",
")",
")",
")",
";",
"if",
"(",
"AVR_3_BYTE_PC",
")",
"if",
"(",
"warning",
"(",
"0",
",",
"\"pointer offset from symbol maybe incorrect\"",
")",
")",
"{",
"output_addr_const",
"(",
"stderr",
",",
"addr",
")",
";",
"fprintf",
"(",
"stderr",
",",
"\"\\n\"",
")",
";",
"}",
"}",
"else",
"{",
"fprintf",
"(",
"file",
",",
"\"gs(\"",
")",
";",
"output_addr_const",
"(",
"file",
",",
"addr",
")",
";",
"fprintf",
"(",
"file",
",",
"\")\"",
")",
";",
"}",
"}",
"else",
"output_addr_const",
"(",
"file",
",",
"addr",
")",
";",
"}",
"}",
"</s>"
] | [
"Output",
"ADDR",
"to",
"FILE",
"as",
"address",
"."
] | [
"avr",
"\"%s\"",
"\"-%s\"",
"0",
"\"%s+\"",
"0",
"0",
"1",
"\"gs(\"",
"0",
"\"+\"",
"\")\"",
"2",
"1",
"0",
"\"pointer offset from symbol maybe incorrect\"",
"\"\\n\"",
"\"gs(\"",
"\")\""
] | avr6 | avr_print_operand_address | avr | MPU | GCC | 34,694 | 279 | 1 | [] |
[
"<s>",
"void",
"MipsSubtarget",
"::",
"resetSubtarget",
"(",
"MachineFunction",
"*",
"MF",
")",
"{",
"bool",
"ChangeToMips16",
"=",
"false",
",",
"ChangeToNoMips16",
"=",
"false",
";",
"DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"resetSubtargetFeatures\"",
"<<",
"\"\\n\"",
")",
";",
"AttributeSet",
"FnAttrs",
"=",
"MF",
"->",
"getFunction",
"(",
")",
"->",
"getAttributes",
"(",
")",
";",
"ChangeToMips16",
"=",
"FnAttrs",
".",
"hasAttribute",
"(",
"AttributeSet",
"::",
"FunctionIndex",
",",
"\"mips16\"",
")",
";",
"ChangeToNoMips16",
"=",
"FnAttrs",
".",
"hasAttribute",
"(",
"AttributeSet",
"::",
"FunctionIndex",
",",
"\"nomips16\"",
")",
";",
"assert",
"(",
"!",
"(",
"ChangeToMips16",
"&",
"ChangeToNoMips16",
")",
"&&",
"\"mips16 and nomips16 specified on the same function\"",
")",
";",
"if",
"(",
"ChangeToMips16",
")",
"{",
"if",
"(",
"PreviousInMips16Mode",
")",
"return",
";",
"OverrideMode",
"=",
"Mips16Override",
";",
"PreviousInMips16Mode",
"=",
"true",
";",
"setHelperClassesMips16",
"(",
")",
";",
"return",
";",
"}",
"else",
"if",
"(",
"ChangeToNoMips16",
")",
"{",
"if",
"(",
"!",
"PreviousInMips16Mode",
")",
"return",
";",
"OverrideMode",
"=",
"NoMips16Override",
";",
"PreviousInMips16Mode",
"=",
"false",
";",
"setHelperClassesMipsSE",
"(",
")",
";",
"return",
";",
"}",
"else",
"{",
"if",
"(",
"OverrideMode",
"==",
"NoOverride",
")",
"return",
";",
"OverrideMode",
"=",
"NoOverride",
";",
"DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"back to default\"",
"<<",
"\"\\n\"",
")",
";",
"if",
"(",
"inMips16Mode",
"(",
")",
"&&",
"!",
"PreviousInMips16Mode",
")",
"{",
"setHelperClassesMips16",
"(",
")",
";",
"PreviousInMips16Mode",
"=",
"true",
";",
"}",
"else",
"if",
"(",
"!",
"inMips16Mode",
"(",
")",
"&&",
"PreviousInMips16Mode",
")",
"{",
"setHelperClassesMipsSE",
"(",
")",
";",
"PreviousInMips16Mode",
"=",
"false",
";",
"}",
"return",
";",
"}",
"}",
"</s>"
] | [
"Reset",
"the",
"subtarget",
"for",
"the",
"Mips",
"target",
"."
] | [
"Mips",
"Mips",
"Mips",
"Mips",
"\"resetSubtargetFeatures\"",
"\"\\n\"",
"Mips",
"\"mips16\"",
"Mips",
"\"nomips16\"",
"Mips",
"Mips",
"\"mips16 and nomips16 specified on the same function\"",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"\"back to default\"",
"\"\\n\"",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"Mips"
] | MipsSubtarget1 | resetSubtarget | Mips | CPU | LLVM | 34,695 | 203 | 1 | [] |
[
"<s>",
"static",
"const",
"char",
"*",
"match_to_right_bracket",
"(",
"void",
")",
"{",
"int",
"lastpos",
"=",
"pos",
"-",
"1",
";",
"while",
"(",
"lastpos",
"<",
"LINELEN",
"-",
"1",
"&&",
"linebuf",
"[",
"lastpos",
"+",
"1",
"]",
"!=",
"']'",
")",
"{",
"if",
"(",
"linebuf",
"[",
"lastpos",
"+",
"1",
"]",
"==",
"'\\n'",
")",
"fatal",
"(",
"\"no ']' found before end of line.\\n\"",
")",
";",
"++",
"lastpos",
";",
"}",
"if",
"(",
"lastpos",
">=",
"LINELEN",
"-",
"1",
")",
"{",
"diag",
"(",
"lastpos",
",",
"\"line length overrun.\\n\"",
")",
";",
"exit",
"(",
"1",
")",
";",
"}",
"if",
"(",
"lastpos",
"<",
"pos",
")",
"return",
"0",
";",
"char",
"*",
"buf",
"=",
"(",
"char",
"*",
")",
"malloc",
"(",
"lastpos",
"-",
"pos",
"+",
"2",
")",
";",
"memcpy",
"(",
"buf",
",",
"&",
"linebuf",
"[",
"pos",
"]",
",",
"lastpos",
"-",
"pos",
"+",
"1",
")",
";",
"buf",
"[",
"lastpos",
"-",
"pos",
"+",
"1",
"]",
"=",
"'\\0'",
";",
"pos",
"=",
"lastpos",
"+",
"1",
";",
"return",
"buf",
";",
"}",
"</s>"
] | [
"Match",
"a",
"string",
"up",
"to",
"but",
"not",
"including",
"a",
"'",
"]",
"'",
",",
"and",
"return",
"its",
"value",
",",
"or",
"zero",
"if",
"there",
"is",
"nothing",
"before",
"the",
"'",
"]",
"'",
".",
"Error",
"if",
"we",
"do",
"n't",
"find",
"such",
"a",
"character",
"."
] | [
"rs6000",
"1",
"1",
"1",
"1",
"\"no ']' found before end of line.\\n\"",
"1",
"\"line length overrun.\\n\"",
"1",
"0",
"2",
"1",
"1",
"1"
] | rs6000-gen-builtins | match_to_right_bracket | rs6000 | CPU | GCC | 34,696 | 140 | 1 | [] |
[
"<s>",
"static",
"void",
"rs6000_invalid_builtin",
"(",
"enum",
"rs6000_builtins",
"fncode",
")",
"{",
"size_t",
"uns_fncode",
"=",
"(",
"size_t",
")",
"fncode",
";",
"const",
"char",
"*",
"name",
"=",
"rs6000_builtin_info",
"[",
"uns_fncode",
"]",
".",
"name",
";",
"HOST_WIDE_INT",
"fnmask",
"=",
"rs6000_builtin_info",
"[",
"uns_fncode",
"]",
".",
"mask",
";",
"gcc_assert",
"(",
"name",
"!=",
"NULL",
")",
";",
"if",
"(",
"(",
"fnmask",
"&",
"RS6000_BTM_CELL",
")",
"!=",
"0",
")",
"error",
"(",
"\"Builtin function %s is only valid for the cell processor\"",
",",
"name",
")",
";",
"else",
"if",
"(",
"(",
"fnmask",
"&",
"RS6000_BTM_VSX",
")",
"!=",
"0",
")",
"error",
"(",
"\"Builtin function %s requires the -mvsx option\"",
",",
"name",
")",
";",
"else",
"if",
"(",
"(",
"fnmask",
"&",
"RS6000_BTM_HTM",
")",
"!=",
"0",
")",
"error",
"(",
"\"Builtin function %s requires the -mhtm option\"",
",",
"name",
")",
";",
"else",
"if",
"(",
"(",
"fnmask",
"&",
"RS6000_BTM_ALTIVEC",
")",
"!=",
"0",
")",
"error",
"(",
"\"Builtin function %s requires the -maltivec option\"",
",",
"name",
")",
";",
"else",
"if",
"(",
"(",
"fnmask",
"&",
"RS6000_BTM_PAIRED",
")",
"!=",
"0",
")",
"error",
"(",
"\"Builtin function %s requires the -mpaired option\"",
",",
"name",
")",
";",
"else",
"if",
"(",
"(",
"fnmask",
"&",
"RS6000_BTM_SPE",
")",
"!=",
"0",
")",
"error",
"(",
"\"Builtin function %s requires the -mspe option\"",
",",
"name",
")",
";",
"else",
"if",
"(",
"(",
"fnmask",
"&",
"(",
"RS6000_BTM_DFP",
"|",
"RS6000_BTM_P8_VECTOR",
")",
")",
"==",
"(",
"RS6000_BTM_DFP",
"|",
"RS6000_BTM_P8_VECTOR",
")",
")",
"error",
"(",
"\"Builtin function %s requires the -mhard-dfp and\"",
"\" -mpower8-vector options\"",
",",
"name",
")",
";",
"else",
"if",
"(",
"(",
"fnmask",
"&",
"RS6000_BTM_DFP",
")",
"!=",
"0",
")",
"error",
"(",
"\"Builtin function %s requires the -mhard-dfp option\"",
",",
"name",
")",
";",
"else",
"if",
"(",
"(",
"fnmask",
"&",
"RS6000_BTM_P8_VECTOR",
")",
"!=",
"0",
")",
"error",
"(",
"\"Builtin function %s requires the -mpower8-vector option\"",
",",
"name",
")",
";",
"else",
"if",
"(",
"(",
"fnmask",
"&",
"(",
"RS6000_BTM_P9_VECTOR",
"|",
"RS6000_BTM_64BIT",
")",
")",
"==",
"(",
"RS6000_BTM_P9_VECTOR",
"|",
"RS6000_BTM_64BIT",
")",
")",
"error",
"(",
"\"Builtin function %s requires the -mcpu=power9 and\"",
"\" -m64 options\"",
",",
"name",
")",
";",
"else",
"if",
"(",
"(",
"fnmask",
"&",
"RS6000_BTM_P9_VECTOR",
")",
"!=",
"0",
")",
"error",
"(",
"\"Builtin function %s requires the -mcpu=power9 option\"",
",",
"name",
")",
";",
"else",
"if",
"(",
"(",
"fnmask",
"&",
"(",
"RS6000_BTM_P9_MISC",
"|",
"RS6000_BTM_64BIT",
")",
")",
"==",
"(",
"RS6000_BTM_P9_MISC",
"|",
"RS6000_BTM_64BIT",
")",
")",
"error",
"(",
"\"Builtin function %s requires the -mcpu=power9 and\"",
"\" -m64 options\"",
",",
"name",
")",
";",
"else",
"if",
"(",
"(",
"fnmask",
"&",
"RS6000_BTM_P9_MISC",
")",
"==",
"RS6000_BTM_P9_MISC",
")",
"error",
"(",
"\"Builtin function %s requires the -mcpu=power9 option\"",
",",
"name",
")",
";",
"else",
"if",
"(",
"(",
"fnmask",
"&",
"(",
"RS6000_BTM_HARD_FLOAT",
"|",
"RS6000_BTM_LDBL128",
")",
")",
"==",
"(",
"RS6000_BTM_HARD_FLOAT",
"|",
"RS6000_BTM_LDBL128",
")",
")",
"error",
"(",
"\"Builtin function %s requires the -mhard-float and\"",
"\" -mlong-double-128 options\"",
",",
"name",
")",
";",
"else",
"if",
"(",
"(",
"fnmask",
"&",
"RS6000_BTM_HARD_FLOAT",
")",
"!=",
"0",
")",
"error",
"(",
"\"Builtin function %s requires the -mhard-float option\"",
",",
"name",
")",
";",
"else",
"if",
"(",
"(",
"fnmask",
"&",
"RS6000_BTM_FLOAT128",
")",
"!=",
"0",
")",
"error",
"(",
"\"Builtin function %s requires the -mfloat128 option\"",
",",
"name",
")",
";",
"else",
"error",
"(",
"\"Builtin function %s is not supported with the current options\"",
",",
"name",
")",
";",
"}",
"</s>"
] | [
"Raise",
"an",
"error",
"message",
"for",
"a",
"builtin",
"function",
"that",
"is",
"called",
"without",
"the",
"appropriate",
"target",
"options",
"being",
"set",
"."
] | [
"powerpcspe",
"0",
"\"Builtin function %s is only valid for the cell processor\"",
"0",
"\"Builtin function %s requires the -mvsx option\"",
"0",
"\"Builtin function %s requires the -mhtm option\"",
"0",
"\"Builtin function %s requires the -maltivec option\"",
"0",
"\"Builtin function %s requires the -mpaired option\"",
"0",
"\"Builtin function %s requires the -mspe option\"",
"\"Builtin function %s requires the -mhard-dfp and\"",
"\" -mpower8-vector options\"",
"0",
"\"Builtin function %s requires the -mhard-dfp option\"",
"0",
"\"Builtin function %s requires the -mpower8-vector option\"",
"\"Builtin function %s requires the -mcpu=power9 and\"",
"\" -m64 options\"",
"0",
"\"Builtin function %s requires the -mcpu=power9 option\"",
"\"Builtin function %s requires the -mcpu=power9 and\"",
"\" -m64 options\"",
"\"Builtin function %s requires the -mcpu=power9 option\"",
"\"Builtin function %s requires the -mhard-float and\"",
"\" -mlong-double-128 options\"",
"0",
"\"Builtin function %s requires the -mhard-float option\"",
"0",
"\"Builtin function %s requires the -mfloat128 option\"",
"\"Builtin function %s is not supported with the current options\""
] | powerpcspe | rs6000_invalid_builtin | powerpcspe | CPU | GCC | 34,697 | 378 | 1 | [] |
[
"<s>",
"static",
"int",
"m32r_adjust_priority",
"(",
"rtx",
"insn",
",",
"int",
"priority",
")",
"{",
"if",
"(",
"m32r_is_insn",
"(",
"insn",
")",
"&&",
"get_attr_insn_size",
"(",
"insn",
")",
"!=",
"INSN_SIZE_SHORT",
")",
"priority",
"<<=",
"3",
";",
"return",
"priority",
";",
"}",
"</s>"
] | [
"Increase",
"the",
"priority",
"of",
"long",
"instructions",
"so",
"that",
"the",
"short",
"instructions",
"are",
"scheduled",
"ahead",
"of",
"the",
"long",
"ones",
"."
] | [
"m32r",
"3"
] | m32r3 | m32r_adjust_priority | m32r | MPU | GCC | 34,698 | 33 | 1 | [] |
[
"<s>",
"uint64_t",
"ARMGOT",
"::",
"emit",
"(",
"MemoryRegion",
"&",
"pRegion",
")",
"{",
"uint32_t",
"*",
"buffer",
"=",
"reinterpret_cast",
"<",
"uint32_t",
"*",
">",
"(",
"pRegion",
".",
"begin",
"(",
")",
")",
";",
"ARMGOTEntry",
"*",
"got",
"=",
"NULL",
";",
"uint64_t",
"result",
"=",
"0x0",
";",
"for",
"(",
"iterator",
"it",
"=",
"begin",
"(",
")",
",",
"ie",
"=",
"end",
"(",
")",
";",
"it",
"!=",
"ie",
";",
"++",
"it",
",",
"++",
"buffer",
")",
"{",
"got",
"=",
"&",
"(",
"llvm",
"::",
"cast",
"<",
"ARMGOTEntry",
">",
"(",
"(",
"*",
"it",
")",
")",
")",
";",
"*",
"buffer",
"=",
"static_cast",
"<",
"uint32_t",
">",
"(",
"got",
"->",
"getValue",
"(",
")",
")",
";",
"result",
"+=",
"ARMGOTEntry",
"::",
"EntrySize",
";",
"}",
"return",
"result",
";",
"}",
"</s>"
] | [
"Output",
"the",
"remark",
"via",
"the",
"diagnostic",
"handler",
"and",
"to",
"the",
"optimization",
"record",
"file",
"."
] | [
"ARM",
"ARM",
"ARM",
"0x0",
"ARM",
"ARMGOTEntry::EntrySize"
] | ARMGOT | emit | ARM | CPU | LLVM | 34,699 | 108 | 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.