ground_truth
sequencelengths 8
512
| natrual_language
sequencelengths 1
243
| TS_V_token
sequencelengths 1
182
| File
stringlengths 2
45
| Func
stringlengths 1
56
| Target
stringclasses 175
values | Target_Clf
stringclasses 6
values | Compiler_Type
stringclasses 2
values | Idx
int64 0
36.2k
| Length
int64 6
510
| Cover_Rate
float64 1
1
| Template_token
sequencelengths 0
0
|
---|---|---|---|---|---|---|---|---|---|---|---|
[
"<s>",
"bool",
"arc_epilogue_uses",
"(",
"int",
"regno",
")",
"{",
"if",
"(",
"regno",
"==",
"arc_tp_regno",
")",
"return",
"true",
";",
"if",
"(",
"reload_completed",
")",
"{",
"if",
"(",
"ARC_INTERRUPT_P",
"(",
"cfun",
"->",
"machine",
"->",
"fn_type",
")",
")",
"{",
"if",
"(",
"!",
"fixed_regs",
"[",
"regno",
"]",
")",
"return",
"true",
";",
"return",
"(",
"(",
"regno",
"==",
"arc_return_address_regs",
"[",
"cfun",
"->",
"machine",
"->",
"fn_type",
"]",
")",
"||",
"(",
"regno",
"==",
"RETURN_ADDR_REGNUM",
")",
")",
";",
"}",
"else",
"return",
"regno",
"==",
"RETURN_ADDR_REGNUM",
";",
"}",
"else",
"return",
"regno",
"==",
"arc_return_address_regs",
"[",
"arc_compute_function_type",
"(",
"cfun",
")",
"]",
";",
"}",
"</s>"
] | [
"Implement",
"EPILOGUE__USES",
".",
"Return",
"true",
"if",
"REGNO",
"should",
"be",
"added",
"to",
"the",
"deemed",
"uses",
"of",
"the",
"epilogue",
".",
"We",
"use",
"the",
"return",
"address",
"arc_return_address_regs",
"[",
"arc_compute_function_type",
"(",
"cfun",
")",
"]",
".",
"But",
"also",
",",
"we",
"have",
"to",
"make",
"sure",
"all",
"the",
"register",
"restore",
"instructions",
"are",
"known",
"to",
"be",
"live",
"in",
"interrupt",
"functions",
",",
"plus",
"the",
"blink",
"register",
"if",
"it",
"is",
"clobbered",
"by",
"the",
"isr",
"."
] | [
"arc"
] | arc6 | arc_epilogue_uses | arc | MPU | GCC | 15,300 | 87 | 1 | [] |
[
"<s>",
"StringRef",
"getPassName",
"(",
")",
"const",
"override",
"{",
"return",
"\"TVM Replace Physical Registers\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"TVM",
"\"TVM Replace Physical Registers\""
] | TVMReplacePhysRegs | getPassName | TVM | Virtual ISA | LLVM | 15,301 | 11 | 1 | [] |
[
"<s>",
"rtx",
"aarch64_simd_vect_par_cnst_half",
"(",
"machine_mode",
"mode",
",",
"int",
"nunits",
",",
"bool",
"high",
")",
"{",
"rtvec",
"v",
"=",
"rtvec_alloc",
"(",
"nunits",
"/",
"2",
")",
";",
"int",
"high_base",
"=",
"nunits",
"/",
"2",
";",
"int",
"low_base",
"=",
"0",
";",
"int",
"base",
";",
"rtx",
"t1",
";",
"int",
"i",
";",
"if",
"(",
"BYTES_BIG_ENDIAN",
")",
"base",
"=",
"high",
"?",
"low_base",
":",
"high_base",
";",
"else",
"base",
"=",
"high",
"?",
"high_base",
":",
"low_base",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"nunits",
"/",
"2",
";",
"i",
"++",
")",
"RTVEC_ELT",
"(",
"v",
",",
"i",
")",
"=",
"GEN_INT",
"(",
"base",
"+",
"i",
")",
";",
"t1",
"=",
"gen_rtx_PARALLEL",
"(",
"mode",
",",
"v",
")",
";",
"return",
"t1",
";",
"}",
"</s>"
] | [
"Construct",
"and",
"return",
"a",
"PARALLEL",
"RTX",
"vector",
"with",
"elements",
"numbering",
"the",
"lanes",
"of",
"either",
"the",
"high",
"(",
"HIGH",
"==",
"TRUE",
")",
"or",
"low",
"(",
"HIGH",
"==",
"FALSE",
")",
"half",
"of",
"the",
"vector",
"-",
"from",
"the",
"perspective",
"of",
"the",
"architecture",
".",
"This",
"does",
"not",
"line",
"up",
"with",
"GCC",
"'s",
"perspective",
"on",
"lane",
"numbers",
",",
"so",
"we",
"end",
"up",
"with",
"different",
"masks",
"depending",
"on",
"our",
"target",
"endian-ness",
".",
"The",
"diagram",
"below",
"may",
"help",
".",
"We",
"must",
"draw",
"the",
"distinction",
"when",
"building",
"masks",
"which",
"select",
"one",
"half",
"of",
"the",
"vector",
".",
"An",
"instruction",
"selecting",
"architectural",
"low-lanes",
"for",
"a",
"big-endian",
"target",
",",
"must",
"be",
"described",
"using",
"a",
"mask",
"selecting",
"GCC",
"high-lanes",
".",
"Big-Endian",
"Little-EndianGCC",
"0",
"1",
"2",
"3",
"3",
"2",
"1",
"0",
"|",
"x",
"|",
"x",
"|",
"x",
"|",
"x",
"|",
"|",
"x",
"|",
"x",
"|",
"x",
"|",
"x",
"|Architecture",
"3",
"2",
"1",
"0",
"3",
"2",
"1",
"0Low",
"Mask",
":",
"{",
"2",
",",
"3",
"}",
"{",
"0",
",",
"1",
"}",
"High",
"Mask",
":",
"{",
"0",
",",
"1",
"}",
"{",
"2",
",",
"3",
"}"
] | [
"aarch64",
"2",
"2",
"0",
"0",
"2"
] | aarch64 | aarch64_simd_vect_par_cnst_half | aarch64 | CPU | GCC | 15,302 | 107 | 1 | [] |
[
"<s>",
"static",
"tree",
"make_dispatcher_decl",
"(",
"const",
"tree",
"decl",
")",
"{",
"tree",
"func_decl",
";",
"char",
"*",
"func_name",
";",
"tree",
"fn_type",
",",
"func_type",
";",
"bool",
"is_uniq",
"=",
"false",
";",
"if",
"(",
"TREE_PUBLIC",
"(",
"decl",
")",
"==",
"0",
")",
"is_uniq",
"=",
"true",
";",
"func_name",
"=",
"make_name",
"(",
"decl",
",",
"\"ifunc\"",
",",
"is_uniq",
")",
";",
"fn_type",
"=",
"TREE_TYPE",
"(",
"decl",
")",
";",
"func_type",
"=",
"build_function_type",
"(",
"TREE_TYPE",
"(",
"fn_type",
")",
",",
"TYPE_ARG_TYPES",
"(",
"fn_type",
")",
")",
";",
"func_decl",
"=",
"build_fn_decl",
"(",
"func_name",
",",
"func_type",
")",
";",
"XDELETEVEC",
"(",
"func_name",
")",
";",
"TREE_USED",
"(",
"func_decl",
")",
"=",
"1",
";",
"DECL_CONTEXT",
"(",
"func_decl",
")",
"=",
"NULL_TREE",
";",
"DECL_INITIAL",
"(",
"func_decl",
")",
"=",
"error_mark_node",
";",
"DECL_ARTIFICIAL",
"(",
"func_decl",
")",
"=",
"1",
";",
"DECL_EXTERNAL",
"(",
"func_decl",
")",
"=",
"1",
";",
"TREE_PUBLIC",
"(",
"func_decl",
")",
"=",
"1",
";",
"return",
"func_decl",
";",
"}",
"</s>"
] | [
"Make",
"a",
"dispatcher",
"declaration",
"for",
"the",
"multi-versioned",
"function",
"DECL",
".",
"Calls",
"to",
"DECL",
"function",
"will",
"be",
"replaced",
"with",
"calls",
"to",
"the",
"dispatcher",
"by",
"the",
"front-end",
".",
"Return",
"the",
"decl",
"created",
"."
] | [
"i386",
"0",
"\"ifunc\"",
"1",
"1",
"1",
"1"
] | i3864 | make_dispatcher_decl | i386 | CPU | GCC | 15,303 | 132 | 1 | [] |
[
"<s>",
"bool",
"AMDGPUPeepholeOpt",
"::",
"doInitialization",
"(",
"Module",
"&",
"M",
")",
"{",
"return",
"false",
";",
"}",
"</s>"
] | [
"Set",
"up",
"the",
"AsmPrinter",
"when",
"we",
"are",
"working",
"on",
"a",
"new",
"module",
"."
] | [
"R600"
] | AMDILPeepholeOptimizer | doInitialization | R600 | GPU | LLVM | 15,304 | 14 | 1 | [] |
[
"<s>",
"bool",
"AArch64TargetLowering",
"::",
"isLegalAddressingMode",
"(",
"const",
"DataLayout",
"&",
"DL",
",",
"const",
"AddrMode",
"&",
"AM",
",",
"Type",
"*",
"Ty",
",",
"unsigned",
"AS",
")",
"const",
"{",
"if",
"(",
"AM",
".",
"BaseGV",
")",
"return",
"false",
";",
"if",
"(",
"AM",
".",
"HasBaseReg",
"&&",
"AM",
".",
"BaseOffs",
"&&",
"AM",
".",
"Scale",
")",
"return",
"false",
";",
"uint64_t",
"NumBytes",
"=",
"0",
";",
"if",
"(",
"Ty",
"->",
"isSized",
"(",
")",
")",
"{",
"uint64_t",
"NumBits",
"=",
"DL",
".",
"getTypeSizeInBits",
"(",
"Ty",
")",
";",
"NumBytes",
"=",
"NumBits",
"/",
"8",
";",
"if",
"(",
"!",
"isPowerOf2_64",
"(",
"NumBits",
")",
")",
"NumBytes",
"=",
"0",
";",
"}",
"if",
"(",
"!",
"AM",
".",
"Scale",
")",
"{",
"int64_t",
"Offset",
"=",
"AM",
".",
"BaseOffs",
";",
"if",
"(",
"isInt",
"<",
"9",
">",
"(",
"Offset",
")",
")",
"return",
"true",
";",
"unsigned",
"shift",
"=",
"Log2_64",
"(",
"NumBytes",
")",
";",
"if",
"(",
"NumBytes",
"&&",
"Offset",
">",
"0",
"&&",
"(",
"Offset",
"/",
"NumBytes",
")",
"<=",
"(",
"1LL",
"<<",
"12",
")",
"-",
"1",
"&&",
"(",
"Offset",
">>",
"shift",
")",
"<<",
"shift",
"==",
"Offset",
")",
"return",
"true",
";",
"return",
"false",
";",
"}",
"return",
"AM",
".",
"Scale",
"==",
"1",
"||",
"(",
"AM",
".",
"Scale",
">",
"0",
"&&",
"(",
"uint64_t",
")",
"AM",
".",
"Scale",
"==",
"NumBytes",
")",
";",
"}",
"</s>"
] | [
"isLegalAddressingMode",
"-",
"Return",
"true",
"if",
"the",
"addressing",
"mode",
"represented",
"by",
"AM",
"is",
"legal",
"for",
"this",
"target",
",",
"for",
"a",
"load/store",
"of",
"the",
"specified",
"type",
"."
] | [
"AArch64",
"AArch64",
"0",
"8",
"0",
"9",
"0",
"1LL",
"12",
"1",
"1",
"0"
] | AArch64ISelLowering105 | isLegalAddressingMode | AArch64 | CPU | LLVM | 15,305 | 193 | 1 | [] |
[
"<s>",
"bool",
"PPCQPXLoadSplat",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"if",
"(",
"skipFunction",
"(",
"MF",
".",
"getFunction",
"(",
")",
")",
")",
"return",
"false",
";",
"bool",
"MadeChange",
"=",
"false",
";",
"const",
"TargetRegisterInfo",
"*",
"TRI",
"=",
"MF",
".",
"getSubtarget",
"(",
")",
".",
"getRegisterInfo",
"(",
")",
";",
"for",
"(",
"auto",
"MFI",
"=",
"MF",
".",
"begin",
"(",
")",
",",
"MFIE",
"=",
"MF",
".",
"end",
"(",
")",
";",
"MFI",
"!=",
"MFIE",
";",
"++",
"MFI",
")",
"{",
"MachineBasicBlock",
"*",
"MBB",
"=",
"&",
"*",
"MFI",
";",
"SmallVector",
"<",
"MachineInstr",
"*",
",",
"4",
">",
"Splats",
";",
"for",
"(",
"auto",
"MBBI",
"=",
"MBB",
"->",
"rbegin",
"(",
")",
";",
"MBBI",
"!=",
"MBB",
"->",
"rend",
"(",
")",
";",
"++",
"MBBI",
")",
"{",
"MachineInstr",
"*",
"MI",
"=",
"&",
"*",
"MBBI",
";",
"if",
"(",
"MI",
"->",
"hasUnmodeledSideEffects",
"(",
")",
"||",
"MI",
"->",
"isCall",
"(",
")",
")",
"{",
"Splats",
".",
"clear",
"(",
")",
";",
"continue",
";",
"}",
"for",
"(",
"auto",
"SI",
"=",
"Splats",
".",
"begin",
"(",
")",
";",
"SI",
"!=",
"Splats",
".",
"end",
"(",
")",
";",
")",
"{",
"MachineInstr",
"*",
"SMI",
"=",
"*",
"SI",
";",
"unsigned",
"SplatReg",
"=",
"SMI",
"->",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
";",
"unsigned",
"SrcReg",
"=",
"SMI",
"->",
"getOperand",
"(",
"1",
")",
".",
"getReg",
"(",
")",
";",
"if",
"(",
"MI",
"->",
"modifiesRegister",
"(",
"SrcReg",
",",
"TRI",
")",
")",
"{",
"switch",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"SI",
"=",
"Splats",
".",
"erase",
"(",
"SI",
")",
";",
"continue",
";",
"case",
"PPC",
"::",
"LFS",
":",
"case",
"PPC",
"::",
"LFD",
":",
"case",
"PPC",
"::",
"LFSU",
":",
"case",
"PPC",
"::",
"LFDU",
":",
"case",
"PPC",
"::",
"LFSUX",
":",
"case",
"PPC",
"::",
"LFDUX",
":",
"case",
"PPC",
"::",
"LFSX",
":",
"case",
"PPC",
"::",
"LFDX",
":",
"case",
"PPC",
"::",
"LFIWAX",
":",
"case",
"PPC",
"::",
"LFIWZX",
":",
"if",
"(",
"SplatReg",
"!=",
"SrcReg",
")",
"{",
"unsigned",
"SubRegIndex",
"=",
"TRI",
"->",
"getSubRegIndex",
"(",
"SrcReg",
",",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
")",
";",
"unsigned",
"SplatSubReg",
"=",
"TRI",
"->",
"getSubReg",
"(",
"SplatReg",
",",
"SubRegIndex",
")",
";",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"setReg",
"(",
"SplatSubReg",
")",
";",
"MI",
"->",
"substituteRegister",
"(",
"SrcReg",
",",
"SplatReg",
",",
"0",
",",
"*",
"TRI",
")",
";",
"}",
"SI",
"=",
"Splats",
".",
"erase",
"(",
"SI",
")",
";",
"++",
"MBBI",
";",
"SMI",
"->",
"eraseFromParent",
"(",
")",
";",
"--",
"MBBI",
";",
"++",
"NumSimplified",
";",
"MadeChange",
"=",
"true",
";",
"continue",
";",
"}",
"}",
"if",
"(",
"MI",
"->",
"modifiesRegister",
"(",
"SplatReg",
",",
"TRI",
")",
"||",
"(",
"SrcReg",
"!=",
"SplatReg",
"&&",
"MI",
"->",
"readsRegister",
"(",
"SplatReg",
",",
"TRI",
")",
")",
")",
"{",
"SI",
"=",
"Splats",
".",
"erase",
"(",
"SI",
")",
";",
"continue",
";",
"}",
"++",
"SI",
";",
"}",
"if",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
"!=",
"PPC",
"::",
"QVESPLATI",
"&&",
"MI",
"->",
"getOpcode",
"(",
")",
"!=",
"PPC",
"::",
"QVESPLATIs",
"&&",
"MI",
"->",
"getOpcode",
"(",
")",
"!=",
"PPC",
"::",
"QVESPLATIb",
")",
"continue",
";",
"if",
"(",
"MI",
"->",
"getOperand",
"(",
"2",
")",
".",
"getImm",
"(",
")",
"!=",
"0",
")",
"continue",
";",
"if",
"(",
"!",
"MI",
"->",
"getOperand",
"(",
"1",
")",
".",
"isKill",
"(",
")",
")",
"continue",
";",
"Splats",
".",
"push_back",
"(",
"MI",
")",
";",
"}",
"}",
"return",
"MadeChange",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"PowerPC",
"PPC",
"4",
"0",
"1",
"PPC::LFS",
"PPC::LFD",
"PPC::LFSU",
"PPC::LFDU",
"PPC::LFSUX",
"PPC::LFDUX",
"PPC::LFSX",
"PPC::LFDX",
"PPC::LFIWAX",
"PPC::LFIWZX",
"0",
"0",
"0",
"PPC::QVESPLATI",
"PPC::QVESPLATIs",
"PPC::QVESPLATIb",
"2",
"0",
"1"
] | PPCQPXLoadSplat | runOnMachineFunction | PowerPC | CPU | LLVM | 15,306 | 505 | 1 | [] |
[
"<s>",
"SDValue",
"WebAssemblySelectionDAGInfo",
"::",
"EmitTargetCodeForMemset",
"(",
"SelectionDAG",
"&",
"DAG",
",",
"const",
"SDLoc",
"&",
"DL",
",",
"SDValue",
"Chain",
",",
"SDValue",
"Dst",
",",
"SDValue",
"Val",
",",
"SDValue",
"Size",
",",
"Align",
"Alignment",
",",
"bool",
"IsVolatile",
",",
"MachinePointerInfo",
"DstPtrInfo",
")",
"const",
"{",
"auto",
"&",
"ST",
"=",
"DAG",
".",
"getMachineFunction",
"(",
")",
".",
"getSubtarget",
"<",
"WebAssemblySubtarget",
">",
"(",
")",
";",
"if",
"(",
"!",
"ST",
".",
"hasBulkMemory",
"(",
")",
")",
"return",
"SDValue",
"(",
")",
";",
"SDValue",
"MemIdx",
"=",
"DAG",
".",
"getConstant",
"(",
"0",
",",
"DL",
",",
"MVT",
"::",
"i32",
")",
";",
"auto",
"LenMVT",
"=",
"ST",
".",
"hasAddr64",
"(",
")",
"?",
"MVT",
"::",
"i64",
":",
"MVT",
"::",
"i32",
";",
"return",
"DAG",
".",
"getNode",
"(",
"WebAssemblyISD",
"::",
"MEMORY_FILL",
",",
"DL",
",",
"MVT",
"::",
"Other",
",",
"Chain",
",",
"MemIdx",
",",
"Dst",
",",
"DAG",
".",
"getAnyExtOrTrunc",
"(",
"Val",
",",
"DL",
",",
"MVT",
"::",
"i32",
")",
",",
"DAG",
".",
"getZExtOrTrunc",
"(",
"Size",
",",
"DL",
",",
"LenMVT",
")",
")",
";",
"}",
"</s>"
] | [
"Emit",
"target-specific",
"code",
"that",
"performs",
"a",
"memset",
"."
] | [
"WebAssembly",
"WebAssembly",
"WebAssembly",
"0",
"MVT::i32",
"MVT::i64",
"MVT::i32",
"WebAssemblyISD::MEMORY_FILL",
"MVT::Other",
"MVT::i32"
] | WebAssemblySelectionDAGInfo8 | EmitTargetCodeForMemset | WebAssembly | Virtual ISA | LLVM | 15,307 | 148 | 1 | [] |
[
"<s>",
"MCSectionPIC16",
"*",
"MCSectionPIC16",
"::",
"Create",
"(",
"const",
"StringRef",
"&",
"Name",
",",
"SectionKind",
"K",
",",
"MCContext",
"&",
"Ctx",
")",
"{",
"return",
"new",
"(",
"Ctx",
")",
"MCSectionPIC16",
"(",
"Name",
",",
"K",
")",
";",
"}",
"</s>"
] | [
"Construct",
"a",
"unary",
"instruction",
",",
"given",
"the",
"opcode",
"and",
"an",
"operand",
"."
] | [
"PIC16",
"PIC16",
"PIC16",
"PIC16"
] | PIC16TargetObjectFile2 | Create | PIC16 | MPU | LLVM | 15,308 | 32 | 1 | [] |
[
"<s>",
"static",
"void",
"pa_hpux_init_libfuncs",
"(",
"void",
")",
"{",
"set_optab_libfunc",
"(",
"add_optab",
",",
"TFmode",
",",
"\"_U_Qfadd\"",
")",
";",
"set_optab_libfunc",
"(",
"sub_optab",
",",
"TFmode",
",",
"\"_U_Qfsub\"",
")",
";",
"set_optab_libfunc",
"(",
"smul_optab",
",",
"TFmode",
",",
"\"_U_Qfmpy\"",
")",
";",
"set_optab_libfunc",
"(",
"sdiv_optab",
",",
"TFmode",
",",
"\"_U_Qfdiv\"",
")",
";",
"set_optab_libfunc",
"(",
"smin_optab",
",",
"TFmode",
",",
"\"_U_Qmin\"",
")",
";",
"set_optab_libfunc",
"(",
"smax_optab",
",",
"TFmode",
",",
"\"_U_Qfmax\"",
")",
";",
"set_optab_libfunc",
"(",
"sqrt_optab",
",",
"TFmode",
",",
"\"_U_Qfsqrt\"",
")",
";",
"set_optab_libfunc",
"(",
"abs_optab",
",",
"TFmode",
",",
"\"_U_Qfabs\"",
")",
";",
"set_optab_libfunc",
"(",
"neg_optab",
",",
"TFmode",
",",
"\"_U_Qfneg\"",
")",
";",
"set_optab_libfunc",
"(",
"eq_optab",
",",
"TFmode",
",",
"\"_U_Qfeq\"",
")",
";",
"set_optab_libfunc",
"(",
"ne_optab",
",",
"TFmode",
",",
"\"_U_Qfne\"",
")",
";",
"set_optab_libfunc",
"(",
"gt_optab",
",",
"TFmode",
",",
"\"_U_Qfgt\"",
")",
";",
"set_optab_libfunc",
"(",
"ge_optab",
",",
"TFmode",
",",
"\"_U_Qfge\"",
")",
";",
"set_optab_libfunc",
"(",
"lt_optab",
",",
"TFmode",
",",
"\"_U_Qflt\"",
")",
";",
"set_optab_libfunc",
"(",
"le_optab",
",",
"TFmode",
",",
"\"_U_Qfle\"",
")",
";",
"set_optab_libfunc",
"(",
"unord_optab",
",",
"TFmode",
",",
"\"_U_Qfunord\"",
")",
";",
"set_conv_libfunc",
"(",
"sext_optab",
",",
"TFmode",
",",
"SFmode",
",",
"\"_U_Qfcnvff_sgl_to_quad\"",
")",
";",
"set_conv_libfunc",
"(",
"sext_optab",
",",
"TFmode",
",",
"DFmode",
",",
"\"_U_Qfcnvff_dbl_to_quad\"",
")",
";",
"set_conv_libfunc",
"(",
"trunc_optab",
",",
"SFmode",
",",
"TFmode",
",",
"\"_U_Qfcnvff_quad_to_sgl\"",
")",
";",
"set_conv_libfunc",
"(",
"trunc_optab",
",",
"DFmode",
",",
"TFmode",
",",
"\"_U_Qfcnvff_quad_to_dbl\"",
")",
";",
"set_conv_libfunc",
"(",
"sfix_optab",
",",
"SImode",
",",
"TFmode",
",",
"TARGET_64BIT",
"?",
"\"__U_Qfcnvfxt_quad_to_sgl\"",
":",
"\"_U_Qfcnvfxt_quad_to_sgl\"",
")",
";",
"set_conv_libfunc",
"(",
"sfix_optab",
",",
"DImode",
",",
"TFmode",
",",
"\"_U_Qfcnvfxt_quad_to_dbl\"",
")",
";",
"set_conv_libfunc",
"(",
"ufix_optab",
",",
"SImode",
",",
"TFmode",
",",
"\"_U_Qfcnvfxt_quad_to_usgl\"",
")",
";",
"set_conv_libfunc",
"(",
"ufix_optab",
",",
"DImode",
",",
"TFmode",
",",
"\"_U_Qfcnvfxt_quad_to_udbl\"",
")",
";",
"set_conv_libfunc",
"(",
"sfloat_optab",
",",
"TFmode",
",",
"SImode",
",",
"\"_U_Qfcnvxf_sgl_to_quad\"",
")",
";",
"set_conv_libfunc",
"(",
"sfloat_optab",
",",
"TFmode",
",",
"DImode",
",",
"\"_U_Qfcnvxf_dbl_to_quad\"",
")",
";",
"}",
"</s>"
] | [
"Initialize",
"optabs",
"to",
"point",
"to",
"HPUX",
"long",
"double",
"emulation",
"routines",
"."
] | [
"pa",
"\"_U_Qfadd\"",
"\"_U_Qfsub\"",
"\"_U_Qfmpy\"",
"\"_U_Qfdiv\"",
"\"_U_Qmin\"",
"\"_U_Qfmax\"",
"\"_U_Qfsqrt\"",
"\"_U_Qfabs\"",
"\"_U_Qfneg\"",
"\"_U_Qfeq\"",
"\"_U_Qfne\"",
"\"_U_Qfgt\"",
"\"_U_Qfge\"",
"\"_U_Qflt\"",
"\"_U_Qfle\"",
"\"_U_Qfunord\"",
"\"_U_Qfcnvff_sgl_to_quad\"",
"\"_U_Qfcnvff_dbl_to_quad\"",
"\"_U_Qfcnvff_quad_to_sgl\"",
"\"_U_Qfcnvff_quad_to_dbl\"",
"\"__U_Qfcnvfxt_quad_to_sgl\"",
"\"_U_Qfcnvfxt_quad_to_sgl\"",
"\"_U_Qfcnvfxt_quad_to_dbl\"",
"\"_U_Qfcnvfxt_quad_to_usgl\"",
"\"_U_Qfcnvfxt_quad_to_udbl\"",
"\"_U_Qfcnvxf_sgl_to_quad\"",
"\"_U_Qfcnvxf_dbl_to_quad\""
] | pa3 | pa_hpux_init_libfuncs | pa | CPU | GCC | 15,309 | 266 | 1 | [] |
[
"<s>",
"SDValue",
"X86SelectionDAGInfo",
"::",
"EmitTargetCodeForMemcpy",
"(",
"SelectionDAG",
"&",
"DAG",
",",
"const",
"SDLoc",
"&",
"dl",
",",
"SDValue",
"Chain",
",",
"SDValue",
"Dst",
",",
"SDValue",
"Src",
",",
"SDValue",
"Size",
",",
"unsigned",
"Align",
",",
"bool",
"isVolatile",
",",
"bool",
"AlwaysInline",
",",
"MachinePointerInfo",
"DstPtrInfo",
",",
"MachinePointerInfo",
"SrcPtrInfo",
")",
"const",
"{",
"if",
"(",
"DstPtrInfo",
".",
"getAddrSpace",
"(",
")",
">=",
"256",
"||",
"SrcPtrInfo",
".",
"getAddrSpace",
"(",
")",
">=",
"256",
")",
"return",
"SDValue",
"(",
")",
";",
"const",
"MCPhysReg",
"ClobberSet",
"[",
"]",
"=",
"{",
"X86",
"::",
"RCX",
",",
"X86",
"::",
"RSI",
",",
"X86",
"::",
"RDI",
",",
"X86",
"::",
"ECX",
",",
"X86",
"::",
"ESI",
",",
"X86",
"::",
"EDI",
"}",
";",
"if",
"(",
"isBaseRegConflictPossible",
"(",
"DAG",
",",
"ClobberSet",
")",
")",
"return",
"SDValue",
"(",
")",
";",
"const",
"X86Subtarget",
"&",
"Subtarget",
"=",
"DAG",
".",
"getMachineFunction",
"(",
")",
".",
"getSubtarget",
"<",
"X86Subtarget",
">",
"(",
")",
";",
"if",
"(",
"ConstantSDNode",
"*",
"ConstantSize",
"=",
"dyn_cast",
"<",
"ConstantSDNode",
">",
"(",
"Size",
")",
")",
"return",
"emitConstantSizeRepmov",
"(",
"DAG",
",",
"Subtarget",
",",
"dl",
",",
"Chain",
",",
"Dst",
",",
"Src",
",",
"ConstantSize",
"->",
"getZExtValue",
"(",
")",
",",
"Size",
".",
"getValueType",
"(",
")",
",",
"Align",
",",
"isVolatile",
",",
"AlwaysInline",
",",
"DstPtrInfo",
",",
"SrcPtrInfo",
")",
";",
"return",
"SDValue",
"(",
")",
";",
"}",
"</s>"
] | [
"Emit",
"target-specific",
"code",
"that",
"performs",
"a",
"memcpy",
"."
] | [
"X86",
"X86",
"256",
"256",
"X86::RCX",
"X86::RSI",
"X86::RDI",
"X86::ECX",
"X86::ESI",
"X86::EDI",
"X86",
"X86"
] | X86SelectionDAGInfo32 | EmitTargetCodeForMemcpy | X86 | CPU | LLVM | 15,310 | 188 | 1 | [] |
[
"<s>",
"void",
"MipsTargetLowering",
"::",
"HandleByVal",
"(",
"CCState",
"*",
"State",
",",
"unsigned",
"&",
"Size",
",",
"unsigned",
"Align",
")",
"const",
"{",
"MachineFunction",
"&",
"MF",
"=",
"State",
"->",
"getMachineFunction",
"(",
")",
";",
"const",
"TargetFrameLowering",
"*",
"TFL",
"=",
"MF",
".",
"getSubtarget",
"(",
")",
".",
"getFrameLowering",
"(",
")",
";",
"assert",
"(",
"Size",
"&&",
"\"Byval argument's size shouldn't be 0.\"",
")",
";",
"Align",
"=",
"std",
"::",
"min",
"(",
"Align",
",",
"TFL",
"->",
"getStackAlignment",
"(",
")",
")",
";",
"unsigned",
"FirstReg",
"=",
"0",
";",
"unsigned",
"NumRegs",
"=",
"0",
";",
"if",
"(",
"State",
"->",
"getCallingConv",
"(",
")",
"!=",
"CallingConv",
"::",
"Fast",
")",
"{",
"unsigned",
"RegSizeInBytes",
"=",
"Subtarget",
".",
"getGPRSizeInBytes",
"(",
")",
";",
"const",
"ArrayRef",
"<",
"MCPhysReg",
">",
"IntArgRegs",
"=",
"Subtarget",
".",
"getABI",
"(",
")",
".",
"GetByValArgRegs",
"(",
")",
";",
"const",
"MCPhysReg",
"*",
"ShadowRegs",
"=",
"IntArgRegs",
".",
"data",
"(",
")",
";",
"assert",
"(",
"!",
"(",
"Align",
"%",
"RegSizeInBytes",
")",
"&&",
"\"Byval argument's alignment should be a multiple of\"",
"\"RegSizeInBytes.\"",
")",
";",
"FirstReg",
"=",
"State",
"->",
"getFirstUnallocated",
"(",
"IntArgRegs",
".",
"data",
"(",
")",
",",
"IntArgRegs",
".",
"size",
"(",
")",
")",
";",
"if",
"(",
"(",
"Align",
">",
"RegSizeInBytes",
")",
"&&",
"(",
"FirstReg",
"%",
"2",
")",
")",
"{",
"State",
"->",
"AllocateReg",
"(",
"IntArgRegs",
"[",
"FirstReg",
"]",
",",
"ShadowRegs",
"[",
"FirstReg",
"]",
")",
";",
"++",
"FirstReg",
";",
"}",
"Size",
"=",
"RoundUpToAlignment",
"(",
"Size",
",",
"RegSizeInBytes",
")",
";",
"for",
"(",
"unsigned",
"I",
"=",
"FirstReg",
";",
"Size",
">",
"0",
"&&",
"(",
"I",
"<",
"IntArgRegs",
".",
"size",
"(",
")",
")",
";",
"Size",
"-=",
"RegSizeInBytes",
",",
"++",
"I",
",",
"++",
"NumRegs",
")",
"State",
"->",
"AllocateReg",
"(",
"IntArgRegs",
"[",
"I",
"]",
",",
"ShadowRegs",
"[",
"I",
"]",
")",
";",
"}",
"State",
"->",
"addInRegsParamInfo",
"(",
"FirstReg",
",",
"FirstReg",
"+",
"NumRegs",
")",
";",
"}",
"</s>"
] | [
"Target-specific",
"cleanup",
"for",
"formal",
"ByVal",
"parameters",
"."
] | [
"Mips",
"Mips",
"\"Byval argument's size shouldn't be 0.\"",
"0",
"0",
"\"Byval argument's alignment should be a multiple of\"",
"\"RegSizeInBytes.\"",
"2",
"0"
] | MipsISelLowering58 | HandleByVal | Mips | CPU | LLVM | 15,311 | 259 | 1 | [] |
[
"<s>",
"bool",
"AArch64TTIImpl",
"::",
"getTgtMemIntrinsic",
"(",
"IntrinsicInst",
"*",
"Inst",
",",
"MemIntrinsicInfo",
"&",
"Info",
")",
"{",
"switch",
"(",
"Inst",
"->",
"getIntrinsicID",
"(",
")",
")",
"{",
"default",
":",
"break",
";",
"case",
"Intrinsic",
"::",
"aarch64_neon_ld2",
":",
"case",
"Intrinsic",
"::",
"aarch64_neon_ld3",
":",
"case",
"Intrinsic",
"::",
"aarch64_neon_ld4",
":",
"Info",
".",
"ReadMem",
"=",
"true",
";",
"Info",
".",
"WriteMem",
"=",
"false",
";",
"Info",
".",
"PtrVal",
"=",
"Inst",
"->",
"getArgOperand",
"(",
"0",
")",
";",
"break",
";",
"case",
"Intrinsic",
"::",
"aarch64_neon_st2",
":",
"case",
"Intrinsic",
"::",
"aarch64_neon_st3",
":",
"case",
"Intrinsic",
"::",
"aarch64_neon_st4",
":",
"Info",
".",
"ReadMem",
"=",
"false",
";",
"Info",
".",
"WriteMem",
"=",
"true",
";",
"Info",
".",
"PtrVal",
"=",
"Inst",
"->",
"getArgOperand",
"(",
"Inst",
"->",
"arg_size",
"(",
")",
"-",
"1",
")",
";",
"break",
";",
"}",
"switch",
"(",
"Inst",
"->",
"getIntrinsicID",
"(",
")",
")",
"{",
"default",
":",
"return",
"false",
";",
"case",
"Intrinsic",
"::",
"aarch64_neon_ld2",
":",
"case",
"Intrinsic",
"::",
"aarch64_neon_st2",
":",
"Info",
".",
"MatchingId",
"=",
"VECTOR_LDST_TWO_ELEMENTS",
";",
"break",
";",
"case",
"Intrinsic",
"::",
"aarch64_neon_ld3",
":",
"case",
"Intrinsic",
"::",
"aarch64_neon_st3",
":",
"Info",
".",
"MatchingId",
"=",
"VECTOR_LDST_THREE_ELEMENTS",
";",
"break",
";",
"case",
"Intrinsic",
"::",
"aarch64_neon_ld4",
":",
"case",
"Intrinsic",
"::",
"aarch64_neon_st4",
":",
"Info",
".",
"MatchingId",
"=",
"VECTOR_LDST_FOUR_ELEMENTS",
";",
"break",
";",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"Given",
"an",
"intrinsic",
",",
"checks",
"if",
"on",
"the",
"target",
"the",
"intrinsic",
"will",
"need",
"to",
"map",
"to",
"a",
"MemIntrinsicNode",
"(",
"touches",
"memory",
")",
"."
] | [
"AArch64",
"AArch64",
"Intrinsic::aarch64_neon_ld2",
"Intrinsic::aarch64_neon_ld3",
"Intrinsic::aarch64_neon_ld4",
"0",
"Intrinsic::aarch64_neon_st2",
"Intrinsic::aarch64_neon_st3",
"Intrinsic::aarch64_neon_st4",
"1",
"Intrinsic::aarch64_neon_ld2",
"Intrinsic::aarch64_neon_st2",
"Intrinsic::aarch64_neon_ld3",
"Intrinsic::aarch64_neon_st3",
"Intrinsic::aarch64_neon_ld4",
"Intrinsic::aarch64_neon_st4"
] | AArch64TargetTransformInfo | getTgtMemIntrinsic | AArch64 | CPU | LLVM | 15,312 | 187 | 1 | [] |
[
"<s>",
"bool",
"SystemZPassConfig",
"::",
"addPreEmitPass",
"(",
")",
"{",
"addPass",
"(",
"createSystemZLongBranchPass",
"(",
"getSystemZTargetMachine",
"(",
")",
")",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"This",
"pass",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"immediately",
"before",
"machine",
"code",
"is",
"emitted",
"."
] | [
"SystemZ",
"SystemZ",
"SystemZ",
"SystemZ"
] | SystemZTargetMachine8 | addPreEmitPass | SystemZ | CPU | LLVM | 15,313 | 21 | 1 | [] |
[
"<s>",
"static",
"bool",
"use_real_mask_p",
"(",
"enum",
"predication_type_index",
"pred",
")",
"{",
"return",
"pred",
"==",
"PRED_TYPE_m",
"||",
"pred",
"==",
"PRED_TYPE_tum",
"||",
"pred",
"==",
"PRED_TYPE_tumu",
"||",
"pred",
"==",
"PRED_TYPE_mu",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"predication",
"is",
"using",
"a",
"real",
"mask",
"operand",
"."
] | [
"riscv"
] | riscv-vector-builtins | use_real_mask_p | riscv | CPU | GCC | 15,314 | 27 | 1 | [] |
[
"<s>",
"unsigned",
"getMemScale",
"(",
")",
"const",
"{",
"assert",
"(",
"Kind",
"==",
"Memory",
"&&",
"\"Invalid access!\"",
")",
";",
"return",
"Mem",
".",
"Scale",
";",
"}",
"</s>"
] | [
"Scaling",
"factor",
"for",
"(",
"scaled",
"or",
"unscaled",
")",
"load",
"or",
"store",
"."
] | [
"X86",
"\"Invalid access!\""
] | X86AsmParser (2)2 | getMemScale | X86 | CPU | LLVM | 15,315 | 21 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"getPassName",
"(",
")",
"const",
"override",
"{",
"return",
"\"Sparc Machine Code Emitter\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"Sparc",
"\"Sparc Machine Code Emitter\""
] | SparcCodeEmitter3 | getPassName | Sparc | CPU | LLVM | 15,316 | 13 | 1 | [] |
[
"<s>",
"void",
"MipsCodeEmitter",
"::",
"emitInstruction",
"(",
"const",
"MachineInstr",
"&",
"MI",
")",
"{",
"DEBUG",
"(",
"errs",
"(",
")",
"<<",
"\"JIT: \"",
"<<",
"(",
"void",
"*",
")",
"MCE",
".",
"getCurrentPCValue",
"(",
")",
"<<",
"\":\\t\"",
"<<",
"MI",
")",
";",
"MCE",
".",
"processDebugLoc",
"(",
"MI",
".",
"getDebugLoc",
"(",
")",
",",
"true",
")",
";",
"if",
"(",
"(",
"MI",
".",
"getDesc",
"(",
")",
".",
"TSFlags",
"&",
"MipsII",
"::",
"FormMask",
")",
"==",
"MipsII",
"::",
"Pseudo",
")",
"return",
";",
"emitWord",
"(",
"getBinaryCodeForInstr",
"(",
"MI",
")",
")",
";",
"++",
"NumEmitted",
";",
"MCE",
".",
"processDebugLoc",
"(",
"MI",
".",
"getDebugLoc",
"(",
")",
",",
"false",
")",
";",
"}",
"</s>"
] | [
"Targets",
"should",
"implement",
"this",
"to",
"emit",
"instructions",
"."
] | [
"Mips",
"Mips",
"\"JIT: \"",
"\":\\t\"",
"MipsII::FormMask",
"MipsII::Pseudo"
] | MipsCodeEmitter10 | emitInstruction | Mips | CPU | LLVM | 15,317 | 94 | 1 | [] |
[
"<s>",
"bool",
"AMDGPUAnnotateUniformValues",
"::",
"runOnFunction",
"(",
"Function",
"&",
"F",
")",
"{",
"if",
"(",
"skipFunction",
"(",
"F",
")",
")",
"return",
"false",
";",
"DA",
"=",
"&",
"getAnalysis",
"<",
"LegacyDivergenceAnalysis",
">",
"(",
")",
";",
"MDR",
"=",
"&",
"getAnalysis",
"<",
"MemoryDependenceWrapperPass",
">",
"(",
")",
".",
"getMemDep",
"(",
")",
";",
"LI",
"=",
"&",
"getAnalysis",
"<",
"LoopInfoWrapperPass",
">",
"(",
")",
".",
"getLoopInfo",
"(",
")",
";",
"isEntryFunc",
"=",
"AMDGPU",
"::",
"isEntryFunctionCC",
"(",
"F",
".",
"getCallingConv",
"(",
")",
")",
";",
"visit",
"(",
"F",
")",
";",
"noClobberClones",
".",
"clear",
"(",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"runOnFunction",
"-",
"Virtual",
"method",
"overriden",
"by",
"subclasses",
"to",
"do",
"the",
"per-function",
"processing",
"of",
"the",
"pass",
"."
] | [
"AMDGPU",
"AMDGPU",
"AMDGPU::isEntryFunctionCC"
] | AMDGPUAnnotateUniformValues1 | runOnFunction | AMDGPU | GPU | LLVM | 15,318 | 86 | 1 | [] |
[
"<s>",
"void",
"SIInstrInfo",
"::",
"legalizeOpWithMove",
"(",
"MachineInstr",
"*",
"MI",
",",
"unsigned",
"OpIdx",
")",
"const",
"{",
"MachineBasicBlock",
"::",
"iterator",
"I",
"=",
"MI",
";",
"MachineOperand",
"&",
"MO",
"=",
"MI",
"->",
"getOperand",
"(",
"OpIdx",
")",
";",
"MachineRegisterInfo",
"&",
"MRI",
"=",
"MI",
"->",
"getParent",
"(",
")",
"->",
"getParent",
"(",
")",
"->",
"getRegInfo",
"(",
")",
";",
"unsigned",
"RCID",
"=",
"get",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
".",
"OpInfo",
"[",
"OpIdx",
"]",
".",
"RegClass",
";",
"const",
"TargetRegisterClass",
"*",
"RC",
"=",
"RI",
".",
"getRegClass",
"(",
"RCID",
")",
";",
"unsigned",
"Opcode",
"=",
"AMDGPU",
"::",
"V_MOV_B32_e32",
";",
"if",
"(",
"MO",
".",
"isReg",
"(",
")",
")",
"{",
"Opcode",
"=",
"AMDGPU",
"::",
"COPY",
";",
"}",
"else",
"if",
"(",
"RI",
".",
"isSGPRClass",
"(",
"RC",
")",
")",
"{",
"Opcode",
"=",
"AMDGPU",
"::",
"S_MOV_B32",
";",
"}",
"const",
"TargetRegisterClass",
"*",
"VRC",
"=",
"RI",
".",
"getEquivalentVGPRClass",
"(",
"RC",
")",
";",
"unsigned",
"Reg",
"=",
"MRI",
".",
"createVirtualRegister",
"(",
"VRC",
")",
";",
"BuildMI",
"(",
"*",
"MI",
"->",
"getParent",
"(",
")",
",",
"I",
",",
"MI",
"->",
"getParent",
"(",
")",
"->",
"findDebugLoc",
"(",
"I",
")",
",",
"get",
"(",
"Opcode",
")",
",",
"Reg",
")",
".",
"addOperand",
"(",
"MO",
")",
";",
"MO",
".",
"ChangeToRegister",
"(",
"Reg",
",",
"false",
")",
";",
"}",
"</s>"
] | [
"Legalize",
"the",
"OpIndex",
"operand",
"of",
"this",
"instruction",
"by",
"inserting",
"a",
"MOV",
"."
] | [
"R600",
"SI"
] | SIInstrInfo135 | legalizeOpWithMove | R600 | GPU | LLVM | 15,319 | 189 | 1 | [] |
[
"<s>",
"static",
"void",
"mips_ls2_dfa_post_advance_cycle",
"(",
"state_t",
"state",
")",
"{",
"if",
"(",
"cpu_unit_reservation_p",
"(",
"state",
",",
"mips_ls2",
".",
"alu1_core_unit_code",
")",
")",
"{",
"gcc_assert",
"(",
"mips_ls2",
".",
"cycle_has_multi_p",
")",
";",
"mips_ls2",
".",
"alu1_turn_p",
"=",
"false",
";",
"}",
"mips_ls2",
".",
"cycle_has_multi_p",
"=",
"false",
";",
"if",
"(",
"cpu_unit_reservation_p",
"(",
"state",
",",
"mips_ls2",
".",
"alu2_core_unit_code",
")",
")",
"mips_ls2",
".",
"alu1_turn_p",
"=",
"true",
";",
"if",
"(",
"mips_ls2",
".",
"alu1_turn_p",
")",
"{",
"if",
"(",
"state_transition",
"(",
"state",
",",
"mips_ls2",
".",
"alu1_turn_enabled_insn",
")",
">=",
"0",
")",
"gcc_unreachable",
"(",
")",
";",
"}",
"else",
"{",
"if",
"(",
"state_transition",
"(",
"state",
",",
"mips_ls2",
".",
"alu2_turn_enabled_insn",
")",
">=",
"0",
")",
"gcc_unreachable",
"(",
")",
";",
"}",
"if",
"(",
"cpu_unit_reservation_p",
"(",
"state",
",",
"mips_ls2",
".",
"falu1_core_unit_code",
")",
")",
"{",
"gcc_unreachable",
"(",
")",
";",
"mips_ls2",
".",
"falu1_turn_p",
"=",
"false",
";",
"}",
"if",
"(",
"cpu_unit_reservation_p",
"(",
"state",
",",
"mips_ls2",
".",
"falu2_core_unit_code",
")",
")",
"mips_ls2",
".",
"falu1_turn_p",
"=",
"true",
";",
"if",
"(",
"mips_ls2",
".",
"falu1_turn_p",
")",
"{",
"if",
"(",
"state_transition",
"(",
"state",
",",
"mips_ls2",
".",
"falu1_turn_enabled_insn",
")",
">=",
"0",
")",
"gcc_unreachable",
"(",
")",
";",
"}",
"else",
"{",
"if",
"(",
"state_transition",
"(",
"state",
",",
"mips_ls2",
".",
"falu2_turn_enabled_insn",
")",
">=",
"0",
")",
"gcc_unreachable",
"(",
")",
";",
"}",
"}",
"</s>"
] | [
"Initialize",
"STATE",
"when",
"scheduling",
"for",
"Loongson",
"2E/2F",
".",
"Support",
"round-robin",
"dispatch",
"scheme",
"by",
"enabling",
"only",
"one",
"of",
"ALU1/ALU2",
"and",
"one",
"of",
"FALU1/FALU2",
"units",
"for",
"ALU1/2",
"and",
"FALU1/2",
"instructions",
"respectively",
"."
] | [
"mips",
"0",
"0",
"0",
"0"
] | mips | mips_ls2_dfa_post_advance_cycle | mips | CPU | GCC | 15,320 | 188 | 1 | [] |
[
"<s>",
"StringRef",
"getPassName",
"(",
")",
"const",
"override",
"{",
"return",
"\"AArch64 Redundant Copy Elimination\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"AArch64",
"\"AArch64 Redundant Copy Elimination\""
] | AArch64RedundantCopyElimination | getPassName | AArch64 | CPU | LLVM | 15,321 | 11 | 1 | [] |
[
"<s>",
"static",
"int",
"mips_multipass_dfa_lookahead",
"(",
"void",
")",
"{",
"if",
"(",
"TUNE_SB1",
")",
"return",
"4",
";",
"if",
"(",
"TUNE_LOONGSON_2EF",
"||",
"TUNE_LOONGSON_3A",
")",
"return",
"4",
";",
"if",
"(",
"TUNE_OCTEON",
")",
"return",
"2",
";",
"if",
"(",
"TUNE_P5600",
"||",
"TUNE_I6400",
")",
"return",
"4",
";",
"return",
"0",
";",
"}",
"</s>"
] | [
"Implements",
"TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD",
".",
"This",
"should",
"be",
"as",
"wide",
"as",
"the",
"scheduling",
"freedom",
"in",
"the",
"DFA",
"."
] | [
"mips",
"4",
"4",
"2",
"4",
"0"
] | mips5 | mips_multipass_dfa_lookahead | mips | CPU | GCC | 15,322 | 43 | 1 | [] |
[
"<s>",
"void",
"RISCVTargetLowering",
"::",
"computeKnownBitsForTargetNode",
"(",
"const",
"SDValue",
"Op",
",",
"KnownBits",
"&",
"Known",
",",
"const",
"APInt",
"&",
"DemandedElts",
",",
"const",
"SelectionDAG",
"&",
"DAG",
",",
"unsigned",
"Depth",
")",
"const",
"{",
"if",
"(",
"Op",
".",
"getOpcode",
"(",
")",
"!=",
"RISCVISD",
"::",
"SELECT_CC",
")",
"return",
";",
"KnownBits",
"Known2",
";",
"DAG",
".",
"computeKnownBits",
"(",
"Op",
"->",
"getOperand",
"(",
"3",
")",
",",
"Known",
",",
"Depth",
"+",
"1",
")",
";",
"DAG",
".",
"computeKnownBits",
"(",
"Op",
"->",
"getOperand",
"(",
"4",
")",
",",
"Known2",
",",
"Depth",
"+",
"1",
")",
";",
"Known",
".",
"Zero",
"&=",
"Known2",
".",
"Zero",
";",
"Known",
".",
"One",
"&=",
"Known2",
".",
"One",
";",
"}",
"</s>"
] | [
"Determine",
"which",
"of",
"the",
"bits",
"specified",
"in",
"Mask",
"are",
"known",
"to",
"be",
"either",
"zero",
"or",
"one",
"and",
"return",
"them",
"in",
"the",
"KnownZero/KnownOne",
"bitsets",
"."
] | [
"RISCV",
"RISCV",
"RISCVISD::SELECT_CC",
"3",
"1",
"4",
"1"
] | RISCVISelLowering76 | computeKnownBitsForTargetNode | RISCV | CPU | LLVM | 15,323 | 98 | 1 | [] |
[
"<s>",
"static",
"bool",
"isNodeHidden",
"(",
"const",
"SUnit",
"*",
"Node",
",",
"const",
"ScheduleDAG",
"*",
"Graph",
")",
"{",
"return",
"(",
"Node",
"->",
"NumPreds",
">",
"10",
"||",
"Node",
"->",
"NumSuccs",
">",
"10",
")",
";",
"}",
"</s>"
] | [
"Do",
"not",
"print",
"nodes",
"that",
"are",
"part",
"of",
"a",
"pi-block",
"separately",
"."
] | [
"Patmos",
"10",
"10"
] | PatmosPostRAScheduler | isNodeHidden | Patmos | VLIW | LLVM | 15,324 | 31 | 1 | [] |
[
"<s>",
"rtx",
"function_expander",
"::",
"convert_to_pmode",
"(",
"rtx",
"x",
")",
"{",
"if",
"(",
"ptr_mode",
"==",
"SImode",
")",
"x",
"=",
"simplify_gen_unary",
"(",
"ZERO_EXTEND",
",",
"DImode",
",",
"x",
",",
"SImode",
")",
";",
"return",
"x",
";",
"}",
"</s>"
] | [
"Convert",
"ptr_mode",
"value",
"X",
"to",
"Pmode",
"."
] | [
"aarch64"
] | aarch64-sve-builtins | convert_to_pmode | aarch64 | CPU | GCC | 15,325 | 32 | 1 | [] |
[
"<s>",
"bool",
"MipsTargetLowering",
"::",
"isFPImmLegal",
"(",
"const",
"APFloat",
"&",
"Imm",
",",
"EVT",
"VT",
")",
"const",
"{",
"if",
"(",
"VT",
"!=",
"MVT",
"::",
"f32",
"&&",
"VT",
"!=",
"MVT",
"::",
"f64",
")",
"return",
"false",
";",
"return",
"Imm",
".",
"isZero",
"(",
")",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"the",
"target",
"can",
"instruction",
"select",
"the",
"specified",
"FP",
"immediate",
"natively",
"."
] | [
"Mips",
"Mips",
"MVT::f32",
"MVT::f64"
] | MipsISelLowering115 | isFPImmLegal | Mips | CPU | LLVM | 15,326 | 40 | 1 | [] |
[
"<s>",
"void",
"X86DynAllocaExpander",
"::",
"lower",
"(",
"MachineInstr",
"*",
"MI",
",",
"Lowering",
"L",
")",
"{",
"const",
"DebugLoc",
"&",
"DL",
"=",
"MI",
"->",
"getDebugLoc",
"(",
")",
";",
"MachineBasicBlock",
"*",
"MBB",
"=",
"MI",
"->",
"getParent",
"(",
")",
";",
"MachineBasicBlock",
"::",
"iterator",
"I",
"=",
"*",
"MI",
";",
"int64_t",
"Amount",
"=",
"getDynAllocaAmount",
"(",
"MI",
",",
"MRI",
")",
";",
"if",
"(",
"Amount",
"==",
"0",
")",
"{",
"MI",
"->",
"eraseFromParent",
"(",
")",
";",
"return",
";",
"}",
"bool",
"Is64Bit",
"=",
"STI",
"->",
"is64Bit",
"(",
")",
";",
"bool",
"Is64BitAlloca",
"=",
"MI",
"->",
"getOpcode",
"(",
")",
"==",
"X86",
"::",
"DYN_ALLOCA_64",
";",
"assert",
"(",
"SlotSize",
"==",
"4",
"||",
"SlotSize",
"==",
"8",
")",
";",
"Optional",
"<",
"MachineFunction",
"::",
"DebugInstrOperandPair",
">",
"InstrNum",
"=",
"None",
";",
"if",
"(",
"unsigned",
"Num",
"=",
"MI",
"->",
"peekDebugInstrNum",
"(",
")",
")",
"{",
"InstrNum",
"=",
"{",
"Num",
",",
"2",
"}",
";",
"}",
"switch",
"(",
"L",
")",
"{",
"case",
"TouchAndSub",
":",
"{",
"assert",
"(",
"Amount",
">=",
"SlotSize",
")",
";",
"unsigned",
"RegA",
"=",
"Is64Bit",
"?",
"X86",
"::",
"RAX",
":",
"X86",
"::",
"EAX",
";",
"BuildMI",
"(",
"*",
"MBB",
",",
"I",
",",
"DL",
",",
"TII",
"->",
"get",
"(",
"Is64Bit",
"?",
"X86",
"::",
"PUSH64r",
":",
"X86",
"::",
"PUSH32r",
")",
")",
".",
"addReg",
"(",
"RegA",
",",
"RegState",
"::",
"Undef",
")",
";",
"Amount",
"-=",
"SlotSize",
";",
"if",
"(",
"!",
"Amount",
")",
"break",
";",
"LLVM_FALLTHROUGH",
";",
"}",
"case",
"Sub",
":",
"assert",
"(",
"Amount",
">",
"0",
")",
";",
"if",
"(",
"Amount",
"==",
"SlotSize",
")",
"{",
"unsigned",
"RegA",
"=",
"Is64Bit",
"?",
"X86",
"::",
"RAX",
":",
"X86",
"::",
"EAX",
";",
"BuildMI",
"(",
"*",
"MBB",
",",
"I",
",",
"DL",
",",
"TII",
"->",
"get",
"(",
"Is64Bit",
"?",
"X86",
"::",
"PUSH64r",
":",
"X86",
"::",
"PUSH32r",
")",
")",
".",
"addReg",
"(",
"RegA",
",",
"RegState",
"::",
"Undef",
")",
";",
"}",
"else",
"{",
"BuildMI",
"(",
"*",
"MBB",
",",
"I",
",",
"DL",
",",
"TII",
"->",
"get",
"(",
"getSubOpcode",
"(",
"Is64BitAlloca",
",",
"Amount",
")",
")",
",",
"StackPtr",
")",
".",
"addReg",
"(",
"StackPtr",
")",
".",
"addImm",
"(",
"Amount",
")",
";",
"}",
"break",
";",
"case",
"Probe",
":",
"if",
"(",
"!",
"NoStackArgProbe",
")",
"{",
"unsigned",
"RegA",
"=",
"Is64BitAlloca",
"?",
"X86",
"::",
"RAX",
":",
"X86",
"::",
"EAX",
";",
"BuildMI",
"(",
"*",
"MBB",
",",
"MI",
",",
"DL",
",",
"TII",
"->",
"get",
"(",
"TargetOpcode",
"::",
"COPY",
")",
",",
"RegA",
")",
".",
"addReg",
"(",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
")",
";",
"STI",
"->",
"getFrameLowering",
"(",
")",
"->",
"emitStackProbe",
"(",
"*",
"MBB",
"->",
"getParent",
"(",
")",
",",
"*",
"MBB",
",",
"MI",
",",
"DL",
",",
"false",
",",
"InstrNum",
")",
";",
"}",
"else",
"{",
"BuildMI",
"(",
"*",
"MBB",
",",
"I",
",",
"DL",
",",
"TII",
"->",
"get",
"(",
"Is64BitAlloca",
"?",
"X86",
"::",
"SUB64rr",
":",
"X86",
"::",
"SUB32rr",
")",
",",
"StackPtr",
")",
".",
"addReg",
"(",
"StackPtr",
")",
".",
"addReg",
"(",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
")",
";",
"}",
"break",
";",
"}",
"Register",
"AmountReg",
"=",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
";",
"MI",
"->",
"eraseFromParent",
"(",
")",
";",
"if",
"(",
"MRI",
"->",
"use_empty",
"(",
"AmountReg",
")",
")",
"if",
"(",
"MachineInstr",
"*",
"AmountDef",
"=",
"MRI",
"->",
"getUniqueVRegDef",
"(",
"AmountReg",
")",
")",
"AmountDef",
"->",
"eraseFromParent",
"(",
")",
";",
"}",
"</s>"
] | [
"The",
"instruction",
"is",
"lowered",
"."
] | [
"X86",
"X86",
"0",
"X86::DYN_ALLOCA_64",
"4",
"8",
"2",
"X86::RAX",
"X86::EAX",
"X86::PUSH64r",
"X86::PUSH32r",
"0",
"X86::RAX",
"X86::EAX",
"X86::PUSH64r",
"X86::PUSH32r",
"X86::RAX",
"X86::EAX",
"0",
"X86::SUB64rr",
"X86::SUB32rr",
"0",
"0"
] | X86DynAllocaExpander1 | lower | X86 | CPU | LLVM | 15,327 | 499 | 1 | [] |
[
"<s>",
"void",
"optimization_options",
"(",
"int",
"level",
"ATTRIBUTE_UNUSED",
",",
"int",
"size",
"ATTRIBUTE_UNUSED",
")",
"{",
"flag_caller_saves",
"=",
"0",
";",
"flag_asynchronous_unwind_tables",
"=",
"1",
";",
"if",
"(",
"size",
"!=",
"0",
")",
"target_flags",
"|=",
"MASK_MVCLE",
";",
"}",
"</s>"
] | [
"Change",
"optimizations",
"to",
"be",
"performed",
",",
"depending",
"on",
"the",
"optimization",
"level",
".",
"LEVEL",
"is",
"the",
"optimization",
"level",
"specified",
";",
"2",
"if",
"`",
"-O2",
"'",
"is",
"specified",
",",
"1",
"if",
"`",
"-O",
"'",
"is",
"specified",
",",
"and",
"0",
"if",
"neither",
"is",
"specified",
".",
"SIZE",
"is",
"nonzero",
"if",
"`",
"-Os",
"'",
"is",
"specified",
"and",
"zero",
"otherwise",
"."
] | [
"s390",
"0",
"1",
"0"
] | s3903 | optimization_options | s390 | MPU | GCC | 15,328 | 31 | 1 | [] |
[
"<s>",
"bool",
"Z80FrameLowering",
"::",
"hasFP",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"const",
"MachineFrameInfo",
"*",
"MFI",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
";",
"return",
"(",
"MFI",
"->",
"getMaxCallFrameSize",
"(",
")",
">",
"0",
"||",
"(",
"MFI",
"->",
"getNumObjects",
"(",
")",
">",
"0",
")",
")",
";",
"}",
"</s>"
] | [
"hasFP",
"-",
"Return",
"true",
"if",
"the",
"specified",
"function",
"should",
"have",
"a",
"dedicated",
"frame",
"pointer",
"register",
"."
] | [
"Z80",
"Z80",
"0",
"0"
] | Z80FrameLowering | hasFP | Z80 | MPU | LLVM | 15,329 | 45 | 1 | [] |
[
"<s>",
"void",
"Thumb2InstrInfo",
"::",
"storeRegToStackSlot",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"I",
",",
"unsigned",
"SrcReg",
",",
"bool",
"isKill",
",",
"int",
"FI",
",",
"const",
"TargetRegisterClass",
"*",
"RC",
",",
"const",
"TargetRegisterInfo",
"*",
"TRI",
")",
"const",
"{",
"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",
"::",
"MOStore",
",",
"MFI",
".",
"getObjectSize",
"(",
"FI",
")",
",",
"MFI",
".",
"getObjectAlignment",
"(",
"FI",
")",
")",
";",
"if",
"(",
"RC",
"==",
"&",
"ARM",
"::",
"GPRRegClass",
"||",
"RC",
"==",
"&",
"ARM",
"::",
"tGPRRegClass",
"||",
"RC",
"==",
"&",
"ARM",
"::",
"tcGPRRegClass",
"||",
"RC",
"==",
"&",
"ARM",
"::",
"rGPRRegClass",
"||",
"RC",
"==",
"&",
"ARM",
"::",
"GPRnopcRegClass",
")",
"{",
"AddDefaultPred",
"(",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"ARM",
"::",
"t2STRi12",
")",
")",
".",
"addReg",
"(",
"SrcReg",
",",
"getKillRegState",
"(",
"isKill",
")",
")",
".",
"addFrameIndex",
"(",
"FI",
")",
".",
"addImm",
"(",
"0",
")",
".",
"addMemOperand",
"(",
"MMO",
")",
")",
";",
"return",
";",
"}",
"if",
"(",
"ARM",
"::",
"GPRPairRegClass",
".",
"hasSubClassEq",
"(",
"RC",
")",
")",
"{",
"MachineRegisterInfo",
"*",
"MRI",
"=",
"&",
"MF",
".",
"getRegInfo",
"(",
")",
";",
"MRI",
"->",
"constrainRegClass",
"(",
"SrcReg",
",",
"&",
"ARM",
"::",
"GPRPair_with_gsub_1_in_rGPRRegClass",
")",
";",
"MachineInstrBuilder",
"MIB",
"=",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"ARM",
"::",
"t2STRDi8",
")",
")",
";",
"AddDReg",
"(",
"MIB",
",",
"SrcReg",
",",
"ARM",
"::",
"gsub_0",
",",
"getKillRegState",
"(",
"isKill",
")",
",",
"TRI",
")",
";",
"AddDReg",
"(",
"MIB",
",",
"SrcReg",
",",
"ARM",
"::",
"gsub_1",
",",
"0",
",",
"TRI",
")",
";",
"MIB",
".",
"addFrameIndex",
"(",
"FI",
")",
".",
"addImm",
"(",
"0",
")",
".",
"addMemOperand",
"(",
"MMO",
")",
";",
"AddDefaultPred",
"(",
"MIB",
")",
";",
"return",
";",
"}",
"ARMBaseInstrInfo",
"::",
"storeRegToStackSlot",
"(",
"MBB",
",",
"I",
",",
"SrcReg",
",",
"isKill",
",",
"FI",
",",
"RC",
",",
"TRI",
")",
";",
"}",
"</s>"
] | [
"Store",
"the",
"specified",
"register",
"of",
"the",
"given",
"register",
"class",
"to",
"the",
"specified",
"stack",
"frame",
"index",
"."
] | [
"ARM",
"ARM::GPRRegClass",
"ARM::tGPRRegClass",
"ARM::tcGPRRegClass",
"ARM::rGPRRegClass",
"ARM::GPRnopcRegClass",
"ARM::t2STRi12",
"0",
"ARM::GPRPairRegClass",
"ARM::GPRPair_with_gsub_1_in_rGPRRegClass",
"ARM::t2STRDi8",
"ARM::gsub_0",
"ARM::gsub_1",
"0",
"0",
"ARM"
] | Thumb2InstrInfo11 | storeRegToStackSlot | ARM | CPU | LLVM | 15,330 | 329 | 1 | [] |
[
"<s>",
"bool",
"ARMFastISel",
"::",
"isTypeLegal",
"(",
"Type",
"*",
"Ty",
",",
"MVT",
"&",
"VT",
")",
"{",
"EVT",
"evt",
"=",
"TLI",
".",
"getValueType",
"(",
"DL",
",",
"Ty",
",",
"true",
")",
";",
"if",
"(",
"evt",
"==",
"MVT",
"::",
"Other",
"||",
"!",
"evt",
".",
"isSimple",
"(",
")",
")",
"return",
"false",
";",
"VT",
"=",
"evt",
".",
"getSimpleVT",
"(",
")",
";",
"return",
"TLI",
".",
"isTypeLegal",
"(",
"VT",
")",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"this",
"type",
"is",
"legal",
"."
] | [
"ARM",
"ARM",
"MVT::Other"
] | ARMFastISel (2)2 | isTypeLegal | ARM | CPU | LLVM | 15,331 | 63 | 1 | [] |
[
"<s>",
"rtx",
"frv_split_cond_move",
"(",
"rtx",
"operands",
"[",
"]",
")",
"{",
"rtx",
"dest",
"=",
"operands",
"[",
"0",
"]",
";",
"rtx",
"test",
"=",
"operands",
"[",
"1",
"]",
";",
"rtx",
"cc_reg",
"=",
"operands",
"[",
"2",
"]",
";",
"rtx",
"src1",
"=",
"operands",
"[",
"3",
"]",
";",
"rtx",
"src2",
"=",
"operands",
"[",
"4",
"]",
";",
"rtx",
"cr_reg",
"=",
"operands",
"[",
"5",
"]",
";",
"rtx",
"ret",
";",
"enum",
"machine_mode",
"cr_mode",
"=",
"GET_MODE",
"(",
"cr_reg",
")",
";",
"start_sequence",
"(",
")",
";",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"VOIDmode",
",",
"cr_reg",
",",
"gen_rtx_fmt_ee",
"(",
"GET_CODE",
"(",
"test",
")",
",",
"GET_MODE",
"(",
"cr_reg",
")",
",",
"cc_reg",
",",
"const0_rtx",
")",
")",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"src1",
")",
"==",
"CONST_INT",
"&&",
"GET_CODE",
"(",
"src2",
")",
"==",
"CONST_INT",
")",
"{",
"HOST_WIDE_INT",
"value1",
"=",
"INTVAL",
"(",
"src1",
")",
";",
"HOST_WIDE_INT",
"value2",
"=",
"INTVAL",
"(",
"src2",
")",
";",
"if",
"(",
"value1",
"==",
"0",
")",
"{",
"emit_move_insn",
"(",
"dest",
",",
"src2",
")",
";",
"emit_insn",
"(",
"gen_rtx_COND_EXEC",
"(",
"VOIDmode",
",",
"gen_rtx_NE",
"(",
"cr_mode",
",",
"cr_reg",
",",
"const0_rtx",
")",
",",
"gen_rtx_SET",
"(",
"VOIDmode",
",",
"dest",
",",
"src1",
")",
")",
")",
";",
"}",
"else",
"if",
"(",
"value2",
"==",
"0",
")",
"{",
"emit_move_insn",
"(",
"dest",
",",
"src1",
")",
";",
"emit_insn",
"(",
"gen_rtx_COND_EXEC",
"(",
"VOIDmode",
",",
"gen_rtx_EQ",
"(",
"cr_mode",
",",
"cr_reg",
",",
"const0_rtx",
")",
",",
"gen_rtx_SET",
"(",
"VOIDmode",
",",
"dest",
",",
"src2",
")",
")",
")",
";",
"}",
"else",
"if",
"(",
"IN_RANGE_P",
"(",
"value1",
",",
"-",
"2048",
",",
"2047",
")",
"&&",
"IN_RANGE_P",
"(",
"value2",
"-",
"value1",
",",
"-",
"2048",
",",
"2047",
")",
")",
"{",
"rtx",
"dest_si",
"=",
"(",
"(",
"GET_MODE",
"(",
"dest",
")",
"==",
"SImode",
")",
"?",
"dest",
":",
"gen_rtx_SUBREG",
"(",
"SImode",
",",
"dest",
",",
"0",
")",
")",
";",
"emit_move_insn",
"(",
"dest_si",
",",
"GEN_INT",
"(",
"value2",
"-",
"value1",
")",
")",
";",
"emit_insn",
"(",
"gen_rtx_COND_EXEC",
"(",
"VOIDmode",
",",
"gen_rtx_NE",
"(",
"cr_mode",
",",
"cr_reg",
",",
"const0_rtx",
")",
",",
"gen_rtx_SET",
"(",
"VOIDmode",
",",
"dest_si",
",",
"const0_rtx",
")",
")",
")",
";",
"emit_insn",
"(",
"gen_addsi3",
"(",
"dest_si",
",",
"dest_si",
",",
"src1",
")",
")",
";",
"}",
"else",
"gcc_unreachable",
"(",
")",
";",
"}",
"else",
"{",
"if",
"(",
"!",
"rtx_equal_p",
"(",
"dest",
",",
"src1",
")",
")",
"emit_insn",
"(",
"gen_rtx_COND_EXEC",
"(",
"VOIDmode",
",",
"gen_rtx_NE",
"(",
"cr_mode",
",",
"cr_reg",
",",
"const0_rtx",
")",
",",
"gen_rtx_SET",
"(",
"VOIDmode",
",",
"dest",
",",
"src1",
")",
")",
")",
";",
"if",
"(",
"!",
"rtx_equal_p",
"(",
"dest",
",",
"src2",
")",
")",
"emit_insn",
"(",
"gen_rtx_COND_EXEC",
"(",
"VOIDmode",
",",
"gen_rtx_EQ",
"(",
"cr_mode",
",",
"cr_reg",
",",
"const0_rtx",
")",
",",
"gen_rtx_SET",
"(",
"VOIDmode",
",",
"dest",
",",
"src2",
")",
")",
")",
";",
"}",
"ret",
"=",
"get_insns",
"(",
")",
";",
"end_sequence",
"(",
")",
";",
"return",
"ret",
";",
"}",
"</s>"
] | [
"Split",
"a",
"conditional",
"move",
"into",
"constituent",
"parts",
",",
"returning",
"a",
"SEQUENCE",
"containing",
"all",
"of",
"the",
"insns",
"."
] | [
"frv",
"0",
"1",
"2",
"3",
"4",
"5",
"0",
"0",
"2048",
"2047",
"2048",
"2047",
"0"
] | frv2 | frv_split_cond_move | frv | VLIW | GCC | 15,332 | 413 | 1 | [] |
[
"<s>",
"static",
"tree",
"spu_handle_fndecl_attribute",
"(",
"tree",
"*",
"node",
",",
"tree",
"name",
",",
"tree",
"args",
"ATTRIBUTE_UNUSED",
",",
"int",
"flags",
"ATTRIBUTE_UNUSED",
",",
"bool",
"*",
"no_add_attrs",
")",
"{",
"if",
"(",
"TREE_CODE",
"(",
"*",
"node",
")",
"!=",
"FUNCTION_DECL",
")",
"{",
"warning",
"(",
"0",
",",
"\"%qE attribute only applies to functions\"",
",",
"name",
")",
";",
"*",
"no_add_attrs",
"=",
"true",
";",
"}",
"return",
"NULL_TREE",
";",
"}",
"</s>"
] | [
"Handle",
"an",
"attribute",
"requiring",
"a",
"FUNCTION_DECL",
";",
"arguments",
"as",
"in",
"struct",
"attribute_spec.handler",
"."
] | [
"spu",
"0",
"\"%qE attribute only applies to functions\""
] | spu | spu_handle_fndecl_attribute | spu | MPU | GCC | 15,333 | 54 | 1 | [] |
[
"<s>",
"void",
"SparcTargetLowering",
"::",
"computeKnownBitsForTargetNode",
"(",
"const",
"SDValue",
"Op",
",",
"KnownBits",
"&",
"Known",
",",
"const",
"APInt",
"&",
"DemandedElts",
",",
"const",
"SelectionDAG",
"&",
"DAG",
",",
"unsigned",
"Depth",
")",
"const",
"{",
"KnownBits",
"Known2",
";",
"Known",
".",
"resetAll",
"(",
")",
";",
"switch",
"(",
"Op",
".",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"break",
";",
"case",
"SPISD",
"::",
"SELECT_ICC",
":",
"case",
"SPISD",
"::",
"SELECT_XCC",
":",
"case",
"SPISD",
"::",
"SELECT_FCC",
":",
"Known",
"=",
"DAG",
".",
"computeKnownBits",
"(",
"Op",
".",
"getOperand",
"(",
"1",
")",
",",
"Depth",
"+",
"1",
")",
";",
"Known2",
"=",
"DAG",
".",
"computeKnownBits",
"(",
"Op",
".",
"getOperand",
"(",
"0",
")",
",",
"Depth",
"+",
"1",
")",
";",
"Known",
".",
"One",
"&=",
"Known2",
".",
"One",
";",
"Known",
".",
"Zero",
"&=",
"Known2",
".",
"Zero",
";",
"break",
";",
"}",
"}",
"</s>"
] | [
"Determine",
"which",
"of",
"the",
"bits",
"specified",
"in",
"Mask",
"are",
"known",
"to",
"be",
"either",
"zero",
"or",
"one",
"and",
"return",
"them",
"in",
"the",
"KnownZero/KnownOne",
"bitsets",
"."
] | [
"Sparc",
"Sparc",
"SPISD::SELECT_ICC",
"SPISD::SELECT_XCC",
"SPISD::SELECT_FCC",
"1",
"1",
"0",
"1"
] | SparcISelLowering (2)2 | computeKnownBitsForTargetNode | Sparc | CPU | LLVM | 15,334 | 121 | 1 | [] |
[
"<s>",
"void",
"X86CallLowering",
"::",
"splitToValueTypes",
"(",
"const",
"ArgInfo",
"&",
"OrigArg",
",",
"SmallVectorImpl",
"<",
"ArgInfo",
">",
"&",
"SplitArgs",
",",
"const",
"DataLayout",
"&",
"DL",
",",
"MachineRegisterInfo",
"&",
"MRI",
",",
"SplitArgTy",
"PerformArgSplit",
")",
"const",
"{",
"const",
"X86TargetLowering",
"&",
"TLI",
"=",
"*",
"getTLI",
"<",
"X86TargetLowering",
">",
"(",
")",
";",
"LLVMContext",
"&",
"Context",
"=",
"OrigArg",
".",
"Ty",
"->",
"getContext",
"(",
")",
";",
"EVT",
"VT",
"=",
"TLI",
".",
"getValueType",
"(",
"DL",
",",
"OrigArg",
".",
"Ty",
")",
";",
"unsigned",
"NumParts",
"=",
"TLI",
".",
"getNumRegisters",
"(",
"Context",
",",
"VT",
")",
";",
"if",
"(",
"NumParts",
"==",
"1",
")",
"{",
"SplitArgs",
".",
"push_back",
"(",
"OrigArg",
")",
";",
"return",
";",
"}",
"SmallVector",
"<",
"uint64_t",
",",
"4",
">",
"BitOffsets",
";",
"SmallVector",
"<",
"unsigned",
",",
"8",
">",
"SplitRegs",
";",
"EVT",
"PartVT",
"=",
"TLI",
".",
"getRegisterType",
"(",
"Context",
",",
"VT",
")",
";",
"Type",
"*",
"PartTy",
"=",
"PartVT",
".",
"getTypeForEVT",
"(",
"Context",
")",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"<",
"NumParts",
";",
"++",
"i",
")",
"{",
"ArgInfo",
"Info",
"=",
"ArgInfo",
"{",
"MRI",
".",
"createGenericVirtualRegister",
"(",
"LLT",
"{",
"*",
"PartTy",
",",
"DL",
"}",
")",
",",
"PartTy",
",",
"OrigArg",
".",
"Flags",
"}",
";",
"SplitArgs",
".",
"push_back",
"(",
"Info",
")",
";",
"BitOffsets",
".",
"push_back",
"(",
"PartVT",
".",
"getSizeInBits",
"(",
")",
"*",
"i",
")",
";",
"SplitRegs",
".",
"push_back",
"(",
"Info",
".",
"Reg",
")",
";",
"}",
"PerformArgSplit",
"(",
"SplitRegs",
",",
"BitOffsets",
")",
";",
"}",
"</s>"
] | [
"Break",
"OrigArgInfo",
"into",
"one",
"or",
"more",
"pieces",
"the",
"calling",
"convention",
"can",
"process",
",",
"returned",
"in",
"SplitArgs",
"."
] | [
"X86",
"X86",
"X86",
"X86",
"1",
"4",
"8",
"0"
] | X86CallLowering16 | splitToValueTypes | X86 | CPU | LLVM | 15,335 | 216 | 1 | [] |
[
"<s>",
"std",
"::",
"pair",
"<",
"unsigned",
",",
"const",
"TargetRegisterClass",
"*",
">",
"AArch64TargetLowering",
"::",
"getRegForInlineAsmConstraint",
"(",
"const",
"std",
"::",
"string",
"&",
"Constraint",
",",
"EVT",
"VT",
")",
"const",
"{",
"if",
"(",
"Constraint",
".",
"size",
"(",
")",
"==",
"1",
")",
"{",
"switch",
"(",
"Constraint",
"[",
"0",
"]",
")",
"{",
"case",
"'r'",
":",
"if",
"(",
"VT",
".",
"getSizeInBits",
"(",
")",
"<=",
"32",
")",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"&",
"AArch64",
"::",
"GPR32RegClass",
")",
";",
"else",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"i64",
")",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"&",
"AArch64",
"::",
"GPR64RegClass",
")",
";",
"break",
";",
"case",
"'w'",
":",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"f16",
")",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"&",
"AArch64",
"::",
"FPR16RegClass",
")",
";",
"else",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"f32",
")",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"&",
"AArch64",
"::",
"FPR32RegClass",
")",
";",
"else",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"f64",
")",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"&",
"AArch64",
"::",
"FPR64RegClass",
")",
";",
"else",
"if",
"(",
"VT",
".",
"getSizeInBits",
"(",
")",
"==",
"64",
")",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"&",
"AArch64",
"::",
"VPR64RegClass",
")",
";",
"else",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"f128",
")",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"&",
"AArch64",
"::",
"FPR128RegClass",
")",
";",
"else",
"if",
"(",
"VT",
".",
"getSizeInBits",
"(",
")",
"==",
"128",
")",
"return",
"std",
"::",
"make_pair",
"(",
"0U",
",",
"&",
"AArch64",
"::",
"VPR128RegClass",
")",
";",
"break",
";",
"}",
"}",
"return",
"TargetLowering",
"::",
"getRegForInlineAsmConstraint",
"(",
"Constraint",
",",
"VT",
")",
";",
"}",
"</s>"
] | [
"Given",
"a",
"physical",
"register",
"constraint",
"(",
"e.g",
"."
] | [
"AArch64",
"AArch64",
"1",
"0",
"32",
"0U",
"AArch64::GPR32RegClass",
"MVT::i64",
"0U",
"AArch64::GPR64RegClass",
"MVT::f16",
"0U",
"AArch64::FPR16RegClass",
"MVT::f32",
"0U",
"AArch64::FPR32RegClass",
"MVT::f64",
"0U",
"AArch64::FPR64RegClass",
"64",
"0U",
"AArch64::VPR64RegClass",
"MVT::f128",
"0U",
"AArch64::FPR128RegClass",
"128",
"0U",
"AArch64::VPR128RegClass"
] | AArch64ISelLowering123 | getRegForInlineAsmConstraint | AArch64 | CPU | LLVM | 15,336 | 248 | 1 | [] |
[
"<s>",
"void",
"ARMElfTargetObjectFile",
"::",
"Initialize",
"(",
"MCContext",
"&",
"Ctx",
",",
"const",
"TargetMachine",
"&",
"TM",
")",
"{",
"const",
"ARMBaseTargetMachine",
"&",
"ARM_TM",
"=",
"static_cast",
"<",
"const",
"ARMBaseTargetMachine",
"&",
">",
"(",
"TM",
")",
";",
"bool",
"isAAPCS_ABI",
"=",
"ARM_TM",
".",
"TargetABI",
"==",
"ARMBaseTargetMachine",
"::",
"ARMABI",
"::",
"ARM_ABI_AAPCS",
";",
"bool",
"genExecuteOnly",
"=",
"ARM_TM",
".",
"getMCSubtargetInfo",
"(",
")",
"->",
"hasFeature",
"(",
"ARM",
"::",
"FeatureExecuteOnly",
")",
";",
"TargetLoweringObjectFileELF",
"::",
"Initialize",
"(",
"Ctx",
",",
"TM",
")",
";",
"InitializeELF",
"(",
"isAAPCS_ABI",
")",
";",
"if",
"(",
"isAAPCS_ABI",
")",
"{",
"LSDASection",
"=",
"nullptr",
";",
"}",
"if",
"(",
"genExecuteOnly",
")",
"{",
"unsigned",
"Type",
"=",
"ELF",
"::",
"SHT_PROGBITS",
";",
"unsigned",
"Flags",
"=",
"ELF",
"::",
"SHF_EXECINSTR",
"|",
"ELF",
"::",
"SHF_ALLOC",
"|",
"ELF",
"::",
"SHF_ARM_PURECODE",
";",
"TextSection",
"=",
"Ctx",
".",
"getELFSection",
"(",
"\".text\"",
",",
"Type",
",",
"Flags",
",",
"0",
",",
"\"\"",
",",
"false",
",",
"0U",
",",
"nullptr",
")",
";",
"}",
"}",
"</s>"
] | [
"This",
"method",
"must",
"be",
"called",
"before",
"any",
"actual",
"lowering",
"is",
"done",
"."
] | [
"ARM",
"ARM",
"ARM",
"ARM",
"ARM",
"ARM",
"ARM",
"ARMABI::ARM_ABI_AAPCS",
"ARM",
"ARM::FeatureExecuteOnly",
"ARM",
"\".text\"",
"0",
"\"\"",
"0U"
] | ARMTargetObjectFile11 | Initialize | ARM | CPU | LLVM | 15,337 | 135 | 1 | [] |
[
"<s>",
"virtual",
"void",
"getAnalysisUsage",
"(",
"AnalysisUsage",
"&",
"AU",
")",
"const",
"{",
"AU",
".",
"setPreservesCFG",
"(",
")",
";",
"AU",
".",
"addPreservedID",
"(",
"MachineLoopInfoID",
")",
";",
"AU",
".",
"addPreservedID",
"(",
"MachineDominatorsID",
")",
";",
"MachineFunctionPass",
"::",
"getAnalysisUsage",
"(",
"AU",
")",
";",
"}",
"</s>"
] | [
"getAnalysisUsage",
"-",
"Subclasses",
"that",
"override",
"getAnalysisUsage",
"must",
"call",
"this",
"."
] | [
"X86"
] | X86FloatingPoint21 | getAnalysisUsage | X86 | CPU | LLVM | 15,338 | 38 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"output_v9branch",
"(",
"rtx",
"op",
",",
"rtx",
"dest",
",",
"int",
"reg",
",",
"int",
"label",
",",
"int",
"reversed",
",",
"int",
"annul",
",",
"rtx_insn",
"*",
"insn",
")",
"{",
"static",
"char",
"string",
"[",
"64",
"]",
";",
"enum",
"rtx_code",
"code",
"=",
"GET_CODE",
"(",
"op",
")",
";",
"machine_mode",
"mode",
"=",
"GET_MODE",
"(",
"XEXP",
"(",
"op",
",",
"0",
")",
")",
";",
"rtx",
"note",
";",
"int",
"far",
";",
"char",
"*",
"p",
";",
"far",
"=",
"get_attr_length",
"(",
"insn",
")",
">=",
"3",
";",
"if",
"(",
"reversed",
"^",
"far",
")",
"code",
"=",
"reverse_condition",
"(",
"code",
")",
";",
"gcc_assert",
"(",
"mode",
"==",
"DImode",
")",
";",
"switch",
"(",
"code",
")",
"{",
"case",
"NE",
":",
"strcpy",
"(",
"string",
",",
"\"brnz\"",
")",
";",
"break",
";",
"case",
"EQ",
":",
"strcpy",
"(",
"string",
",",
"\"brz\"",
")",
";",
"break",
";",
"case",
"GE",
":",
"strcpy",
"(",
"string",
",",
"\"brgez\"",
")",
";",
"break",
";",
"case",
"LT",
":",
"strcpy",
"(",
"string",
",",
"\"brlz\"",
")",
";",
"break",
";",
"case",
"LE",
":",
"strcpy",
"(",
"string",
",",
"\"brlez\"",
")",
";",
"break",
";",
"case",
"GT",
":",
"strcpy",
"(",
"string",
",",
"\"brgz\"",
")",
";",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"p",
"=",
"strchr",
"(",
"string",
",",
"'\\0'",
")",
";",
"if",
"(",
"annul",
"&&",
"!",
"far",
")",
"{",
"strcpy",
"(",
"p",
",",
"\",a\"",
")",
";",
"p",
"+=",
"2",
";",
"}",
"if",
"(",
"insn",
"&&",
"(",
"note",
"=",
"find_reg_note",
"(",
"insn",
",",
"REG_BR_PROB",
",",
"NULL_RTX",
")",
")",
")",
"{",
"strcpy",
"(",
"p",
",",
"(",
"(",
"profile_probability",
"::",
"from_reg_br_prob_note",
"(",
"XINT",
"(",
"note",
",",
"0",
")",
")",
">=",
"profile_probability",
"::",
"even",
"(",
")",
")",
"^",
"far",
")",
"?",
"\",pt\"",
":",
"\",pn\"",
")",
";",
"p",
"+=",
"3",
";",
"}",
"*",
"p",
"=",
"p",
"<",
"string",
"+",
"8",
"?",
"'\\t'",
":",
"' '",
";",
"p",
"++",
";",
"*",
"p",
"++",
"=",
"'%'",
";",
"*",
"p",
"++",
"=",
"'0'",
"+",
"reg",
";",
"*",
"p",
"++",
"=",
"','",
";",
"*",
"p",
"++",
"=",
"' '",
";",
"if",
"(",
"far",
")",
"{",
"int",
"veryfar",
"=",
"1",
",",
"delta",
";",
"if",
"(",
"INSN_ADDRESSES_SET_P",
"(",
")",
")",
"{",
"delta",
"=",
"(",
"INSN_ADDRESSES",
"(",
"INSN_UID",
"(",
"dest",
")",
")",
"-",
"INSN_ADDRESSES",
"(",
"INSN_UID",
"(",
"insn",
")",
")",
")",
";",
"if",
"(",
"delta",
">=",
"-",
"260000",
"&&",
"delta",
"<",
"260000",
")",
"veryfar",
"=",
"0",
";",
"}",
"strcpy",
"(",
"p",
",",
"\".+12\\n\\t nop\\n\\t\"",
")",
";",
"if",
"(",
"annul",
"||",
"!",
"final_sequence",
")",
"p",
"[",
"3",
"]",
"=",
"'6'",
";",
"p",
"+=",
"12",
";",
"if",
"(",
"veryfar",
")",
"{",
"strcpy",
"(",
"p",
",",
"\"b\\t\"",
")",
";",
"p",
"+=",
"2",
";",
"}",
"else",
"{",
"strcpy",
"(",
"p",
",",
"\"ba,pt\\t%%xcc, \"",
")",
";",
"p",
"+=",
"13",
";",
"}",
"}",
"*",
"p",
"++",
"=",
"'%'",
";",
"*",
"p",
"++",
"=",
"'l'",
";",
"*",
"p",
"++",
"=",
"'0'",
"+",
"label",
";",
"*",
"p",
"++",
"=",
"'%'",
";",
"*",
"p",
"++",
"=",
"'#'",
";",
"*",
"p",
"=",
"'\\0'",
";",
"return",
"string",
";",
"}",
"</s>"
] | [
"Return",
"the",
"string",
"to",
"output",
"a",
"conditional",
"branch",
"to",
"LABEL",
",",
"testing",
"register",
"REG",
".",
"LABEL",
"is",
"the",
"operand",
"number",
"of",
"the",
"label",
";",
"REG",
"is",
"the",
"operand",
"number",
"of",
"the",
"reg",
".",
"OP",
"is",
"the",
"conditional",
"expression",
".",
"The",
"mode",
"of",
"REG",
"says",
"what",
"kind",
"of",
"comparison",
"we",
"made",
".",
"REVERSED",
"is",
"non-zero",
"if",
"we",
"should",
"reverse",
"the",
"sense",
"of",
"the",
"comparison",
".",
"ANNUL",
"is",
"non-zero",
"if",
"we",
"should",
"generate",
"an",
"annulling",
"branch",
".",
"NOOP",
"is",
"non-zero",
"if",
"we",
"have",
"to",
"follow",
"this",
"branch",
"by",
"a",
"noop",
"."
] | [
"sparc",
"64",
"0",
"3",
"\"brnz\"",
"\"brz\"",
"\"brgez\"",
"\"brlz\"",
"\"brlez\"",
"\"brgz\"",
"\",a\"",
"2",
"0",
"\",pt\"",
"\",pn\"",
"3",
"8",
"1",
"260000",
"260000",
"0",
"\".+12\\n\\t nop\\n\\t\"",
"3",
"12",
"\"b\\t\"",
"2",
"\"ba,pt\\t%%xcc, \"",
"13"
] | sparc | output_v9branch | sparc | CPU | GCC | 15,339 | 460 | 1 | [] |
[
"<s>",
"void",
"ScheduleDAGPostRA",
"::",
"schedule",
"(",
")",
"{",
"buildSchedGraph",
"(",
"AA",
",",
"nullptr",
",",
"nullptr",
",",
"nullptr",
")",
";",
"if",
"(",
"AntiDepBreak",
"!=",
"NULL",
")",
"{",
"unsigned",
"Broken",
"=",
"AntiDepBreak",
"->",
"BreakAntiDependencies",
"(",
"SUnits",
",",
"RegionBegin",
",",
"RegionEnd",
",",
"EndIndex",
",",
"DbgValues",
")",
";",
"if",
"(",
"Broken",
"!=",
"0",
")",
"{",
"ScheduleDAG",
"::",
"clearDAG",
"(",
")",
";",
"buildSchedGraph",
"(",
"AA",
",",
"nullptr",
",",
"nullptr",
",",
"nullptr",
")",
";",
"NumFixedAnti",
"+=",
"Broken",
";",
"}",
"}",
"Topo",
".",
"InitDAGTopologicalSorting",
"(",
")",
";",
"postprocessDAG",
"(",
")",
";",
"SchedImpl",
"->",
"postprocessDAG",
"(",
"this",
")",
";",
"SmallVector",
"<",
"SUnit",
"*",
",",
"8",
">",
"TopRoots",
",",
"BotRoots",
";",
"findRootsAndBiasEdges",
"(",
"TopRoots",
",",
"BotRoots",
")",
";",
"SchedImpl",
"->",
"initialize",
"(",
"this",
")",
";",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"********** List Scheduling **********\\n\"",
")",
";",
"LLVM_DEBUG",
"(",
"for",
"(",
"unsigned",
"su",
"=",
"0",
",",
"e",
"=",
"SUnits",
".",
"size",
"(",
")",
";",
"su",
"!=",
"e",
";",
"++",
"su",
")",
"SUnits",
"[",
"su",
"]",
".",
"dumpAttributes",
"(",
")",
")",
";",
"if",
"(",
"ViewPostRASchedDAGs",
")",
"viewGraph",
"(",
")",
";",
"initQueues",
"(",
"TopRoots",
",",
"BotRoots",
")",
";",
"bool",
"IsTopNode",
"=",
"false",
";",
"bool",
"IsBundled",
"=",
"false",
";",
"SUnit",
"*",
"SU",
";",
"while",
"(",
"SchedImpl",
"->",
"pickNode",
"(",
"SU",
",",
"IsTopNode",
",",
"IsBundled",
")",
")",
"{",
"scheduleMI",
"(",
"SU",
",",
"IsTopNode",
",",
"IsBundled",
")",
";",
"if",
"(",
"SU",
"&&",
"SU",
"->",
"isScheduled",
")",
"{",
"SchedImpl",
"->",
"reschedNode",
"(",
"SU",
",",
"IsTopNode",
",",
"IsBundled",
")",
";",
"NumRescheduled",
"++",
";",
"}",
"else",
"if",
"(",
"SU",
")",
"{",
"updateQueues",
"(",
"SU",
",",
"IsTopNode",
",",
"IsBundled",
")",
";",
"SchedImpl",
"->",
"schedNode",
"(",
"SU",
",",
"IsTopNode",
",",
"IsBundled",
")",
";",
"}",
"else",
"{",
"SchedImpl",
"->",
"schedNoop",
"(",
"IsTopNode",
")",
";",
"NumNoops",
"++",
";",
"}",
"}",
"finishTopBundle",
"(",
")",
";",
"finishBottomBundle",
"(",
")",
";",
"assert",
"(",
"CurrentTop",
"==",
"CurrentBottom",
"&&",
"\"Nonempty unscheduled zone.\"",
")",
";",
"SchedImpl",
"->",
"finalize",
"(",
"this",
")",
";",
"placeDebugValues",
"(",
")",
";",
"LLVM_DEBUG",
"(",
"{",
"unsigned",
"BBNum",
"=",
"begin",
"(",
")",
"->",
"getParent",
"(",
")",
"->",
"getNumber",
"(",
")",
";",
"dbgs",
"(",
")",
"<<",
"\"*** Final schedule for BB#\"",
"<<",
"BBNum",
"<<",
"\" ***\\n\"",
";",
"dumpSchedule",
"(",
")",
";",
"dbgs",
"(",
")",
"<<",
"'\\n'",
";",
"}",
")",
";",
"}",
"</s>"
] | [
"Schedule",
"-",
"This",
"is",
"called",
"back",
"from",
"ScheduleDAGInstrs",
":",
":Run",
"(",
")",
"when",
"it",
"'s",
"time",
"to",
"do",
"some",
"work",
"."
] | [
"Patmos",
"0",
"8",
"\"********** List Scheduling **********\\n\"",
"0",
"\"Nonempty unscheduled zone.\"",
"\"*** Final schedule for BB#\"",
"\" ***\\n\""
] | PatmosPostRAScheduler1 | schedule | Patmos | VLIW | LLVM | 15,340 | 345 | 1 | [] |
[
"<s>",
"bool",
"MSP430FrameInfo",
"::",
"hasFP",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"const",
"MachineFrameInfo",
"*",
"MFI",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
";",
"return",
"(",
"DisableFramePointerElim",
"(",
"MF",
")",
"||",
"MF",
".",
"getFrameInfo",
"(",
")",
"->",
"hasVarSizedObjects",
"(",
")",
"||",
"MFI",
"->",
"isFrameAddressTaken",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"hasFP",
"-",
"Return",
"true",
"if",
"the",
"specified",
"function",
"should",
"have",
"a",
"dedicated",
"frame",
"pointer",
"register",
"."
] | [
"MSP430",
"MSP430"
] | MSP430FrameInfo | hasFP | MSP430 | MPU | LLVM | 15,341 | 48 | 1 | [] |
[
"<s>",
"unsigned",
"getMachineCSELookAheadLimit",
"(",
")",
"const",
"override",
"{",
"return",
"20",
";",
"}",
"</s>"
] | [
"Return",
"the",
"value",
"to",
"use",
"for",
"the",
"MachineCSE",
"'s",
"LookAheadLimit",
",",
"which",
"is",
"a",
"heuristic",
"used",
"for",
"CSE'ing",
"phys",
"reg",
"defs",
"."
] | [
"TPC",
"20"
] | TPCInstrInfo | getMachineCSELookAheadLimit | TPC | Virtual ISA | LLVM | 15,342 | 11 | 1 | [] |
[
"<s>",
"void",
"PatmosFrameLowering",
"::",
"emitEpilogue",
"(",
"MachineFunction",
"&",
"MF",
",",
"MachineBasicBlock",
"&",
"MBB",
")",
"const",
"{",
"MachineBasicBlock",
"::",
"iterator",
"MBBI",
"=",
"MBB",
".",
"getLastNonDebugInstr",
"(",
")",
";",
"MachineFrameInfo",
"*",
"MFI",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
";",
"const",
"TargetInstrInfo",
"*",
"TII",
"=",
"TM",
".",
"getInstrInfo",
"(",
")",
";",
"DebugLoc",
"dl",
"=",
"MBBI",
"->",
"getDebugLoc",
"(",
")",
";",
"MachineInstr",
"*",
"MI",
"=",
"emitSTC",
"(",
"MF",
",",
"MBB",
",",
"MBBI",
",",
"Patmos",
"::",
"SFREEi",
")",
";",
"if",
"(",
"MI",
")",
"MI",
"->",
"setFlag",
"(",
"MachineInstr",
"::",
"FrameSetup",
")",
";",
"unsigned",
"stackSize",
"=",
"MFI",
"->",
"getStackSize",
"(",
")",
";",
"if",
"(",
"stackSize",
")",
"{",
"if",
"(",
"stackSize",
"<=",
"0xFFF",
")",
"{",
"MachineInstr",
"*",
"MI",
"=",
"AddDefaultPred",
"(",
"BuildMI",
"(",
"MBB",
",",
"MBBI",
",",
"dl",
",",
"TII",
"->",
"get",
"(",
"Patmos",
"::",
"ADDi",
")",
",",
"Patmos",
"::",
"RSP",
")",
")",
".",
"addReg",
"(",
"Patmos",
"::",
"RSP",
")",
".",
"addImm",
"(",
"stackSize",
")",
";",
"MI",
"->",
"setFlag",
"(",
"MachineInstr",
"::",
"FrameSetup",
")",
";",
"}",
"else",
"{",
"MachineInstr",
"*",
"MI",
"=",
"AddDefaultPred",
"(",
"BuildMI",
"(",
"MBB",
",",
"MBBI",
",",
"dl",
",",
"TII",
"->",
"get",
"(",
"Patmos",
"::",
"ADDl",
")",
",",
"Patmos",
"::",
"RSP",
")",
")",
".",
"addReg",
"(",
"Patmos",
"::",
"RSP",
")",
".",
"addImm",
"(",
"stackSize",
")",
";",
"MI",
"->",
"setFlag",
"(",
"MachineInstr",
"::",
"FrameSetup",
")",
";",
"}",
"}",
"}",
"</s>"
] | [
"Insert",
"epilog",
"code",
"into",
"the",
"function",
"."
] | [
"Patmos",
"Patmos",
"Patmos::SFREEi",
"0xFFF",
"Patmos::ADDi",
"Patmos::RSP",
"Patmos::RSP",
"Patmos::ADDl",
"Patmos::RSP",
"Patmos::RSP"
] | PatmosFrameLowering | emitEpilogue | Patmos | VLIW | LLVM | 15,343 | 213 | 1 | [] |
[
"<s>",
"static",
"void",
"fr30_trampoline_init",
"(",
"rtx",
"m_tramp",
",",
"tree",
"fndecl",
",",
"rtx",
"chain_value",
")",
"{",
"rtx",
"fnaddr",
"=",
"XEXP",
"(",
"DECL_RTL",
"(",
"fndecl",
")",
",",
"0",
")",
";",
"rtx",
"mem",
";",
"emit_block_move",
"(",
"m_tramp",
",",
"assemble_trampoline_template",
"(",
")",
",",
"GEN_INT",
"(",
"TRAMPOLINE_SIZE",
")",
",",
"BLOCK_OP_NORMAL",
")",
";",
"mem",
"=",
"adjust_address",
"(",
"m_tramp",
",",
"SImode",
",",
"4",
")",
";",
"emit_move_insn",
"(",
"mem",
",",
"chain_value",
")",
";",
"mem",
"=",
"adjust_address",
"(",
"m_tramp",
",",
"SImode",
",",
"12",
")",
";",
"emit_move_insn",
"(",
"mem",
",",
"fnaddr",
")",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_TRAMPOLINE_INIT",
"."
] | [
"fr30",
"0",
"4",
"12"
] | fr30 | fr30_trampoline_init | fr30 | DSP | GCC | 15,344 | 83 | 1 | [] |
[
"<s>",
"void",
"aarch64_declare_function_name",
"(",
"FILE",
"*",
"stream",
",",
"const",
"char",
"*",
"name",
",",
"tree",
"fndecl",
")",
"{",
"tree",
"target_parts",
"=",
"DECL_FUNCTION_SPECIFIC_TARGET",
"(",
"fndecl",
")",
";",
"struct",
"cl_target_option",
"*",
"targ_options",
";",
"if",
"(",
"target_parts",
")",
"targ_options",
"=",
"TREE_TARGET_OPTION",
"(",
"target_parts",
")",
";",
"else",
"targ_options",
"=",
"TREE_TARGET_OPTION",
"(",
"target_option_current_node",
")",
";",
"gcc_assert",
"(",
"targ_options",
")",
";",
"const",
"struct",
"processor",
"*",
"this_arch",
"=",
"aarch64_get_arch",
"(",
"targ_options",
"->",
"x_explicit_arch",
")",
";",
"unsigned",
"long",
"isa_flags",
"=",
"targ_options",
"->",
"x_aarch64_isa_flags",
";",
"std",
"::",
"string",
"extension",
"=",
"aarch64_get_extension_string_for_isa_flags",
"(",
"isa_flags",
",",
"this_arch",
"->",
"flags",
")",
";",
"std",
"::",
"string",
"to_print",
"=",
"this_arch",
"->",
"name",
"+",
"extension",
";",
"if",
"(",
"to_print",
"!=",
"aarch64_last_printed_arch_string",
")",
"{",
"asm_fprintf",
"(",
"asm_out_file",
",",
"\"\\t.arch %s\\n\"",
",",
"to_print",
".",
"c_str",
"(",
")",
")",
";",
"aarch64_last_printed_arch_string",
"=",
"to_print",
";",
"}",
"const",
"struct",
"processor",
"*",
"this_tune",
"=",
"aarch64_get_tune_cpu",
"(",
"targ_options",
"->",
"x_explicit_tune_core",
")",
";",
"if",
"(",
"flag_debug_asm",
"&&",
"aarch64_last_printed_tune_string",
"!=",
"this_tune",
"->",
"name",
")",
"{",
"asm_fprintf",
"(",
"asm_out_file",
",",
"\"\\t\"",
"ASM_COMMENT_START",
"\".tune %s\\n\"",
",",
"this_tune",
"->",
"name",
")",
";",
"aarch64_last_printed_tune_string",
"=",
"this_tune",
"->",
"name",
";",
"}",
"ASM_OUTPUT_TYPE_DIRECTIVE",
"(",
"stream",
",",
"name",
",",
"\"function\"",
")",
";",
"ASM_OUTPUT_LABEL",
"(",
"stream",
",",
"name",
")",
";",
"}",
"</s>"
] | [
"Implement",
"ASM_DECLARE_FUNCTION_NAME",
".",
"Output",
"the",
"ISA",
"features",
"used",
"by",
"the",
"function",
"fndecl",
"."
] | [
"aarch64",
"\"\\t.arch %s\\n\"",
"\"\\t\"",
"\".tune %s\\n\"",
"\"function\""
] | aarch643 | aarch64_declare_function_name | aarch64 | CPU | GCC | 15,345 | 185 | 1 | [] |
[
"<s>",
"void",
"MipsTargetELFStreamer",
"::",
"finish",
"(",
")",
"{",
"MCAssembler",
"&",
"MCA",
"=",
"getStreamer",
"(",
")",
".",
"getAssembler",
"(",
")",
";",
"MCContext",
"&",
"Context",
"=",
"MCA",
".",
"getContext",
"(",
")",
";",
"MCStreamer",
"&",
"OS",
"=",
"getStreamer",
"(",
")",
";",
"Triple",
"T",
"(",
"STI",
".",
"getTargetTriple",
"(",
")",
")",
";",
"uint64_t",
"Features",
"=",
"STI",
".",
"getFeatureBits",
"(",
")",
";",
"if",
"(",
"T",
".",
"isArch64Bit",
"(",
")",
"&&",
"(",
"Features",
"&",
"Mips",
"::",
"FeatureN64",
")",
")",
"{",
"const",
"MCSectionELF",
"*",
"Sec",
"=",
"Context",
".",
"getELFSection",
"(",
"\".MIPS.options\"",
",",
"ELF",
"::",
"SHT_MIPS_OPTIONS",
",",
"ELF",
"::",
"SHF_ALLOC",
"|",
"ELF",
"::",
"SHF_MIPS_NOSTRIP",
",",
"SectionKind",
"::",
"getMetadata",
"(",
")",
")",
";",
"OS",
".",
"SwitchSection",
"(",
"Sec",
")",
";",
"OS",
".",
"EmitIntValue",
"(",
"1",
",",
"1",
")",
";",
"OS",
".",
"EmitIntValue",
"(",
"40",
",",
"1",
")",
";",
"OS",
".",
"EmitIntValue",
"(",
"0",
",",
"2",
")",
";",
"OS",
".",
"EmitIntValue",
"(",
"0",
",",
"4",
")",
";",
"OS",
".",
"EmitIntValue",
"(",
"0",
",",
"4",
")",
";",
"OS",
".",
"EmitIntValue",
"(",
"0",
",",
"4",
")",
";",
"OS",
".",
"EmitIntValue",
"(",
"0",
",",
"4",
")",
";",
"OS",
".",
"EmitIntValue",
"(",
"0",
",",
"4",
")",
";",
"OS",
".",
"EmitIntValue",
"(",
"0",
",",
"4",
")",
";",
"OS",
".",
"EmitIntValue",
"(",
"0",
",",
"4",
")",
";",
"OS",
".",
"EmitIntValue",
"(",
"0",
",",
"8",
")",
";",
"}",
"else",
"{",
"const",
"MCSectionELF",
"*",
"Sec",
"=",
"Context",
".",
"getELFSection",
"(",
"\".reginfo\"",
",",
"ELF",
"::",
"SHT_MIPS_REGINFO",
",",
"ELF",
"::",
"SHF_ALLOC",
",",
"SectionKind",
"::",
"getMetadata",
"(",
")",
")",
";",
"OS",
".",
"SwitchSection",
"(",
"Sec",
")",
";",
"OS",
".",
"EmitIntValue",
"(",
"0",
",",
"4",
")",
";",
"OS",
".",
"EmitIntValue",
"(",
"0",
",",
"4",
")",
";",
"OS",
".",
"EmitIntValue",
"(",
"0",
",",
"4",
")",
";",
"OS",
".",
"EmitIntValue",
"(",
"0",
",",
"4",
")",
";",
"OS",
".",
"EmitIntValue",
"(",
"0",
",",
"4",
")",
";",
"OS",
".",
"EmitIntValue",
"(",
"0",
",",
"4",
")",
";",
"}",
"emitMipsAbiFlags",
"(",
")",
";",
"}",
"</s>"
] | [
"finish",
"-",
"after",
"all",
"the",
"new",
"live",
"ranges",
"have",
"been",
"created",
",",
"compute",
"the",
"remaining",
"live",
"range",
",",
"and",
"rewrite",
"instructions",
"to",
"use",
"the",
"new",
"registers",
"."
] | [
"Mips",
"Mips",
"Mips::FeatureN64",
"\".MIPS.options\"",
"1",
"1",
"40",
"1",
"0",
"2",
"0",
"4",
"0",
"4",
"0",
"4",
"0",
"4",
"0",
"4",
"0",
"4",
"0",
"4",
"0",
"8",
"\".reginfo\"",
"0",
"4",
"0",
"4",
"0",
"4",
"0",
"4",
"0",
"4",
"0",
"4",
"Mips"
] | MipsTargetStreamer3 | finish | Mips | CPU | LLVM | 15,346 | 305 | 1 | [] |
[
"<s>",
"void",
"Z80AsmPrinter",
"::",
"EmitInstruction",
"(",
"const",
"MachineInstr",
"*",
"MI",
")",
"{",
"if",
"(",
"emitPseudoExpansionLowering",
"(",
"*",
"OutStreamer",
",",
"MI",
")",
")",
"return",
";",
"MCInst",
"TmpInst",
";",
"TmpInst",
".",
"setOpcode",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
";",
"for",
"(",
"const",
"MachineOperand",
"&",
"MO",
":",
"MI",
"->",
"operands",
"(",
")",
")",
"{",
"MCOperand",
"MCOp",
";",
"if",
"(",
"LowerZ80MachineOperandToMCOperand",
"(",
"MO",
",",
"MCOp",
",",
"*",
"this",
")",
")",
"TmpInst",
".",
"addOperand",
"(",
"MCOp",
")",
";",
"}",
"EmitToStreamer",
"(",
"*",
"OutStreamer",
",",
"TmpInst",
")",
";",
"}",
"</s>"
] | [
"EmitInstruction",
"-",
"This",
"callback",
"is",
"invoked",
"when",
"an",
"instruction",
"is",
"emitted",
",",
"to",
"advance",
"the",
"hazard",
"state",
"."
] | [
"Z80",
"Z80",
"Z80"
] | Z80AsmPrinter (3) | EmitInstruction | Z80 | MPU | LLVM | 15,347 | 83 | 1 | [] |
[
"<s>",
"static",
"uint16_t",
"flags",
"(",
"uint16_t",
"T",
")",
"{",
"return",
"T",
"&",
"FlagMask",
";",
"}",
"</s>"
] | [
"Get",
"the",
"flags",
"for",
"this",
"GlobalValue",
"(",
"see",
"struct",
"GVFlags",
")",
"."
] | [
"Hexagon"
] | RDFGraph | flags | Hexagon | DSP | LLVM | 15,348 | 14 | 1 | [] |
[
"<s>",
"static",
"void",
"rs6000_trampoline_init",
"(",
"rtx",
"m_tramp",
",",
"tree",
"fndecl",
",",
"rtx",
"cxt",
")",
"{",
"int",
"regsize",
"=",
"(",
"TARGET_32BIT",
")",
"?",
"4",
":",
"8",
";",
"rtx",
"fnaddr",
"=",
"XEXP",
"(",
"DECL_RTL",
"(",
"fndecl",
")",
",",
"0",
")",
";",
"rtx",
"ctx_reg",
"=",
"force_reg",
"(",
"Pmode",
",",
"cxt",
")",
";",
"rtx",
"addr",
"=",
"force_reg",
"(",
"Pmode",
",",
"XEXP",
"(",
"m_tramp",
",",
"0",
")",
")",
";",
"switch",
"(",
"DEFAULT_ABI",
")",
"{",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"case",
"ABI_AIX",
":",
"{",
"rtx",
"fnmem",
",",
"fn_reg",
",",
"toc_reg",
";",
"if",
"(",
"!",
"TARGET_POINTERS_TO_NESTED_FUNCTIONS",
")",
"error",
"(",
"\"You cannot take the address of a nested function if you use \"",
"\"the -mno-pointers-to-nested-functions option.\"",
")",
";",
"fnmem",
"=",
"gen_const_mem",
"(",
"Pmode",
",",
"force_reg",
"(",
"Pmode",
",",
"fnaddr",
")",
")",
";",
"fn_reg",
"=",
"gen_reg_rtx",
"(",
"Pmode",
")",
";",
"toc_reg",
"=",
"gen_reg_rtx",
"(",
"Pmode",
")",
";",
"m_tramp",
"=",
"replace_equiv_address",
"(",
"m_tramp",
",",
"addr",
")",
";",
"emit_move_insn",
"(",
"fn_reg",
",",
"MEM_PLUS",
"(",
"fnmem",
",",
"0",
")",
")",
";",
"emit_move_insn",
"(",
"toc_reg",
",",
"MEM_PLUS",
"(",
"fnmem",
",",
"regsize",
")",
")",
";",
"emit_move_insn",
"(",
"MEM_PLUS",
"(",
"m_tramp",
",",
"0",
")",
",",
"fn_reg",
")",
";",
"emit_move_insn",
"(",
"MEM_PLUS",
"(",
"m_tramp",
",",
"regsize",
")",
",",
"toc_reg",
")",
";",
"emit_move_insn",
"(",
"MEM_PLUS",
"(",
"m_tramp",
",",
"2",
"*",
"regsize",
")",
",",
"ctx_reg",
")",
";",
"}",
"break",
";",
"case",
"ABI_ELFv2",
":",
"case",
"ABI_DARWIN",
":",
"case",
"ABI_V4",
":",
"emit_library_call",
"(",
"gen_rtx_SYMBOL_REF",
"(",
"Pmode",
",",
"\"__trampoline_setup\"",
")",
",",
"LCT_NORMAL",
",",
"VOIDmode",
",",
"4",
",",
"addr",
",",
"Pmode",
",",
"GEN_INT",
"(",
"rs6000_trampoline_size",
"(",
")",
")",
",",
"SImode",
",",
"fnaddr",
",",
"Pmode",
",",
"ctx_reg",
",",
"Pmode",
")",
";",
"break",
";",
"}",
"}",
"</s>"
] | [
"Emit",
"RTL",
"insns",
"to",
"initialize",
"the",
"variable",
"parts",
"of",
"a",
"trampoline",
".",
"FNADDR",
"is",
"an",
"RTX",
"for",
"the",
"address",
"of",
"the",
"function",
"'s",
"pure",
"code",
".",
"CXT",
"is",
"an",
"RTX",
"for",
"the",
"static",
"chain",
"value",
"for",
"the",
"function",
"."
] | [
"rs6000",
"4",
"8",
"0",
"0",
"\"You cannot take the address of a nested function if you use \"",
"\"the -mno-pointers-to-nested-functions option.\"",
"0",
"0",
"2",
"\"__trampoline_setup\"",
"4"
] | rs60004 | rs6000_trampoline_init | rs6000 | CPU | GCC | 15,349 | 248 | 1 | [] |
[
"<s>",
"virtual",
"uint64_t",
"getMachineOpValue",
"(",
"const",
"MachineInstr",
"&",
"MI",
",",
"const",
"MachineOperand",
"&",
"MO",
")",
"const",
"{",
"return",
"0",
";",
"}",
"</s>"
] | [
"getMachineOpValue",
"-",
"Return",
"binary",
"encoding",
"of",
"operand",
"."
] | [
"R600",
"0"
] | AMDGPUCodeEmitter | getMachineOpValue | R600 | GPU | LLVM | 15,350 | 20 | 1 | [] |
[
"<s>",
"bool",
"R600Packetizer",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"Fn",
")",
"{",
"const",
"TargetInstrInfo",
"*",
"TII",
"=",
"Fn",
".",
"getTarget",
"(",
")",
".",
"getInstrInfo",
"(",
")",
";",
"MachineLoopInfo",
"&",
"MLI",
"=",
"getAnalysis",
"<",
"MachineLoopInfo",
">",
"(",
")",
";",
"MachineDominatorTree",
"&",
"MDT",
"=",
"getAnalysis",
"<",
"MachineDominatorTree",
">",
"(",
")",
";",
"R600PacketizerList",
"Packetizer",
"(",
"Fn",
",",
"MLI",
",",
"MDT",
")",
";",
"assert",
"(",
"Packetizer",
".",
"getResourceTracker",
"(",
")",
"&&",
"\"Empty DFA table!\"",
")",
";",
"for",
"(",
"MachineFunction",
"::",
"iterator",
"MBB",
"=",
"Fn",
".",
"begin",
"(",
")",
",",
"MBBe",
"=",
"Fn",
".",
"end",
"(",
")",
";",
"MBB",
"!=",
"MBBe",
";",
"++",
"MBB",
")",
"{",
"MachineBasicBlock",
"::",
"iterator",
"End",
"=",
"MBB",
"->",
"end",
"(",
")",
";",
"MachineBasicBlock",
"::",
"iterator",
"MI",
"=",
"MBB",
"->",
"begin",
"(",
")",
";",
"while",
"(",
"MI",
"!=",
"End",
")",
"{",
"if",
"(",
"MI",
"->",
"isKill",
"(",
")",
"||",
"MI",
"->",
"getOpcode",
"(",
")",
"==",
"AMDGPU",
"::",
"IMPLICIT_DEF",
"||",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
"==",
"AMDGPU",
"::",
"CF_ALU",
"&&",
"!",
"MI",
"->",
"getOperand",
"(",
"8",
")",
".",
"getImm",
"(",
")",
")",
")",
"{",
"MachineBasicBlock",
"::",
"iterator",
"DeleteMI",
"=",
"MI",
";",
"++",
"MI",
";",
"MBB",
"->",
"erase",
"(",
"DeleteMI",
")",
";",
"End",
"=",
"MBB",
"->",
"end",
"(",
")",
";",
"continue",
";",
"}",
"for",
"(",
"size_t",
"idx",
"=",
"MI",
"->",
"getNumExplicitOperands",
"(",
")",
";",
"idx",
"<",
"MI",
"->",
"getNumOperands",
"(",
")",
";",
"idx",
"++",
")",
"{",
"MachineOperand",
"&",
"MO",
"=",
"MI",
"->",
"getOperand",
"(",
"idx",
")",
";",
"if",
"(",
"MO",
".",
"isImplicit",
"(",
")",
")",
"{",
"MI",
"->",
"RemoveOperand",
"(",
"idx",
")",
";",
"idx",
"--",
";",
"}",
"}",
"++",
"MI",
";",
"}",
"}",
"for",
"(",
"MachineFunction",
"::",
"iterator",
"MBB",
"=",
"Fn",
".",
"begin",
"(",
")",
",",
"MBBe",
"=",
"Fn",
".",
"end",
"(",
")",
";",
"MBB",
"!=",
"MBBe",
";",
"++",
"MBB",
")",
"{",
"unsigned",
"RemainingCount",
"=",
"MBB",
"->",
"size",
"(",
")",
";",
"for",
"(",
"MachineBasicBlock",
"::",
"iterator",
"RegionEnd",
"=",
"MBB",
"->",
"end",
"(",
")",
";",
"RegionEnd",
"!=",
"MBB",
"->",
"begin",
"(",
")",
";",
")",
"{",
"MachineBasicBlock",
"::",
"iterator",
"I",
"=",
"RegionEnd",
";",
"for",
"(",
";",
"I",
"!=",
"MBB",
"->",
"begin",
"(",
")",
";",
"--",
"I",
",",
"--",
"RemainingCount",
")",
"{",
"if",
"(",
"TII",
"->",
"isSchedulingBoundary",
"(",
"llvm",
"::",
"prior",
"(",
"I",
")",
",",
"MBB",
",",
"Fn",
")",
")",
"break",
";",
"}",
"I",
"=",
"MBB",
"->",
"begin",
"(",
")",
";",
"if",
"(",
"I",
"==",
"RegionEnd",
")",
"{",
"RegionEnd",
"=",
"llvm",
"::",
"prior",
"(",
"RegionEnd",
")",
";",
"--",
"RemainingCount",
";",
"continue",
";",
"}",
"if",
"(",
"I",
"==",
"llvm",
"::",
"prior",
"(",
"RegionEnd",
")",
")",
"{",
"RegionEnd",
"=",
"llvm",
"::",
"prior",
"(",
"RegionEnd",
")",
";",
"continue",
";",
"}",
"Packetizer",
".",
"PacketizeMIs",
"(",
"MBB",
",",
"I",
",",
"RegionEnd",
")",
";",
"RegionEnd",
"=",
"I",
";",
"}",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"R600",
"\"Empty DFA table!\"",
"8"
] | R600Packetizer31 | runOnMachineFunction | R600 | GPU | LLVM | 15,351 | 439 | 1 | [] |
[
"<s>",
"SDValue",
"HexagonTargetLowering",
"::",
"LowerReturn",
"(",
"SDValue",
"Chain",
",",
"CallingConv",
"::",
"ID",
"CallConv",
",",
"bool",
"isVarArg",
",",
"const",
"SmallVectorImpl",
"<",
"ISD",
"::",
"OutputArg",
">",
"&",
"Outs",
",",
"const",
"SmallVectorImpl",
"<",
"SDValue",
">",
"&",
"OutVals",
",",
"const",
"SDLoc",
"&",
"dl",
",",
"SelectionDAG",
"&",
"DAG",
")",
"const",
"{",
"SmallVector",
"<",
"CCValAssign",
",",
"16",
">",
"RVLocs",
";",
"CCState",
"CCInfo",
"(",
"CallConv",
",",
"isVarArg",
",",
"DAG",
".",
"getMachineFunction",
"(",
")",
",",
"RVLocs",
",",
"*",
"DAG",
".",
"getContext",
"(",
")",
")",
";",
"CCInfo",
".",
"AnalyzeReturn",
"(",
"Outs",
",",
"RetCC_Hexagon",
")",
";",
"SDValue",
"Flag",
";",
"SmallVector",
"<",
"SDValue",
",",
"4",
">",
"RetOps",
"(",
"1",
",",
"Chain",
")",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"!=",
"RVLocs",
".",
"size",
"(",
")",
";",
"++",
"i",
")",
"{",
"CCValAssign",
"&",
"VA",
"=",
"RVLocs",
"[",
"i",
"]",
";",
"Chain",
"=",
"DAG",
".",
"getCopyToReg",
"(",
"Chain",
",",
"dl",
",",
"VA",
".",
"getLocReg",
"(",
")",
",",
"OutVals",
"[",
"i",
"]",
",",
"Flag",
")",
";",
"Flag",
"=",
"Chain",
".",
"getValue",
"(",
"1",
")",
";",
"RetOps",
".",
"push_back",
"(",
"DAG",
".",
"getRegister",
"(",
"VA",
".",
"getLocReg",
"(",
")",
",",
"VA",
".",
"getLocVT",
"(",
")",
")",
")",
";",
"}",
"RetOps",
"[",
"0",
"]",
"=",
"Chain",
";",
"if",
"(",
"Flag",
".",
"getNode",
"(",
")",
")",
"RetOps",
".",
"push_back",
"(",
"Flag",
")",
";",
"return",
"DAG",
".",
"getNode",
"(",
"HexagonISD",
"::",
"RET_FLAG",
",",
"dl",
",",
"MVT",
"::",
"Other",
",",
"RetOps",
")",
";",
"}",
"</s>"
] | [
"This",
"hook",
"must",
"be",
"implemented",
"to",
"lower",
"outgoing",
"return",
"values",
",",
"described",
"by",
"the",
"Outs",
"array",
",",
"into",
"the",
"specified",
"DAG",
"."
] | [
"Hexagon",
"Hexagon",
"ISD::OutputArg",
"16",
"Hexagon",
"4",
"1",
"0",
"1",
"0",
"HexagonISD::RET_FLAG",
"MVT::Other"
] | HexagonISelLowering (2) | LowerReturn | Hexagon | DSP | LLVM | 15,352 | 226 | 1 | [] |
[
"<s>",
"bool",
"ARMTargetLowering",
"::",
"shouldExpandAtomicCmpXchgInIR",
"(",
"AtomicCmpXchgInst",
"*",
"AI",
")",
"const",
"{",
"return",
"getTargetMachine",
"(",
")",
".",
"getOptLevel",
"(",
")",
"!=",
"0",
";",
"}",
"</s>"
] | [
"Returns",
"how",
"the",
"given",
"atomic",
"cmpxchg",
"should",
"be",
"expanded",
"by",
"the",
"IR-level",
"AtomicExpand",
"pass",
"."
] | [
"ARM",
"ARM",
"0"
] | ARMISelLowering11 | shouldExpandAtomicCmpXchgInIR | ARM | CPU | LLVM | 15,353 | 23 | 1 | [] |
[
"<s>",
"void",
"AArch64PassConfig",
"::",
"addIRPasses",
"(",
")",
"{",
"addPass",
"(",
"createAtomicExpandPass",
"(",
")",
")",
";",
"if",
"(",
"TM",
"->",
"getOptLevel",
"(",
")",
"!=",
"CodeGenOpt",
"::",
"None",
"&&",
"EnableAtomicTidy",
")",
"addPass",
"(",
"createCFGSimplificationPass",
"(",
"1",
",",
"true",
",",
"true",
",",
"false",
")",
")",
";",
"if",
"(",
"TM",
"->",
"getOptLevel",
"(",
")",
"!=",
"CodeGenOpt",
"::",
"None",
")",
"{",
"if",
"(",
"EnableLoopDataPrefetch",
")",
"addPass",
"(",
"createLoopDataPrefetchPass",
"(",
")",
")",
";",
"if",
"(",
"EnableFalkorHWPFFix",
")",
"addPass",
"(",
"createFalkorMarkStridedAccessesPass",
"(",
")",
")",
";",
"}",
"TargetPassConfig",
"::",
"addIRPasses",
"(",
")",
";",
"if",
"(",
"TM",
"->",
"getOptLevel",
"(",
")",
"!=",
"CodeGenOpt",
"::",
"None",
")",
"addPass",
"(",
"createInterleavedAccessPass",
"(",
")",
")",
";",
"if",
"(",
"TM",
"->",
"getOptLevel",
"(",
")",
"==",
"CodeGenOpt",
"::",
"Aggressive",
"&&",
"EnableGEPOpt",
")",
"{",
"addPass",
"(",
"createSeparateConstOffsetFromGEPPass",
"(",
"TM",
",",
"true",
")",
")",
";",
"addPass",
"(",
"createEarlyCSEPass",
"(",
")",
")",
";",
"addPass",
"(",
"createLICMPass",
"(",
")",
")",
";",
"}",
"}",
"</s>"
] | [
"Add",
"common",
"target",
"configurable",
"passes",
"that",
"perform",
"LLVM",
"IR",
"to",
"IR",
"transforms",
"following",
"machine",
"independent",
"optimization",
"."
] | [
"AArch64",
"AArch64",
"1"
] | AArch64TargetMachine49 | addIRPasses | AArch64 | CPU | LLVM | 15,354 | 144 | 1 | [] |
[
"<s>",
"StringRef",
"getPassName",
"(",
")",
"const",
"override",
"{",
"return",
"\"AMDGPU Annotate Uniform Values\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"AMDGPU",
"\"AMDGPU Annotate Uniform Values\""
] | AMDGPUAnnotateUniformValues | getPassName | AMDGPU | GPU | LLVM | 15,355 | 11 | 1 | [] |
[
"<s>",
"void",
"MipsFrameLowering",
"::",
"emitEpilogue",
"(",
"MachineFunction",
"&",
"MF",
",",
"MachineBasicBlock",
"&",
"MBB",
")",
"const",
"{",
"MachineBasicBlock",
"::",
"iterator",
"MBBI",
"=",
"MBB",
".",
"getLastNonDebugInstr",
"(",
")",
";",
"MachineFrameInfo",
"*",
"MFI",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
";",
"const",
"MipsInstrInfo",
"&",
"TII",
"=",
"*",
"static_cast",
"<",
"const",
"MipsInstrInfo",
"*",
">",
"(",
"MF",
".",
"getTarget",
"(",
")",
".",
"getInstrInfo",
"(",
")",
")",
";",
"DebugLoc",
"dl",
"=",
"MBBI",
"->",
"getDebugLoc",
"(",
")",
";",
"unsigned",
"SP",
"=",
"STI",
".",
"isABI_N64",
"(",
")",
"?",
"Mips",
"::",
"SP_64",
":",
"Mips",
"::",
"SP",
";",
"unsigned",
"FP",
"=",
"STI",
".",
"isABI_N64",
"(",
")",
"?",
"Mips",
"::",
"FP_64",
":",
"Mips",
"::",
"FP",
";",
"unsigned",
"ZERO",
"=",
"STI",
".",
"isABI_N64",
"(",
")",
"?",
"Mips",
"::",
"ZERO_64",
":",
"Mips",
"::",
"ZERO",
";",
"unsigned",
"ADDu",
"=",
"STI",
".",
"isABI_N64",
"(",
")",
"?",
"Mips",
"::",
"DADDu",
":",
"Mips",
"::",
"ADDu",
";",
"unsigned",
"ADDiu",
"=",
"STI",
".",
"isABI_N64",
"(",
")",
"?",
"Mips",
"::",
"DADDiu",
":",
"Mips",
"::",
"ADDiu",
";",
"if",
"(",
"hasFP",
"(",
"MF",
")",
")",
"{",
"MachineBasicBlock",
"::",
"iterator",
"I",
"=",
"MBBI",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"<",
"MFI",
"->",
"getCalleeSavedInfo",
"(",
")",
".",
"size",
"(",
")",
";",
"++",
"i",
")",
"--",
"I",
";",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"ADDu",
")",
",",
"SP",
")",
".",
"addReg",
"(",
"FP",
")",
".",
"addReg",
"(",
"ZERO",
")",
";",
"}",
"uint64_t",
"StackSize",
"=",
"MFI",
"->",
"getStackSize",
"(",
")",
";",
"if",
"(",
"!",
"StackSize",
")",
"return",
";",
"if",
"(",
"isInt",
"<",
"16",
">",
"(",
"StackSize",
")",
")",
"BuildMI",
"(",
"MBB",
",",
"MBBI",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"ADDiu",
")",
",",
"SP",
")",
".",
"addReg",
"(",
"SP",
")",
".",
"addImm",
"(",
"StackSize",
")",
";",
"else",
"{",
"unsigned",
"ATReg",
"=",
"STI",
".",
"isABI_N64",
"(",
")",
"?",
"Mips",
"::",
"AT_64",
":",
"Mips",
"::",
"AT",
";",
"MF",
".",
"getInfo",
"<",
"MipsFunctionInfo",
">",
"(",
")",
"->",
"setEmitNOAT",
"(",
")",
";",
"Mips",
"::",
"loadImmediate",
"(",
"StackSize",
",",
"STI",
".",
"isABI_N64",
"(",
")",
",",
"TII",
",",
"MBB",
",",
"MBBI",
",",
"dl",
",",
"false",
",",
"0",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"MBBI",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"ADDu",
")",
",",
"SP",
")",
".",
"addReg",
"(",
"SP",
")",
".",
"addReg",
"(",
"ATReg",
")",
";",
"}",
"}",
"</s>"
] | [
"Insert",
"epilog",
"code",
"into",
"the",
"function",
"."
] | [
"Mips",
"Mips",
"Mips",
"Mips",
"Mips::SP_64",
"Mips::SP",
"Mips::FP_64",
"Mips::FP",
"Mips::ZERO_64",
"Mips::ZERO",
"Mips::DADDu",
"Mips::ADDu",
"Mips::DADDiu",
"Mips::ADDiu",
"0",
"16",
"Mips::AT_64",
"Mips::AT",
"Mips",
"Mips::loadImmediate",
"0"
] | MipsFrameLowering10 | emitEpilogue | Mips | CPU | LLVM | 15,356 | 364 | 1 | [] |
[
"<s>",
"static",
"void",
"mips_block_move_straight",
"(",
"rtx",
"dest",
",",
"rtx",
"src",
",",
"HOST_WIDE_INT",
"length",
")",
"{",
"HOST_WIDE_INT",
"offset",
",",
"delta",
";",
"unsigned",
"HOST_WIDE_INT",
"bits",
";",
"int",
"i",
";",
"enum",
"machine_mode",
"mode",
";",
"rtx",
"*",
"regs",
";",
"if",
"(",
"MEM_ALIGN",
"(",
"src",
")",
"==",
"BITS_PER_WORD",
"/",
"2",
"&&",
"MEM_ALIGN",
"(",
"dest",
")",
"==",
"BITS_PER_WORD",
"/",
"2",
")",
"bits",
"=",
"BITS_PER_WORD",
"/",
"2",
";",
"else",
"bits",
"=",
"BITS_PER_WORD",
";",
"mode",
"=",
"mode_for_size",
"(",
"bits",
",",
"MODE_INT",
",",
"0",
")",
";",
"delta",
"=",
"bits",
"/",
"BITS_PER_UNIT",
";",
"regs",
"=",
"alloca",
"(",
"sizeof",
"(",
"rtx",
")",
"*",
"length",
"/",
"delta",
")",
";",
"for",
"(",
"offset",
"=",
"0",
",",
"i",
"=",
"0",
";",
"offset",
"+",
"delta",
"<=",
"length",
";",
"offset",
"+=",
"delta",
",",
"i",
"++",
")",
"{",
"regs",
"[",
"i",
"]",
"=",
"gen_reg_rtx",
"(",
"mode",
")",
";",
"if",
"(",
"MEM_ALIGN",
"(",
"src",
")",
">=",
"bits",
")",
"emit_move_insn",
"(",
"regs",
"[",
"i",
"]",
",",
"adjust_address",
"(",
"src",
",",
"mode",
",",
"offset",
")",
")",
";",
"else",
"{",
"rtx",
"part",
"=",
"adjust_address",
"(",
"src",
",",
"BLKmode",
",",
"offset",
")",
";",
"if",
"(",
"!",
"mips_expand_unaligned_load",
"(",
"regs",
"[",
"i",
"]",
",",
"part",
",",
"bits",
",",
"0",
")",
")",
"gcc_unreachable",
"(",
")",
";",
"}",
"}",
"for",
"(",
"offset",
"=",
"0",
",",
"i",
"=",
"0",
";",
"offset",
"+",
"delta",
"<=",
"length",
";",
"offset",
"+=",
"delta",
",",
"i",
"++",
")",
"if",
"(",
"MEM_ALIGN",
"(",
"dest",
")",
">=",
"bits",
")",
"emit_move_insn",
"(",
"adjust_address",
"(",
"dest",
",",
"mode",
",",
"offset",
")",
",",
"regs",
"[",
"i",
"]",
")",
";",
"else",
"{",
"rtx",
"part",
"=",
"adjust_address",
"(",
"dest",
",",
"BLKmode",
",",
"offset",
")",
";",
"if",
"(",
"!",
"mips_expand_unaligned_store",
"(",
"part",
",",
"regs",
"[",
"i",
"]",
",",
"bits",
",",
"0",
")",
")",
"gcc_unreachable",
"(",
")",
";",
"}",
"if",
"(",
"offset",
"<",
"length",
")",
"{",
"src",
"=",
"adjust_address",
"(",
"src",
",",
"BLKmode",
",",
"offset",
")",
";",
"dest",
"=",
"adjust_address",
"(",
"dest",
",",
"BLKmode",
",",
"offset",
")",
";",
"move_by_pieces",
"(",
"dest",
",",
"src",
",",
"length",
"-",
"offset",
",",
"MIN",
"(",
"MEM_ALIGN",
"(",
"src",
")",
",",
"MEM_ALIGN",
"(",
"dest",
")",
")",
",",
"0",
")",
";",
"}",
"}",
"</s>"
] | [
"Emit",
"straight-line",
"code",
"to",
"move",
"LENGTH",
"bytes",
"from",
"SRC",
"to",
"DEST",
".",
"Assume",
"that",
"the",
"areas",
"do",
"not",
"overlap",
"."
] | [
"mips",
"2",
"2",
"2",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0"
] | mips3 | mips_block_move_straight | mips | CPU | GCC | 15,357 | 335 | 1 | [] |
[
"<s>",
"bool",
"use_simple_return_p",
"(",
"void",
")",
"{",
"arm_stack_offsets",
"*",
"offsets",
";",
"if",
"(",
"!",
"reload_completed",
")",
"arm_compute_frame_layout",
"(",
")",
";",
"offsets",
"=",
"arm_get_frame_offsets",
"(",
")",
";",
"return",
"offsets",
"->",
"outgoing_args",
"!=",
"0",
";",
"}",
"</s>"
] | [
"Return",
"TRUE",
"if",
"we",
"should",
"try",
"to",
"use",
"a",
"simple_return",
"insn",
",",
"i.e",
".",
"perform",
"shrink-wrapping",
"if",
"possible",
".",
"This",
"is",
"the",
"case",
"if",
"we",
"need",
"to",
"emit",
"a",
"prologue",
",",
"which",
"we",
"can",
"test",
"by",
"looking",
"at",
"the",
"offsets",
"."
] | [
"arm",
"0"
] | arm | use_simple_return_p | arm | CPU | GCC | 15,358 | 33 | 1 | [] |
[
"<s>",
"void",
"NVPTXPassConfig",
"::",
"addIRPasses",
"(",
")",
"{",
"disablePass",
"(",
"&",
"PrologEpilogCodeInserterID",
")",
";",
"disablePass",
"(",
"&",
"MachineCopyPropagationID",
")",
";",
"disablePass",
"(",
"&",
"BranchFolderPassID",
")",
";",
"disablePass",
"(",
"&",
"TailDuplicateID",
")",
";",
"addPass",
"(",
"createNVPTXImageOptimizerPass",
"(",
")",
")",
";",
"TargetPassConfig",
"::",
"addIRPasses",
"(",
")",
";",
"addPass",
"(",
"createNVPTXAssignValidGlobalNamesPass",
"(",
")",
")",
";",
"addPass",
"(",
"createGenericToNVVMPass",
"(",
")",
")",
";",
"addPass",
"(",
"createNVPTXLowerKernelArgsPass",
"(",
"&",
"getNVPTXTargetMachine",
"(",
")",
")",
")",
";",
"addPass",
"(",
"createSROAPass",
"(",
")",
")",
";",
"addPass",
"(",
"createNVPTXLowerAllocaPass",
"(",
")",
")",
";",
"addPass",
"(",
"createNVPTXFavorNonGenericAddrSpacesPass",
"(",
")",
")",
";",
"addPass",
"(",
"createDeadCodeEliminationPass",
"(",
")",
")",
";",
"addPass",
"(",
"createSeparateConstOffsetFromGEPPass",
"(",
")",
")",
";",
"addPass",
"(",
"createStraightLineStrengthReducePass",
"(",
")",
")",
";",
"if",
"(",
"getOptLevel",
"(",
")",
"==",
"CodeGenOpt",
"::",
"Aggressive",
")",
"addPass",
"(",
"createGVNPass",
"(",
")",
")",
";",
"else",
"addPass",
"(",
"createEarlyCSEPass",
"(",
")",
")",
";",
"addPass",
"(",
"createNaryReassociatePass",
"(",
")",
")",
";",
"addPass",
"(",
"createEarlyCSEPass",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"Add",
"common",
"target",
"configurable",
"passes",
"that",
"perform",
"LLVM",
"IR",
"to",
"IR",
"transforms",
"following",
"machine",
"independent",
"optimization",
"."
] | [
"NVPTX",
"NVPTX",
"NVPTX",
"NVPTX",
"NVPTX",
"NVPTX",
"NVPTX",
"NVPTX"
] | NVPTXTargetMachine34 | addIRPasses | NVPTX | GPU | LLVM | 15,359 | 151 | 1 | [] |
[
"<s>",
"SDValue",
"RISCVTargetLowering",
"::",
"LowerOperation",
"(",
"SDValue",
"Op",
",",
"SelectionDAG",
"&",
"DAG",
")",
"const",
"{",
"switch",
"(",
"Op",
".",
"getOpcode",
"(",
")",
")",
"{",
"case",
"ISD",
"::",
"RETURNADDR",
":",
"return",
"lowerRETURNADDR",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"SELECT_CC",
":",
"return",
"lowerSELECT_CC",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"GlobalAddress",
":",
"return",
"lowerGlobalAddress",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"GlobalTLSAddress",
":",
"return",
"lowerGlobalTLSAddress",
"(",
"cast",
"<",
"GlobalAddressSDNode",
">",
"(",
"Op",
")",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"BlockAddress",
":",
"return",
"lowerBlockAddress",
"(",
"cast",
"<",
"BlockAddressSDNode",
">",
"(",
"Op",
")",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"JumpTable",
":",
"return",
"lowerJumpTable",
"(",
"cast",
"<",
"JumpTableSDNode",
">",
"(",
"Op",
")",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"ConstantPool",
":",
"return",
"lowerConstantPool",
"(",
"cast",
"<",
"ConstantPoolSDNode",
">",
"(",
"Op",
")",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"VASTART",
":",
"return",
"lowerVASTART",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"VAARG",
":",
"return",
"lowerVAARG",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"ATOMIC_FENCE",
":",
"return",
"lowerATOMIC_FENCE",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"STACKSAVE",
":",
"return",
"lowerSTACKSAVE",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"STACKRESTORE",
":",
"return",
"lowerSTACKRESTORE",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"FRAMEADDR",
":",
"return",
"lowerFRAMEADDR",
"(",
"Op",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"ADD",
":",
"return",
"lowerADD",
"(",
"Op",
",",
"DAG",
")",
";",
"default",
":",
"llvm_unreachable",
"(",
"\"Unexpected node to lower\"",
")",
";",
"}",
"}",
"</s>"
] | [
"LowerOperation",
"-",
"Provide",
"custom",
"lowering",
"hooks",
"for",
"some",
"operations",
"."
] | [
"RISCV",
"RISCV",
"ISD::RETURNADDR",
"ISD::SELECT_CC",
"ISD::GlobalAddress",
"ISD::GlobalTLSAddress",
"ISD::BlockAddress",
"ISD::JumpTable",
"ISD::ConstantPool",
"ISD::VASTART",
"ISD::VAARG",
"ISD::ATOMIC_FENCE",
"ISD::STACKSAVE",
"ISD::STACKRESTORE",
"ISD::FRAMEADDR",
"ISD::ADD",
"\"Unexpected node to lower\""
] | RISCVISelLowering75 | LowerOperation | RISCV | CPU | LLVM | 15,360 | 238 | 1 | [] |
[
"<s>",
"static",
"void",
"mips_prepare_builtin_arg",
"(",
"struct",
"expand_operand",
"*",
"op",
",",
"tree",
"exp",
",",
"unsigned",
"int",
"argno",
")",
"{",
"tree",
"arg",
";",
"rtx",
"value",
";",
"arg",
"=",
"CALL_EXPR_ARG",
"(",
"exp",
",",
"argno",
")",
";",
"value",
"=",
"expand_normal",
"(",
"arg",
")",
";",
"create_input_operand",
"(",
"op",
",",
"value",
",",
"TYPE_MODE",
"(",
"TREE_TYPE",
"(",
"arg",
")",
")",
")",
";",
"}",
"</s>"
] | [
"Take",
"the",
"head",
"of",
"argument",
"list",
"*",
"ARGLIST",
"and",
"convert",
"it",
"into",
"a",
"form",
"suitable",
"for",
"input",
"operand",
"OP",
"of",
"instruction",
"ICODE",
".",
"Return",
"the",
"value",
"and",
"point",
"*",
"ARGLIST",
"at",
"the",
"next",
"element",
"of",
"the",
"list",
"."
] | [
"mips"
] | mips | mips_prepare_builtin_arg | mips | CPU | GCC | 15,361 | 55 | 1 | [] |
[
"<s>",
"int",
"getFormat",
"(",
")",
"const",
"{",
"return",
"Format",
";",
"}",
"</s>"
] | [
"Return",
"the",
"DWARF",
"format",
"of",
"this",
"table",
"."
] | [
"TPC"
] | TPCInstPrinter | getFormat | TPC | Virtual ISA | LLVM | 15,362 | 10 | 1 | [] |
[
"<s>",
"void",
"ARCInstPrinter",
"::",
"printInst",
"(",
"const",
"MCInst",
"*",
"MI",
",",
"raw_ostream",
"&",
"O",
",",
"StringRef",
"Annot",
",",
"const",
"MCSubtargetInfo",
"&",
"STI",
")",
"{",
"printInstruction",
"(",
"MI",
",",
"O",
")",
";",
"printAnnotation",
"(",
"O",
",",
"Annot",
")",
";",
"}",
"</s>"
] | [
"Print",
"the",
"specified",
"MCInst",
"to",
"the",
"specified",
"raw_ostream",
"."
] | [
"ARC",
"ARC"
] | ARCInstPrinter | printInst | ARC | MPU | LLVM | 15,363 | 38 | 1 | [] |
[
"<s>",
"static",
"rtx",
"gen_reg_or_parallel",
"(",
"enum",
"machine_mode",
"mode",
",",
"enum",
"machine_mode",
"orig_mode",
",",
"unsigned",
"int",
"regno",
")",
"{",
"rtx",
"tmp",
";",
"if",
"(",
"orig_mode",
"!=",
"BLKmode",
")",
"tmp",
"=",
"gen_rtx_REG",
"(",
"orig_mode",
",",
"regno",
")",
";",
"else",
"{",
"tmp",
"=",
"gen_rtx_REG",
"(",
"mode",
",",
"regno",
")",
";",
"tmp",
"=",
"gen_rtx_EXPR_LIST",
"(",
"VOIDmode",
",",
"tmp",
",",
"const0_rtx",
")",
";",
"tmp",
"=",
"gen_rtx_PARALLEL",
"(",
"orig_mode",
",",
"gen_rtvec",
"(",
"1",
",",
"tmp",
")",
")",
";",
"}",
"return",
"tmp",
";",
"}",
"</s>"
] | [
"We",
"want",
"to",
"pass",
"a",
"value",
"in",
"REGNO",
"whose",
"``",
"natural",
"''",
"mode",
"is",
"MODE",
".",
"However",
",",
"this",
"may",
"not",
"agree",
"with",
"the",
"mode",
"that",
"the",
"type",
"system",
"has",
"chosen",
"for",
"the",
"register",
",",
"which",
"is",
"ORIG_MODE",
".",
"If",
"ORIG_MODE",
"is",
"not",
"BLKmode",
",",
"then",
"we",
"can",
"go",
"ahead",
"and",
"use",
"it",
".",
"Otherwise",
"we",
"have",
"to",
"build",
"a",
"PARALLEL",
"instead",
"."
] | [
"i386",
"1"
] | i3863 | gen_reg_or_parallel | i386 | CPU | GCC | 15,364 | 76 | 1 | [] |
[
"<s>",
"void",
"X86CallLowering",
"::",
"splitToValueTypes",
"(",
"const",
"ArgInfo",
"&",
"OrigArg",
",",
"SmallVectorImpl",
"<",
"ArgInfo",
">",
"&",
"SplitArgs",
",",
"const",
"DataLayout",
"&",
"DL",
",",
"MachineRegisterInfo",
"&",
"MRI",
",",
"SplitArgTy",
"PerformArgSplit",
")",
"const",
"{",
"const",
"X86TargetLowering",
"&",
"TLI",
"=",
"*",
"getTLI",
"<",
"X86TargetLowering",
">",
"(",
")",
";",
"LLVMContext",
"&",
"Context",
"=",
"OrigArg",
".",
"Ty",
"->",
"getContext",
"(",
")",
";",
"EVT",
"VT",
"=",
"TLI",
".",
"getValueType",
"(",
"DL",
",",
"OrigArg",
".",
"Ty",
")",
";",
"unsigned",
"NumParts",
"=",
"TLI",
".",
"getNumRegisters",
"(",
"Context",
",",
"VT",
")",
";",
"if",
"(",
"NumParts",
"==",
"1",
")",
"{",
"SplitArgs",
".",
"emplace_back",
"(",
"OrigArg",
".",
"Reg",
",",
"VT",
".",
"getTypeForEVT",
"(",
"Context",
")",
",",
"OrigArg",
".",
"Flags",
",",
"OrigArg",
".",
"IsFixed",
")",
";",
"return",
";",
"}",
"SmallVector",
"<",
"unsigned",
",",
"8",
">",
"SplitRegs",
";",
"EVT",
"PartVT",
"=",
"TLI",
".",
"getRegisterType",
"(",
"Context",
",",
"VT",
")",
";",
"Type",
"*",
"PartTy",
"=",
"PartVT",
".",
"getTypeForEVT",
"(",
"Context",
")",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"<",
"NumParts",
";",
"++",
"i",
")",
"{",
"ArgInfo",
"Info",
"=",
"ArgInfo",
"{",
"MRI",
".",
"createGenericVirtualRegister",
"(",
"getLLTForType",
"(",
"*",
"PartTy",
",",
"DL",
")",
")",
",",
"PartTy",
",",
"OrigArg",
".",
"Flags",
"}",
";",
"SplitArgs",
".",
"push_back",
"(",
"Info",
")",
";",
"SplitRegs",
".",
"push_back",
"(",
"Info",
".",
"Reg",
")",
";",
"}",
"PerformArgSplit",
"(",
"SplitRegs",
")",
";",
"}",
"</s>"
] | [
"Break",
"OrigArgInfo",
"into",
"one",
"or",
"more",
"pieces",
"the",
"calling",
"convention",
"can",
"process",
",",
"returned",
"in",
"SplitArgs",
"."
] | [
"X86",
"X86",
"X86",
"X86",
"1",
"8",
"0"
] | X86CallLowering6 | splitToValueTypes | X86 | CPU | LLVM | 15,365 | 210 | 1 | [] |
[
"<s>",
"void",
"SITargetLowering",
"::",
"initializeSplitCSR",
"(",
"MachineBasicBlock",
"*",
"Entry",
")",
"const",
"{",
"}",
"</s>"
] | [
"Perform",
"necessary",
"initialization",
"to",
"handle",
"a",
"subset",
"of",
"CSRs",
"explicitly",
"via",
"copies",
"."
] | [
"AMDGPU",
"SI"
] | SIISelLowering (2)3 | initializeSplitCSR | AMDGPU | GPU | LLVM | 15,366 | 12 | 1 | [] |
[
"<s>",
"rtx",
"get_unaligned_offset",
"(",
"rtx",
"addr",
",",
"HOST_WIDE_INT",
"ofs",
")",
"{",
"if",
"(",
"GET_CODE",
"(",
"addr",
")",
"==",
"PLUS",
")",
"{",
"ofs",
"+=",
"INTVAL",
"(",
"XEXP",
"(",
"addr",
",",
"1",
")",
")",
";",
"addr",
"=",
"XEXP",
"(",
"addr",
",",
"0",
")",
";",
"}",
"return",
"expand_simple_binop",
"(",
"Pmode",
",",
"PLUS",
",",
"addr",
",",
"GEN_INT",
"(",
"ofs",
"&",
"7",
")",
",",
"NULL_RTX",
",",
"1",
",",
"OPTAB_LIB_WIDEN",
")",
";",
"}",
"</s>"
] | [
"Compute",
"a",
"value",
"X",
",",
"such",
"that",
"X",
"&",
"7",
"==",
"(",
"ADDR",
"+",
"OFS",
")",
"&",
"7",
".",
"X",
"is",
"always",
"returned",
"in",
"a",
"register",
"."
] | [
"alpha",
"1",
"0",
"7",
"1"
] | alpha | get_unaligned_offset | alpha | MPU | GCC | 15,367 | 66 | 1 | [] |
[
"<s>",
"static",
"void",
"mn10300_gen_multiple_store",
"(",
"unsigned",
"int",
"mask",
")",
"{",
"static",
"const",
"unsigned",
"int",
"store_order",
"[",
"8",
"]",
"=",
"{",
"FIRST_EXTENDED_REGNUM",
"+",
"4",
",",
"FIRST_EXTENDED_REGNUM",
"+",
"5",
",",
"FIRST_EXTENDED_REGNUM",
"+",
"6",
",",
"FIRST_EXTENDED_REGNUM",
"+",
"7",
",",
"FIRST_DATA_REGNUM",
"+",
"2",
",",
"FIRST_DATA_REGNUM",
"+",
"3",
",",
"FIRST_ADDRESS_REGNUM",
"+",
"2",
",",
"FIRST_ADDRESS_REGNUM",
"+",
"3",
",",
"}",
";",
"rtx",
"x",
",",
"elts",
"[",
"9",
"]",
";",
"unsigned",
"int",
"i",
";",
"int",
"count",
";",
"if",
"(",
"mask",
"==",
"0",
")",
"return",
";",
"for",
"(",
"i",
"=",
"count",
"=",
"0",
";",
"i",
"<",
"ARRAY_SIZE",
"(",
"store_order",
")",
";",
"++",
"i",
")",
"{",
"unsigned",
"regno",
"=",
"store_order",
"[",
"i",
"]",
";",
"if",
"(",
"(",
"(",
"mask",
">>",
"regno",
")",
"&",
"1",
")",
"==",
"0",
")",
"continue",
";",
"++",
"count",
";",
"x",
"=",
"plus_constant",
"(",
"Pmode",
",",
"stack_pointer_rtx",
",",
"count",
"*",
"-",
"4",
")",
";",
"x",
"=",
"gen_frame_mem",
"(",
"SImode",
",",
"x",
")",
";",
"x",
"=",
"gen_rtx_SET",
"(",
"x",
",",
"gen_rtx_REG",
"(",
"SImode",
",",
"regno",
")",
")",
";",
"elts",
"[",
"count",
"]",
"=",
"F",
"(",
"x",
")",
";",
"mask",
"&=",
"~",
"(",
"1u",
"<<",
"regno",
")",
";",
"}",
"gcc_assert",
"(",
"mask",
"==",
"0",
")",
";",
"x",
"=",
"plus_constant",
"(",
"Pmode",
",",
"stack_pointer_rtx",
",",
"count",
"*",
"-",
"4",
")",
";",
"x",
"=",
"gen_rtx_SET",
"(",
"stack_pointer_rtx",
",",
"x",
")",
";",
"elts",
"[",
"0",
"]",
"=",
"F",
"(",
"x",
")",
";",
"x",
"=",
"gen_rtx_PARALLEL",
"(",
"VOIDmode",
",",
"gen_rtvec_v",
"(",
"count",
"+",
"1",
",",
"elts",
")",
")",
";",
"F",
"(",
"emit_insn",
"(",
"x",
")",
")",
";",
"}",
"</s>"
] | [
"Generate",
"an",
"instruction",
"that",
"pushes",
"several",
"registers",
"onto",
"the",
"stack",
".",
"Register",
"K",
"will",
"be",
"saved",
"if",
"bit",
"K",
"in",
"MASK",
"is",
"set",
".",
"The",
"function",
"does",
"nothing",
"if",
"MASK",
"is",
"zero",
".",
"To",
"be",
"compatible",
"with",
"the",
"``",
"movm",
"''",
"instruction",
",",
"the",
"lowest-numbered",
"register",
"must",
"be",
"stored",
"in",
"the",
"lowest",
"slot",
".",
"If",
"MASK",
"is",
"the",
"set",
"{",
"R1",
",",
"...",
",",
"RN",
"}",
",",
"where",
"R1",
"...",
"RN",
"are",
"ordered",
"least",
"first",
",",
"the",
"generated",
"instruction",
"will",
"have",
"the",
"form",
":",
"(",
"parallel",
"(",
"set",
"(",
"reg",
":",
"SI",
"9",
")",
"(",
"plus",
":",
"SI",
"(",
"reg",
":",
"SI",
"9",
")",
"(",
"const_int",
"-N",
"*",
"4",
")",
")",
")",
"(",
"set",
"(",
"mem",
":",
"SI",
"(",
"plus",
":",
"SI",
"(",
"reg",
":",
"SI",
"9",
")",
"(",
"const_int",
"-1",
"*",
"4",
")",
")",
")",
"(",
"reg",
":",
"SI",
"RN",
")",
")",
"...",
"(",
"set",
"(",
"mem",
":",
"SI",
"(",
"plus",
":",
"SI",
"(",
"reg",
":",
"SI",
"9",
")",
"(",
"const_int",
"-N",
"*",
"4",
")",
")",
")",
"(",
"reg",
":",
"SI",
"R1",
")",
")",
")"
] | [
"mn10300",
"8",
"4",
"5",
"6",
"7",
"2",
"3",
"2",
"3",
"9",
"0",
"0",
"1",
"0",
"4",
"1u",
"0",
"4",
"0",
"1"
] | mn10300 | mn10300_gen_multiple_store | mn10300 | MPU | GCC | 15,368 | 244 | 1 | [] |
[
"<s>",
"bool",
"WebAssemblySetP2AlignOperands",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"DEBUG",
"(",
"{",
"dbgs",
"(",
")",
"<<",
"\"********** Set p2align Operands **********\\n\"",
"<<",
"\"********** Function: \"",
"<<",
"MF",
".",
"getName",
"(",
")",
"<<",
"'\\n'",
";",
"}",
")",
";",
"bool",
"Changed",
"=",
"false",
";",
"for",
"(",
"auto",
"&",
"MBB",
":",
"MF",
")",
"{",
"for",
"(",
"auto",
"&",
"MI",
":",
"MBB",
")",
"{",
"switch",
"(",
"MI",
".",
"getOpcode",
"(",
")",
")",
"{",
"case",
"WebAssembly",
"::",
"LOAD_I32",
":",
"case",
"WebAssembly",
"::",
"LOAD_I64",
":",
"case",
"WebAssembly",
"::",
"LOAD_F32",
":",
"case",
"WebAssembly",
"::",
"LOAD_F64",
":",
"case",
"WebAssembly",
"::",
"LOAD8_S_I32",
":",
"case",
"WebAssembly",
"::",
"LOAD8_U_I32",
":",
"case",
"WebAssembly",
"::",
"LOAD16_S_I32",
":",
"case",
"WebAssembly",
"::",
"LOAD16_U_I32",
":",
"case",
"WebAssembly",
"::",
"LOAD8_S_I64",
":",
"case",
"WebAssembly",
"::",
"LOAD8_U_I64",
":",
"case",
"WebAssembly",
"::",
"LOAD16_S_I64",
":",
"case",
"WebAssembly",
"::",
"LOAD16_U_I64",
":",
"case",
"WebAssembly",
"::",
"LOAD32_S_I64",
":",
"case",
"WebAssembly",
"::",
"LOAD32_U_I64",
":",
"RewriteP2Align",
"(",
"MI",
",",
"WebAssembly",
"::",
"LoadP2AlignOperandNo",
")",
";",
"break",
";",
"case",
"WebAssembly",
"::",
"STORE_I32",
":",
"case",
"WebAssembly",
"::",
"STORE_I64",
":",
"case",
"WebAssembly",
"::",
"STORE_F32",
":",
"case",
"WebAssembly",
"::",
"STORE_F64",
":",
"case",
"WebAssembly",
"::",
"STORE8_I32",
":",
"case",
"WebAssembly",
"::",
"STORE16_I32",
":",
"case",
"WebAssembly",
"::",
"STORE8_I64",
":",
"case",
"WebAssembly",
"::",
"STORE16_I64",
":",
"case",
"WebAssembly",
"::",
"STORE32_I64",
":",
"RewriteP2Align",
"(",
"MI",
",",
"WebAssembly",
"::",
"StoreP2AlignOperandNo",
")",
";",
"break",
";",
"default",
":",
"break",
";",
"}",
"}",
"}",
"return",
"Changed",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"WebAssembly",
"WebAssembly",
"\"********** Set p2align Operands **********\\n\"",
"\"********** Function: \"",
"WebAssembly::LOAD_I32",
"WebAssembly::LOAD_I64",
"WebAssembly::LOAD_F32",
"WebAssembly::LOAD_F64",
"WebAssembly::LOAD8_S_I32",
"WebAssembly::LOAD8_U_I32",
"WebAssembly::LOAD16_S_I32",
"WebAssembly::LOAD16_U_I32",
"WebAssembly::LOAD8_S_I64",
"WebAssembly::LOAD8_U_I64",
"WebAssembly::LOAD16_S_I64",
"WebAssembly::LOAD16_U_I64",
"WebAssembly::LOAD32_S_I64",
"WebAssembly::LOAD32_U_I64",
"WebAssembly::LoadP2AlignOperandNo",
"WebAssembly::STORE_I32",
"WebAssembly::STORE_I64",
"WebAssembly::STORE_F32",
"WebAssembly::STORE_F64",
"WebAssembly::STORE8_I32",
"WebAssembly::STORE16_I32",
"WebAssembly::STORE8_I64",
"WebAssembly::STORE16_I64",
"WebAssembly::STORE32_I64",
"WebAssembly::StoreP2AlignOperandNo"
] | WebAssemblySetP2AlignOperands17 | runOnMachineFunction | WebAssembly | Virtual ISA | LLVM | 15,369 | 212 | 1 | [] |
[
"<s>",
"bool",
"function_resolver",
"::",
"require_matching_pointer_type",
"(",
"unsigned",
"int",
"argno",
",",
"unsigned",
"int",
"first_argno",
",",
"type_suffix_index",
"type",
")",
"{",
"type_suffix_index",
"new_type",
"=",
"infer_pointer_type",
"(",
"argno",
")",
";",
"if",
"(",
"new_type",
"==",
"NUM_TYPE_SUFFIXES",
")",
"return",
"false",
";",
"if",
"(",
"type",
"!=",
"new_type",
")",
"{",
"error_at",
"(",
"location",
",",
"\"passing %qT to argument %d of %qE, but\"",
"\" argument %d had type %qT\"",
",",
"get_argument_type",
"(",
"argno",
")",
",",
"argno",
"+",
"1",
",",
"fndecl",
",",
"first_argno",
"+",
"1",
",",
"get_argument_type",
"(",
"first_argno",
")",
")",
";",
"return",
"false",
";",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"Require",
"argument",
"ARGNO",
"to",
"match",
"argument",
"FIRST_ARGNO",
",",
"which",
"was",
"inferred",
"to",
"be",
"a",
"pointer",
"to",
"a",
"scalar",
"element",
"of",
"type",
"TYPE",
"."
] | [
"aarch64",
"\"passing %qT to argument %d of %qE, but\"",
"\" argument %d had type %qT\"",
"1",
"1"
] | aarch64-sve-builtins | require_matching_pointer_type | aarch64 | CPU | GCC | 15,370 | 77 | 1 | [] |
[
"<s>",
"MCObjectWriter",
"*",
"createObjectWriter",
"(",
"raw_pwrite_stream",
"&",
"OS",
")",
"const",
"override",
"{",
"bool",
"is64",
"=",
"getPointerSize",
"(",
")",
"==",
"8",
";",
"return",
"createPPCELFObjectWriter",
"(",
"OS",
",",
"is64",
",",
"isLittleEndian",
"(",
")",
",",
"OSABI",
")",
";",
"}",
"</s>"
] | [
"Create",
"a",
"new",
"MCObjectWriter",
"instance",
"for",
"use",
"by",
"the",
"assembler",
"backend",
"to",
"emit",
"the",
"final",
"object",
"file",
"."
] | [
"PowerPC",
"8",
"PPC"
] | PPCAsmBackend11 | createObjectWriter | PowerPC | CPU | LLVM | 15,371 | 35 | 1 | [] |
[
"<s>",
"const",
"MCExpr",
"*",
"X86_64MachoTargetObjectFile",
"::",
"getIndirectSymViaGOTPCRel",
"(",
"const",
"MCSymbol",
"*",
"Sym",
",",
"const",
"MCValue",
"&",
"MV",
",",
"int64_t",
"Offset",
",",
"MachineModuleInfo",
"*",
"MMI",
",",
"MCStreamer",
"&",
"Streamer",
")",
"const",
"{",
"unsigned",
"FinalOff",
"=",
"Offset",
"+",
"MV",
".",
"getConstant",
"(",
")",
"+",
"4",
";",
"const",
"MCExpr",
"*",
"Res",
"=",
"MCSymbolRefExpr",
"::",
"create",
"(",
"Sym",
",",
"MCSymbolRefExpr",
"::",
"VK_GOTPCREL",
",",
"getContext",
"(",
")",
")",
";",
"const",
"MCExpr",
"*",
"Off",
"=",
"MCConstantExpr",
"::",
"create",
"(",
"FinalOff",
",",
"getContext",
"(",
")",
")",
";",
"return",
"MCBinaryExpr",
"::",
"createAdd",
"(",
"Res",
",",
"Off",
",",
"getContext",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"Get",
"the",
"target",
"specific",
"PC",
"relative",
"GOT",
"entry",
"relocation",
"."
] | [
"X86",
"X86",
"4"
] | X86TargetObjectFile17 | getIndirectSymViaGOTPCRel | X86 | CPU | LLVM | 15,372 | 94 | 1 | [] |
[
"<s>",
"unsigned",
"MOSInstrInfo",
"::",
"isStoreToStackSlot",
"(",
"const",
"MachineInstr",
"&",
"MI",
",",
"int",
"&",
"FrameIndex",
")",
"const",
"{",
"switch",
"(",
"MI",
".",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"return",
"0",
";",
"case",
"MOS",
"::",
"STAbs",
":",
"if",
"(",
"!",
"MI",
".",
"getOperand",
"(",
"0",
")",
".",
"isFI",
"(",
")",
")",
"return",
"0",
";",
"FrameIndex",
"=",
"MI",
".",
"getOperand",
"(",
"1",
")",
".",
"getIndex",
"(",
")",
";",
"return",
"MI",
".",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
";",
"case",
"MOS",
"::",
"STStk",
":",
"FrameIndex",
"=",
"MI",
".",
"getOperand",
"(",
"2",
")",
".",
"getIndex",
"(",
")",
";",
"return",
"MI",
".",
"getOperand",
"(",
"1",
")",
".",
"getReg",
"(",
")",
";",
"}",
"}",
"</s>"
] | [
"isStoreToStackSlot",
"-",
"If",
"the",
"specified",
"machine",
"instruction",
"is",
"a",
"direct",
"store",
"to",
"a",
"stack",
"slot",
",",
"return",
"the",
"virtual",
"or",
"physical",
"register",
"number",
"of",
"the",
"source",
"reg",
"along",
"with",
"the",
"FrameIndex",
"of",
"the",
"loaded",
"stack",
"slot",
"."
] | [
"MOS",
"MOS",
"0",
"MOS::STAbs",
"0",
"0",
"1",
"0",
"MOS::STStk",
"2",
"1"
] | MOSInstrInfo | isStoreToStackSlot | MOS | MPU | LLVM | 15,373 | 109 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"nds32_output_casesi",
"(",
"rtx",
"*",
"operands",
")",
"{",
"output_asm_insn",
"(",
"\"la\\t$ta, %l1\"",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"lw\\t%2, [$ta + %0 << 2]\"",
",",
"operands",
")",
";",
"if",
"(",
"TARGET_16_BIT",
")",
"return",
"\"jr5\\t%2\"",
";",
"else",
"return",
"\"jr\\t%2\"",
";",
"}",
"</s>"
] | [
"Function",
"to",
"generate",
"normal",
"jump",
"table",
"."
] | [
"nds32",
"\"la\\t$ta, %l1\"",
"\"lw\\t%2, [$ta + %0 << 2]\"",
"\"jr5\\t%2\"",
"\"jr\\t%2\""
] | nds32-md-auxiliary2 | nds32_output_casesi | nds32 | CPU | GCC | 15,374 | 36 | 1 | [] |
[
"<s>",
"static",
"int",
"ix86_division_cost",
"(",
"const",
"struct",
"processor_costs",
"*",
"cost",
",",
"enum",
"machine_mode",
"mode",
")",
"{",
"machine_mode",
"inner_mode",
"=",
"mode",
";",
"if",
"(",
"VECTOR_MODE_P",
"(",
"mode",
")",
")",
"inner_mode",
"=",
"GET_MODE_INNER",
"(",
"mode",
")",
";",
"if",
"(",
"SSE_FLOAT_MODE_SSEMATH_OR_HF_P",
"(",
"mode",
")",
")",
"return",
"inner_mode",
"==",
"DFmode",
"?",
"cost",
"->",
"divsd",
":",
"cost",
"->",
"divss",
";",
"else",
"if",
"(",
"X87_FLOAT_MODE_P",
"(",
"mode",
")",
")",
"return",
"cost",
"->",
"fdiv",
";",
"else",
"if",
"(",
"FLOAT_MODE_P",
"(",
"mode",
")",
")",
"return",
"ix86_vec_cost",
"(",
"mode",
",",
"inner_mode",
"==",
"DFmode",
"?",
"cost",
"->",
"divsd",
":",
"cost",
"->",
"divss",
")",
";",
"else",
"return",
"cost",
"->",
"divide",
"[",
"MODE_INDEX",
"(",
"mode",
")",
"]",
";",
"}",
"</s>"
] | [
"Return",
"cost",
"of",
"multiplication",
"in",
"MODE",
"."
] | [
"i386"
] | i386 | ix86_division_cost | i386 | CPU | GCC | 15,375 | 106 | 1 | [] |
[
"<s>",
"unsigned",
"getIntrinsicInstrCost",
"(",
"Intrinsic",
"::",
"ID",
"ID",
",",
"Type",
"*",
"RetTy",
",",
"ArrayRef",
"<",
"Type",
"*",
">",
"Tys",
",",
"FastMathFlags",
"FMF",
",",
"unsigned",
"ScalarizationCostPassed",
"=",
"UINT_MAX",
")",
"{",
"return",
"1",
";",
"}",
"</s>"
] | [
"Get",
"intrinsic",
"cost",
"based",
"on",
"arguments",
"."
] | [
"Hexagon",
"Intrinsic::ID",
"1"
] | HexagonTargetTransformInfo20 | getIntrinsicInstrCost | Hexagon | DSP | LLVM | 15,376 | 32 | 1 | [] |
[
"<s>",
"bool",
"X86TargetLowering",
"::",
"shouldFoldSelectWithIdentityConstant",
"(",
"unsigned",
"Opcode",
",",
"EVT",
"VT",
")",
"const",
"{",
"if",
"(",
"!",
"Subtarget",
".",
"hasAVX512",
"(",
")",
")",
"return",
"false",
";",
"if",
"(",
"!",
"Subtarget",
".",
"hasVLX",
"(",
")",
"&&",
"!",
"VT",
".",
"is512BitVector",
"(",
")",
")",
"return",
"false",
";",
"if",
"(",
"!",
"VT",
".",
"isVector",
"(",
")",
")",
"return",
"false",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"pulling",
"a",
"binary",
"operation",
"into",
"a",
"select",
"with",
"an",
"identity",
"constant",
"is",
"profitable",
"."
] | [
"X86",
"X86"
] | X86ISelLowering100 | shouldFoldSelectWithIdentityConstant | X86 | CPU | LLVM | 15,377 | 60 | 1 | [] |
[
"<s>",
"static",
"bool",
"sparc_cannot_force_const_mem",
"(",
"machine_mode",
"mode",
",",
"rtx",
"x",
")",
"{",
"switch",
"(",
"GET_CODE",
"(",
"x",
")",
")",
"{",
"case",
"CONST_INT",
":",
"case",
"CONST_DOUBLE",
":",
"case",
"CONST_VECTOR",
":",
"return",
"false",
";",
"case",
"LABEL_REF",
":",
"return",
"flag_pic",
"!=",
"0",
";",
"case",
"SYMBOL_REF",
":",
"if",
"(",
"SYMBOL_REF_TLS_MODEL",
"(",
"x",
")",
")",
"return",
"true",
";",
"else",
"return",
"flag_pic",
"!=",
"0",
";",
"case",
"CONST",
":",
"return",
"sparc_cannot_force_const_mem",
"(",
"mode",
",",
"XEXP",
"(",
"x",
",",
"0",
")",
")",
";",
"case",
"PLUS",
":",
"case",
"MINUS",
":",
"return",
"sparc_cannot_force_const_mem",
"(",
"mode",
",",
"XEXP",
"(",
"x",
",",
"0",
")",
")",
"||",
"sparc_cannot_force_const_mem",
"(",
"mode",
",",
"XEXP",
"(",
"x",
",",
"1",
")",
")",
";",
"case",
"UNSPEC",
":",
"return",
"true",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"}",
"</s>"
] | [
"Determine",
"if",
"it",
"'s",
"legal",
"to",
"put",
"X",
"into",
"the",
"constant",
"pool",
".",
"This",
"is",
"not",
"possible",
"if",
"X",
"contains",
"the",
"address",
"of",
"a",
"symbol",
"that",
"is",
"not",
"constant",
"(",
"TLS",
")",
"or",
"not",
"known",
"at",
"final",
"link",
"time",
"(",
"PIC",
")",
"."
] | [
"sparc",
"0",
"0",
"0",
"0",
"1"
] | sparc4 | sparc_cannot_force_const_mem | sparc | CPU | GCC | 15,378 | 119 | 1 | [] |
[
"<s>",
"bool",
"PPCInstrInfo",
"::",
"canInsertSelect",
"(",
"const",
"MachineBasicBlock",
"&",
"MBB",
",",
"ArrayRef",
"<",
"MachineOperand",
">",
"Cond",
",",
"Register",
"DstReg",
",",
"Register",
"TrueReg",
",",
"Register",
"FalseReg",
",",
"int",
"&",
"CondCycles",
",",
"int",
"&",
"TrueCycles",
",",
"int",
"&",
"FalseCycles",
")",
"const",
"{",
"if",
"(",
"Cond",
".",
"size",
"(",
")",
"!=",
"2",
")",
"return",
"false",
";",
"if",
"(",
"Cond",
"[",
"1",
"]",
".",
"getReg",
"(",
")",
"==",
"PPC",
"::",
"CTR",
"||",
"Cond",
"[",
"1",
"]",
".",
"getReg",
"(",
")",
"==",
"PPC",
"::",
"CTR8",
")",
"return",
"false",
";",
"if",
"(",
"Register",
"::",
"isPhysicalRegister",
"(",
"Cond",
"[",
"1",
"]",
".",
"getReg",
"(",
")",
")",
")",
"return",
"false",
";",
"const",
"MachineRegisterInfo",
"&",
"MRI",
"=",
"MBB",
".",
"getParent",
"(",
")",
"->",
"getRegInfo",
"(",
")",
";",
"const",
"TargetRegisterClass",
"*",
"RC",
"=",
"RI",
".",
"getCommonSubClass",
"(",
"MRI",
".",
"getRegClass",
"(",
"TrueReg",
")",
",",
"MRI",
".",
"getRegClass",
"(",
"FalseReg",
")",
")",
";",
"if",
"(",
"!",
"RC",
")",
"return",
"false",
";",
"if",
"(",
"!",
"PPC",
"::",
"GPRCRegClass",
".",
"hasSubClassEq",
"(",
"RC",
")",
"&&",
"!",
"PPC",
"::",
"GPRC_NOR0RegClass",
".",
"hasSubClassEq",
"(",
"RC",
")",
"&&",
"!",
"PPC",
"::",
"G8RCRegClass",
".",
"hasSubClassEq",
"(",
"RC",
")",
"&&",
"!",
"PPC",
"::",
"G8RC_NOX0RegClass",
".",
"hasSubClassEq",
"(",
"RC",
")",
")",
"return",
"false",
";",
"CondCycles",
"=",
"1",
";",
"TrueCycles",
"=",
"1",
";",
"FalseCycles",
"=",
"1",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"it",
"is",
"possible",
"to",
"insert",
"a",
"select",
"instruction",
"that",
"chooses",
"between",
"TrueReg",
"and",
"FalseReg",
"based",
"on",
"the",
"condition",
"code",
"in",
"Cond",
"."
] | [
"PowerPC",
"PPC",
"2",
"1",
"PPC::CTR",
"1",
"PPC::CTR8",
"1",
"PPC::GPRCRegClass",
"PPC::GPRC_NOR0RegClass",
"PPC::G8RCRegClass",
"PPC::G8RC_NOX0RegClass",
"1",
"1",
"1"
] | PPCInstrInfo | canInsertSelect | PowerPC | CPU | LLVM | 15,379 | 210 | 1 | [] |
[
"<s>",
"bool",
"isImm",
"(",
")",
"const",
"override",
"{",
"return",
"Kind",
"==",
"IMMEDIATE",
";",
"}",
"</s>"
] | [
"isImm",
"-",
"Is",
"this",
"an",
"immediate",
"operand",
"?"
] | [
"Lanai"
] | LanaiAsmParser (2) | isImm | Lanai | CPU | LLVM | 15,380 | 13 | 1 | [] |
[
"<s>",
"TargetLoweringBase",
"::",
"LegalizeTypeAction",
"AArch64TargetLowering",
"::",
"getPreferredVectorAction",
"(",
"MVT",
"VT",
")",
"const",
"{",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"v1i8",
"||",
"VT",
"==",
"MVT",
"::",
"v1i16",
"||",
"VT",
"==",
"MVT",
"::",
"v1i32",
"||",
"VT",
"==",
"MVT",
"::",
"v1f32",
")",
"return",
"TypeWidenVector",
";",
"return",
"TargetLoweringBase",
"::",
"getPreferredVectorAction",
"(",
"VT",
")",
";",
"}",
"</s>"
] | [
"Customize",
"the",
"preferred",
"legalization",
"strategy",
"for",
"certain",
"types",
"."
] | [
"AArch64",
"AArch64",
"MVT::v1i8",
"MVT::v1i16",
"MVT::v1i32",
"MVT::v1f32"
] | AArch64ISelLowering (2)2 | getPreferredVectorAction | AArch64 | CPU | LLVM | 15,381 | 50 | 1 | [] |
[
"<s>",
"bool",
"TPCInstrInfo",
"::",
"reverseBranchCondition",
"(",
"SmallVectorImpl",
"<",
"MachineOperand",
">",
"&",
"Cond",
")",
"const",
"{",
"if",
"(",
"Cond",
".",
"empty",
"(",
")",
")",
"return",
"true",
";",
"assert",
"(",
"Cond",
".",
"size",
"(",
")",
"==",
"2",
")",
";",
"assert",
"(",
"Cond",
"[",
"0",
"]",
".",
"isReg",
"(",
")",
"&&",
"\"First entry in the cond vector must be a predicate register\"",
")",
";",
"assert",
"(",
"Cond",
"[",
"1",
"]",
".",
"isImm",
"(",
")",
"&&",
"\"Second entry in the cond vector must be an immediate\"",
")",
";",
"Cond",
"[",
"1",
"]",
".",
"setImm",
"(",
"!",
"Cond",
"[",
"1",
"]",
".",
"getImm",
"(",
")",
")",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Reverses",
"the",
"branch",
"condition",
"of",
"the",
"specified",
"condition",
"list",
",",
"returning",
"false",
"on",
"success",
"and",
"true",
"if",
"it",
"can",
"not",
"be",
"reversed",
"."
] | [
"TPC",
"TPC",
"2",
"0",
"\"First entry in the cond vector must be a predicate register\"",
"1",
"\"Second entry in the cond vector must be an immediate\"",
"1",
"1"
] | TPCInstrInfo | reverseBranchCondition | TPC | Virtual ISA | LLVM | 15,382 | 86 | 1 | [] |
[
"<s>",
"std",
"::",
"pair",
"<",
"int64_t",
",",
"int64_t",
">",
"SIInstrInfo",
"::",
"splitFlatOffset",
"(",
"int64_t",
"COffsetVal",
",",
"unsigned",
"AddrSpace",
",",
"uint64_t",
"FlatVariant",
")",
"const",
"{",
"int64_t",
"RemainderOffset",
"=",
"COffsetVal",
";",
"int64_t",
"ImmField",
"=",
"0",
";",
"bool",
"Signed",
"=",
"FlatVariant",
"!=",
"SIInstrFlags",
"::",
"FLAT",
";",
"if",
"(",
"ST",
".",
"hasNegativeScratchOffsetBug",
"(",
")",
"&&",
"FlatVariant",
"==",
"SIInstrFlags",
"::",
"FlatScratch",
")",
"Signed",
"=",
"false",
";",
"const",
"unsigned",
"NumBits",
"=",
"AMDGPU",
"::",
"getNumFlatOffsetBits",
"(",
"ST",
",",
"Signed",
")",
";",
"if",
"(",
"Signed",
")",
"{",
"int64_t",
"D",
"=",
"1LL",
"<<",
"(",
"NumBits",
"-",
"1",
")",
";",
"RemainderOffset",
"=",
"(",
"COffsetVal",
"/",
"D",
")",
"*",
"D",
";",
"ImmField",
"=",
"COffsetVal",
"-",
"RemainderOffset",
";",
"if",
"(",
"ST",
".",
"hasNegativeUnalignedScratchOffsetBug",
"(",
")",
"&&",
"FlatVariant",
"==",
"SIInstrFlags",
"::",
"FlatScratch",
"&&",
"ImmField",
"<",
"0",
"&&",
"(",
"ImmField",
"%",
"4",
")",
"!=",
"0",
")",
"{",
"RemainderOffset",
"+=",
"ImmField",
"%",
"4",
";",
"ImmField",
"-=",
"ImmField",
"%",
"4",
";",
"}",
"}",
"else",
"if",
"(",
"COffsetVal",
">=",
"0",
")",
"{",
"ImmField",
"=",
"COffsetVal",
"&",
"maskTrailingOnes",
"<",
"uint64_t",
">",
"(",
"NumBits",
")",
";",
"RemainderOffset",
"=",
"COffsetVal",
"-",
"ImmField",
";",
"}",
"assert",
"(",
"isLegalFLATOffset",
"(",
"ImmField",
",",
"AddrSpace",
",",
"FlatVariant",
")",
")",
";",
"assert",
"(",
"RemainderOffset",
"+",
"ImmField",
"==",
"COffsetVal",
")",
";",
"return",
"{",
"ImmField",
",",
"RemainderOffset",
"}",
";",
"}",
"</s>"
] | [
"Split",
"COffsetVal",
"into",
"{",
"immediate",
"offset",
"field",
",",
"remainder",
"offset",
"}",
"values",
"."
] | [
"AMDGPU",
"SI",
"0",
"SIInstrFlags::FLAT",
"SIInstrFlags::FlatScratch",
"AMDGPU::getNumFlatOffsetBits",
"1LL",
"1",
"SIInstrFlags::FlatScratch",
"0",
"4",
"0",
"4",
"4",
"0"
] | SIInstrInfo11 | splitFlatOffset | AMDGPU | GPU | LLVM | 15,383 | 202 | 1 | [] |
[
"<s>",
"int",
"simple_memory_operand",
"(",
"rtx",
"op",
",",
"machine_mode",
"mode",
"ATTRIBUTE_UNUSED",
")",
"{",
"rtx",
"addr",
",",
"plus0",
",",
"plus1",
";",
"if",
"(",
"GET_CODE",
"(",
"op",
")",
"!=",
"MEM",
")",
"return",
"0",
";",
"if",
"(",
"GET_MODE_SIZE",
"(",
"GET_MODE",
"(",
"op",
")",
")",
">",
"UNITS_PER_WORD",
")",
"return",
"0",
";",
"addr",
"=",
"XEXP",
"(",
"op",
",",
"0",
")",
";",
"switch",
"(",
"GET_CODE",
"(",
"addr",
")",
")",
"{",
"case",
"REG",
":",
"return",
"1",
";",
"case",
"PLUS",
":",
"plus0",
"=",
"XEXP",
"(",
"addr",
",",
"0",
")",
";",
"plus1",
"=",
"XEXP",
"(",
"addr",
",",
"1",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"plus0",
")",
"!=",
"REG",
")",
"return",
"0",
";",
"if",
"(",
"GET_CODE",
"(",
"plus0",
")",
"==",
"REG",
"&&",
"GET_CODE",
"(",
"plus1",
")",
"==",
"CONST_INT",
"&&",
"SMALL_INT",
"(",
"plus1",
")",
")",
"{",
"return",
"1",
";",
"}",
"else",
"if",
"(",
"GET_CODE",
"(",
"plus1",
")",
"==",
"REG",
"&&",
"GET_CODE",
"(",
"plus0",
")",
"==",
"CONST_INT",
")",
"{",
"return",
"1",
";",
"}",
"else",
"if",
"(",
"GET_CODE",
"(",
"plus0",
")",
"==",
"REG",
"&&",
"GET_CODE",
"(",
"plus1",
")",
"==",
"REG",
")",
"{",
"return",
"1",
";",
"}",
"else",
"return",
"0",
";",
"case",
"SYMBOL_REF",
":",
"return",
"0",
";",
"default",
":",
"break",
";",
"}",
"return",
"0",
";",
"}",
"</s>"
] | [
"Return",
"truth",
"value",
"if",
"a",
"memory",
"operand",
"fits",
"in",
"a",
"single",
"instruction",
"(",
"ie",
",",
"register",
"+",
"small",
"offset",
")",
"."
] | [
"microblaze",
"0",
"0",
"0",
"1",
"0",
"1",
"0",
"1",
"1",
"1",
"0",
"0",
"0"
] | microblaze | simple_memory_operand | microblaze | MPU | GCC | 15,384 | 190 | 1 | [] |
[
"<s>",
"static",
"void",
"s390_reg_clobbered_rtx",
"(",
"rtx",
"setreg",
",",
"rtx",
"set_insn",
"ATTRIBUTE_UNUSED",
",",
"void",
"*",
"data",
")",
"{",
"int",
"*",
"regs_ever_clobbered",
"=",
"(",
"int",
"*",
")",
"data",
";",
"unsigned",
"int",
"i",
",",
"regno",
";",
"enum",
"machine_mode",
"mode",
"=",
"GET_MODE",
"(",
"setreg",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"setreg",
")",
"==",
"SUBREG",
")",
"{",
"rtx",
"inner",
"=",
"SUBREG_REG",
"(",
"setreg",
")",
";",
"if",
"(",
"!",
"GENERAL_REG_P",
"(",
"inner",
")",
")",
"return",
";",
"regno",
"=",
"subreg_regno",
"(",
"setreg",
")",
";",
"}",
"else",
"if",
"(",
"GENERAL_REG_P",
"(",
"setreg",
")",
")",
"regno",
"=",
"REGNO",
"(",
"setreg",
")",
";",
"else",
"return",
";",
"for",
"(",
"i",
"=",
"regno",
";",
"i",
"<",
"regno",
"+",
"HARD_REGNO_NREGS",
"(",
"regno",
",",
"mode",
")",
";",
"i",
"++",
")",
"regs_ever_clobbered",
"[",
"i",
"]",
"=",
"1",
";",
"}",
"</s>"
] | [
"Helper",
"function",
"for",
"s390_regs_ever_clobbered",
".",
"Sets",
"the",
"fields",
"in",
"DATA",
"for",
"all",
"clobbered",
"hard",
"regs",
"in",
"SETREG",
"."
] | [
"s390",
"1"
] | s3903 | s390_reg_clobbered_rtx | s390 | MPU | GCC | 15,385 | 123 | 1 | [] |
[
"<s>",
"int",
"jump_in_call_delay",
"(",
"rtx",
"insn",
")",
"{",
"if",
"(",
"GET_CODE",
"(",
"insn",
")",
"!=",
"JUMP_INSN",
")",
"return",
"0",
";",
"if",
"(",
"PREV_INSN",
"(",
"insn",
")",
"&&",
"PREV_INSN",
"(",
"PREV_INSN",
"(",
"insn",
")",
")",
"&&",
"GET_CODE",
"(",
"next_real_insn",
"(",
"PREV_INSN",
"(",
"PREV_INSN",
"(",
"insn",
")",
")",
")",
")",
"==",
"INSN",
")",
"{",
"rtx",
"test_insn",
"=",
"next_real_insn",
"(",
"PREV_INSN",
"(",
"PREV_INSN",
"(",
"insn",
")",
")",
")",
";",
"return",
"(",
"GET_CODE",
"(",
"PATTERN",
"(",
"test_insn",
")",
")",
"==",
"SEQUENCE",
"&&",
"XVECEXP",
"(",
"PATTERN",
"(",
"test_insn",
")",
",",
"0",
",",
"1",
")",
"==",
"insn",
")",
";",
"}",
"else",
"return",
"0",
";",
"}",
"</s>"
] | [
"Return",
"1",
"if",
"INSN",
"is",
"in",
"the",
"delay",
"slot",
"of",
"a",
"call",
"instruction",
"."
] | [
"pa",
"0",
"0",
"1",
"0"
] | pa3 | jump_in_call_delay | pa | CPU | GCC | 15,386 | 98 | 1 | [] |
[
"<s>",
"static",
"void",
"arm_output_c_attributes",
"(",
"void",
")",
"{",
"int",
"wchar_size",
"=",
"(",
"int",
")",
"(",
"TYPE_PRECISION",
"(",
"wchar_type_node",
")",
"/",
"BITS_PER_UNIT",
")",
";",
"arm_emit_eabi_attribute",
"(",
"\"Tag_ABI_PCS_wchar_t\"",
",",
"18",
",",
"wchar_size",
")",
";",
"}",
"</s>"
] | [
"Output",
"C",
"specific",
"EABI",
"object",
"attributes",
".",
"These",
"can",
"not",
"be",
"done",
"in",
"arm.c",
"because",
"they",
"require",
"information",
"from",
"the",
"C",
"frontend",
"."
] | [
"arm",
"\"Tag_ABI_PCS_wchar_t\"",
"18"
] | arm-c | arm_output_c_attributes | arm | CPU | GCC | 15,387 | 32 | 1 | [] |
[
"<s>",
"bool",
"isCheapToSpeculateCtlz",
"(",
")",
"const",
"override",
"{",
"return",
"true",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"it",
"is",
"cheap",
"to",
"speculate",
"a",
"call",
"to",
"intrinsic",
"ctlz",
"."
] | [
"NVPTX"
] | NVPTXISelLowering | isCheapToSpeculateCtlz | NVPTX | GPU | LLVM | 15,388 | 11 | 1 | [] |
[
"<s>",
"static",
"bool",
"sparc_pic_register_p",
"(",
"rtx",
"x",
")",
"{",
"if",
"(",
"!",
"REG_P",
"(",
"x",
")",
"||",
"!",
"pic_offset_table_rtx",
")",
"return",
"false",
";",
"if",
"(",
"x",
"==",
"pic_offset_table_rtx",
")",
"return",
"true",
";",
"if",
"(",
"!",
"HARD_REGISTER_P",
"(",
"pic_offset_table_rtx",
")",
"&&",
"(",
"HARD_REGISTER_P",
"(",
"x",
")",
"||",
"lra_in_progress",
"||",
"reload_in_progress",
")",
"&&",
"ORIGINAL_REGNO",
"(",
"x",
")",
"==",
"REGNO",
"(",
"pic_offset_table_rtx",
")",
")",
"return",
"true",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"X",
"is",
"a",
"representation",
"of",
"the",
"PIC",
"register",
"."
] | [
"sparc"
] | sparc | sparc_pic_register_p | sparc | CPU | GCC | 15,389 | 67 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"SystemZTargetLowering",
"::",
"getTargetNodeName",
"(",
"unsigned",
"Opcode",
")",
"const",
"{",
"switch",
"(",
"Opcode",
")",
"{",
"OPCODE",
"(",
"RET_FLAG",
")",
";",
"OPCODE",
"(",
"CALL",
")",
";",
"OPCODE",
"(",
"SIBCALL",
")",
";",
"OPCODE",
"(",
"PCREL_WRAPPER",
")",
";",
"OPCODE",
"(",
"PCREL_OFFSET",
")",
";",
"OPCODE",
"(",
"IABS",
")",
";",
"OPCODE",
"(",
"ICMP",
")",
";",
"OPCODE",
"(",
"FCMP",
")",
";",
"OPCODE",
"(",
"TM",
")",
";",
"OPCODE",
"(",
"BR_CCMASK",
")",
";",
"OPCODE",
"(",
"SELECT_CCMASK",
")",
";",
"OPCODE",
"(",
"ADJDYNALLOC",
")",
";",
"OPCODE",
"(",
"EXTRACT_ACCESS",
")",
";",
"OPCODE",
"(",
"UMUL_LOHI64",
")",
";",
"OPCODE",
"(",
"SDIVREM64",
")",
";",
"OPCODE",
"(",
"UDIVREM32",
")",
";",
"OPCODE",
"(",
"UDIVREM64",
")",
";",
"OPCODE",
"(",
"MVC",
")",
";",
"OPCODE",
"(",
"MVC_LOOP",
")",
";",
"OPCODE",
"(",
"NC",
")",
";",
"OPCODE",
"(",
"NC_LOOP",
")",
";",
"OPCODE",
"(",
"OC",
")",
";",
"OPCODE",
"(",
"OC_LOOP",
")",
";",
"OPCODE",
"(",
"XC",
")",
";",
"OPCODE",
"(",
"XC_LOOP",
")",
";",
"OPCODE",
"(",
"CLC",
")",
";",
"OPCODE",
"(",
"CLC_LOOP",
")",
";",
"OPCODE",
"(",
"STRCMP",
")",
";",
"OPCODE",
"(",
"STPCPY",
")",
";",
"OPCODE",
"(",
"SEARCH_STRING",
")",
";",
"OPCODE",
"(",
"IPM",
")",
";",
"OPCODE",
"(",
"SERIALIZE",
")",
";",
"OPCODE",
"(",
"ATOMIC_SWAPW",
")",
";",
"OPCODE",
"(",
"ATOMIC_LOADW_ADD",
")",
";",
"OPCODE",
"(",
"ATOMIC_LOADW_SUB",
")",
";",
"OPCODE",
"(",
"ATOMIC_LOADW_AND",
")",
";",
"OPCODE",
"(",
"ATOMIC_LOADW_OR",
")",
";",
"OPCODE",
"(",
"ATOMIC_LOADW_XOR",
")",
";",
"OPCODE",
"(",
"ATOMIC_LOADW_NAND",
")",
";",
"OPCODE",
"(",
"ATOMIC_LOADW_MIN",
")",
";",
"OPCODE",
"(",
"ATOMIC_LOADW_MAX",
")",
";",
"OPCODE",
"(",
"ATOMIC_LOADW_UMIN",
")",
";",
"OPCODE",
"(",
"ATOMIC_LOADW_UMAX",
")",
";",
"OPCODE",
"(",
"ATOMIC_CMP_SWAPW",
")",
";",
"OPCODE",
"(",
"PREFETCH",
")",
";",
"}",
"return",
"nullptr",
";",
"}",
"</s>"
] | [
"getTargetNodeName",
"-",
"This",
"method",
"returns",
"the",
"name",
"of",
"a",
"target",
"specific"
] | [
"SystemZ",
"SystemZ"
] | SystemZISelLowering106 | getTargetNodeName | SystemZ | CPU | LLVM | 15,390 | 247 | 1 | [] |
[
"<s>",
"unsigned",
"getNumFixupKinds",
"(",
")",
"const",
"override",
"{",
"return",
"1",
";",
"}",
"</s>"
] | [
"Get",
"the",
"number",
"of",
"target",
"specific",
"fixup",
"kinds",
"."
] | [
"SPIRV",
"1"
] | SPIRVAsmBackend | getNumFixupKinds | SPIRV | Virtual ISA | LLVM | 15,391 | 11 | 1 | [] |
[
"<s>",
"bool",
"PatmosRegisterInfo",
"::",
"requiresRegisterScavenging",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"return",
"false",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"the",
"target",
"requires",
"(",
"and",
"can",
"make",
"use",
"of",
")",
"the",
"register",
"scavenger",
"."
] | [
"Patmos",
"Patmos"
] | PatmosRegisterInfo | requiresRegisterScavenging | Patmos | VLIW | LLVM | 15,392 | 16 | 1 | [] |
[
"<s>",
"bool",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"override",
"{",
"Subtarget",
"=",
"&",
"MF",
".",
"getSubtarget",
"<",
"RISCVSubtarget",
">",
"(",
")",
";",
"return",
"SelectionDAGISel",
"::",
"runOnMachineFunction",
"(",
"MF",
")",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"RISCV",
"RISCV"
] | RISCVISelDAGToDAG | runOnMachineFunction | RISCV | CPU | LLVM | 15,393 | 30 | 1 | [] |
[
"<s>",
"bool",
"X86FrameLowering",
"::",
"spillCalleeSavedRegisters",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"MI",
",",
"ArrayRef",
"<",
"CalleeSavedInfo",
">",
"CSI",
",",
"const",
"TargetRegisterInfo",
"*",
"TRI",
")",
"const",
"{",
"DebugLoc",
"DL",
"=",
"MBB",
".",
"findDebugLoc",
"(",
"MI",
")",
";",
"if",
"(",
"MBB",
".",
"isEHFuncletEntry",
"(",
")",
"&&",
"STI",
".",
"is32Bit",
"(",
")",
"&&",
"STI",
".",
"isOSWindows",
"(",
")",
")",
"return",
"true",
";",
"const",
"MachineFunction",
"&",
"MF",
"=",
"*",
"MBB",
".",
"getParent",
"(",
")",
";",
"unsigned",
"Opc",
"=",
"STI",
".",
"is64Bit",
"(",
")",
"?",
"X86",
"::",
"PUSH64r",
":",
"X86",
"::",
"PUSH32r",
";",
"for",
"(",
"const",
"CalleeSavedInfo",
"&",
"I",
":",
"llvm",
"::",
"reverse",
"(",
"CSI",
")",
")",
"{",
"unsigned",
"Reg",
"=",
"I",
".",
"getReg",
"(",
")",
";",
"if",
"(",
"!",
"X86",
"::",
"GR64RegClass",
".",
"contains",
"(",
"Reg",
")",
"&&",
"!",
"X86",
"::",
"GR32RegClass",
".",
"contains",
"(",
"Reg",
")",
")",
"continue",
";",
"const",
"MachineRegisterInfo",
"&",
"MRI",
"=",
"MF",
".",
"getRegInfo",
"(",
")",
";",
"bool",
"isLiveIn",
"=",
"MRI",
".",
"isLiveIn",
"(",
"Reg",
")",
";",
"if",
"(",
"!",
"isLiveIn",
")",
"MBB",
".",
"addLiveIn",
"(",
"Reg",
")",
";",
"bool",
"CanKill",
"=",
"!",
"isLiveIn",
";",
"if",
"(",
"CanKill",
")",
"{",
"for",
"(",
"MCRegAliasIterator",
"AReg",
"(",
"Reg",
",",
"TRI",
",",
"false",
")",
";",
"AReg",
".",
"isValid",
"(",
")",
";",
"++",
"AReg",
")",
"{",
"if",
"(",
"MRI",
".",
"isLiveIn",
"(",
"*",
"AReg",
")",
")",
"{",
"CanKill",
"=",
"false",
";",
"break",
";",
"}",
"}",
"}",
"BuildMI",
"(",
"MBB",
",",
"MI",
",",
"DL",
",",
"TII",
".",
"get",
"(",
"Opc",
")",
")",
".",
"addReg",
"(",
"Reg",
",",
"getKillRegState",
"(",
"CanKill",
")",
")",
".",
"setMIFlag",
"(",
"MachineInstr",
"::",
"FrameSetup",
")",
";",
"}",
"for",
"(",
"const",
"CalleeSavedInfo",
"&",
"I",
":",
"llvm",
"::",
"reverse",
"(",
"CSI",
")",
")",
"{",
"unsigned",
"Reg",
"=",
"I",
".",
"getReg",
"(",
")",
";",
"if",
"(",
"X86",
"::",
"GR64RegClass",
".",
"contains",
"(",
"Reg",
")",
"||",
"X86",
"::",
"GR32RegClass",
".",
"contains",
"(",
"Reg",
")",
")",
"continue",
";",
"MVT",
"VT",
"=",
"MVT",
"::",
"Other",
";",
"if",
"(",
"X86",
"::",
"VK16RegClass",
".",
"contains",
"(",
"Reg",
")",
")",
"VT",
"=",
"STI",
".",
"hasBWI",
"(",
")",
"?",
"MVT",
"::",
"v64i1",
":",
"MVT",
"::",
"v16i1",
";",
"MBB",
".",
"addLiveIn",
"(",
"Reg",
")",
";",
"const",
"TargetRegisterClass",
"*",
"RC",
"=",
"TRI",
"->",
"getMinimalPhysRegClass",
"(",
"Reg",
",",
"VT",
")",
";",
"TII",
".",
"storeRegToStackSlot",
"(",
"MBB",
",",
"MI",
",",
"Reg",
",",
"true",
",",
"I",
".",
"getFrameIdx",
"(",
")",
",",
"RC",
",",
"TRI",
")",
";",
"--",
"MI",
";",
"MI",
"->",
"setFlag",
"(",
"MachineInstr",
"::",
"FrameSetup",
")",
";",
"++",
"MI",
";",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"spillCalleeSavedRegisters",
"-",
"Issues",
"instruction",
"(",
"s",
")",
"to",
"spill",
"all",
"callee",
"saved",
"registers",
"and",
"returns",
"true",
"if",
"it",
"is",
"n't",
"possible",
"/",
"profitable",
"to",
"do",
"so",
"by",
"issuing",
"a",
"series",
"of",
"store",
"instructions",
"via",
"storeRegToStackSlot",
"(",
")",
"."
] | [
"X86",
"X86",
"X86::PUSH64r",
"X86::PUSH32r",
"X86::GR64RegClass",
"X86::GR32RegClass",
"X86::GR64RegClass",
"X86::GR32RegClass",
"MVT::Other",
"X86::VK16RegClass",
"MVT::v64i1",
"MVT::v16i1"
] | X86FrameLowering126 | spillCalleeSavedRegisters | X86 | CPU | LLVM | 15,394 | 401 | 1 | [] |
[
"<s>",
"SDValue",
"SNESTargetLowering",
"::",
"LowerCallResult",
"(",
"SDValue",
"Chain",
",",
"SDValue",
"InFlag",
",",
"CallingConv",
"::",
"ID",
"CallConv",
",",
"bool",
"isVarArg",
",",
"const",
"SmallVectorImpl",
"<",
"ISD",
"::",
"InputArg",
">",
"&",
"Ins",
",",
"const",
"SDLoc",
"&",
"dl",
",",
"SelectionDAG",
"&",
"DAG",
",",
"SmallVectorImpl",
"<",
"SDValue",
">",
"&",
"InVals",
")",
"const",
"{",
"SmallVector",
"<",
"CCValAssign",
",",
"16",
">",
"RVLocs",
";",
"CCState",
"CCInfo",
"(",
"CallConv",
",",
"isVarArg",
",",
"DAG",
".",
"getMachineFunction",
"(",
")",
",",
"RVLocs",
",",
"*",
"DAG",
".",
"getContext",
"(",
")",
")",
";",
"auto",
"CCFunction",
"=",
"CCAssignFnForReturn",
"(",
"CallConv",
")",
";",
"CCInfo",
".",
"AnalyzeCallResult",
"(",
"Ins",
",",
"CCFunction",
")",
";",
"for",
"(",
"CCValAssign",
"const",
"&",
"RVLoc",
":",
"RVLocs",
")",
"{",
"Chain",
"=",
"DAG",
".",
"getCopyFromReg",
"(",
"Chain",
",",
"dl",
",",
"RVLoc",
".",
"getLocReg",
"(",
")",
",",
"RVLoc",
".",
"getValVT",
"(",
")",
",",
"InFlag",
")",
".",
"getValue",
"(",
"1",
")",
";",
"InFlag",
"=",
"Chain",
".",
"getValue",
"(",
"2",
")",
";",
"InVals",
".",
"push_back",
"(",
"Chain",
".",
"getValue",
"(",
"0",
")",
")",
";",
"}",
"return",
"Chain",
";",
"}",
"</s>"
] | [
"LowerCallResult",
"-",
"Lower",
"the",
"result",
"values",
"of",
"an",
"ISD",
":",
":CALL",
"into",
"the",
"appropriate",
"copies",
"out",
"of",
"appropriate",
"physical",
"registers",
"."
] | [
"SNES",
"SNES",
"ISD::InputArg",
"16",
"1",
"2",
"0"
] | SNESISelLowering | LowerCallResult | SNES | DSP | LLVM | 15,395 | 161 | 1 | [] |
[
"<s>",
"void",
"ARMTargetLowering",
"::",
"AdjustInstrPostInstrSelection",
"(",
"MachineInstr",
"*",
"MI",
",",
"SDNode",
"*",
"Node",
")",
"const",
"{",
"if",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
"==",
"ARM",
"::",
"MEMCPY",
")",
"{",
"attachMEMCPYScratchRegs",
"(",
"Subtarget",
",",
"MI",
",",
"Node",
")",
";",
"return",
";",
"}",
"const",
"MCInstrDesc",
"*",
"MCID",
"=",
"&",
"MI",
"->",
"getDesc",
"(",
")",
";",
"unsigned",
"NewOpc",
"=",
"convertAddSubFlagsOpcode",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
";",
"if",
"(",
"NewOpc",
")",
"{",
"const",
"ARMBaseInstrInfo",
"*",
"TII",
"=",
"Subtarget",
"->",
"getInstrInfo",
"(",
")",
";",
"MCID",
"=",
"&",
"TII",
"->",
"get",
"(",
"NewOpc",
")",
";",
"assert",
"(",
"MCID",
"->",
"getNumOperands",
"(",
")",
"==",
"MI",
"->",
"getDesc",
"(",
")",
".",
"getNumOperands",
"(",
")",
"+",
"1",
"&&",
"\"converted opcode should be the same except for cc_out\"",
")",
";",
"MI",
"->",
"setDesc",
"(",
"*",
"MCID",
")",
";",
"MI",
"->",
"addOperand",
"(",
"MachineOperand",
"::",
"CreateReg",
"(",
"0",
",",
"true",
")",
")",
";",
"}",
"unsigned",
"ccOutIdx",
"=",
"MCID",
"->",
"getNumOperands",
"(",
")",
"-",
"1",
";",
"if",
"(",
"!",
"MI",
"->",
"hasOptionalDef",
"(",
")",
"||",
"!",
"MCID",
"->",
"OpInfo",
"[",
"ccOutIdx",
"]",
".",
"isOptionalDef",
"(",
")",
")",
"{",
"assert",
"(",
"!",
"NewOpc",
"&&",
"\"Optional cc_out operand required\"",
")",
";",
"return",
";",
"}",
"bool",
"definesCPSR",
"=",
"false",
";",
"bool",
"deadCPSR",
"=",
"false",
";",
"for",
"(",
"unsigned",
"i",
"=",
"MCID",
"->",
"getNumOperands",
"(",
")",
",",
"e",
"=",
"MI",
"->",
"getNumOperands",
"(",
")",
";",
"i",
"!=",
"e",
";",
"++",
"i",
")",
"{",
"const",
"MachineOperand",
"&",
"MO",
"=",
"MI",
"->",
"getOperand",
"(",
"i",
")",
";",
"if",
"(",
"MO",
".",
"isReg",
"(",
")",
"&&",
"MO",
".",
"isDef",
"(",
")",
"&&",
"MO",
".",
"getReg",
"(",
")",
"==",
"ARM",
"::",
"CPSR",
")",
"{",
"definesCPSR",
"=",
"true",
";",
"if",
"(",
"MO",
".",
"isDead",
"(",
")",
")",
"deadCPSR",
"=",
"true",
";",
"MI",
"->",
"RemoveOperand",
"(",
"i",
")",
";",
"break",
";",
"}",
"}",
"if",
"(",
"!",
"definesCPSR",
")",
"{",
"assert",
"(",
"!",
"NewOpc",
"&&",
"\"Optional cc_out operand required\"",
")",
";",
"return",
";",
"}",
"assert",
"(",
"deadCPSR",
"==",
"!",
"Node",
"->",
"hasAnyUseOfValue",
"(",
"1",
")",
"&&",
"\"inconsistent dead flag\"",
")",
";",
"if",
"(",
"deadCPSR",
")",
"{",
"assert",
"(",
"!",
"MI",
"->",
"getOperand",
"(",
"ccOutIdx",
")",
".",
"getReg",
"(",
")",
"&&",
"\"expect uninitialized optional cc_out operand\"",
")",
";",
"return",
";",
"}",
"MachineOperand",
"&",
"MO",
"=",
"MI",
"->",
"getOperand",
"(",
"ccOutIdx",
")",
";",
"MO",
".",
"setReg",
"(",
"ARM",
"::",
"CPSR",
")",
";",
"MO",
".",
"setIsDef",
"(",
"true",
")",
";",
"}",
"</s>"
] | [
"This",
"method",
"should",
"be",
"implemented",
"by",
"targets",
"that",
"mark",
"instructions",
"with",
"the",
"'hasPostISelHook",
"'",
"flag",
"."
] | [
"ARM",
"ARM",
"ARM::MEMCPY",
"ARM",
"1",
"\"converted opcode should be the same except for cc_out\"",
"0",
"1",
"\"Optional cc_out operand required\"",
"ARM::CPSR",
"\"Optional cc_out operand required\"",
"1",
"\"inconsistent dead flag\"",
"\"expect uninitialized optional cc_out operand\"",
"ARM::CPSR"
] | ARMISelLowering (2)2 | AdjustInstrPostInstrSelection | ARM | CPU | LLVM | 15,396 | 366 | 1 | [] |
[
"<s>",
"EVT",
"X86TargetLowering",
"::",
"getSetCCResultType",
"(",
"const",
"DataLayout",
"&",
"DL",
",",
"LLVMContext",
"&",
"Context",
",",
"EVT",
"VT",
")",
"const",
"{",
"if",
"(",
"!",
"VT",
".",
"isVector",
"(",
")",
")",
"return",
"MVT",
"::",
"i8",
";",
"if",
"(",
"Subtarget",
".",
"hasAVX512",
"(",
")",
")",
"{",
"const",
"unsigned",
"NumElts",
"=",
"VT",
".",
"getVectorNumElements",
"(",
")",
";",
"EVT",
"LegalVT",
"=",
"VT",
";",
"while",
"(",
"getTypeAction",
"(",
"Context",
",",
"LegalVT",
")",
"!=",
"TypeLegal",
")",
"LegalVT",
"=",
"getTypeToTransformTo",
"(",
"Context",
",",
"LegalVT",
")",
";",
"if",
"(",
"LegalVT",
".",
"getSimpleVT",
"(",
")",
".",
"is512BitVector",
"(",
")",
")",
"return",
"EVT",
"::",
"getVectorVT",
"(",
"Context",
",",
"MVT",
"::",
"i1",
",",
"NumElts",
")",
";",
"if",
"(",
"LegalVT",
".",
"getSimpleVT",
"(",
")",
".",
"isVector",
"(",
")",
"&&",
"Subtarget",
".",
"hasVLX",
"(",
")",
")",
"{",
"MVT",
"EltVT",
"=",
"LegalVT",
".",
"getSimpleVT",
"(",
")",
".",
"getVectorElementType",
"(",
")",
";",
"if",
"(",
"Subtarget",
".",
"hasBWI",
"(",
")",
"||",
"EltVT",
".",
"getSizeInBits",
"(",
")",
">=",
"32",
")",
"return",
"EVT",
"::",
"getVectorVT",
"(",
"Context",
",",
"MVT",
"::",
"i1",
",",
"NumElts",
")",
";",
"}",
"}",
"return",
"VT",
".",
"changeVectorElementTypeToInteger",
"(",
")",
";",
"}",
"</s>"
] | [
"Return",
"the",
"value",
"type",
"to",
"use",
"for",
"ISD",
":",
":SETCC",
"."
] | [
"X86",
"X86",
"MVT::i8",
"MVT::i1",
"32",
"MVT::i1"
] | X86ISelLowering (2)6 | getSetCCResultType | X86 | CPU | LLVM | 15,397 | 175 | 1 | [] |
[
"<s>",
"unsigned",
"AArch64TargetLowering",
"::",
"getRegisterByName",
"(",
"const",
"char",
"*",
"RegName",
",",
"EVT",
"VT",
",",
"SelectionDAG",
"&",
"DAG",
")",
"const",
"{",
"unsigned",
"Reg",
"=",
"StringSwitch",
"<",
"unsigned",
">",
"(",
"RegName",
")",
".",
"Case",
"(",
"\"sp\"",
",",
"AArch64",
"::",
"SP",
")",
".",
"Case",
"(",
"\"x18\"",
",",
"AArch64",
"::",
"X18",
")",
".",
"Case",
"(",
"\"w18\"",
",",
"AArch64",
"::",
"W18",
")",
".",
"Default",
"(",
"0",
")",
";",
"if",
"(",
"(",
"Reg",
"==",
"AArch64",
"::",
"X18",
"||",
"Reg",
"==",
"AArch64",
"::",
"W18",
")",
"&&",
"!",
"Subtarget",
"->",
"isX18Reserved",
"(",
")",
")",
"Reg",
"=",
"0",
";",
"if",
"(",
"Reg",
")",
"return",
"Reg",
";",
"report_fatal_error",
"(",
"Twine",
"(",
"\"Invalid register name \\\"\"",
"+",
"StringRef",
"(",
"RegName",
")",
"+",
"\"\\\".\"",
")",
")",
";",
"}",
"</s>"
] | [
"Return",
"the",
"register",
"ID",
"of",
"the",
"name",
"passed",
"in",
"."
] | [
"AArch64",
"AArch64",
"\"sp\"",
"AArch64::SP",
"\"x18\"",
"AArch64::X18",
"\"w18\"",
"AArch64::W18",
"0",
"AArch64::X18",
"AArch64::W18",
"0",
"\"Invalid register name \\\"\"",
"\"\\\".\""
] | AArch64ISelLowering105 | getRegisterByName | AArch64 | CPU | LLVM | 15,398 | 112 | 1 | [] |
[
"<s>",
"void",
"LanaiDAGToDAGISel",
"::",
"Select",
"(",
"SDNode",
"*",
"Node",
")",
"{",
"unsigned",
"Opcode",
"=",
"Node",
"->",
"getOpcode",
"(",
")",
";",
"if",
"(",
"Node",
"->",
"isMachineOpcode",
"(",
")",
")",
"{",
"DEBUG",
"(",
"errs",
"(",
")",
"<<",
"\"== \"",
";",
"Node",
"->",
"dump",
"(",
"CurDAG",
")",
";",
"errs",
"(",
")",
"<<",
"\"\\n\"",
")",
";",
"return",
";",
"}",
"EVT",
"VT",
"=",
"Node",
"->",
"getValueType",
"(",
"0",
")",
";",
"switch",
"(",
"Opcode",
")",
"{",
"case",
"ISD",
"::",
"Constant",
":",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"i32",
")",
"{",
"ConstantSDNode",
"*",
"ConstNode",
"=",
"cast",
"<",
"ConstantSDNode",
">",
"(",
"Node",
")",
";",
"if",
"(",
"ConstNode",
"->",
"isNullValue",
"(",
")",
")",
"{",
"SDValue",
"New",
"=",
"CurDAG",
"->",
"getCopyFromReg",
"(",
"CurDAG",
"->",
"getEntryNode",
"(",
")",
",",
"SDLoc",
"(",
"Node",
")",
",",
"Lanai",
"::",
"R0",
",",
"MVT",
"::",
"i32",
")",
";",
"return",
"ReplaceNode",
"(",
"Node",
",",
"New",
".",
"getNode",
"(",
")",
")",
";",
"}",
"if",
"(",
"ConstNode",
"->",
"isAllOnesValue",
"(",
")",
")",
"{",
"SDValue",
"New",
"=",
"CurDAG",
"->",
"getCopyFromReg",
"(",
"CurDAG",
"->",
"getEntryNode",
"(",
")",
",",
"SDLoc",
"(",
"Node",
")",
",",
"Lanai",
"::",
"R1",
",",
"MVT",
"::",
"i32",
")",
";",
"return",
"ReplaceNode",
"(",
"Node",
",",
"New",
".",
"getNode",
"(",
")",
")",
";",
"}",
"}",
"break",
";",
"case",
"ISD",
"::",
"FrameIndex",
":",
"selectFrameIndex",
"(",
"Node",
")",
";",
"return",
";",
"default",
":",
"break",
";",
"}",
"SelectCode",
"(",
"Node",
")",
";",
"}",
"</s>"
] | [
"Main",
"hook",
"for",
"targets",
"to",
"transform",
"nodes",
"into",
"machine",
"nodes",
"."
] | [
"Lanai",
"Lanai",
"\"== \"",
"\"\\n\"",
"0",
"ISD::Constant",
"MVT::i32",
"Lanai::R0",
"MVT::i32",
"Lanai::R1",
"MVT::i32",
"ISD::FrameIndex"
] | LanaiISelDAGToDAG3 | Select | Lanai | CPU | LLVM | 15,399 | 218 | 1 | [] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.