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>",
"TargetLoweringObjectFile",
"*",
"getObjFileLowering",
"(",
")",
"const",
"override",
"{",
"return",
"TLOF",
".",
"get",
"(",
")",
";",
"}",
"</s>"
] | [
"Return",
"information",
"about",
"object",
"file",
"lowering",
"."
] | [
"LEG"
] | LEGTargetMachine | getObjFileLowering | LEG | CPU | LLVM | 8,600 | 16 | 1 | [] |
[
"<s>",
"int",
"neon_vector_mem_operand",
"(",
"rtx",
"op",
",",
"int",
"type",
",",
"bool",
"strict",
")",
"{",
"rtx",
"ind",
";",
"if",
"(",
"!",
"(",
"reload_in_progress",
"||",
"reload_completed",
")",
"&&",
"(",
"reg_mentioned_p",
"(",
"frame_pointer_rtx",
",",
"op",
")",
"||",
"reg_mentioned_p",
"(",
"arg_pointer_rtx",
",",
"op",
")",
"||",
"reg_mentioned_p",
"(",
"virtual_incoming_args_rtx",
",",
"op",
")",
"||",
"reg_mentioned_p",
"(",
"virtual_outgoing_args_rtx",
",",
"op",
")",
"||",
"reg_mentioned_p",
"(",
"virtual_stack_dynamic_rtx",
",",
"op",
")",
"||",
"reg_mentioned_p",
"(",
"virtual_stack_vars_rtx",
",",
"op",
")",
")",
")",
"return",
"!",
"strict",
";",
"if",
"(",
"!",
"MEM_P",
"(",
"op",
")",
")",
"return",
"FALSE",
";",
"ind",
"=",
"XEXP",
"(",
"op",
",",
"0",
")",
";",
"if",
"(",
"reload_completed",
"&&",
"(",
"GET_CODE",
"(",
"ind",
")",
"==",
"LABEL_REF",
"||",
"(",
"GET_CODE",
"(",
"ind",
")",
"==",
"CONST",
"&&",
"GET_CODE",
"(",
"XEXP",
"(",
"ind",
",",
"0",
")",
")",
"==",
"PLUS",
"&&",
"GET_CODE",
"(",
"XEXP",
"(",
"XEXP",
"(",
"ind",
",",
"0",
")",
",",
"0",
")",
")",
"==",
"LABEL_REF",
"&&",
"CONST_INT_P",
"(",
"XEXP",
"(",
"XEXP",
"(",
"ind",
",",
"0",
")",
",",
"1",
")",
")",
")",
")",
")",
"return",
"TRUE",
";",
"if",
"(",
"REG_P",
"(",
"ind",
")",
")",
"return",
"arm_address_register_rtx_p",
"(",
"ind",
",",
"0",
")",
";",
"if",
"(",
"(",
"type",
"!=",
"1",
"&&",
"GET_CODE",
"(",
"ind",
")",
"==",
"POST_INC",
")",
"||",
"(",
"type",
"==",
"0",
"&&",
"GET_CODE",
"(",
"ind",
")",
"==",
"PRE_DEC",
")",
")",
"return",
"arm_address_register_rtx_p",
"(",
"XEXP",
"(",
"ind",
",",
"0",
")",
",",
"0",
")",
";",
"if",
"(",
"type",
"==",
"2",
"&&",
"GET_CODE",
"(",
"ind",
")",
"==",
"POST_MODIFY",
"&&",
"GET_CODE",
"(",
"XEXP",
"(",
"ind",
",",
"1",
")",
")",
"==",
"PLUS",
"&&",
"REG_P",
"(",
"XEXP",
"(",
"XEXP",
"(",
"ind",
",",
"1",
")",
",",
"1",
")",
")",
")",
"return",
"true",
";",
"if",
"(",
"type",
"==",
"0",
"&&",
"GET_CODE",
"(",
"ind",
")",
"==",
"PLUS",
"&&",
"REG_P",
"(",
"XEXP",
"(",
"ind",
",",
"0",
")",
")",
"&&",
"REG_MODE_OK_FOR_BASE_P",
"(",
"XEXP",
"(",
"ind",
",",
"0",
")",
",",
"VOIDmode",
")",
"&&",
"CONST_INT_P",
"(",
"XEXP",
"(",
"ind",
",",
"1",
")",
")",
"&&",
"INTVAL",
"(",
"XEXP",
"(",
"ind",
",",
"1",
")",
")",
">",
"-",
"1024",
"&&",
"(",
"INTVAL",
"(",
"XEXP",
"(",
"ind",
",",
"1",
")",
")",
"<",
"(",
"VALID_NEON_QREG_MODE",
"(",
"GET_MODE",
"(",
"op",
")",
")",
"?",
"1016",
":",
"1024",
")",
")",
"&&",
"(",
"INTVAL",
"(",
"XEXP",
"(",
"ind",
",",
"1",
")",
")",
"&",
"3",
")",
"==",
"0",
")",
"return",
"TRUE",
";",
"return",
"FALSE",
";",
"}",
"</s>"
] | [
"Return",
"TRUE",
"if",
"OP",
"is",
"a",
"memory",
"operand",
"which",
"we",
"can",
"load",
"or",
"store",
"a",
"vector",
"to/from",
".",
"TYPE",
"is",
"one",
"of",
"the",
"following",
"values",
":",
"0",
"-",
"Vector",
"load/stor",
"(",
"vldr",
")",
"1",
"-",
"Core",
"registers",
"(",
"ldm",
")",
"2",
"-",
"Element/structure",
"loads",
"(",
"vld1",
")"
] | [
"arm",
"0",
"0",
"0",
"0",
"0",
"1",
"0",
"1",
"0",
"0",
"0",
"2",
"1",
"1",
"1",
"0",
"0",
"0",
"1",
"1",
"1024",
"1",
"1016",
"1024",
"1",
"3",
"0"
] | arm4 | neon_vector_mem_operand | arm | CPU | GCC | 8,601 | 368 | 1 | [] |
[
"<s>",
"static",
"inline",
"int",
"rs6000_secondary_reload_toc_costs",
"(",
"addr_mask_type",
"addr_mask",
")",
"{",
"int",
"ret",
";",
"if",
"(",
"TARGET_CMODEL",
"!=",
"CMODEL_SMALL",
")",
"ret",
"=",
"(",
"(",
"addr_mask",
"&",
"RELOAD_REG_OFFSET",
")",
"==",
"0",
")",
"?",
"1",
":",
"2",
";",
"else",
"ret",
"=",
"(",
"TARGET_MINIMAL_TOC",
")",
"?",
"6",
":",
"3",
";",
"return",
"ret",
";",
"}",
"</s>"
] | [
"Helper",
"function",
"to",
"return",
"the",
"cost",
"of",
"adding",
"a",
"TOC",
"entry",
"address",
"."
] | [
"rs6000",
"0",
"1",
"2",
"6",
"3"
] | rs6000 | rs6000_secondary_reload_toc_costs | rs6000 | CPU | GCC | 8,602 | 49 | 1 | [] |
[
"<s>",
"static",
"tree",
"s390_d_handle_target_float_abi",
"(",
"void",
")",
"{",
"const",
"char",
"*",
"abi",
";",
"if",
"(",
"TARGET_HARD_FLOAT",
")",
"abi",
"=",
"\"hard\"",
";",
"else",
"if",
"(",
"TARGET_SOFT_FLOAT",
")",
"abi",
"=",
"\"soft\"",
";",
"else",
"abi",
"=",
"\"\"",
";",
"return",
"build_string_literal",
"(",
"strlen",
"(",
"abi",
")",
"+",
"1",
",",
"abi",
")",
";",
"}",
"</s>"
] | [
"Handle",
"a",
"call",
"to",
"`",
"__traits",
"(",
"getTargetInfo",
",",
"``",
"floatAbi",
"''",
")",
"'",
"."
] | [
"s390",
"\"hard\"",
"\"soft\"",
"\"\"",
"1"
] | s390-d | s390_d_handle_target_float_abi | s390 | MPU | GCC | 8,603 | 48 | 1 | [] |
[
"<s>",
"LLT",
"AArch64TargetLowering",
"::",
"getOptimalMemOpLLT",
"(",
"const",
"MemOp",
"&",
"Op",
",",
"const",
"AttributeList",
"&",
"FuncAttributes",
")",
"const",
"{",
"bool",
"CanImplicitFloat",
"=",
"!",
"FuncAttributes",
".",
"hasFnAttr",
"(",
"Attribute",
"::",
"NoImplicitFloat",
")",
";",
"bool",
"CanUseNEON",
"=",
"Subtarget",
"->",
"hasNEON",
"(",
")",
"&&",
"CanImplicitFloat",
";",
"bool",
"CanUseFP",
"=",
"Subtarget",
"->",
"hasFPARMv8",
"(",
")",
"&&",
"CanImplicitFloat",
";",
"bool",
"IsSmallMemset",
"=",
"Op",
".",
"isMemset",
"(",
")",
"&&",
"Op",
".",
"size",
"(",
")",
"<",
"32",
";",
"auto",
"AlignmentIsAcceptable",
"=",
"[",
"&",
"]",
"(",
"EVT",
"VT",
",",
"Align",
"AlignCheck",
")",
"{",
"if",
"(",
"Op",
".",
"isAligned",
"(",
"AlignCheck",
")",
")",
"return",
"true",
";",
"bool",
"Fast",
";",
"return",
"allowsMisalignedMemoryAccesses",
"(",
"VT",
",",
"0",
",",
"Align",
"(",
"1",
")",
",",
"MachineMemOperand",
"::",
"MONone",
",",
"&",
"Fast",
")",
"&&",
"Fast",
";",
"}",
";",
"if",
"(",
"CanUseNEON",
"&&",
"Op",
".",
"isMemset",
"(",
")",
"&&",
"!",
"IsSmallMemset",
"&&",
"AlignmentIsAcceptable",
"(",
"MVT",
"::",
"v2i64",
",",
"Align",
"(",
"16",
")",
")",
")",
"return",
"LLT",
"::",
"fixed_vector",
"(",
"2",
",",
"64",
")",
";",
"if",
"(",
"CanUseFP",
"&&",
"!",
"IsSmallMemset",
"&&",
"AlignmentIsAcceptable",
"(",
"MVT",
"::",
"f128",
",",
"Align",
"(",
"16",
")",
")",
")",
"return",
"LLT",
"::",
"scalar",
"(",
"128",
")",
";",
"if",
"(",
"Op",
".",
"size",
"(",
")",
">=",
"8",
"&&",
"AlignmentIsAcceptable",
"(",
"MVT",
"::",
"i64",
",",
"Align",
"(",
"8",
")",
")",
")",
"return",
"LLT",
"::",
"scalar",
"(",
"64",
")",
";",
"if",
"(",
"Op",
".",
"size",
"(",
")",
">=",
"4",
"&&",
"AlignmentIsAcceptable",
"(",
"MVT",
"::",
"i32",
",",
"Align",
"(",
"4",
")",
")",
")",
"return",
"LLT",
"::",
"scalar",
"(",
"32",
")",
";",
"return",
"LLT",
"(",
")",
";",
"}",
"</s>"
] | [
"LLT",
"returning",
"variant",
"."
] | [
"AArch64",
"AArch64",
"32",
"0",
"1",
"MVT::v2i64",
"16",
"2",
"64",
"MVT::f128",
"16",
"128",
"8",
"MVT::i64",
"8",
"64",
"4",
"MVT::i32",
"4",
"32"
] | AArch64ISelLowering (2)2 | getOptimalMemOpLLT | AArch64 | CPU | LLVM | 8,604 | 250 | 1 | [] |
[
"<s>",
"static",
"void",
"v850_asm_init_sections",
"(",
"void",
")",
"{",
"rosdata_section",
"=",
"get_unnamed_section",
"(",
"0",
",",
"output_section_asm_op",
",",
"\"\\t.section .rosdata,\\\"a\\\"\"",
")",
";",
"rozdata_section",
"=",
"get_unnamed_section",
"(",
"0",
",",
"output_section_asm_op",
",",
"\"\\t.section .rozdata,\\\"a\\\"\"",
")",
";",
"tdata_section",
"=",
"get_unnamed_section",
"(",
"SECTION_WRITE",
",",
"output_section_asm_op",
",",
"\"\\t.section .tdata,\\\"aw\\\"\"",
")",
";",
"zdata_section",
"=",
"get_unnamed_section",
"(",
"SECTION_WRITE",
",",
"output_section_asm_op",
",",
"\"\\t.section .zdata,\\\"aw\\\"\"",
")",
";",
"zbss_section",
"=",
"get_unnamed_section",
"(",
"SECTION_WRITE",
"|",
"SECTION_BSS",
",",
"output_section_asm_op",
",",
"\"\\t.section .zbss,\\\"aw\\\"\"",
")",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_ASM_INIT_SECTIONS",
"."
] | [
"v850",
"0",
"\"\\t.section .rosdata,\\\"a\\\"\"",
"0",
"\"\\t.section .rozdata,\\\"a\\\"\"",
"\"\\t.section .tdata,\\\"aw\\\"\"",
"\"\\t.section .zdata,\\\"aw\\\"\"",
"\"\\t.section .zbss,\\\"aw\\\"\""
] | v850 | v850_asm_init_sections | v850 | MPU | GCC | 8,605 | 65 | 1 | [] |
[
"<s>",
"void",
"print",
"(",
"raw_ostream",
"&",
"OS",
")",
"const",
"override",
"{",
"switch",
"(",
"Kind",
")",
"{",
"case",
"Register",
":",
"OS",
"<<",
"\"<register \"",
"<<",
"getReg",
"(",
")",
"<<",
"'>'",
";",
"break",
";",
"case",
"Immediate",
":",
"OS",
"<<",
"getImm",
"(",
")",
";",
"break",
";",
"case",
"Token",
":",
"OS",
"<<",
"'\\''",
"<<",
"getToken",
"(",
")",
"<<",
"'\\''",
";",
"break",
";",
"case",
"Expression",
":",
"OS",
"<<",
"\"<expr \"",
"<<",
"*",
"Expr",
"<<",
"'>'",
";",
"break",
";",
"}",
"}",
"</s>"
] | [
"print",
"-",
"Print",
"a",
"debug",
"representation",
"of",
"the",
"operand",
"to",
"the",
"given",
"stream",
"."
] | [
"AMDGPU",
"\"<register \"",
"\"<expr \""
] | AMDGPUAsmParser | print | AMDGPU | GPU | LLVM | 8,606 | 72 | 1 | [] |
[
"<s>",
"unsigned",
"AMDGPUTTIImpl",
"::",
"getNumberOfRegisters",
"(",
"bool",
"Vec",
")",
"const",
"{",
"return",
"getHardwareNumberOfRegisters",
"(",
"Vec",
")",
">>",
"3",
";",
"}",
"</s>"
] | [
"�",
"?",
"Vector",
"TTI",
"begin",
"�",
"?"
] | [
"AMDGPU",
"AMDGPU",
"3"
] | AMDGPUTargetTransformInfo12 | getNumberOfRegisters | AMDGPU | GPU | LLVM | 8,607 | 19 | 1 | [] |
[
"<s>",
"bool",
"ARMAsmPrinter",
"::",
"PrintAsmOperand",
"(",
"const",
"MachineInstr",
"*",
"MI",
",",
"unsigned",
"OpNum",
",",
"unsigned",
"AsmVariant",
",",
"const",
"char",
"*",
"ExtraCode",
")",
"{",
"if",
"(",
"ExtraCode",
"&&",
"ExtraCode",
"[",
"0",
"]",
")",
"{",
"if",
"(",
"ExtraCode",
"[",
"1",
"]",
"!=",
"0",
")",
"return",
"true",
";",
"switch",
"(",
"ExtraCode",
"[",
"0",
"]",
")",
"{",
"default",
":",
"return",
"true",
";",
"case",
"'a'",
":",
"if",
"(",
"MI",
"->",
"getOperand",
"(",
"OpNum",
")",
".",
"isReg",
"(",
")",
")",
"{",
"O",
"<<",
"\"[\"",
"<<",
"TRI",
"->",
"getAsmName",
"(",
"MI",
"->",
"getOperand",
"(",
"OpNum",
")",
".",
"getReg",
"(",
")",
")",
"<<",
"\"]\"",
";",
"return",
"false",
";",
"}",
"case",
"'c'",
":",
"if",
"(",
"!",
"MI",
"->",
"getOperand",
"(",
"OpNum",
")",
".",
"isImm",
"(",
")",
")",
"return",
"true",
";",
"printNoHashImmediate",
"(",
"MI",
",",
"OpNum",
")",
";",
"return",
"false",
";",
"case",
"'P'",
":",
"printOperand",
"(",
"MI",
",",
"OpNum",
")",
";",
"return",
"false",
";",
"case",
"'Q'",
":",
"if",
"(",
"TM",
".",
"getTargetData",
"(",
")",
"->",
"isLittleEndian",
"(",
")",
")",
"break",
";",
"case",
"'R'",
":",
"if",
"(",
"TM",
".",
"getTargetData",
"(",
")",
"->",
"isBigEndian",
"(",
")",
")",
"break",
";",
"case",
"'H'",
":",
"if",
"(",
"!",
"MI",
"->",
"getOperand",
"(",
"OpNum",
")",
".",
"isReg",
"(",
")",
"||",
"OpNum",
"+",
"1",
"==",
"MI",
"->",
"getNumOperands",
"(",
")",
"||",
"!",
"MI",
"->",
"getOperand",
"(",
"OpNum",
"+",
"1",
")",
".",
"isReg",
"(",
")",
")",
"return",
"true",
";",
"++",
"OpNum",
";",
"}",
"}",
"printOperand",
"(",
"MI",
",",
"OpNum",
")",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"PrintAsmOperand",
"-",
"Print",
"out",
"an",
"operand",
"for",
"an",
"inline",
"asm",
"expression",
"."
] | [
"ARM",
"ARM",
"0",
"1",
"0",
"0",
"\"[\"",
"\"]\"",
"1",
"1"
] | ARMAsmPrinter20 | PrintAsmOperand | ARM | CPU | LLVM | 8,608 | 237 | 1 | [] |
[
"<s>",
"bool",
"FixupLEAPass",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"Func",
")",
"{",
"MF",
"=",
"&",
"Func",
";",
"TM",
"=",
"&",
"Func",
".",
"getTarget",
"(",
")",
";",
"const",
"X86Subtarget",
"&",
"ST",
"=",
"TM",
"->",
"getSubtarget",
"<",
"X86Subtarget",
">",
"(",
")",
";",
"if",
"(",
"!",
"ST",
".",
"LEAusesAG",
"(",
")",
"&&",
"!",
"ST",
".",
"slowLEA",
"(",
")",
")",
"return",
"false",
";",
"TII",
"=",
"static_cast",
"<",
"const",
"X86InstrInfo",
"*",
">",
"(",
"TM",
"->",
"getSubtargetImpl",
"(",
")",
"->",
"getInstrInfo",
"(",
")",
")",
";",
"DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"Start X86FixupLEAs\\n\"",
";",
")",
";",
"for",
"(",
"MachineFunction",
"::",
"iterator",
"I",
"=",
"Func",
".",
"begin",
"(",
")",
",",
"E",
"=",
"Func",
".",
"end",
"(",
")",
";",
"I",
"!=",
"E",
";",
"++",
"I",
")",
"processBasicBlock",
"(",
"Func",
",",
"I",
")",
";",
"DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"End X86FixupLEAs\\n\"",
";",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"X86",
"X86",
"X86",
"X86",
"\"Start X86FixupLEAs\\n\"",
"\"End X86FixupLEAs\\n\""
] | X86FixupLEAs36 | runOnMachineFunction | X86 | CPU | LLVM | 8,609 | 136 | 1 | [] |
[
"<s>",
"const",
"TargetRegisterClass",
"*",
"SPURegisterInfo",
"::",
"getPointerRegClass",
"(",
")",
"const",
"{",
"return",
"&",
"SPU",
"::",
"R32CRegClass",
";",
"}",
"</s>"
] | [
"getPointerRegClass",
"-",
"Returns",
"a",
"TargetRegisterClass",
"used",
"for",
"pointer",
"values",
"."
] | [
"CellSPU",
"SPU",
"SPU::R32CRegClass"
] | SPURegisterInfo8 | getPointerRegClass | CellSPU | MPU | LLVM | 8,610 | 17 | 1 | [] |
[
"<s>",
"unsigned",
"M680x0InstrInfo",
"::",
"getGlobalBaseReg",
"(",
"MachineFunction",
"*",
"MF",
")",
"const",
"{",
"M680x0MachineFunctionInfo",
"*",
"MxFI",
"=",
"MF",
"->",
"getInfo",
"<",
"M680x0MachineFunctionInfo",
">",
"(",
")",
";",
"unsigned",
"GlobalBaseReg",
"=",
"MxFI",
"->",
"getGlobalBaseReg",
"(",
")",
";",
"if",
"(",
"GlobalBaseReg",
"!=",
"0",
")",
"return",
"GlobalBaseReg",
";",
"MachineRegisterInfo",
"&",
"RegInfo",
"=",
"MF",
"->",
"getRegInfo",
"(",
")",
";",
"GlobalBaseReg",
"=",
"RegInfo",
".",
"createVirtualRegister",
"(",
"&",
"M680x0",
"::",
"AR32_NOSPRegClass",
")",
";",
"MxFI",
"->",
"setGlobalBaseReg",
"(",
"GlobalBaseReg",
")",
";",
"return",
"GlobalBaseReg",
";",
"}",
"</s>"
] | [
"getGlobalBaseReg",
"-",
"Return",
"a",
"virtual",
"register",
"initialized",
"with",
"the",
"the",
"global",
"base",
"register",
"value",
"."
] | [
"M680x0",
"M680x0",
"M680x0",
"M680x0",
"0",
"M680x0::AR32_NOSPRegClass"
] | M680x0InstrInfo | getGlobalBaseReg | M680x0 | MPU | LLVM | 8,611 | 75 | 1 | [] |
[
"<s>",
"static",
"tree",
"s390_handle_hotpatch_attribute",
"(",
"tree",
"*",
"node",
",",
"tree",
"name",
",",
"tree",
"args",
",",
"int",
"flags",
"ATTRIBUTE_UNUSED",
",",
"bool",
"*",
"no_add_attrs",
")",
"{",
"tree",
"expr",
";",
"tree",
"expr2",
";",
"int",
"err",
";",
"if",
"(",
"TREE_CODE",
"(",
"*",
"node",
")",
"!=",
"FUNCTION_DECL",
")",
"{",
"warning",
"(",
"OPT_Wattributes",
",",
"\"%qE attribute only applies to functions\"",
",",
"name",
")",
";",
"*",
"no_add_attrs",
"=",
"true",
";",
"}",
"if",
"(",
"args",
"!=",
"NULL",
"&&",
"TREE_CHAIN",
"(",
"args",
")",
"!=",
"NULL",
")",
"{",
"expr",
"=",
"TREE_VALUE",
"(",
"args",
")",
";",
"expr2",
"=",
"TREE_VALUE",
"(",
"TREE_CHAIN",
"(",
"args",
")",
")",
";",
"}",
"if",
"(",
"args",
"==",
"NULL",
"||",
"TREE_CHAIN",
"(",
"args",
")",
"==",
"NULL",
")",
"err",
"=",
"1",
";",
"else",
"if",
"(",
"TREE_CODE",
"(",
"expr",
")",
"!=",
"INTEGER_CST",
"||",
"!",
"INTEGRAL_TYPE_P",
"(",
"TREE_TYPE",
"(",
"expr",
")",
")",
"||",
"wi",
"::",
"gtu_p",
"(",
"wi",
"::",
"to_wide",
"(",
"expr",
")",
",",
"s390_hotpatch_hw_max",
")",
")",
"err",
"=",
"1",
";",
"else",
"if",
"(",
"TREE_CODE",
"(",
"expr2",
")",
"!=",
"INTEGER_CST",
"||",
"!",
"INTEGRAL_TYPE_P",
"(",
"TREE_TYPE",
"(",
"expr2",
")",
")",
"||",
"wi",
"::",
"gtu_p",
"(",
"wi",
"::",
"to_wide",
"(",
"expr2",
")",
",",
"s390_hotpatch_hw_max",
")",
")",
"err",
"=",
"1",
";",
"else",
"err",
"=",
"0",
";",
"if",
"(",
"err",
")",
"{",
"error",
"(",
"\"requested %qE attribute is not a comma separated pair of\"",
"\" non-negative integer constants or too large (max. %d)\"",
",",
"name",
",",
"s390_hotpatch_hw_max",
")",
";",
"*",
"no_add_attrs",
"=",
"true",
";",
"}",
"return",
"NULL_TREE",
";",
"}",
"</s>"
] | [
"Check",
"whether",
"the",
"hotpatch",
"attribute",
"is",
"applied",
"to",
"a",
"function",
"and",
",",
"if",
"it",
"has",
"an",
"argument",
",",
"the",
"argument",
"is",
"valid",
"."
] | [
"s390",
"\"%qE attribute only applies to functions\"",
"1",
"1",
"1",
"0",
"\"requested %qE attribute is not a comma separated pair of\"",
"\" non-negative integer constants or too large (max. %d)\""
] | s390 | s390_handle_hotpatch_attribute | s390 | MPU | GCC | 8,612 | 211 | 1 | [] |
[
"<s>",
"const",
"AMDGPUInstrInfo",
"*",
"getInstrInfo",
"(",
")",
"const",
"override",
"{",
"return",
"InstrInfo",
".",
"get",
"(",
")",
";",
"}",
"</s>"
] | [
"TargetInstrInfo",
"getter",
"."
] | [
"AMDGPU",
"AMDGPU"
] | AMDGPUSubtarget (2) | getInstrInfo | AMDGPU | GPU | LLVM | 8,613 | 17 | 1 | [] |
[
"<s>",
"static",
"void",
"ix86_output_indirect_branch_via_push",
"(",
"rtx",
"call_op",
",",
"const",
"char",
"*",
"xasm",
",",
"bool",
"sibcall_p",
")",
"{",
"char",
"thunk_name_buf",
"[",
"32",
"]",
";",
"char",
"*",
"thunk_name",
";",
"char",
"push_buf",
"[",
"64",
"]",
";",
"enum",
"indirect_thunk_prefix",
"need_prefix",
"=",
"indirect_thunk_need_prefix",
"(",
"current_output_insn",
")",
";",
"int",
"regno",
"=",
"-",
"1",
";",
"if",
"(",
"cfun",
"->",
"machine",
"->",
"indirect_branch_type",
"!=",
"indirect_branch_thunk_inline",
")",
"{",
"if",
"(",
"cfun",
"->",
"machine",
"->",
"indirect_branch_type",
"==",
"indirect_branch_thunk",
")",
"indirect_thunk_needed",
"=",
"true",
";",
"indirect_thunk_name",
"(",
"thunk_name_buf",
",",
"regno",
",",
"need_prefix",
",",
"false",
")",
";",
"thunk_name",
"=",
"thunk_name_buf",
";",
"}",
"else",
"thunk_name",
"=",
"NULL",
";",
"snprintf",
"(",
"push_buf",
",",
"sizeof",
"(",
"push_buf",
")",
",",
"\"push{%c}\\t%s\"",
",",
"TARGET_64BIT",
"?",
"'q'",
":",
"'l'",
",",
"xasm",
")",
";",
"if",
"(",
"sibcall_p",
")",
"{",
"output_asm_insn",
"(",
"push_buf",
",",
"&",
"call_op",
")",
";",
"ix86_output_jmp_thunk_or_indirect",
"(",
"thunk_name",
",",
"regno",
")",
";",
"}",
"else",
"{",
"char",
"indirectlabel1",
"[",
"32",
"]",
";",
"char",
"indirectlabel2",
"[",
"32",
"]",
";",
"ASM_GENERATE_INTERNAL_LABEL",
"(",
"indirectlabel1",
",",
"INDIRECT_LABEL",
",",
"indirectlabelno",
"++",
")",
";",
"ASM_GENERATE_INTERNAL_LABEL",
"(",
"indirectlabel2",
",",
"INDIRECT_LABEL",
",",
"indirectlabelno",
"++",
")",
";",
"fputs",
"(",
"\"\\tjmp\\t\"",
",",
"asm_out_file",
")",
";",
"assemble_name_raw",
"(",
"asm_out_file",
",",
"indirectlabel2",
")",
";",
"fputc",
"(",
"'\\n'",
",",
"asm_out_file",
")",
";",
"ASM_OUTPUT_INTERNAL_LABEL",
"(",
"asm_out_file",
",",
"indirectlabel1",
")",
";",
"if",
"(",
"MEM_P",
"(",
"call_op",
")",
")",
"{",
"struct",
"ix86_address",
"parts",
";",
"rtx",
"addr",
"=",
"XEXP",
"(",
"call_op",
",",
"0",
")",
";",
"if",
"(",
"ix86_decompose_address",
"(",
"addr",
",",
"&",
"parts",
")",
"&&",
"parts",
".",
"base",
"==",
"stack_pointer_rtx",
")",
"{",
"if",
"(",
"parts",
".",
"index",
")",
"{",
"addr",
"=",
"gen_rtx_MULT",
"(",
"Pmode",
",",
"parts",
".",
"index",
",",
"GEN_INT",
"(",
"parts",
".",
"scale",
")",
")",
";",
"addr",
"=",
"gen_rtx_PLUS",
"(",
"Pmode",
",",
"stack_pointer_rtx",
",",
"addr",
")",
";",
"}",
"else",
"addr",
"=",
"stack_pointer_rtx",
";",
"rtx",
"disp",
";",
"if",
"(",
"parts",
".",
"disp",
"!=",
"NULL_RTX",
")",
"disp",
"=",
"plus_constant",
"(",
"Pmode",
",",
"parts",
".",
"disp",
",",
"UNITS_PER_WORD",
")",
";",
"else",
"disp",
"=",
"GEN_INT",
"(",
"UNITS_PER_WORD",
")",
";",
"addr",
"=",
"gen_rtx_PLUS",
"(",
"Pmode",
",",
"addr",
",",
"disp",
")",
";",
"call_op",
"=",
"gen_rtx_MEM",
"(",
"GET_MODE",
"(",
"call_op",
")",
",",
"addr",
")",
";",
"}",
"}",
"output_asm_insn",
"(",
"push_buf",
",",
"&",
"call_op",
")",
";",
"ix86_output_jmp_thunk_or_indirect",
"(",
"thunk_name",
",",
"regno",
")",
";",
"ASM_OUTPUT_INTERNAL_LABEL",
"(",
"asm_out_file",
",",
"indirectlabel2",
")",
";",
"fputs",
"(",
"\"\\tcall\\t\"",
",",
"asm_out_file",
")",
";",
"assemble_name_raw",
"(",
"asm_out_file",
",",
"indirectlabel1",
")",
";",
"fputc",
"(",
"'\\n'",
",",
"asm_out_file",
")",
";",
"}",
"}",
"</s>"
] | [
"Output",
"indirect",
"branch",
"via",
"a",
"call",
"and",
"return",
"thunk",
".",
"CALL_OP",
"is",
"the",
"branch",
"target",
".",
"XASM",
"is",
"the",
"assembly",
"template",
"for",
"CALL_OP",
".",
"Branch",
"is",
"a",
"tail",
"call",
"if",
"SIBCALL_P",
"is",
"true",
".",
"A",
"normal",
"call",
"is",
"converted",
"to",
":",
"jmp",
"L2",
"L1",
":",
"push",
"CALL_OP",
"jmp",
"__x86_indirect_thunk",
"L2",
":",
"call",
"L1",
"and",
"a",
"tail",
"call",
"is",
"converted",
"to",
":",
"push",
"CALL_OP",
"jmp",
"__x86_indirect_thunk"
] | [
"i386",
"32",
"64",
"1",
"\"push{%c}\\t%s\"",
"32",
"32",
"\"\\tjmp\\t\"",
"0",
"\"\\tcall\\t\""
] | i386 | ix86_output_indirect_branch_via_push | i386 | CPU | GCC | 8,614 | 379 | 1 | [] |
[
"<s>",
"void",
"rs6000_emit_swdiv",
"(",
"rtx",
"dst",
",",
"rtx",
"n",
",",
"rtx",
"d",
",",
"bool",
"note_p",
")",
"{",
"machine_mode",
"mode",
"=",
"GET_MODE",
"(",
"dst",
")",
";",
"rtx",
"one",
",",
"x0",
",",
"e0",
",",
"x1",
",",
"xprev",
",",
"eprev",
",",
"xnext",
",",
"enext",
",",
"u",
",",
"v",
";",
"int",
"i",
";",
"int",
"passes",
"=",
"(",
"TARGET_RECIP_PRECISION",
")",
"?",
"1",
":",
"3",
";",
"if",
"(",
"mode",
"==",
"DFmode",
"||",
"mode",
"==",
"V2DFmode",
")",
"passes",
"++",
";",
"enum",
"insn_code",
"code",
"=",
"optab_handler",
"(",
"smul_optab",
",",
"mode",
")",
";",
"insn_gen_fn",
"gen_mul",
"=",
"GEN_FCN",
"(",
"code",
")",
";",
"gcc_assert",
"(",
"code",
"!=",
"CODE_FOR_nothing",
")",
";",
"one",
"=",
"rs6000_load_constant_and_splat",
"(",
"mode",
",",
"dconst1",
")",
";",
"x0",
"=",
"gen_reg_rtx",
"(",
"mode",
")",
";",
"emit_insn",
"(",
"gen_rtx_SET",
"(",
"x0",
",",
"gen_rtx_UNSPEC",
"(",
"mode",
",",
"gen_rtvec",
"(",
"1",
",",
"d",
")",
",",
"UNSPEC_FRES",
")",
")",
")",
";",
"if",
"(",
"passes",
">",
"1",
")",
"{",
"e0",
"=",
"gen_reg_rtx",
"(",
"mode",
")",
";",
"rs6000_emit_nmsub",
"(",
"e0",
",",
"d",
",",
"x0",
",",
"one",
")",
";",
"x1",
"=",
"gen_reg_rtx",
"(",
"mode",
")",
";",
"rs6000_emit_madd",
"(",
"x1",
",",
"e0",
",",
"x0",
",",
"x0",
")",
";",
"for",
"(",
"i",
"=",
"0",
",",
"xprev",
"=",
"x1",
",",
"eprev",
"=",
"e0",
";",
"i",
"<",
"passes",
"-",
"2",
";",
"++",
"i",
",",
"xprev",
"=",
"xnext",
",",
"eprev",
"=",
"enext",
")",
"{",
"enext",
"=",
"gen_reg_rtx",
"(",
"mode",
")",
";",
"emit_insn",
"(",
"gen_mul",
"(",
"enext",
",",
"eprev",
",",
"eprev",
")",
")",
";",
"xnext",
"=",
"gen_reg_rtx",
"(",
"mode",
")",
";",
"rs6000_emit_madd",
"(",
"xnext",
",",
"enext",
",",
"xprev",
",",
"xprev",
")",
";",
"}",
"}",
"else",
"xprev",
"=",
"x0",
";",
"u",
"=",
"gen_reg_rtx",
"(",
"mode",
")",
";",
"emit_insn",
"(",
"gen_mul",
"(",
"u",
",",
"n",
",",
"xprev",
")",
")",
";",
"v",
"=",
"gen_reg_rtx",
"(",
"mode",
")",
";",
"rs6000_emit_nmsub",
"(",
"v",
",",
"d",
",",
"u",
",",
"n",
")",
";",
"rs6000_emit_madd",
"(",
"dst",
",",
"v",
",",
"xprev",
",",
"u",
")",
";",
"if",
"(",
"note_p",
")",
"add_reg_note",
"(",
"get_last_insn",
"(",
")",
",",
"REG_EQUAL",
",",
"gen_rtx_DIV",
"(",
"mode",
",",
"n",
",",
"d",
")",
")",
";",
"}",
"</s>"
] | [
"Newton-Raphson",
"approximation",
"of",
"floating",
"point",
"divide",
"DST",
"=",
"N/D",
".",
"If",
"NOTE_P",
",",
"add",
"a",
"reg_note",
"saying",
"that",
"this",
"was",
"a",
"division",
".",
"Support",
"both",
"scalar",
"and",
"vector",
"divide",
".",
"Assumes",
"no",
"trapping",
"math",
"and",
"finite",
"arguments",
"."
] | [
"powerpcspe",
"1",
"3",
"1",
"1",
"0",
"2"
] | powerpcspe | rs6000_emit_swdiv | powerpcspe | CPU | GCC | 8,615 | 326 | 1 | [] |
[
"<s>",
"bool",
"isReg",
"(",
")",
"const",
"{",
"return",
"Kind",
"==",
"k_Register",
";",
"}",
"</s>"
] | [
"isReg",
"-",
"Is",
"this",
"a",
"register",
"operand",
"?"
] | [
"Sparc"
] | SparcAsmParser11 | isReg | Sparc | CPU | LLVM | 8,616 | 12 | 1 | [] |
[
"<s>",
"int",
"num_insns_constant_wide",
"(",
"HOST_WIDE_INT",
"value",
")",
"{",
"if",
"(",
"(",
"(",
"unsigned",
"HOST_WIDE_INT",
")",
"value",
"+",
"0x8000",
")",
"<",
"0x10000",
")",
"return",
"1",
";",
"else",
"if",
"(",
"(",
"value",
"&",
"0xffff",
")",
"==",
"0",
"&&",
"(",
"value",
">>",
"31",
"==",
"-",
"1",
"||",
"value",
">>",
"31",
"==",
"0",
")",
")",
"return",
"1",
";",
"else",
"if",
"(",
"TARGET_POWERPC64",
")",
"{",
"HOST_WIDE_INT",
"low",
"=",
"(",
"(",
"value",
"&",
"0xffffffff",
")",
"^",
"0x80000000",
")",
"-",
"0x80000000",
";",
"HOST_WIDE_INT",
"high",
"=",
"value",
">>",
"31",
";",
"if",
"(",
"high",
"==",
"0",
"||",
"high",
"==",
"-",
"1",
")",
"return",
"2",
";",
"high",
">>=",
"1",
";",
"if",
"(",
"low",
"==",
"0",
")",
"return",
"num_insns_constant_wide",
"(",
"high",
")",
"+",
"1",
";",
"else",
"if",
"(",
"high",
"==",
"0",
")",
"return",
"num_insns_constant_wide",
"(",
"low",
")",
"+",
"1",
";",
"else",
"return",
"(",
"num_insns_constant_wide",
"(",
"high",
")",
"+",
"num_insns_constant_wide",
"(",
"low",
")",
"+",
"1",
")",
";",
"}",
"else",
"return",
"2",
";",
"}",
"</s>"
] | [
"Return",
"the",
"number",
"of",
"instructions",
"it",
"takes",
"to",
"form",
"a",
"constant",
"in",
"an",
"integer",
"register",
"."
] | [
"powerpcspe",
"0x8000",
"0x10000",
"1",
"0xffff",
"0",
"31",
"1",
"31",
"0",
"1",
"0xffffffff",
"0x80000000",
"0x80000000",
"31",
"0",
"1",
"2",
"1",
"0",
"1",
"0",
"1",
"1",
"2"
] | powerpcspe | num_insns_constant_wide | powerpcspe | CPU | GCC | 8,617 | 150 | 1 | [] |
[
"<s>",
"void",
"MipsInstPrinter",
"::",
"printInst",
"(",
"const",
"MCInst",
"*",
"MI",
",",
"uint64_t",
"Address",
",",
"StringRef",
"Annot",
",",
"const",
"MCSubtargetInfo",
"&",
"STI",
",",
"raw_ostream",
"&",
"O",
")",
"{",
"switch",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"break",
";",
"case",
"Mips",
"::",
"RDHWR",
":",
"case",
"Mips",
"::",
"RDHWR64",
":",
"O",
"<<",
"\"\\t.set\\tpush\\n\"",
";",
"O",
"<<",
"\"\\t.set\\tmips32r2\\n\"",
";",
"break",
";",
"case",
"Mips",
"::",
"Save16",
":",
"O",
"<<",
"\"\\tsave\\t\"",
";",
"printSaveRestore",
"(",
"MI",
",",
"O",
")",
";",
"O",
"<<",
"\" # 16 bit inst\\n\"",
";",
"return",
";",
"case",
"Mips",
"::",
"SaveX16",
":",
"O",
"<<",
"\"\\tsave\\t\"",
";",
"printSaveRestore",
"(",
"MI",
",",
"O",
")",
";",
"O",
"<<",
"\"\\n\"",
";",
"return",
";",
"case",
"Mips",
"::",
"Restore16",
":",
"O",
"<<",
"\"\\trestore\\t\"",
";",
"printSaveRestore",
"(",
"MI",
",",
"O",
")",
";",
"O",
"<<",
"\" # 16 bit inst\\n\"",
";",
"return",
";",
"case",
"Mips",
"::",
"RestoreX16",
":",
"O",
"<<",
"\"\\trestore\\t\"",
";",
"printSaveRestore",
"(",
"MI",
",",
"O",
")",
";",
"O",
"<<",
"\"\\n\"",
";",
"return",
";",
"}",
"if",
"(",
"!",
"printAliasInstr",
"(",
"MI",
",",
"O",
")",
"&&",
"!",
"printAlias",
"(",
"*",
"MI",
",",
"O",
")",
")",
"printInstruction",
"(",
"MI",
",",
"Address",
",",
"O",
")",
";",
"printAnnotation",
"(",
"O",
",",
"Annot",
")",
";",
"switch",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
"{",
"default",
":",
"break",
";",
"case",
"Mips",
"::",
"RDHWR",
":",
"case",
"Mips",
"::",
"RDHWR64",
":",
"O",
"<<",
"\"\\n\\t.set\\tpop\"",
";",
"}",
"}",
"</s>"
] | [
"Print",
"the",
"specified",
"MCInst",
"to",
"the",
"specified",
"raw_ostream",
"."
] | [
"Mips",
"Mips",
"Mips::RDHWR",
"Mips::RDHWR64",
"\"\\t.set\\tpush\\n\"",
"\"\\t.set\\tmips32r2\\n\"",
"Mips::Save16",
"\"\\tsave\\t\"",
"\" # 16 bit inst\\n\"",
"Mips::SaveX16",
"\"\\tsave\\t\"",
"\"\\n\"",
"Mips::Restore16",
"\"\\trestore\\t\"",
"\" # 16 bit inst\\n\"",
"Mips::RestoreX16",
"\"\\trestore\\t\"",
"\"\\n\"",
"Mips::RDHWR",
"Mips::RDHWR64",
"\"\\n\\t.set\\tpop\""
] | MipsInstPrinter27 | printInst | Mips | CPU | LLVM | 8,618 | 212 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"thumb2_output_casesi",
"(",
"rtx",
"*",
"operands",
")",
"{",
"rtx",
"diff_vec",
"=",
"PATTERN",
"(",
"NEXT_INSN",
"(",
"as_a",
"<",
"rtx_insn",
"*",
">",
"(",
"operands",
"[",
"2",
"]",
")",
")",
")",
";",
"gcc_assert",
"(",
"GET_CODE",
"(",
"diff_vec",
")",
"==",
"ADDR_DIFF_VEC",
")",
";",
"output_asm_insn",
"(",
"\"cmp\\t%0, %1\"",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"bhi\\t%l3\"",
",",
"operands",
")",
";",
"switch",
"(",
"GET_MODE",
"(",
"diff_vec",
")",
")",
"{",
"case",
"E_QImode",
":",
"return",
"\"tbb\\t[%|pc, %0]\"",
";",
"case",
"E_HImode",
":",
"return",
"\"tbh\\t[%|pc, %0, lsl #1]\"",
";",
"case",
"E_SImode",
":",
"if",
"(",
"flag_pic",
")",
"{",
"output_asm_insn",
"(",
"\"adr\\t%4, %l2\"",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"ldr\\t%5, [%4, %0, lsl #2]\"",
",",
"operands",
")",
";",
"output_asm_insn",
"(",
"\"add\\t%4, %4, %5\"",
",",
"operands",
")",
";",
"return",
"\"bx\\t%4\"",
";",
"}",
"else",
"{",
"output_asm_insn",
"(",
"\"adr\\t%4, %l2\"",
",",
"operands",
")",
";",
"return",
"\"ldr\\t%|pc, [%4, %0, lsl #2]\"",
";",
"}",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"}",
"</s>"
] | [
"Output",
"a",
"Thumb-2",
"casesi",
"instruction",
"."
] | [
"arm",
"2",
"\"cmp\\t%0, %1\"",
"\"bhi\\t%l3\"",
"\"tbb\\t[%|pc, %0]\"",
"\"tbh\\t[%|pc, %0, lsl #1]\"",
"\"adr\\t%4, %l2\"",
"\"ldr\\t%5, [%4, %0, lsl #2]\"",
"\"add\\t%4, %4, %5\"",
"\"bx\\t%4\"",
"\"adr\\t%4, %l2\"",
"\"ldr\\t%|pc, [%4, %0, lsl #2]\""
] | arm | thumb2_output_casesi | arm | CPU | GCC | 8,619 | 129 | 1 | [] |
[
"<s>",
"bool",
"contains",
"(",
"const",
"MachineBasicBlock",
"*",
"MBB",
")",
"const",
"{",
"return",
"BlockSet",
".",
"count",
"(",
"MBB",
")",
";",
"}",
"</s>"
] | [
"contains",
"-",
"Returns",
"true",
"if",
"this",
"trace",
"contains",
"the",
"given",
"basic",
"block",
"."
] | [
"WebAssembly"
] | WebAssemblyExceptionInfo | contains | WebAssembly | Virtual ISA | LLVM | 8,620 | 19 | 1 | [] |
[
"<s>",
"static",
"void",
"rs6000_xcoff_file_start",
"(",
"void",
")",
"{",
"rs6000_gen_section_name",
"(",
"&",
"xcoff_bss_section_name",
",",
"main_input_filename",
",",
"\".bss_\"",
")",
";",
"rs6000_gen_section_name",
"(",
"&",
"xcoff_private_data_section_name",
",",
"main_input_filename",
",",
"\".rw_\"",
")",
";",
"rs6000_gen_section_name",
"(",
"&",
"xcoff_read_only_section_name",
",",
"main_input_filename",
",",
"\".ro_\"",
")",
";",
"rs6000_gen_section_name",
"(",
"&",
"xcoff_tls_data_section_name",
",",
"main_input_filename",
",",
"\".tls_\"",
")",
";",
"rs6000_gen_section_name",
"(",
"&",
"xcoff_tbss_section_name",
",",
"main_input_filename",
",",
"\".tbss_[UL]\"",
")",
";",
"fputs",
"(",
"\"\\t.file\\t\"",
",",
"asm_out_file",
")",
";",
"output_quoted_string",
"(",
"asm_out_file",
",",
"main_input_filename",
")",
";",
"fputc",
"(",
"'\\n'",
",",
"asm_out_file",
")",
";",
"if",
"(",
"write_symbols",
"!=",
"NO_DEBUG",
")",
"switch_to_section",
"(",
"private_data_section",
")",
";",
"switch_to_section",
"(",
"toc_section",
")",
";",
"switch_to_section",
"(",
"text_section",
")",
";",
"if",
"(",
"profile_flag",
")",
"fprintf",
"(",
"asm_out_file",
",",
"\"\\t.extern %s\\n\"",
",",
"RS6000_MCOUNT",
")",
";",
"rs6000_file_start",
"(",
")",
";",
"}",
"</s>"
] | [
"Output",
"at",
"beginning",
"of",
"assembler",
"file",
".",
"Initialize",
"the",
"section",
"names",
"for",
"the",
"RS/6000",
"at",
"this",
"point",
".",
"Specify",
"filename",
",",
"including",
"full",
"path",
",",
"to",
"assembler",
".",
"We",
"want",
"to",
"go",
"into",
"the",
"TOC",
"section",
"so",
"at",
"least",
"one",
".toc",
"will",
"be",
"emitted",
".",
"Also",
",",
"in",
"order",
"to",
"output",
"proper",
".bs/.es",
"pairs",
",",
"we",
"need",
"at",
"least",
"one",
"static",
"[",
"RW",
"]",
"section",
"emitted",
".",
"Finally",
",",
"declare",
"mcount",
"when",
"profiling",
"to",
"make",
"the",
"assembler",
"happy",
"."
] | [
"rs6000",
"\".bss_\"",
"\".rw_\"",
"\".ro_\"",
"\".tls_\"",
"\".tbss_[UL]\"",
"\"\\t.file\\t\"",
"\"\\t.extern %s\\n\""
] | rs60005 | rs6000_xcoff_file_start | rs6000 | CPU | GCC | 8,621 | 117 | 1 | [] |
[
"<s>",
"int",
"mcore_halfword_offset",
"(",
"unsigned",
"int",
"mask",
")",
"{",
"if",
"(",
"mask",
"==",
"0x0000ffffL",
")",
"return",
"0",
";",
"else",
"if",
"(",
"mask",
"==",
"0xffff0000L",
")",
"return",
"1",
";",
"return",
"-",
"1",
";",
"}",
"</s>"
] | [
"Determine",
"halfword",
"being",
"masked",
"."
] | [
"mcore",
"0x0000ffffL",
"0",
"0xffff0000L",
"1",
"1"
] | mcore | mcore_halfword_offset | mcore | MPU | GCC | 8,622 | 32 | 1 | [] |
[
"<s>",
"static",
"HOST_WIDE_INT",
"aarch64_anchor_offset",
"(",
"HOST_WIDE_INT",
"offset",
",",
"HOST_WIDE_INT",
"size",
",",
"machine_mode",
"mode",
")",
"{",
"if",
"(",
"size",
">",
"16",
")",
"return",
"(",
"offset",
"+",
"0x400",
")",
"&",
"~",
"0x7f0",
";",
"if",
"(",
"offset",
"&",
"(",
"size",
"-",
"1",
")",
")",
"{",
"if",
"(",
"mode",
"==",
"BLKmode",
")",
"return",
"(",
"offset",
"+",
"512",
")",
"&",
"~",
"0x3ff",
";",
"return",
"(",
"offset",
"+",
"0x100",
")",
"&",
"~",
"0x1ff",
";",
"}",
"if",
"(",
"IN_RANGE",
"(",
"offset",
",",
"-",
"256",
",",
"0",
")",
")",
"return",
"0",
";",
"if",
"(",
"mode",
"==",
"TImode",
"||",
"mode",
"==",
"TFmode",
")",
"return",
"(",
"offset",
"+",
"0x100",
")",
"&",
"~",
"0x1ff",
";",
"return",
"offset",
"&",
"(",
"~",
"0xfff",
"*",
"size",
")",
";",
"}",
"</s>"
] | [
"OFFSET",
"is",
"an",
"address",
"offset",
"for",
"mode",
"MODE",
",",
"which",
"has",
"SIZE",
"bytes",
".",
"If",
"OFFSET",
"is",
"out",
"of",
"range",
",",
"return",
"an",
"offset",
"of",
"an",
"anchor",
"point",
"that",
"is",
"in",
"range",
".",
"Return",
"0",
"otherwise",
"."
] | [
"aarch64",
"16",
"0x400",
"0x7f0",
"1",
"512",
"0x3ff",
"0x100",
"0x1ff",
"256",
"0",
"0",
"0x100",
"0x1ff",
"0xfff"
] | aarch64 | aarch64_anchor_offset | aarch64 | CPU | GCC | 8,623 | 114 | 1 | [] |
[
"<s>",
"static",
"void",
"ix86_update_stack_boundary",
"(",
"void",
")",
"{",
"ix86_incoming_stack_boundary",
"=",
"ix86_minimum_incoming_stack_boundary",
"(",
"false",
")",
";",
"if",
"(",
"TARGET_64BIT",
"&&",
"cfun",
"->",
"stdarg",
"&&",
"crtl",
"->",
"stack_alignment_estimated",
"<",
"128",
")",
"crtl",
"->",
"stack_alignment_estimated",
"=",
"128",
";",
"}",
"</s>"
] | [
"Update",
"incoming",
"stack",
"boundary",
"and",
"estimated",
"stack",
"alignment",
"."
] | [
"i386",
"128",
"128"
] | i3864 | ix86_update_stack_boundary | i386 | CPU | GCC | 8,624 | 35 | 1 | [] |
[
"<s>",
"virtual",
"const",
"TargetRegisterInfo",
"*",
"getRegisterInfo",
"(",
")",
"const",
"{",
"return",
"&",
"InstrInfo",
".",
"getRegisterInfo",
"(",
")",
";",
"}",
"</s>"
] | [
"getRegisterInfo",
"-",
"TargetInstrInfo",
"is",
"a",
"superset",
"of",
"MRegister",
"info",
"."
] | [
"Dcpu16"
] | Dcpu16TargetMachine | getRegisterInfo | Dcpu16 | CPU | LLVM | 8,625 | 18 | 1 | [] |
[
"<s>",
"BitVector",
"MipsRegisterInfo",
"::",
"getReservedRegs",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"static",
"const",
"uint16_t",
"ReservedGPR32",
"[",
"]",
"=",
"{",
"Mips",
"::",
"ZERO",
",",
"Mips",
"::",
"K0",
",",
"Mips",
"::",
"K1",
",",
"Mips",
"::",
"SP",
"}",
";",
"static",
"const",
"uint16_t",
"ReservedGPR64",
"[",
"]",
"=",
"{",
"Mips",
"::",
"ZERO_64",
",",
"Mips",
"::",
"K0_64",
",",
"Mips",
"::",
"K1_64",
",",
"Mips",
"::",
"SP_64",
"}",
";",
"BitVector",
"Reserved",
"(",
"getNumRegs",
"(",
")",
")",
";",
"typedef",
"TargetRegisterClass",
"::",
"const_iterator",
"RegIter",
";",
"for",
"(",
"unsigned",
"I",
"=",
"0",
";",
"I",
"<",
"array_lengthof",
"(",
"ReservedGPR32",
")",
";",
"++",
"I",
")",
"Reserved",
".",
"set",
"(",
"ReservedGPR32",
"[",
"I",
"]",
")",
";",
"for",
"(",
"unsigned",
"I",
"=",
"0",
";",
"I",
"<",
"array_lengthof",
"(",
"ReservedGPR64",
")",
";",
"++",
"I",
")",
"Reserved",
".",
"set",
"(",
"ReservedGPR64",
"[",
"I",
"]",
")",
";",
"if",
"(",
"Subtarget",
".",
"isFP64bit",
"(",
")",
")",
"{",
"for",
"(",
"RegIter",
"Reg",
"=",
"Mips",
"::",
"AFGR64RegClass",
".",
"begin",
"(",
")",
",",
"EReg",
"=",
"Mips",
"::",
"AFGR64RegClass",
".",
"end",
"(",
")",
";",
"Reg",
"!=",
"EReg",
";",
"++",
"Reg",
")",
"Reserved",
".",
"set",
"(",
"*",
"Reg",
")",
";",
"}",
"else",
"{",
"for",
"(",
"RegIter",
"Reg",
"=",
"Mips",
"::",
"FGR64RegClass",
".",
"begin",
"(",
")",
",",
"EReg",
"=",
"Mips",
"::",
"FGR64RegClass",
".",
"end",
"(",
")",
";",
"Reg",
"!=",
"EReg",
";",
"++",
"Reg",
")",
"Reserved",
".",
"set",
"(",
"*",
"Reg",
")",
";",
"}",
"if",
"(",
"MF",
".",
"getTarget",
"(",
")",
".",
"getFrameLowering",
"(",
")",
"->",
"hasFP",
"(",
"MF",
")",
")",
"{",
"if",
"(",
"Subtarget",
".",
"inMips16Mode",
"(",
")",
")",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"S0",
")",
";",
"else",
"{",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"FP",
")",
";",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"FP_64",
")",
";",
"}",
"}",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"HWR29",
")",
";",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"DSPPos",
")",
";",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"DSPSCount",
")",
";",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"DSPCarry",
")",
";",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"DSPEFI",
")",
";",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"DSPOutFlag",
")",
";",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"MSAIR",
")",
";",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"MSACSR",
")",
";",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"MSAAccess",
")",
";",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"MSASave",
")",
";",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"MSAModify",
")",
";",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"MSARequest",
")",
";",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"MSAMap",
")",
";",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"MSAUnmap",
")",
";",
"if",
"(",
"Subtarget",
".",
"inMips16Mode",
"(",
")",
")",
"{",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"RA",
")",
";",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"RA_64",
")",
";",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"T0",
")",
";",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"T1",
")",
";",
"}",
"if",
"(",
"Subtarget",
".",
"useSmallSection",
"(",
")",
")",
"{",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"GP",
")",
";",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"GP_64",
")",
";",
"}",
"return",
"Reserved",
";",
"}",
"</s>"
] | [
"getReservedRegs",
"-",
"Returns",
"a",
"bitset",
"indexed",
"by",
"physical",
"register",
"number",
"indicating",
"if",
"a",
"register",
"is",
"a",
"special",
"register",
"that",
"has",
"particular",
"uses",
"and",
"should",
"be",
"considered",
"unavailable",
"at",
"all",
"times",
",",
"e.g",
"."
] | [
"Mips",
"Mips",
"Mips::ZERO",
"Mips::K0",
"Mips::K1",
"Mips::SP",
"Mips::ZERO_64",
"Mips::K0_64",
"Mips::K1_64",
"Mips::SP_64",
"0",
"0",
"Mips::AFGR64RegClass",
"Mips::AFGR64RegClass",
"Mips::FGR64RegClass",
"Mips::FGR64RegClass",
"Mips",
"Mips::S0",
"Mips::FP",
"Mips::FP_64",
"Mips::HWR29",
"Mips::DSPPos",
"Mips::DSPSCount",
"Mips::DSPCarry",
"Mips::DSPEFI",
"Mips::DSPOutFlag",
"Mips::MSAIR",
"Mips::MSACSR",
"Mips::MSAAccess",
"Mips::MSASave",
"Mips::MSAModify",
"Mips::MSARequest",
"Mips::MSAMap",
"Mips::MSAUnmap",
"Mips",
"Mips::RA",
"Mips::RA_64",
"Mips::T0",
"Mips::T1",
"Mips::GP",
"Mips::GP_64"
] | MipsRegisterInfo9 | getReservedRegs | Mips | CPU | LLVM | 8,626 | 480 | 1 | [] |
[
"<s>",
"iterator",
"begin",
"(",
")",
"{",
"return",
"(",
"Packet",
".",
"begin",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"Recipe",
"iterator",
"methods",
"."
] | [
"Hexagon"
] | HexagonShuffler | begin | Hexagon | DSP | LLVM | 8,627 | 15 | 1 | [] |
[
"<s>",
"static",
"bool",
"arm_assemble_integer",
"(",
"rtx",
"x",
",",
"unsigned",
"int",
"size",
",",
"int",
"aligned_p",
")",
"{",
"machine_mode",
"mode",
";",
"if",
"(",
"size",
"==",
"UNITS_PER_WORD",
"&&",
"aligned_p",
")",
"{",
"fputs",
"(",
"\"\\t.word\\t\"",
",",
"asm_out_file",
")",
";",
"output_addr_const",
"(",
"asm_out_file",
",",
"x",
")",
";",
"if",
"(",
"NEED_GOT_RELOC",
"&&",
"flag_pic",
"&&",
"making_const_table",
"&&",
"(",
"GET_CODE",
"(",
"x",
")",
"==",
"SYMBOL_REF",
"||",
"GET_CODE",
"(",
"x",
")",
"==",
"LABEL_REF",
")",
")",
"{",
"if",
"(",
"!",
"arm_pic_data_is_text_relative",
"||",
"(",
"GET_CODE",
"(",
"x",
")",
"==",
"SYMBOL_REF",
"&&",
"(",
"!",
"SYMBOL_REF_LOCAL_P",
"(",
"x",
")",
"||",
"(",
"SYMBOL_REF_DECL",
"(",
"x",
")",
"?",
"DECL_WEAK",
"(",
"SYMBOL_REF_DECL",
"(",
"x",
")",
")",
":",
"0",
")",
")",
")",
")",
"fputs",
"(",
"\"(GOT)\"",
",",
"asm_out_file",
")",
";",
"else",
"fputs",
"(",
"\"(GOTOFF)\"",
",",
"asm_out_file",
")",
";",
"}",
"fputc",
"(",
"'\\n'",
",",
"asm_out_file",
")",
";",
"return",
"true",
";",
"}",
"mode",
"=",
"GET_MODE",
"(",
"x",
")",
";",
"if",
"(",
"arm_vector_mode_supported_p",
"(",
"mode",
")",
")",
"{",
"int",
"i",
",",
"units",
";",
"gcc_assert",
"(",
"GET_CODE",
"(",
"x",
")",
"==",
"CONST_VECTOR",
")",
";",
"units",
"=",
"CONST_VECTOR_NUNITS",
"(",
"x",
")",
";",
"size",
"=",
"GET_MODE_UNIT_SIZE",
"(",
"mode",
")",
";",
"if",
"(",
"GET_MODE_CLASS",
"(",
"mode",
")",
"==",
"MODE_VECTOR_INT",
")",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"units",
";",
"i",
"++",
")",
"{",
"rtx",
"elt",
"=",
"CONST_VECTOR_ELT",
"(",
"x",
",",
"i",
")",
";",
"assemble_integer",
"(",
"elt",
",",
"size",
",",
"i",
"==",
"0",
"?",
"BIGGEST_ALIGNMENT",
":",
"size",
"*",
"BITS_PER_UNIT",
",",
"1",
")",
";",
"}",
"else",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"units",
";",
"i",
"++",
")",
"{",
"rtx",
"elt",
"=",
"CONST_VECTOR_ELT",
"(",
"x",
",",
"i",
")",
";",
"assemble_real",
"(",
"*",
"CONST_DOUBLE_REAL_VALUE",
"(",
"elt",
")",
",",
"as_a",
"<",
"scalar_float_mode",
">",
"(",
"GET_MODE_INNER",
"(",
"mode",
")",
")",
",",
"i",
"==",
"0",
"?",
"BIGGEST_ALIGNMENT",
":",
"size",
"*",
"BITS_PER_UNIT",
")",
";",
"}",
"return",
"true",
";",
"}",
"return",
"default_assemble_integer",
"(",
"x",
",",
"size",
",",
"aligned_p",
")",
";",
"}",
"</s>"
] | [
"Target",
"hook",
"for",
"assembling",
"integer",
"objects",
".",
"The",
"ARM",
"version",
"needs",
"to",
"handle",
"word-sized",
"values",
"specially",
"."
] | [
"arm",
"\"\\t.word\\t\"",
"0",
"\"(GOT)\"",
"\"(GOTOFF)\"",
"0",
"0",
"1",
"0",
"0"
] | arm7 | arm_assemble_integer | arm | CPU | GCC | 8,628 | 300 | 1 | [] |
[
"<s>",
"const",
"MCFixupKindInfo",
"&",
"WebAssemblyAsmBackend",
"::",
"getFixupKindInfo",
"(",
"MCFixupKind",
"Kind",
")",
"const",
"{",
"const",
"static",
"MCFixupKindInfo",
"Infos",
"[",
"WebAssembly",
"::",
"NumTargetFixupKinds",
"]",
"=",
"{",
"{",
"\"fixup_sleb128_i32\"",
",",
"0",
",",
"5",
"*",
"8",
",",
"0",
"}",
",",
"{",
"\"fixup_sleb128_i64\"",
",",
"0",
",",
"10",
"*",
"8",
",",
"0",
"}",
",",
"{",
"\"fixup_uleb128_i32\"",
",",
"0",
",",
"5",
"*",
"8",
",",
"0",
"}",
",",
"{",
"\"fixup_uleb128_i64\"",
",",
"0",
",",
"10",
"*",
"8",
",",
"0",
"}",
",",
"}",
";",
"if",
"(",
"Kind",
"<",
"FirstTargetFixupKind",
")",
"return",
"MCAsmBackend",
"::",
"getFixupKindInfo",
"(",
"Kind",
")",
";",
"assert",
"(",
"unsigned",
"(",
"Kind",
"-",
"FirstTargetFixupKind",
")",
"<",
"getNumFixupKinds",
"(",
")",
"&&",
"\"Invalid kind!\"",
")",
";",
"return",
"Infos",
"[",
"Kind",
"-",
"FirstTargetFixupKind",
"]",
";",
"}",
"</s>"
] | [
"Get",
"information",
"on",
"a",
"fixup",
"kind",
"."
] | [
"WebAssembly",
"WebAssembly",
"WebAssembly::NumTargetFixupKinds",
"\"fixup_sleb128_i32\"",
"0",
"5",
"8",
"0",
"\"fixup_sleb128_i64\"",
"0",
"10",
"8",
"0",
"\"fixup_uleb128_i32\"",
"0",
"5",
"8",
"0",
"\"fixup_uleb128_i64\"",
"0",
"10",
"8",
"0",
"\"Invalid kind!\""
] | WebAssemblyAsmBackend1 | getFixupKindInfo | WebAssembly | Virtual ISA | LLVM | 8,629 | 112 | 1 | [] |
[
"<s>",
"static",
"int",
"stackSlotSize",
"(",
")",
"{",
"return",
"4",
";",
"}",
"</s>"
] | [
"Stack",
"slot",
"size",
"(",
"4",
"bytes",
")"
] | [
"XCore",
"4"
] | XCoreFrameInfo | stackSlotSize | XCore | MPU | LLVM | 8,630 | 10 | 1 | [] |
[
"<s>",
"static",
"rtx",
"fr30_libcall_value",
"(",
"machine_mode",
"mode",
",",
"const_rtx",
"fun",
"ATTRIBUTE_UNUSED",
")",
"{",
"return",
"gen_rtx_REG",
"(",
"mode",
",",
"RETURN_VALUE_REGNUM",
")",
";",
"}",
"</s>"
] | [
"Implements",
"TARGET_LIBCALL_VALUE",
"."
] | [
"fr30"
] | fr30 | fr30_libcall_value | fr30 | DSP | GCC | 8,631 | 21 | 1 | [] |
[
"<s>",
"bool",
"hasMDs",
"(",
")",
"const",
"{",
"return",
"NumModuleMDs",
"<",
"MDs",
".",
"size",
"(",
")",
";",
"}",
"</s>"
] | [
"Check",
"whether",
"the",
"current",
"block",
"has",
"any",
"metadata",
"to",
"emit",
"."
] | [
"DirectX"
] | DXILValueEnumerator | hasMDs | DirectX | Virtual ISA | LLVM | 8,632 | 16 | 1 | [] |
[
"<s>",
"static",
"void",
"workaround_rts_anomaly",
"(",
"void",
")",
"{",
"rtx_insn",
"*",
"insn",
",",
"*",
"first_insn",
"=",
"NULL",
";",
"int",
"cycles",
"=",
"4",
";",
"if",
"(",
"!",
"ENABLE_WA_RETS",
")",
"return",
";",
"for",
"(",
"insn",
"=",
"get_insns",
"(",
")",
";",
"insn",
";",
"insn",
"=",
"NEXT_INSN",
"(",
"insn",
")",
")",
"{",
"rtx",
"pat",
";",
"if",
"(",
"BARRIER_P",
"(",
"insn",
")",
")",
"return",
";",
"if",
"(",
"NOTE_P",
"(",
"insn",
")",
"||",
"LABEL_P",
"(",
"insn",
")",
")",
"continue",
";",
"if",
"(",
"JUMP_TABLE_DATA_P",
"(",
"insn",
")",
")",
"continue",
";",
"if",
"(",
"first_insn",
"==",
"NULL_RTX",
")",
"first_insn",
"=",
"insn",
";",
"pat",
"=",
"PATTERN",
"(",
"insn",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"pat",
")",
"==",
"USE",
"||",
"GET_CODE",
"(",
"pat",
")",
"==",
"CLOBBER",
"||",
"GET_CODE",
"(",
"pat",
")",
"==",
"ASM_INPUT",
"||",
"asm_noperands",
"(",
"pat",
")",
">=",
"0",
")",
"continue",
";",
"if",
"(",
"CALL_P",
"(",
"insn",
")",
")",
"return",
";",
"if",
"(",
"JUMP_P",
"(",
"insn",
")",
")",
"{",
"if",
"(",
"recog_memoized",
"(",
"insn",
")",
"==",
"CODE_FOR_return_internal",
")",
"break",
";",
"if",
"(",
"!",
"any_condjump_p",
"(",
"insn",
")",
")",
"return",
";",
"if",
"(",
"cycles",
"<=",
"1",
")",
"return",
";",
"cycles",
"--",
";",
"}",
"else",
"if",
"(",
"INSN_P",
"(",
"insn",
")",
")",
"{",
"rtx",
"pat",
"=",
"PATTERN",
"(",
"insn",
")",
";",
"int",
"this_cycles",
"=",
"1",
";",
"if",
"(",
"GET_CODE",
"(",
"pat",
")",
"==",
"PARALLEL",
")",
"{",
"if",
"(",
"analyze_push_multiple_operation",
"(",
"pat",
")",
"||",
"analyze_pop_multiple_operation",
"(",
"pat",
")",
")",
"this_cycles",
"=",
"n_regs_to_save",
";",
"}",
"else",
"{",
"int",
"icode",
"=",
"recog_memoized",
"(",
"insn",
")",
";",
"if",
"(",
"icode",
"==",
"CODE_FOR_link",
")",
"this_cycles",
"=",
"4",
";",
"else",
"if",
"(",
"icode",
"==",
"CODE_FOR_unlink",
")",
"this_cycles",
"=",
"3",
";",
"else",
"if",
"(",
"icode",
"==",
"CODE_FOR_mulsi3",
")",
"this_cycles",
"=",
"5",
";",
"}",
"if",
"(",
"this_cycles",
">=",
"cycles",
")",
"return",
";",
"cycles",
"-=",
"this_cycles",
";",
"}",
"}",
"while",
"(",
"cycles",
">",
"0",
")",
"{",
"emit_insn_before",
"(",
"gen_nop",
"(",
")",
",",
"first_insn",
")",
";",
"cycles",
"--",
";",
"}",
"}",
"</s>"
] | [
"On",
"some",
"silicon",
"revisions",
",",
"functions",
"shorter",
"than",
"a",
"certain",
"number",
"of",
"cycles",
"can",
"cause",
"unpredictable",
"behaviour",
".",
"Work",
"around",
"this",
"by",
"adding",
"NOPs",
"as",
"needed",
"."
] | [
"bfin",
"4",
"0",
"1",
"1",
"4",
"3",
"5",
"0"
] | bfin | workaround_rts_anomaly | bfin | DSP | GCC | 8,633 | 307 | 1 | [] |
[
"<s>",
"MCObjectWriter",
"*",
"createObjectWriter",
"(",
"raw_pwrite_stream",
"&",
"OS",
")",
"const",
"override",
"{",
"return",
"createLC3ELFObjectWriter",
"(",
"OS",
",",
"OSABI",
")",
";",
"}",
"</s>"
] | [
"Create",
"a",
"new",
"MCObjectWriter",
"instance",
"for",
"use",
"by",
"the",
"assembler",
"backend",
"to",
"emit",
"the",
"final",
"object",
"file",
"."
] | [
"LC3",
"LC3"
] | LC3AsmBackend | createObjectWriter | LC3 | CPU | LLVM | 8,634 | 20 | 1 | [] |
[
"<s>",
"bool",
"X86TargetLowering",
"::",
"isShuffleMaskLegal",
"(",
"const",
"SmallVectorImpl",
"<",
"int",
">",
"&",
"M",
",",
"EVT",
"VT",
")",
"const",
"{",
"if",
"(",
"!",
"VT",
".",
"isSimple",
"(",
")",
")",
"return",
"false",
";",
"MVT",
"SVT",
"=",
"VT",
".",
"getSimpleVT",
"(",
")",
";",
"if",
"(",
"VT",
".",
"getSizeInBits",
"(",
")",
"==",
"64",
")",
"return",
"false",
";",
"if",
"(",
"(",
"SVT",
".",
"is128BitVector",
"(",
")",
"&&",
"Subtarget",
"->",
"hasSSSE3",
"(",
")",
")",
"||",
"(",
"SVT",
".",
"is256BitVector",
"(",
")",
"&&",
"Subtarget",
"->",
"hasInt256",
"(",
")",
")",
")",
"{",
"bool",
"isLegal",
"=",
"true",
";",
"for",
"(",
"unsigned",
"I",
"=",
"0",
",",
"E",
"=",
"M",
".",
"size",
"(",
")",
";",
"I",
"!=",
"E",
";",
"++",
"I",
")",
"{",
"if",
"(",
"M",
"[",
"I",
"]",
">=",
"(",
"int",
")",
"SVT",
".",
"getVectorNumElements",
"(",
")",
"||",
"ShuffleCrosses128bitLane",
"(",
"SVT",
",",
"I",
",",
"M",
"[",
"I",
"]",
")",
")",
"{",
"isLegal",
"=",
"false",
";",
"break",
";",
"}",
"}",
"if",
"(",
"isLegal",
")",
"return",
"true",
";",
"}",
"return",
"(",
"SVT",
".",
"getVectorNumElements",
"(",
")",
"==",
"2",
"||",
"ShuffleVectorSDNode",
"::",
"isSplatMask",
"(",
"&",
"M",
"[",
"0",
"]",
",",
"VT",
")",
"||",
"isMOVLMask",
"(",
"M",
",",
"SVT",
")",
"||",
"isMOVHLPSMask",
"(",
"M",
",",
"SVT",
")",
"||",
"isSHUFPMask",
"(",
"M",
",",
"SVT",
")",
"||",
"isPSHUFDMask",
"(",
"M",
",",
"SVT",
")",
"||",
"isPSHUFHWMask",
"(",
"M",
",",
"SVT",
",",
"Subtarget",
"->",
"hasInt256",
"(",
")",
")",
"||",
"isPSHUFLWMask",
"(",
"M",
",",
"SVT",
",",
"Subtarget",
"->",
"hasInt256",
"(",
")",
")",
"||",
"isPALIGNRMask",
"(",
"M",
",",
"SVT",
",",
"Subtarget",
")",
"||",
"isUNPCKLMask",
"(",
"M",
",",
"SVT",
",",
"Subtarget",
"->",
"hasInt256",
"(",
")",
")",
"||",
"isUNPCKHMask",
"(",
"M",
",",
"SVT",
",",
"Subtarget",
"->",
"hasInt256",
"(",
")",
")",
"||",
"isUNPCKL_v_undef_Mask",
"(",
"M",
",",
"SVT",
",",
"Subtarget",
"->",
"hasInt256",
"(",
")",
")",
"||",
"isUNPCKH_v_undef_Mask",
"(",
"M",
",",
"SVT",
",",
"Subtarget",
"->",
"hasInt256",
"(",
")",
")",
"||",
"isBlendMask",
"(",
"M",
",",
"SVT",
",",
"Subtarget",
"->",
"hasSSE41",
"(",
")",
",",
"Subtarget",
"->",
"hasInt256",
"(",
")",
")",
")",
";",
"}",
"</s>"
] | [
"Targets",
"can",
"use",
"this",
"to",
"indicate",
"that",
"they",
"only",
"support",
"some",
"VECTOR_SHUFFLE",
"operations",
",",
"those",
"with",
"specific",
"masks",
"."
] | [
"X86",
"X86",
"64",
"0",
"2",
"0"
] | X86ISelLowering105 | isShuffleMaskLegal | X86 | CPU | LLVM | 8,635 | 315 | 1 | [] |
[
"<s>",
"static",
"bool",
"find_mem_ref",
"(",
"rtx",
"pat",
",",
"rtx",
"*",
"mem_ref",
")",
"{",
"const",
"char",
"*",
"fmt",
";",
"int",
"i",
",",
"j",
";",
"if",
"(",
"tie_operand",
"(",
"pat",
",",
"VOIDmode",
")",
")",
"return",
"false",
";",
"if",
"(",
"GET_CODE",
"(",
"pat",
")",
"==",
"MEM",
")",
"{",
"*",
"mem_ref",
"=",
"pat",
";",
"return",
"true",
";",
"}",
"fmt",
"=",
"GET_RTX_FORMAT",
"(",
"GET_CODE",
"(",
"pat",
")",
")",
";",
"for",
"(",
"i",
"=",
"GET_RTX_LENGTH",
"(",
"GET_CODE",
"(",
"pat",
")",
")",
"-",
"1",
";",
"i",
">=",
"0",
";",
"i",
"--",
")",
"{",
"if",
"(",
"fmt",
"[",
"i",
"]",
"==",
"'e'",
")",
"{",
"if",
"(",
"find_mem_ref",
"(",
"XEXP",
"(",
"pat",
",",
"i",
")",
",",
"mem_ref",
")",
")",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"fmt",
"[",
"i",
"]",
"==",
"'E'",
")",
"for",
"(",
"j",
"=",
"XVECLEN",
"(",
"pat",
",",
"i",
")",
"-",
"1",
";",
"j",
">=",
"0",
";",
"j",
"--",
")",
"{",
"if",
"(",
"find_mem_ref",
"(",
"XVECEXP",
"(",
"pat",
",",
"i",
",",
"j",
")",
",",
"mem_ref",
")",
")",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"Determine",
"if",
"PAT",
"refers",
"to",
"memory",
".",
"If",
"so",
",",
"set",
"MEM_REF",
"to",
"the",
"MEM",
"rtx",
"and",
"return",
"true",
"."
] | [
"rs6000",
"1",
"0",
"1",
"0"
] | rs60004 | find_mem_ref | rs6000 | CPU | GCC | 8,636 | 169 | 1 | [] |
[
"<s>",
"void",
"Mips16RegisterInfo",
"::",
"eliminateCallFramePseudoInstr",
"(",
"MachineFunction",
"&",
"MF",
",",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"I",
")",
"const",
"{",
"const",
"TargetFrameLowering",
"*",
"TFI",
"=",
"MF",
".",
"getTarget",
"(",
")",
".",
"getFrameLowering",
"(",
")",
";",
"if",
"(",
"!",
"TFI",
"->",
"hasReservedCallFrame",
"(",
"MF",
")",
")",
"{",
"int64_t",
"Amount",
"=",
"I",
"->",
"getOperand",
"(",
"0",
")",
".",
"getImm",
"(",
")",
";",
"if",
"(",
"I",
"->",
"getOpcode",
"(",
")",
"==",
"Mips",
"::",
"ADJCALLSTACKDOWN",
")",
"Amount",
"=",
"-",
"Amount",
";",
"const",
"Mips16InstrInfo",
"*",
"II",
"=",
"static_cast",
"<",
"const",
"Mips16InstrInfo",
"*",
">",
"(",
"&",
"TII",
")",
";",
"II",
"->",
"adjustStackPtr",
"(",
"Mips",
"::",
"SP",
",",
"Amount",
",",
"MBB",
",",
"I",
")",
";",
"}",
"MBB",
".",
"erase",
"(",
"I",
")",
";",
"}",
"</s>"
] | [
"This",
"method",
"is",
"called",
"during",
"prolog/epilog",
"code",
"insertion",
"to",
"eliminate",
"call",
"frame",
"setup",
"and",
"destroy",
"pseudo",
"instructions",
"(",
"but",
"only",
"if",
"the",
"Target",
"is",
"using",
"them",
")",
"."
] | [
"Mips",
"Mips",
"0",
"Mips::ADJCALLSTACKDOWN",
"Mips",
"Mips",
"Mips::SP"
] | Mips16RegisterInfo12 | eliminateCallFramePseudoInstr | Mips | CPU | LLVM | 8,637 | 117 | 1 | [] |
[
"<s>",
"bool",
"SparcPassConfig",
"::",
"addPreEmitPass",
"(",
")",
"{",
"addPass",
"(",
"createSparcFPMoverPass",
"(",
"getSparcTargetMachine",
"(",
")",
")",
")",
";",
"addPass",
"(",
"createSparcDelaySlotFillerPass",
"(",
"getSparcTargetMachine",
"(",
")",
")",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"This",
"pass",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"immediately",
"before",
"machine",
"code",
"is",
"emitted",
"."
] | [
"Sparc",
"Sparc",
"Sparc",
"Sparc",
"Sparc",
"Sparc"
] | SparcTargetMachine29 | addPreEmitPass | Sparc | CPU | LLVM | 8,638 | 31 | 1 | [] |
[
"<s>",
"void",
"SHUXIInstPrinter",
"::",
"printRegName",
"(",
"raw_ostream",
"&",
"O",
",",
"unsigned",
"RegNo",
")",
"const",
"{",
"O",
"<<",
"StringRef",
"(",
"getRegisterName",
"(",
"RegNo",
")",
")",
";",
"}",
"</s>"
] | [
"Print",
"the",
"assembler",
"register",
"name",
"."
] | [
"SHUXI",
"SHUXI"
] | SHUXIInstPrinter | printRegName | SHUXI | CPU | LLVM | 8,639 | 25 | 1 | [] |
[
"<s>",
"void",
"Cpu0FrameLowering",
"::",
"emitPrologue",
"(",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"MachineBasicBlock",
"&",
"MBB",
"=",
"MF",
".",
"front",
"(",
")",
";",
"MachineFrameInfo",
"*",
"MFI",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
";",
"Cpu0FunctionInfo",
"*",
"Cpu0FI",
"=",
"MF",
".",
"getInfo",
"<",
"Cpu0FunctionInfo",
">",
"(",
")",
";",
"const",
"Cpu0InstrInfo",
"&",
"TII",
"=",
"*",
"static_cast",
"<",
"const",
"Cpu0InstrInfo",
"*",
">",
"(",
"MF",
".",
"getTarget",
"(",
")",
".",
"getInstrInfo",
"(",
")",
")",
";",
"MachineBasicBlock",
"::",
"iterator",
"MBBI",
"=",
"MBB",
".",
"begin",
"(",
")",
";",
"DebugLoc",
"dl",
"=",
"MBBI",
"!=",
"MBB",
".",
"end",
"(",
")",
"?",
"MBBI",
"->",
"getDebugLoc",
"(",
")",
":",
"DebugLoc",
"(",
")",
";",
"unsigned",
"SP",
"=",
"Cpu0",
"::",
"SP",
";",
"unsigned",
"ADDiu",
"=",
"Cpu0",
"::",
"ADDiu",
";",
"unsigned",
"StackAlign",
"=",
"getStackAlignment",
"(",
")",
";",
"unsigned",
"LocalVarAreaOffset",
"=",
"Cpu0FI",
"->",
"getMaxCallFrameSize",
"(",
")",
";",
"uint64_t",
"StackSize",
"=",
"RoundUpToAlignment",
"(",
"LocalVarAreaOffset",
",",
"StackAlign",
")",
"+",
"RoundUpToAlignment",
"(",
"MFI",
"->",
"getStackSize",
"(",
")",
",",
"StackAlign",
")",
";",
"MFI",
"->",
"setStackSize",
"(",
"StackSize",
")",
";",
"if",
"(",
"StackSize",
"==",
"0",
"&&",
"!",
"MFI",
"->",
"adjustsStack",
"(",
")",
")",
"return",
";",
"MachineModuleInfo",
"&",
"MMI",
"=",
"MF",
".",
"getMMI",
"(",
")",
";",
"std",
"::",
"vector",
"<",
"MachineMove",
">",
"&",
"Moves",
"=",
"MMI",
".",
"getFrameMoves",
"(",
")",
";",
"MachineLocation",
"DstML",
",",
"SrcML",
";",
"if",
"(",
"isInt",
"<",
"16",
">",
"(",
"-",
"StackSize",
")",
")",
"BuildMI",
"(",
"MBB",
",",
"MBBI",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"ADDiu",
")",
",",
"SP",
")",
".",
"addReg",
"(",
"SP",
")",
".",
"addImm",
"(",
"-",
"StackSize",
")",
";",
"else",
"{",
"assert",
"(",
"\"No expandLargeImm(SP, -StackSize, false, TII, MBB, MBBI, dl);\"",
")",
";",
"}",
"MCSymbol",
"*",
"AdjustSPLabel",
"=",
"MMI",
".",
"getContext",
"(",
")",
".",
"CreateTempSymbol",
"(",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"MBBI",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"TargetOpcode",
"::",
"PROLOG_LABEL",
")",
")",
".",
"addSym",
"(",
"AdjustSPLabel",
")",
";",
"DstML",
"=",
"MachineLocation",
"(",
"MachineLocation",
"::",
"VirtualFP",
")",
";",
"SrcML",
"=",
"MachineLocation",
"(",
"MachineLocation",
"::",
"VirtualFP",
",",
"-",
"StackSize",
")",
";",
"Moves",
".",
"push_back",
"(",
"MachineMove",
"(",
"AdjustSPLabel",
",",
"DstML",
",",
"SrcML",
")",
")",
";",
"const",
"std",
"::",
"vector",
"<",
"CalleeSavedInfo",
">",
"&",
"CSI",
"=",
"MFI",
"->",
"getCalleeSavedInfo",
"(",
")",
";",
"if",
"(",
"CSI",
".",
"size",
"(",
")",
")",
"{",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"<",
"CSI",
".",
"size",
"(",
")",
";",
"++",
"i",
")",
"++",
"MBBI",
";",
"MCSymbol",
"*",
"CSLabel",
"=",
"MMI",
".",
"getContext",
"(",
")",
".",
"CreateTempSymbol",
"(",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"MBBI",
",",
"dl",
",",
"TII",
".",
"get",
"(",
"TargetOpcode",
"::",
"PROLOG_LABEL",
")",
")",
".",
"addSym",
"(",
"CSLabel",
")",
";",
"for",
"(",
"std",
"::",
"vector",
"<",
"CalleeSavedInfo",
">",
"::",
"const_iterator",
"I",
"=",
"CSI",
".",
"begin",
"(",
")",
",",
"E",
"=",
"CSI",
".",
"end",
"(",
")",
";",
"I",
"!=",
"E",
";",
"++",
"I",
")",
"{",
"int64_t",
"Offset",
"=",
"MFI",
"->",
"getObjectOffset",
"(",
"I",
"->",
"getFrameIdx",
"(",
")",
")",
";",
"unsigned",
"Reg",
"=",
"I",
"->",
"getReg",
"(",
")",
";",
"{",
"DstML",
"=",
"MachineLocation",
"(",
"MachineLocation",
"::",
"VirtualFP",
",",
"Offset",
")",
";",
"SrcML",
"=",
"MachineLocation",
"(",
"Reg",
")",
";",
"Moves",
".",
"push_back",
"(",
"MachineMove",
"(",
"CSLabel",
",",
"DstML",
",",
"SrcML",
")",
")",
";",
"}",
"}",
"}",
"}",
"</s>"
] | [
"emitProlog/emitEpilog",
"-",
"These",
"methods",
"insert",
"prolog",
"and",
"epilog",
"code",
"into",
"the",
"function",
"."
] | [
"Cpu0",
"Cpu0",
"Cpu0",
"Cpu0",
"Cpu0",
"Cpu0",
"Cpu0",
"Cpu0::SP",
"Cpu0::ADDiu",
"Cpu0",
"0",
"16",
"\"No expandLargeImm(SP, -StackSize, false, TII, MBB, MBBI, dl);\"",
"0"
] | Cpu0FrameLowering2 | emitPrologue | Cpu0 | CPU | LLVM | 8,640 | 500 | 1 | [] |
[
"<s>",
"bool",
"PPCCallLowering",
"::",
"lowerFormalArguments",
"(",
"MachineIRBuilder",
"&",
"MIRBuilder",
",",
"const",
"Function",
"&",
"F",
",",
"ArrayRef",
"<",
"ArrayRef",
"<",
"Register",
">>",
"VRegs",
")",
"const",
"{",
"return",
"VRegs",
".",
"empty",
"(",
")",
";",
"}",
"</s>"
] | [
"This",
"hook",
"must",
"be",
"implemented",
"to",
"lower",
"the",
"incoming",
"(",
"formal",
")",
"arguments",
",",
"described",
"by",
"VRegs",
",",
"for",
"GlobalISel",
"."
] | [
"PowerPC",
"PPC"
] | PPCCallLowering2 | lowerFormalArguments | PowerPC | CPU | LLVM | 8,641 | 32 | 1 | [] |
[
"<s>",
"static",
"rtx",
"scale_counter",
"(",
"rtx",
"countreg",
",",
"int",
"scale",
")",
"{",
"rtx",
"sc",
";",
"if",
"(",
"scale",
"==",
"1",
")",
"return",
"countreg",
";",
"if",
"(",
"CONST_INT_P",
"(",
"countreg",
")",
")",
"return",
"GEN_INT",
"(",
"INTVAL",
"(",
"countreg",
")",
"/",
"scale",
")",
";",
"gcc_assert",
"(",
"REG_P",
"(",
"countreg",
")",
")",
";",
"sc",
"=",
"expand_simple_binop",
"(",
"GET_MODE",
"(",
"countreg",
")",
",",
"LSHIFTRT",
",",
"countreg",
",",
"GEN_INT",
"(",
"exact_log2",
"(",
"scale",
")",
")",
",",
"NULL",
",",
"1",
",",
"OPTAB_DIRECT",
")",
";",
"return",
"sc",
";",
"}",
"</s>"
] | [
"Divide",
"COUNTREG",
"by",
"SCALE",
"."
] | [
"i386",
"1",
"1"
] | i386-expand | scale_counter | i386 | CPU | GCC | 8,642 | 81 | 1 | [] |
[
"<s>",
"bool",
"fixupNeedsRelaxation",
"(",
"const",
"MCFixup",
"&",
"Fixup",
",",
"uint64_t",
"Value",
",",
"const",
"MCRelaxableFragment",
"*",
"DF",
",",
"const",
"MCAsmLayout",
"&",
"Layout",
")",
"const",
"{",
"assert",
"(",
"0",
"&&",
"\"fixupNeedsRelaxation() unimplemented\"",
")",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Simple",
"predicate",
"for",
"targets",
"where",
"!",
"Resolved",
"implies",
"requiring",
"relaxation",
"."
] | [
"Sparc",
"0",
"\"fixupNeedsRelaxation() unimplemented\""
] | SparcAsmBackend12 | fixupNeedsRelaxation | Sparc | CPU | LLVM | 8,643 | 34 | 1 | [] |
[
"<s>",
"static",
"bool",
"expand_vec_perm_broadcast_1",
"(",
"struct",
"expand_vec_perm_d",
"*",
"d",
")",
"{",
"unsigned",
"elt",
"=",
"d",
"->",
"perm",
"[",
"0",
"]",
",",
"nelt2",
"=",
"d",
"->",
"nelt",
"/",
"2",
";",
"machine_mode",
"vmode",
"=",
"d",
"->",
"vmode",
";",
"unsigned",
"char",
"perm2",
"[",
"4",
"]",
";",
"rtx",
"op0",
"=",
"d",
"->",
"op0",
",",
"dest",
";",
"bool",
"ok",
";",
"switch",
"(",
"vmode",
")",
"{",
"case",
"V4DFmode",
":",
"case",
"V8SFmode",
":",
"gcc_unreachable",
"(",
")",
";",
"case",
"V2DFmode",
":",
"case",
"V2DImode",
":",
"case",
"V4SFmode",
":",
"case",
"V4SImode",
":",
"gcc_unreachable",
"(",
")",
";",
"case",
"V8HImode",
":",
"case",
"V16QImode",
":",
"if",
"(",
"d",
"->",
"testing_p",
")",
"return",
"true",
";",
"do",
"{",
"rtx",
"dest",
";",
"rtx",
"(",
"*",
"gen",
")",
"(",
"rtx",
",",
"rtx",
",",
"rtx",
")",
"=",
"vmode",
"==",
"V16QImode",
"?",
"gen_vec_interleave_lowv16qi",
":",
"gen_vec_interleave_lowv8hi",
";",
"if",
"(",
"elt",
">=",
"nelt2",
")",
"{",
"gen",
"=",
"vmode",
"==",
"V16QImode",
"?",
"gen_vec_interleave_highv16qi",
":",
"gen_vec_interleave_highv8hi",
";",
"elt",
"-=",
"nelt2",
";",
"}",
"nelt2",
"/=",
"2",
";",
"dest",
"=",
"gen_reg_rtx",
"(",
"vmode",
")",
";",
"emit_insn",
"(",
"gen",
"(",
"dest",
",",
"op0",
",",
"op0",
")",
")",
";",
"vmode",
"=",
"get_mode_wider_vector",
"(",
"vmode",
")",
";",
"op0",
"=",
"gen_lowpart",
"(",
"vmode",
",",
"dest",
")",
";",
"}",
"while",
"(",
"vmode",
"!=",
"V4SImode",
")",
";",
"memset",
"(",
"perm2",
",",
"elt",
",",
"4",
")",
";",
"dest",
"=",
"gen_reg_rtx",
"(",
"V4SImode",
")",
";",
"ok",
"=",
"expand_vselect",
"(",
"dest",
",",
"op0",
",",
"perm2",
",",
"4",
",",
"d",
"->",
"testing_p",
")",
";",
"gcc_assert",
"(",
"ok",
")",
";",
"if",
"(",
"!",
"d",
"->",
"testing_p",
")",
"emit_move_insn",
"(",
"d",
"->",
"target",
",",
"gen_lowpart",
"(",
"d",
"->",
"vmode",
",",
"dest",
")",
")",
";",
"return",
"true",
";",
"case",
"V64QImode",
":",
"case",
"V32QImode",
":",
"case",
"V16HImode",
":",
"case",
"V8SImode",
":",
"case",
"V4DImode",
":",
"gcc_assert",
"(",
"!",
"TARGET_AVX2",
"||",
"d",
"->",
"perm",
"[",
"0",
"]",
")",
";",
"return",
"false",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"}",
"</s>"
] | [
"A",
"subroutine",
"of",
"ix86_expand_vec_perm_builtin_1",
".",
"Implement",
"broadcast",
"permutations",
".",
"We",
"assume",
"that",
"expand_vec_perm_1",
"has",
"already",
"failed",
"."
] | [
"i386",
"0",
"2",
"4",
"2",
"4",
"4",
"0"
] | i3864 | expand_vec_perm_broadcast_1 | i386 | CPU | GCC | 8,644 | 298 | 1 | [] |
[
"<s>",
"bool",
"R600InstrInfo",
"::",
"fitsReadPortLimitations",
"(",
"const",
"std",
"::",
"vector",
"<",
"MachineInstr",
"*",
">",
"&",
"IG",
",",
"const",
"DenseMap",
"<",
"unsigned",
",",
"unsigned",
">",
"&",
"PV",
",",
"std",
"::",
"vector",
"<",
"BankSwizzle",
">",
"&",
"ValidSwizzle",
",",
"bool",
"isLastAluTrans",
")",
"const",
"{",
"std",
"::",
"vector",
"<",
"std",
"::",
"vector",
"<",
"std",
"::",
"pair",
"<",
"int",
",",
"unsigned",
">>",
">",
"IGSrcs",
";",
"ValidSwizzle",
".",
"clear",
"(",
")",
";",
"unsigned",
"ConstCount",
";",
"BankSwizzle",
"TransBS",
"=",
"ALU_VEC_012_SCL_210",
";",
"for",
"(",
"MachineInstr",
"*",
"MI",
":",
"IG",
")",
"{",
"IGSrcs",
".",
"push_back",
"(",
"ExtractSrcs",
"(",
"*",
"MI",
",",
"PV",
",",
"ConstCount",
")",
")",
";",
"unsigned",
"Op",
"=",
"getOperandIdx",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
",",
"R600",
"::",
"OpName",
"::",
"bank_swizzle",
")",
";",
"ValidSwizzle",
".",
"push_back",
"(",
"(",
"R600InstrInfo",
"::",
"BankSwizzle",
")",
"MI",
"->",
"getOperand",
"(",
"Op",
")",
".",
"getImm",
"(",
")",
")",
";",
"}",
"std",
"::",
"vector",
"<",
"std",
"::",
"pair",
"<",
"int",
",",
"unsigned",
">>",
"TransOps",
";",
"if",
"(",
"!",
"isLastAluTrans",
")",
"return",
"FindSwizzleForVectorSlot",
"(",
"IGSrcs",
",",
"ValidSwizzle",
",",
"TransOps",
",",
"TransBS",
")",
";",
"TransOps",
"=",
"std",
"::",
"move",
"(",
"IGSrcs",
".",
"back",
"(",
")",
")",
";",
"IGSrcs",
".",
"pop_back",
"(",
")",
";",
"ValidSwizzle",
".",
"pop_back",
"(",
")",
";",
"static",
"const",
"R600InstrInfo",
"::",
"BankSwizzle",
"TransSwz",
"[",
"]",
"=",
"{",
"ALU_VEC_012_SCL_210",
",",
"ALU_VEC_021_SCL_122",
",",
"ALU_VEC_120_SCL_212",
",",
"ALU_VEC_102_SCL_221",
"}",
";",
"for",
"(",
"R600InstrInfo",
"::",
"BankSwizzle",
"TransBS",
":",
"TransSwz",
")",
"{",
"if",
"(",
"!",
"isConstCompatible",
"(",
"TransBS",
",",
"TransOps",
",",
"ConstCount",
")",
")",
"continue",
";",
"bool",
"Result",
"=",
"FindSwizzleForVectorSlot",
"(",
"IGSrcs",
",",
"ValidSwizzle",
",",
"TransOps",
",",
"TransBS",
")",
";",
"if",
"(",
"Result",
")",
"{",
"ValidSwizzle",
".",
"push_back",
"(",
"TransBS",
")",
";",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"Given",
"the",
"order",
"VEC_012",
"<",
"VEC_021",
"<",
"VEC_120",
"<",
"VEC_102",
"<",
"VEC_201",
"<",
"VEC_210",
"returns",
"true",
"and",
"the",
"first",
"(",
"in",
"lexical",
"order",
")",
"BankSwizzle",
"affectation",
"starting",
"from",
"the",
"one",
"already",
"provided",
"in",
"the",
"Instruction",
"Group",
"MIs",
"that",
"fits",
"Read",
"Port",
"limitations",
"in",
"BS",
"if",
"available",
"."
] | [
"AMDGPU",
"R600",
"R600::OpName",
"R600",
"R600",
"R600"
] | R600InstrInfo17 | fitsReadPortLimitations | AMDGPU | GPU | LLVM | 8,645 | 271 | 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_P",
"(",
"mode",
")",
"&&",
"TARGET_SSE_MATH",
")",
"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",
",",
"true",
")",
";",
"else",
"return",
"cost",
"->",
"divide",
"[",
"MODE_INDEX",
"(",
"mode",
")",
"]",
";",
"}",
"</s>"
] | [
"Return",
"cost",
"of",
"multiplication",
"in",
"MODE",
"."
] | [
"i386"
] | i3867 | ix86_division_cost | i386 | CPU | GCC | 8,646 | 110 | 1 | [] |
[
"<s>",
"const",
"RegisterBankInfo",
"*",
"MipsSubtarget",
"::",
"getRegBankInfo",
"(",
")",
"const",
"{",
"return",
"RegBankInfo",
".",
"get",
"(",
")",
";",
"}",
"</s>"
] | [
"If",
"the",
"information",
"for",
"the",
"register",
"banks",
"is",
"available",
",",
"return",
"it",
"."
] | [
"Mips",
"Mips"
] | MipsSubtarget (2)2 | getRegBankInfo | Mips | CPU | LLVM | 8,647 | 18 | 1 | [] |
[
"<s>",
"void",
"TVMInstrInfo",
"::",
"copyPhysReg",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"I",
",",
"const",
"DebugLoc",
"&",
"DL",
",",
"unsigned",
"DestReg",
",",
"unsigned",
"SrcReg",
",",
"bool",
"KillSrc",
")",
"const",
"{",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"TVM",
"::",
"REG_TO_REG_COPY",
")",
",",
"DestReg",
")",
".",
"addReg",
"(",
"SrcReg",
",",
"KillSrc",
"?",
"RegState",
"::",
"Kill",
":",
"0",
")",
";",
"}",
"</s>"
] | [
"}",
"Branch",
"Analysis",
"&",
"Modification"
] | [
"TVM",
"TVM",
"TVM::REG_TO_REG_COPY",
"0"
] | TVMInstrInfo | copyPhysReg | TVM | Virtual ISA | LLVM | 8,648 | 62 | 1 | [] |
[
"<s>",
"rtx",
"aarch64_gen_stepped_int_parallel",
"(",
"unsigned",
"int",
"nelts",
",",
"int",
"base",
",",
"int",
"step",
")",
"{",
"rtvec",
"vec",
"=",
"rtvec_alloc",
"(",
"nelts",
")",
";",
"for",
"(",
"unsigned",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"nelts",
";",
"++",
"i",
")",
"RTVEC_ELT",
"(",
"vec",
",",
"i",
")",
"=",
"gen_int_mode",
"(",
"base",
"+",
"i",
"*",
"step",
",",
"DImode",
")",
";",
"return",
"gen_rtx_PARALLEL",
"(",
"VOIDmode",
",",
"vec",
")",
";",
"}",
"</s>"
] | [
"Return",
"a",
"PARALLEL",
"containing",
"NELTS",
"elements",
",",
"with",
"element",
"I",
"equal",
"to",
"BASE",
"+",
"I",
"*",
"STEP",
"."
] | [
"aarch64",
"0"
] | aarch64 | aarch64_gen_stepped_int_parallel | aarch64 | CPU | GCC | 8,649 | 64 | 1 | [] |
[
"<s>",
"rtx_insn",
"*",
"s390_emit_call",
"(",
"rtx",
"addr_location",
",",
"rtx",
"tls_call",
",",
"rtx",
"result_reg",
",",
"rtx",
"retaddr_reg",
")",
"{",
"bool",
"plt_call",
"=",
"false",
";",
"rtx_insn",
"*",
"insn",
";",
"rtx",
"call",
";",
"rtx",
"clobber",
";",
"rtvec",
"vec",
";",
"if",
"(",
"GET_CODE",
"(",
"addr_location",
")",
"==",
"SYMBOL_REF",
")",
"{",
"if",
"(",
"flag_pic",
"&&",
"!",
"SYMBOL_REF_LOCAL_P",
"(",
"addr_location",
")",
")",
"{",
"if",
"(",
"retaddr_reg",
"!=",
"NULL_RTX",
")",
"{",
"addr_location",
"=",
"gen_rtx_UNSPEC",
"(",
"Pmode",
",",
"gen_rtvec",
"(",
"1",
",",
"addr_location",
")",
",",
"UNSPEC_PLT",
")",
";",
"addr_location",
"=",
"gen_rtx_CONST",
"(",
"Pmode",
",",
"addr_location",
")",
";",
"plt_call",
"=",
"true",
";",
"}",
"else",
"addr_location",
"=",
"force_reg",
"(",
"Pmode",
",",
"addr_location",
")",
";",
"}",
"if",
"(",
"!",
"TARGET_SMALL_EXEC",
"&&",
"!",
"TARGET_CPU_ZARCH",
")",
"{",
"if",
"(",
"flag_pic",
")",
"addr_location",
"=",
"legitimize_pic_address",
"(",
"addr_location",
",",
"0",
")",
";",
"else",
"addr_location",
"=",
"force_reg",
"(",
"Pmode",
",",
"addr_location",
")",
";",
"}",
"}",
"if",
"(",
"retaddr_reg",
"==",
"NULL_RTX",
"&&",
"GET_CODE",
"(",
"addr_location",
")",
"!=",
"SYMBOL_REF",
"&&",
"!",
"plt_call",
")",
"{",
"emit_move_insn",
"(",
"gen_rtx_REG",
"(",
"Pmode",
",",
"SIBCALL_REGNUM",
")",
",",
"addr_location",
")",
";",
"addr_location",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"SIBCALL_REGNUM",
")",
";",
"}",
"addr_location",
"=",
"gen_rtx_MEM",
"(",
"QImode",
",",
"addr_location",
")",
";",
"call",
"=",
"gen_rtx_CALL",
"(",
"VOIDmode",
",",
"addr_location",
",",
"const0_rtx",
")",
";",
"if",
"(",
"result_reg",
"!=",
"NULL_RTX",
")",
"call",
"=",
"gen_rtx_SET",
"(",
"VOIDmode",
",",
"result_reg",
",",
"call",
")",
";",
"if",
"(",
"retaddr_reg",
"!=",
"NULL_RTX",
")",
"{",
"clobber",
"=",
"gen_rtx_CLOBBER",
"(",
"VOIDmode",
",",
"retaddr_reg",
")",
";",
"if",
"(",
"tls_call",
"!=",
"NULL_RTX",
")",
"vec",
"=",
"gen_rtvec",
"(",
"3",
",",
"call",
",",
"clobber",
",",
"gen_rtx_USE",
"(",
"VOIDmode",
",",
"tls_call",
")",
")",
";",
"else",
"vec",
"=",
"gen_rtvec",
"(",
"2",
",",
"call",
",",
"clobber",
")",
";",
"call",
"=",
"gen_rtx_PARALLEL",
"(",
"VOIDmode",
",",
"vec",
")",
";",
"}",
"insn",
"=",
"emit_call_insn",
"(",
"call",
")",
";",
"if",
"(",
"(",
"!",
"TARGET_64BIT",
"&&",
"plt_call",
")",
"||",
"tls_call",
"!=",
"NULL_RTX",
")",
"{",
"gcc_assert",
"(",
"retaddr_reg",
"!=",
"NULL_RTX",
")",
";",
"use_reg",
"(",
"&",
"CALL_INSN_FUNCTION_USAGE",
"(",
"insn",
")",
",",
"gen_rtx_REG",
"(",
"Pmode",
",",
"12",
")",
")",
";",
"}",
"return",
"insn",
";",
"}",
"</s>"
] | [
"This",
"function",
"is",
"used",
"by",
"the",
"call",
"expanders",
"of",
"the",
"machine",
"description",
".",
"It",
"emits",
"the",
"call",
"insn",
"itself",
"together",
"with",
"the",
"necessary",
"operations",
"to",
"adjust",
"the",
"target",
"address",
"and",
"returns",
"the",
"emitted",
"insn",
".",
"ADDR_LOCATION",
"is",
"the",
"target",
"address",
"rtx",
"TLS_CALL",
"the",
"location",
"of",
"the",
"thread-local",
"symbol",
"RESULT_REG",
"the",
"register",
"where",
"the",
"result",
"of",
"the",
"call",
"should",
"be",
"stored",
"RETADDR_REG",
"the",
"register",
"where",
"the",
"return",
"address",
"should",
"be",
"stored",
"If",
"this",
"parameter",
"is",
"NULL_RTX",
"the",
"call",
"is",
"considered",
"to",
"be",
"a",
"sibling",
"call",
"."
] | [
"s390",
"1",
"0",
"3",
"2",
"12"
] | s3904 | s390_emit_call | s390 | MPU | GCC | 8,650 | 325 | 1 | [] |
[
"<s>",
"static",
"rtx",
"nds32_expand_triopimm_builtin",
"(",
"enum",
"insn_code",
"icode",
",",
"tree",
"exp",
",",
"rtx",
"target",
",",
"bool",
"return_p",
",",
"const",
"char",
"*",
"name",
")",
"{",
"rtx",
"pat",
";",
"rtx",
"op0",
"=",
"nds32_read_argument",
"(",
"exp",
",",
"0",
")",
";",
"rtx",
"op1",
"=",
"nds32_read_argument",
"(",
"exp",
",",
"1",
")",
";",
"rtx",
"op2",
"=",
"nds32_read_argument",
"(",
"exp",
",",
"2",
")",
";",
"int",
"op0_num",
"=",
"return_p",
"?",
"1",
":",
"0",
";",
"int",
"op1_num",
"=",
"return_p",
"?",
"2",
":",
"1",
";",
"int",
"op2_num",
"=",
"return_p",
"?",
"3",
":",
"2",
";",
"if",
"(",
"return_p",
")",
"target",
"=",
"nds32_legitimize_target",
"(",
"icode",
",",
"target",
")",
";",
"if",
"(",
"!",
"nds32_check_constant_argument",
"(",
"icode",
",",
"op2_num",
",",
"op2",
",",
"name",
")",
")",
"return",
"NULL_RTX",
";",
"op0",
"=",
"nds32_legitimize_argument",
"(",
"icode",
",",
"op0_num",
",",
"op0",
")",
";",
"op1",
"=",
"nds32_legitimize_argument",
"(",
"icode",
",",
"op1_num",
",",
"op1",
")",
";",
"op2",
"=",
"nds32_legitimize_argument",
"(",
"icode",
",",
"op2_num",
",",
"op2",
")",
";",
"if",
"(",
"return_p",
")",
"pat",
"=",
"GEN_FCN",
"(",
"icode",
")",
"(",
"target",
",",
"op0",
",",
"op1",
",",
"op2",
")",
";",
"else",
"pat",
"=",
"GEN_FCN",
"(",
"icode",
")",
"(",
"op0",
",",
"op1",
",",
"op2",
")",
";",
"if",
"(",
"!",
"pat",
")",
"return",
"NULL_RTX",
";",
"emit_insn",
"(",
"pat",
")",
";",
"return",
"target",
";",
"}",
"</s>"
] | [
"Expand",
"builtins",
"that",
"take",
"three",
"operands",
"and",
"the",
"third",
"is",
"immediate",
"."
] | [
"nds32",
"0",
"1",
"2",
"1",
"0",
"2",
"1",
"3",
"2"
] | nds32-intrinsic | nds32_expand_triopimm_builtin | nds32 | CPU | GCC | 8,651 | 198 | 1 | [] |
[
"<s>",
"bool",
"fixupNeedsRelaxation",
"(",
"const",
"MCFixup",
"&",
"Fixup",
",",
"uint64_t",
"Value",
",",
"const",
"MCRelaxableFragment",
"*",
"DF",
",",
"const",
"MCAsmLayout",
"&",
"Layout",
")",
"const",
"override",
"{",
"assert",
"(",
"0",
"&&",
"\"fixupNeedsRelaxation() unimplemented\"",
")",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Simple",
"predicate",
"for",
"targets",
"where",
"!",
"Resolved",
"implies",
"requiring",
"relaxation",
"."
] | [
"Sparc",
"0",
"\"fixupNeedsRelaxation() unimplemented\""
] | SparcAsmBackend22 | fixupNeedsRelaxation | Sparc | CPU | LLVM | 8,652 | 35 | 1 | [] |
[
"<s>",
"bool",
"aarch64_emit_approx_div",
"(",
"rtx",
"quo",
",",
"rtx",
"num",
",",
"rtx",
"den",
")",
"{",
"machine_mode",
"mode",
"=",
"GET_MODE",
"(",
"quo",
")",
";",
"if",
"(",
"GET_MODE_INNER",
"(",
"mode",
")",
"==",
"HFmode",
")",
"return",
"false",
";",
"bool",
"use_approx_division_p",
"=",
"(",
"flag_mlow_precision_div",
"||",
"(",
"aarch64_tune_params",
".",
"approx_modes",
"->",
"division",
"&",
"AARCH64_APPROX_MODE",
"(",
"mode",
")",
")",
")",
";",
"if",
"(",
"!",
"flag_finite_math_only",
"||",
"flag_trapping_math",
"||",
"!",
"flag_unsafe_math_optimizations",
"||",
"optimize_function_for_size_p",
"(",
"cfun",
")",
"||",
"!",
"use_approx_division_p",
")",
"return",
"false",
";",
"if",
"(",
"!",
"TARGET_SIMD",
"&&",
"VECTOR_MODE_P",
"(",
"mode",
")",
")",
"return",
"false",
";",
"rtx",
"pg",
"=",
"NULL_RTX",
";",
"if",
"(",
"aarch64_sve_mode_p",
"(",
"mode",
")",
")",
"pg",
"=",
"aarch64_ptrue_reg",
"(",
"aarch64_sve_pred_mode",
"(",
"mode",
")",
")",
";",
"rtx",
"xrcp",
"=",
"gen_reg_rtx",
"(",
"mode",
")",
";",
"emit_insn",
"(",
"gen_aarch64_frecpe",
"(",
"mode",
",",
"xrcp",
",",
"den",
")",
")",
";",
"int",
"iterations",
"=",
"(",
"GET_MODE_INNER",
"(",
"mode",
")",
"==",
"DFmode",
")",
"?",
"3",
":",
"2",
";",
"if",
"(",
"flag_mlow_precision_div",
")",
"iterations",
"=",
"(",
"GET_MODE_INNER",
"(",
"mode",
")",
"==",
"DFmode",
"?",
"aarch64_double_recp_precision",
":",
"aarch64_float_recp_precision",
")",
";",
"rtx",
"xtmp",
"=",
"gen_reg_rtx",
"(",
"mode",
")",
";",
"while",
"(",
"iterations",
"--",
")",
"{",
"emit_insn",
"(",
"gen_aarch64_frecps",
"(",
"mode",
",",
"xtmp",
",",
"xrcp",
",",
"den",
")",
")",
";",
"if",
"(",
"iterations",
">",
"0",
")",
"aarch64_emit_mult",
"(",
"xrcp",
",",
"pg",
",",
"xrcp",
",",
"xtmp",
")",
";",
"}",
"if",
"(",
"num",
"!=",
"CONST1_RTX",
"(",
"mode",
")",
")",
"{",
"rtx",
"xnum",
"=",
"force_reg",
"(",
"mode",
",",
"num",
")",
";",
"aarch64_emit_mult",
"(",
"xrcp",
",",
"pg",
",",
"xrcp",
",",
"xnum",
")",
";",
"}",
"aarch64_emit_mult",
"(",
"quo",
",",
"pg",
",",
"xrcp",
",",
"xtmp",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Emit",
"the",
"instruction",
"sequence",
"to",
"compute",
"the",
"approximation",
"for",
"the",
"division",
"of",
"NUM",
"by",
"DEN",
"in",
"QUO",
"and",
"return",
"whether",
"the",
"sequence",
"was",
"emitted",
"or",
"not",
"."
] | [
"aarch64",
"3",
"2",
"0"
] | aarch64 | aarch64_emit_approx_div | aarch64 | CPU | GCC | 8,653 | 257 | 1 | [] |
[
"<s>",
"TargetLoweringObjectFile",
"*",
"getObjFileLowering",
"(",
")",
"const",
"override",
"{",
"return",
"TLOF",
".",
"get",
"(",
")",
";",
"}",
"</s>"
] | [
"Return",
"information",
"about",
"object",
"file",
"lowering",
"."
] | [
"DirectX"
] | DirectXTargetMachine | getObjFileLowering | DirectX | Virtual ISA | LLVM | 8,654 | 16 | 1 | [] |
[
"<s>",
"static",
"bool",
"aarch64_if_then_else_costs",
"(",
"rtx",
"op0",
",",
"rtx",
"op1",
",",
"rtx",
"op2",
",",
"int",
"*",
"cost",
",",
"bool",
"speed",
")",
"{",
"rtx",
"inner",
";",
"rtx",
"comparator",
";",
"enum",
"rtx_code",
"cmpcode",
";",
"if",
"(",
"COMPARISON_P",
"(",
"op0",
")",
")",
"{",
"inner",
"=",
"XEXP",
"(",
"op0",
",",
"0",
")",
";",
"comparator",
"=",
"XEXP",
"(",
"op0",
",",
"1",
")",
";",
"cmpcode",
"=",
"GET_CODE",
"(",
"op0",
")",
";",
"}",
"else",
"{",
"inner",
"=",
"op0",
";",
"comparator",
"=",
"const0_rtx",
";",
"cmpcode",
"=",
"NE",
";",
"}",
"if",
"(",
"GET_CODE",
"(",
"op1",
")",
"==",
"PC",
"||",
"GET_CODE",
"(",
"op2",
")",
"==",
"PC",
")",
"{",
"if",
"(",
"GET_MODE_CLASS",
"(",
"GET_MODE",
"(",
"inner",
")",
")",
"==",
"MODE_CC",
")",
"return",
"true",
";",
"else",
"{",
"if",
"(",
"cmpcode",
"==",
"NE",
"||",
"cmpcode",
"==",
"EQ",
")",
"{",
"if",
"(",
"comparator",
"==",
"const0_rtx",
")",
"{",
"if",
"(",
"GET_CODE",
"(",
"inner",
")",
"==",
"ZERO_EXTRACT",
")",
"*",
"cost",
"+=",
"rtx_cost",
"(",
"XEXP",
"(",
"inner",
",",
"0",
")",
",",
"VOIDmode",
",",
"ZERO_EXTRACT",
",",
"0",
",",
"speed",
")",
";",
"else",
"*",
"cost",
"+=",
"rtx_cost",
"(",
"inner",
",",
"VOIDmode",
",",
"cmpcode",
",",
"0",
",",
"speed",
")",
";",
"return",
"true",
";",
"}",
"}",
"else",
"if",
"(",
"cmpcode",
"==",
"LT",
"||",
"cmpcode",
"==",
"GE",
")",
"{",
"if",
"(",
"comparator",
"==",
"const0_rtx",
")",
"return",
"true",
";",
"}",
"}",
"}",
"else",
"if",
"(",
"GET_MODE_CLASS",
"(",
"GET_MODE",
"(",
"inner",
")",
")",
"==",
"MODE_CC",
")",
"{",
"if",
"(",
"GET_CODE",
"(",
"op1",
")",
"==",
"COMPARE",
")",
"{",
"if",
"(",
"XEXP",
"(",
"op1",
",",
"1",
")",
"==",
"const0_rtx",
")",
"*",
"cost",
"+=",
"1",
";",
"if",
"(",
"speed",
")",
"{",
"machine_mode",
"mode",
"=",
"GET_MODE",
"(",
"XEXP",
"(",
"op1",
",",
"0",
")",
")",
";",
"const",
"struct",
"cpu_cost_table",
"*",
"extra_cost",
"=",
"aarch64_tune_params",
".",
"insn_extra_cost",
";",
"if",
"(",
"GET_MODE_CLASS",
"(",
"mode",
")",
"==",
"MODE_INT",
")",
"*",
"cost",
"+=",
"extra_cost",
"->",
"alu",
".",
"arith",
";",
"else",
"*",
"cost",
"+=",
"extra_cost",
"->",
"fp",
"[",
"mode",
"==",
"DFmode",
"]",
".",
"compare",
";",
"}",
"return",
"true",
";",
"}",
"if",
"(",
"GET_CODE",
"(",
"op1",
")",
"==",
"NEG",
"||",
"GET_CODE",
"(",
"op1",
")",
"==",
"NOT",
"||",
"(",
"GET_CODE",
"(",
"op1",
")",
"==",
"PLUS",
"&&",
"XEXP",
"(",
"op1",
",",
"1",
")",
"==",
"const1_rtx",
")",
")",
"op1",
"=",
"XEXP",
"(",
"op1",
",",
"0",
")",
";",
"else",
"if",
"(",
"GET_CODE",
"(",
"op1",
")",
"==",
"ZERO_EXTEND",
"&&",
"GET_CODE",
"(",
"op2",
")",
"==",
"ZERO_EXTEND",
")",
"{",
"op1",
"=",
"XEXP",
"(",
"op1",
",",
"0",
")",
";",
"op2",
"=",
"XEXP",
"(",
"op2",
",",
"0",
")",
";",
"}",
"*",
"cost",
"+=",
"rtx_cost",
"(",
"op1",
",",
"VOIDmode",
",",
"IF_THEN_ELSE",
",",
"1",
",",
"speed",
")",
";",
"*",
"cost",
"+=",
"rtx_cost",
"(",
"op2",
",",
"VOIDmode",
",",
"IF_THEN_ELSE",
",",
"2",
",",
"speed",
")",
";",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"Calculate",
"the",
"cost",
"of",
"calculating",
"(",
"if_then_else",
"(",
"OP0",
")",
"(",
"OP1",
")",
"(",
"OP2",
")",
")",
",",
"storing",
"it",
"in",
"*",
"COST",
".",
"Result",
"is",
"true",
"if",
"the",
"total",
"cost",
"of",
"the",
"operation",
"has",
"now",
"been",
"calculated",
"."
] | [
"aarch64",
"0",
"1",
"0",
"0",
"0",
"1",
"1",
"0",
"1",
"0",
"0",
"0",
"1",
"2"
] | aarch643 | aarch64_if_then_else_costs | aarch64 | CPU | GCC | 8,655 | 434 | 1 | [] |
[
"<s>",
"void",
"output_push_multiple",
"(",
"rtx",
"insn",
",",
"rtx",
"*",
"operands",
")",
"{",
"char",
"buf",
"[",
"80",
"]",
";",
"int",
"ok",
";",
"ok",
"=",
"analyze_push_multiple_operation",
"(",
"PATTERN",
"(",
"insn",
")",
")",
";",
"gcc_assert",
"(",
"ok",
")",
";",
"if",
"(",
"first_dreg_to_save",
"==",
"8",
")",
"sprintf",
"(",
"buf",
",",
"\"[--sp] = ( p5:%d );\\n\"",
",",
"first_preg_to_save",
")",
";",
"else",
"if",
"(",
"first_preg_to_save",
"==",
"6",
")",
"sprintf",
"(",
"buf",
",",
"\"[--sp] = ( r7:%d );\\n\"",
",",
"first_dreg_to_save",
")",
";",
"else",
"sprintf",
"(",
"buf",
",",
"\"[--sp] = ( r7:%d, p5:%d );\\n\"",
",",
"first_dreg_to_save",
",",
"first_preg_to_save",
")",
";",
"output_asm_insn",
"(",
"buf",
",",
"operands",
")",
";",
"}",
"</s>"
] | [
"Emit",
"assembly",
"code",
"for",
"one",
"multi-register",
"push",
"described",
"by",
"INSN",
",",
"with",
"operands",
"in",
"OPERANDS",
"."
] | [
"bfin",
"80",
"8",
"\"[--sp] = ( p5:%d );\\n\"",
"6",
"\"[--sp] = ( r7:%d );\\n\"",
"\"[--sp] = ( r7:%d, p5:%d );\\n\""
] | bfin | output_push_multiple | bfin | DSP | GCC | 8,656 | 86 | 1 | [] |
[
"<s>",
"bool",
"ARCFrameLowering",
"::",
"restoreCalleeSavedRegisters",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"MI",
",",
"std",
"::",
"vector",
"<",
"CalleeSavedInfo",
">",
"&",
"CSI",
",",
"const",
"TargetRegisterInfo",
"*",
"TRI",
")",
"const",
"{",
"DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"Restore callee saved registers: \"",
"<<",
"MBB",
".",
"getParent",
"(",
")",
"->",
"getName",
"(",
")",
"<<",
"\"\\n\"",
")",
";",
"unsigned",
"Last",
"=",
"determineLastCalleeSave",
"(",
"CSI",
")",
";",
"if",
"(",
"UseSaveRestoreFunclet",
"&&",
"Last",
">",
"ARC",
"::",
"R14",
")",
"{",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"restoreCalleeSavedRegisters",
"-",
"Issues",
"instruction",
"(",
"s",
")",
"to",
"restore",
"all",
"callee",
"saved",
"registers",
"and",
"returns",
"true",
"if",
"it",
"is",
"n't",
"possible",
"/",
"profitable",
"to",
"do",
"so",
"by",
"issuing",
"a",
"series",
"of",
"load",
"instructions",
"via",
"loadRegToStackSlot",
"(",
")",
"."
] | [
"ARC",
"ARC",
"\"Restore callee saved registers: \"",
"\"\\n\"",
"ARC::R14"
] | ARCFrameLowering10 | restoreCalleeSavedRegisters | ARC | MPU | LLVM | 8,657 | 78 | 1 | [] |
[
"<s>",
"void",
"WebAssemblyAsmPrinter",
"::",
"EmitInstruction",
"(",
"const",
"MachineInstr",
"*",
"MI",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"EmitInstruction: \"",
"<<",
"*",
"MI",
"<<",
"'\\n'",
")",
";",
"switch",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
"{",
"case",
"WebAssembly",
"::",
"ARGUMENT_I32",
":",
"case",
"WebAssembly",
"::",
"ARGUMENT_I64",
":",
"case",
"WebAssembly",
"::",
"ARGUMENT_F32",
":",
"case",
"WebAssembly",
"::",
"ARGUMENT_F64",
":",
"case",
"WebAssembly",
"::",
"ARGUMENT_v16i8",
":",
"case",
"WebAssembly",
"::",
"ARGUMENT_v8i16",
":",
"case",
"WebAssembly",
"::",
"ARGUMENT_v4i32",
":",
"case",
"WebAssembly",
"::",
"ARGUMENT_v2i64",
":",
"case",
"WebAssembly",
"::",
"ARGUMENT_v4f32",
":",
"case",
"WebAssembly",
"::",
"ARGUMENT_v2f64",
":",
"break",
";",
"case",
"WebAssembly",
"::",
"FALLTHROUGH_RETURN_I32",
":",
"case",
"WebAssembly",
"::",
"FALLTHROUGH_RETURN_I64",
":",
"case",
"WebAssembly",
"::",
"FALLTHROUGH_RETURN_F32",
":",
"case",
"WebAssembly",
"::",
"FALLTHROUGH_RETURN_F64",
":",
"case",
"WebAssembly",
"::",
"FALLTHROUGH_RETURN_v16i8",
":",
"case",
"WebAssembly",
"::",
"FALLTHROUGH_RETURN_v8i16",
":",
"case",
"WebAssembly",
"::",
"FALLTHROUGH_RETURN_v4i32",
":",
"case",
"WebAssembly",
"::",
"FALLTHROUGH_RETURN_v2i64",
":",
"case",
"WebAssembly",
"::",
"FALLTHROUGH_RETURN_v4f32",
":",
"case",
"WebAssembly",
"::",
"FALLTHROUGH_RETURN_v2f64",
":",
"{",
"assert",
"(",
"MFI",
"->",
"isVRegStackified",
"(",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
")",
")",
";",
"if",
"(",
"isVerbose",
"(",
")",
")",
"{",
"OutStreamer",
"->",
"AddComment",
"(",
"\"fallthrough-return: $pop\"",
"+",
"Twine",
"(",
"MFI",
"->",
"getWARegStackId",
"(",
"MFI",
"->",
"getWAReg",
"(",
"MI",
"->",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
")",
")",
")",
")",
";",
"OutStreamer",
"->",
"AddBlankLine",
"(",
")",
";",
"}",
"break",
";",
"}",
"case",
"WebAssembly",
"::",
"FALLTHROUGH_RETURN_VOID",
":",
"if",
"(",
"isVerbose",
"(",
")",
")",
"{",
"OutStreamer",
"->",
"AddComment",
"(",
"\"fallthrough-return\"",
")",
";",
"OutStreamer",
"->",
"AddBlankLine",
"(",
")",
";",
"}",
"break",
";",
"default",
":",
"{",
"WebAssemblyMCInstLower",
"MCInstLowering",
"(",
"OutContext",
",",
"*",
"this",
")",
";",
"MCInst",
"TmpInst",
";",
"MCInstLowering",
".",
"Lower",
"(",
"MI",
",",
"TmpInst",
")",
";",
"EmitToStreamer",
"(",
"*",
"OutStreamer",
",",
"TmpInst",
")",
";",
"break",
";",
"}",
"}",
"}",
"</s>"
] | [
"EmitInstruction",
"-",
"This",
"callback",
"is",
"invoked",
"when",
"an",
"instruction",
"is",
"emitted",
",",
"to",
"advance",
"the",
"hazard",
"state",
"."
] | [
"WebAssembly",
"WebAssembly",
"\"EmitInstruction: \"",
"WebAssembly::ARGUMENT_I32",
"WebAssembly::ARGUMENT_I64",
"WebAssembly::ARGUMENT_F32",
"WebAssembly::ARGUMENT_F64",
"WebAssembly::ARGUMENT_v16i8",
"WebAssembly::ARGUMENT_v8i16",
"WebAssembly::ARGUMENT_v4i32",
"WebAssembly::ARGUMENT_v2i64",
"WebAssembly::ARGUMENT_v4f32",
"WebAssembly::ARGUMENT_v2f64",
"WebAssembly::FALLTHROUGH_RETURN_I32",
"WebAssembly::FALLTHROUGH_RETURN_I64",
"WebAssembly::FALLTHROUGH_RETURN_F32",
"WebAssembly::FALLTHROUGH_RETURN_F64",
"WebAssembly::FALLTHROUGH_RETURN_v16i8",
"WebAssembly::FALLTHROUGH_RETURN_v8i16",
"WebAssembly::FALLTHROUGH_RETURN_v4i32",
"WebAssembly::FALLTHROUGH_RETURN_v2i64",
"WebAssembly::FALLTHROUGH_RETURN_v4f32",
"WebAssembly::FALLTHROUGH_RETURN_v2f64",
"0",
"\"fallthrough-return: $pop\"",
"0",
"WebAssembly::FALLTHROUGH_RETURN_VOID",
"\"fallthrough-return\"",
"WebAssembly"
] | WebAssemblyAsmPrinter5 | EmitInstruction | WebAssembly | Virtual ISA | LLVM | 8,658 | 269 | 1 | [] |
[
"<s>",
"void",
"PPCPostRASchedStrategy",
"::",
"initialize",
"(",
"ScheduleDAGMI",
"*",
"Dag",
")",
"{",
"PostGenericScheduler",
"::",
"initialize",
"(",
"Dag",
")",
";",
"}",
"</s>"
] | [
"Initialize",
"the",
"strategy",
"after",
"building",
"the",
"DAG",
"for",
"a",
"new",
"region",
"."
] | [
"PowerPC",
"PPC"
] | PPCMachineScheduler | initialize | PowerPC | CPU | LLVM | 8,659 | 18 | 1 | [] |
[
"<s>",
"bool",
"SILoadStoreOptimizer",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"if",
"(",
"skipFunction",
"(",
"MF",
".",
"getFunction",
"(",
")",
")",
")",
"return",
"false",
";",
"STM",
"=",
"&",
"MF",
".",
"getSubtarget",
"<",
"GCNSubtarget",
">",
"(",
")",
";",
"if",
"(",
"!",
"STM",
"->",
"loadStoreOptEnabled",
"(",
")",
")",
"return",
"false",
";",
"TII",
"=",
"STM",
"->",
"getInstrInfo",
"(",
")",
";",
"TRI",
"=",
"&",
"TII",
"->",
"getRegisterInfo",
"(",
")",
";",
"MRI",
"=",
"&",
"MF",
".",
"getRegInfo",
"(",
")",
";",
"AA",
"=",
"&",
"getAnalysis",
"<",
"AAResultsWrapperPass",
">",
"(",
")",
".",
"getAAResults",
"(",
")",
";",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"Running SILoadStoreOptimizer\\n\"",
")",
";",
"bool",
"Modified",
"=",
"false",
";",
"SmallPtrSet",
"<",
"MachineInstr",
"*",
",",
"4",
">",
"AnchorList",
";",
"MemInfoMap",
"Visited",
";",
"for",
"(",
"MachineBasicBlock",
"&",
"MBB",
":",
"MF",
")",
"{",
"MachineBasicBlock",
"::",
"iterator",
"SectionEnd",
";",
"for",
"(",
"MachineBasicBlock",
"::",
"iterator",
"I",
"=",
"MBB",
".",
"begin",
"(",
")",
",",
"E",
"=",
"MBB",
".",
"end",
"(",
")",
";",
"I",
"!=",
"E",
";",
"I",
"=",
"SectionEnd",
")",
"{",
"bool",
"CollectModified",
";",
"std",
"::",
"list",
"<",
"std",
"::",
"list",
"<",
"CombineInfo",
">>",
"MergeableInsts",
";",
"std",
"::",
"tie",
"(",
"SectionEnd",
",",
"CollectModified",
")",
"=",
"collectMergeableInsts",
"(",
"I",
",",
"E",
",",
"Visited",
",",
"AnchorList",
",",
"MergeableInsts",
")",
";",
"Modified",
"|=",
"CollectModified",
";",
"do",
"{",
"OptimizeAgain",
"=",
"false",
";",
"Modified",
"|=",
"optimizeBlock",
"(",
"MergeableInsts",
")",
";",
"}",
"while",
"(",
"OptimizeAgain",
")",
";",
"}",
"Visited",
".",
"clear",
"(",
")",
";",
"AnchorList",
".",
"clear",
"(",
")",
";",
"}",
"return",
"Modified",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"AMDGPU",
"SI",
"\"Running SILoadStoreOptimizer\\n\"",
"4"
] | SILoadStoreOptimizer10 | runOnMachineFunction | AMDGPU | GPU | LLVM | 8,660 | 236 | 1 | [] |
[
"<s>",
"bool",
"aarch64_pad_arg_upward",
"(",
"machine_mode",
"mode",
",",
"const_tree",
"type",
")",
"{",
"if",
"(",
"!",
"BYTES_BIG_ENDIAN",
")",
"return",
"true",
";",
"if",
"(",
"type",
"?",
"(",
"INTEGRAL_TYPE_P",
"(",
"type",
")",
"||",
"SCALAR_FLOAT_TYPE_P",
"(",
"type",
")",
"||",
"POINTER_TYPE_P",
"(",
"type",
")",
")",
":",
"(",
"SCALAR_INT_MODE_P",
"(",
"mode",
")",
"||",
"SCALAR_FLOAT_MODE_P",
"(",
"mode",
")",
")",
")",
"return",
"false",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"For",
"use",
"by",
"FUNCTION_ARG_PADDING",
"(",
"MODE",
",",
"TYPE",
")",
".",
"Return",
"true",
"if",
"an",
"argument",
"passed",
"on",
"the",
"stack",
"should",
"be",
"padded",
"upwards",
",",
"i.e",
".",
"if",
"the",
"least-significant",
"byte",
"of",
"the",
"stack",
"slot",
"has",
"useful",
"data",
".",
"Small",
"aggregate",
"types",
"are",
"placed",
"in",
"the",
"lowest",
"memory",
"address",
".",
"The",
"related",
"parameter",
"passing",
"rules",
"are",
"B.4",
",",
"C.3",
",",
"C.5",
"and",
"C.14",
"."
] | [
"aarch64"
] | aarch642 | aarch64_pad_arg_upward | aarch64 | CPU | GCC | 8,661 | 58 | 1 | [] |
[
"<s>",
"SDValue",
"MipsSETargetLowering",
"::",
"PerformDAGCombine",
"(",
"SDNode",
"*",
"N",
",",
"DAGCombinerInfo",
"&",
"DCI",
")",
"const",
"{",
"SelectionDAG",
"&",
"DAG",
"=",
"DCI",
".",
"DAG",
";",
"SDValue",
"Val",
";",
"switch",
"(",
"N",
"->",
"getOpcode",
"(",
")",
")",
"{",
"case",
"ISD",
"::",
"AND",
":",
"Val",
"=",
"performANDCombine",
"(",
"N",
",",
"DAG",
",",
"DCI",
",",
"Subtarget",
")",
";",
"break",
";",
"case",
"ISD",
"::",
"OR",
":",
"Val",
"=",
"performORCombine",
"(",
"N",
",",
"DAG",
",",
"DCI",
",",
"Subtarget",
")",
";",
"break",
";",
"case",
"ISD",
"::",
"MUL",
":",
"return",
"performMULCombine",
"(",
"N",
",",
"DAG",
",",
"DCI",
",",
"this",
")",
";",
"case",
"ISD",
"::",
"SHL",
":",
"Val",
"=",
"performSHLCombine",
"(",
"N",
",",
"DAG",
",",
"DCI",
",",
"Subtarget",
")",
";",
"break",
";",
"case",
"ISD",
"::",
"SRA",
":",
"return",
"performSRACombine",
"(",
"N",
",",
"DAG",
",",
"DCI",
",",
"Subtarget",
")",
";",
"case",
"ISD",
"::",
"SRL",
":",
"return",
"performSRLCombine",
"(",
"N",
",",
"DAG",
",",
"DCI",
",",
"Subtarget",
")",
";",
"case",
"ISD",
"::",
"VSELECT",
":",
"return",
"performVSELECTCombine",
"(",
"N",
",",
"DAG",
")",
";",
"case",
"ISD",
"::",
"XOR",
":",
"Val",
"=",
"performXORCombine",
"(",
"N",
",",
"DAG",
",",
"Subtarget",
")",
";",
"break",
";",
"case",
"ISD",
"::",
"SETCC",
":",
"Val",
"=",
"performSETCCCombine",
"(",
"N",
",",
"DAG",
")",
";",
"break",
";",
"}",
"if",
"(",
"Val",
".",
"getNode",
"(",
")",
")",
"{",
"DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"\\nMipsSE DAG Combine:\\n\"",
";",
"N",
"->",
"printrWithDepth",
"(",
"dbgs",
"(",
")",
",",
"&",
"DAG",
")",
";",
"dbgs",
"(",
")",
"<<",
"\"\\n=> \\n\"",
";",
"Val",
".",
"getNode",
"(",
")",
"->",
"printrWithDepth",
"(",
"dbgs",
"(",
")",
",",
"&",
"DAG",
")",
";",
"dbgs",
"(",
")",
"<<",
"\"\\n\"",
")",
";",
"return",
"Val",
";",
"}",
"return",
"MipsTargetLowering",
"::",
"PerformDAGCombine",
"(",
"N",
",",
"DCI",
")",
";",
"}",
"</s>"
] | [
"This",
"method",
"will",
"be",
"invoked",
"for",
"all",
"target",
"nodes",
"and",
"for",
"any",
"target-independent",
"nodes",
"that",
"the",
"target",
"has",
"registered",
"with",
"invoke",
"it",
"for",
"."
] | [
"Mips",
"Mips",
"ISD::AND",
"ISD::OR",
"ISD::MUL",
"ISD::SHL",
"ISD::SRA",
"ISD::SRL",
"ISD::VSELECT",
"ISD::XOR",
"ISD::SETCC",
"\"\\nMipsSE DAG Combine:\\n\"",
"\"\\n=> \\n\"",
"\"\\n\"",
"Mips"
] | MipsSEISelLowering11 | PerformDAGCombine | Mips | CPU | LLVM | 8,662 | 267 | 1 | [] |
[
"<s>",
"void",
"alpha_set_memflags",
"(",
"rtx",
"seq",
",",
"rtx",
"ref",
")",
"{",
"rtx_insn",
"*",
"insn",
";",
"if",
"(",
"!",
"MEM_P",
"(",
"ref",
")",
")",
"return",
";",
"if",
"(",
"!",
"MEM_VOLATILE_P",
"(",
"ref",
")",
"&&",
"!",
"MEM_NOTRAP_P",
"(",
"ref",
")",
"&&",
"!",
"MEM_READONLY_P",
"(",
"ref",
")",
")",
"return",
";",
"subrtx_var_iterator",
"::",
"array_type",
"array",
";",
"for",
"(",
"insn",
"=",
"as_a",
"<",
"rtx_insn",
"*",
">",
"(",
"seq",
")",
";",
"insn",
";",
"insn",
"=",
"NEXT_INSN",
"(",
"insn",
")",
")",
"if",
"(",
"INSN_P",
"(",
"insn",
")",
")",
"FOR_EACH_SUBRTX_VAR",
"(",
"iter",
",",
"array",
",",
"PATTERN",
"(",
"insn",
")",
",",
"NONCONST",
")",
"{",
"rtx",
"x",
"=",
"*",
"iter",
";",
"if",
"(",
"MEM_P",
"(",
"x",
")",
")",
"{",
"MEM_VOLATILE_P",
"(",
"x",
")",
"=",
"MEM_VOLATILE_P",
"(",
"ref",
")",
";",
"MEM_NOTRAP_P",
"(",
"x",
")",
"=",
"MEM_NOTRAP_P",
"(",
"ref",
")",
";",
"MEM_READONLY_P",
"(",
"x",
")",
"=",
"MEM_READONLY_P",
"(",
"ref",
")",
";",
"iter",
".",
"skip_subrtxes",
"(",
")",
";",
"}",
"}",
"else",
"gcc_unreachable",
"(",
")",
";",
"}",
"</s>"
] | [
"Given",
"INSN",
",",
"which",
"is",
"an",
"INSN",
"list",
"or",
"the",
"PATTERN",
"of",
"a",
"single",
"insn",
"generated",
"to",
"perform",
"a",
"memory",
"operation",
",",
"look",
"for",
"any",
"MEMs",
"in",
"either",
"a",
"SET_DEST",
"or",
"a",
"SET_SRC",
"and",
"copy",
"the",
"in-struct",
",",
"unchanging",
",",
"and",
"volatile",
"flags",
"from",
"REF",
"into",
"each",
"of",
"the",
"MEMs",
"found",
".",
"If",
"REF",
"is",
"not",
"a",
"MEM",
",",
"do",
"n't",
"do",
"anything",
"."
] | [
"alpha"
] | alpha | alpha_set_memflags | alpha | MPU | GCC | 8,663 | 152 | 1 | [] |
[
"<s>",
"static",
"bool",
"mips_vectorize_vec_perm_const",
"(",
"machine_mode",
"vmode",
",",
"rtx",
"target",
",",
"rtx",
"op0",
",",
"rtx",
"op1",
",",
"const",
"vec_perm_indices",
"&",
"sel",
")",
"{",
"struct",
"expand_vec_perm_d",
"d",
";",
"int",
"i",
",",
"nelt",
",",
"which",
";",
"unsigned",
"char",
"orig_perm",
"[",
"MAX_VECT_LEN",
"]",
";",
"bool",
"ok",
";",
"d",
".",
"target",
"=",
"target",
";",
"if",
"(",
"op0",
")",
"{",
"rtx",
"nop0",
"=",
"force_reg",
"(",
"vmode",
",",
"op0",
")",
";",
"if",
"(",
"op0",
"==",
"op1",
")",
"op1",
"=",
"nop0",
";",
"op0",
"=",
"nop0",
";",
"}",
"if",
"(",
"op1",
")",
"op1",
"=",
"force_reg",
"(",
"vmode",
",",
"op1",
")",
";",
"d",
".",
"op0",
"=",
"op0",
";",
"d",
".",
"op1",
"=",
"op1",
";",
"d",
".",
"vmode",
"=",
"vmode",
";",
"gcc_assert",
"(",
"VECTOR_MODE_P",
"(",
"vmode",
")",
")",
";",
"d",
".",
"nelt",
"=",
"nelt",
"=",
"GET_MODE_NUNITS",
"(",
"vmode",
")",
";",
"d",
".",
"testing_p",
"=",
"!",
"target",
";",
"memset",
"(",
"orig_perm",
",",
"0",
",",
"MAX_VECT_LEN",
")",
";",
"for",
"(",
"i",
"=",
"which",
"=",
"0",
";",
"i",
"<",
"nelt",
";",
"++",
"i",
")",
"{",
"int",
"ei",
"=",
"sel",
"[",
"i",
"]",
"&",
"(",
"2",
"*",
"nelt",
"-",
"1",
")",
";",
"which",
"|=",
"(",
"ei",
"<",
"nelt",
"?",
"1",
":",
"2",
")",
";",
"orig_perm",
"[",
"i",
"]",
"=",
"ei",
";",
"}",
"memcpy",
"(",
"d",
".",
"perm",
",",
"orig_perm",
",",
"MAX_VECT_LEN",
")",
";",
"switch",
"(",
"which",
")",
"{",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"case",
"3",
":",
"d",
".",
"one_vector_p",
"=",
"false",
";",
"if",
"(",
"d",
".",
"testing_p",
"||",
"!",
"rtx_equal_p",
"(",
"d",
".",
"op0",
",",
"d",
".",
"op1",
")",
")",
"break",
";",
"case",
"2",
":",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"nelt",
";",
"++",
"i",
")",
"d",
".",
"perm",
"[",
"i",
"]",
"&=",
"nelt",
"-",
"1",
";",
"d",
".",
"op0",
"=",
"d",
".",
"op1",
";",
"d",
".",
"one_vector_p",
"=",
"true",
";",
"break",
";",
"case",
"1",
":",
"d",
".",
"op1",
"=",
"d",
".",
"op0",
";",
"d",
".",
"one_vector_p",
"=",
"true",
";",
"break",
";",
"}",
"if",
"(",
"d",
".",
"testing_p",
")",
"{",
"d",
".",
"target",
"=",
"gen_raw_REG",
"(",
"d",
".",
"vmode",
",",
"LAST_VIRTUAL_REGISTER",
"+",
"1",
")",
";",
"d",
".",
"op1",
"=",
"d",
".",
"op0",
"=",
"gen_raw_REG",
"(",
"d",
".",
"vmode",
",",
"LAST_VIRTUAL_REGISTER",
"+",
"2",
")",
";",
"if",
"(",
"!",
"d",
".",
"one_vector_p",
")",
"d",
".",
"op1",
"=",
"gen_raw_REG",
"(",
"d",
".",
"vmode",
",",
"LAST_VIRTUAL_REGISTER",
"+",
"3",
")",
";",
"start_sequence",
"(",
")",
";",
"ok",
"=",
"mips_expand_vec_perm_const_1",
"(",
"&",
"d",
")",
";",
"end_sequence",
"(",
")",
";",
"return",
"ok",
";",
"}",
"ok",
"=",
"mips_expand_vec_perm_const_1",
"(",
"&",
"d",
")",
";",
"if",
"(",
"!",
"ok",
"&&",
"which",
"==",
"3",
")",
"{",
"d",
".",
"op0",
"=",
"op0",
";",
"d",
".",
"op1",
"=",
"op1",
";",
"d",
".",
"one_vector_p",
"=",
"false",
";",
"memcpy",
"(",
"d",
".",
"perm",
",",
"orig_perm",
",",
"MAX_VECT_LEN",
")",
";",
"ok",
"=",
"mips_expand_vec_perm_const_1",
"(",
"&",
"d",
")",
";",
"}",
"return",
"ok",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_VECTORIZE_VEC_PERM_CONST",
"."
] | [
"mips",
"0",
"0",
"2",
"1",
"1",
"2",
"3",
"2",
"0",
"1",
"1",
"1",
"2",
"3",
"3"
] | mips | mips_vectorize_vec_perm_const | mips | CPU | GCC | 8,664 | 454 | 1 | [] |
[
"<s>",
"void",
"AArch64TargetLowering",
"::",
"LowerAsmOperandForConstraint",
"(",
"SDValue",
"Op",
",",
"std",
"::",
"string",
"&",
"Constraint",
",",
"std",
"::",
"vector",
"<",
"SDValue",
">",
"&",
"Ops",
",",
"SelectionDAG",
"&",
"DAG",
")",
"const",
"{",
"SDValue",
"Result",
"(",
"0",
",",
"0",
")",
";",
"if",
"(",
"Constraint",
".",
"size",
"(",
")",
"!=",
"1",
")",
"return",
";",
"switch",
"(",
"Constraint",
"[",
"0",
"]",
")",
"{",
"default",
":",
"break",
";",
"case",
"'I'",
":",
"case",
"'J'",
":",
"case",
"'K'",
":",
"case",
"'L'",
":",
"case",
"'M'",
":",
"case",
"'N'",
":",
"case",
"'Z'",
":",
"{",
"ConstantSDNode",
"*",
"C",
"=",
"dyn_cast",
"<",
"ConstantSDNode",
">",
"(",
"Op",
")",
";",
"if",
"(",
"!",
"C",
")",
"return",
";",
"uint64_t",
"CVal",
"=",
"C",
"->",
"getZExtValue",
"(",
")",
";",
"uint32_t",
"Bits",
";",
"switch",
"(",
"Constraint",
"[",
"0",
"]",
")",
"{",
"default",
":",
"llvm_unreachable",
"(",
"\"Unimplemented C_Other constraint\"",
")",
";",
"case",
"'I'",
":",
"if",
"(",
"CVal",
"<=",
"0xfff",
")",
"break",
";",
"return",
";",
"case",
"'K'",
":",
"if",
"(",
"A64Imms",
"::",
"isLogicalImm",
"(",
"32",
",",
"CVal",
",",
"Bits",
")",
")",
"break",
";",
"return",
";",
"case",
"'L'",
":",
"if",
"(",
"A64Imms",
"::",
"isLogicalImm",
"(",
"64",
",",
"CVal",
",",
"Bits",
")",
")",
"break",
";",
"return",
";",
"case",
"'Z'",
":",
"if",
"(",
"CVal",
"==",
"0",
")",
"break",
";",
"return",
";",
"}",
"Result",
"=",
"DAG",
".",
"getTargetConstant",
"(",
"CVal",
",",
"Op",
".",
"getValueType",
"(",
")",
")",
";",
"break",
";",
"}",
"case",
"'S'",
":",
"{",
"if",
"(",
"const",
"GlobalAddressSDNode",
"*",
"GA",
"=",
"dyn_cast",
"<",
"GlobalAddressSDNode",
">",
"(",
"Op",
")",
")",
"{",
"Result",
"=",
"DAG",
".",
"getTargetGlobalAddress",
"(",
"GA",
"->",
"getGlobal",
"(",
")",
",",
"Op",
".",
"getDebugLoc",
"(",
")",
",",
"GA",
"->",
"getValueType",
"(",
"0",
")",
")",
";",
"}",
"else",
"if",
"(",
"const",
"BlockAddressSDNode",
"*",
"BA",
"=",
"dyn_cast",
"<",
"BlockAddressSDNode",
">",
"(",
"Op",
")",
")",
"{",
"Result",
"=",
"DAG",
".",
"getTargetBlockAddress",
"(",
"BA",
"->",
"getBlockAddress",
"(",
")",
",",
"BA",
"->",
"getValueType",
"(",
"0",
")",
")",
";",
"}",
"else",
"if",
"(",
"const",
"ExternalSymbolSDNode",
"*",
"ES",
"=",
"dyn_cast",
"<",
"ExternalSymbolSDNode",
">",
"(",
"Op",
")",
")",
"{",
"Result",
"=",
"DAG",
".",
"getTargetExternalSymbol",
"(",
"ES",
"->",
"getSymbol",
"(",
")",
",",
"ES",
"->",
"getValueType",
"(",
"0",
")",
")",
";",
"}",
"else",
"return",
";",
"break",
";",
"}",
"case",
"'Y'",
":",
"if",
"(",
"const",
"ConstantFPSDNode",
"*",
"CFP",
"=",
"dyn_cast",
"<",
"ConstantFPSDNode",
">",
"(",
"Op",
")",
")",
"{",
"if",
"(",
"CFP",
"->",
"isExactlyValue",
"(",
"0.0",
")",
")",
"{",
"Result",
"=",
"DAG",
".",
"getTargetConstantFP",
"(",
"0.0",
",",
"CFP",
"->",
"getValueType",
"(",
"0",
")",
")",
";",
"break",
";",
"}",
"}",
"return",
";",
"}",
"if",
"(",
"Result",
".",
"getNode",
"(",
")",
")",
"{",
"Ops",
".",
"push_back",
"(",
"Result",
")",
";",
"return",
";",
"}",
"TargetLowering",
"::",
"LowerAsmOperandForConstraint",
"(",
"Op",
",",
"Constraint",
",",
"Ops",
",",
"DAG",
")",
";",
"}",
"</s>"
] | [
"Lower",
"the",
"specified",
"operand",
"into",
"the",
"Ops",
"vector",
"."
] | [
"AArch64",
"AArch64",
"0",
"0",
"1",
"0",
"0",
"\"Unimplemented C_Other constraint\"",
"0xfff",
"32",
"64",
"0",
"0",
"0",
"0",
"0.0",
"0.0",
"0"
] | AArch64ISelLowering123 | LowerAsmOperandForConstraint | AArch64 | CPU | LLVM | 8,665 | 428 | 1 | [] |
[
"<s>",
"rtx",
"ix86_expand_fast_convert_bf_to_sf",
"(",
"rtx",
"val",
")",
"{",
"rtx",
"op",
"=",
"gen_lowpart",
"(",
"HImode",
",",
"val",
")",
",",
"ret",
";",
"if",
"(",
"CONST_INT_P",
"(",
"op",
")",
")",
"{",
"ret",
"=",
"simplify_const_unary_operation",
"(",
"FLOAT_EXTEND",
",",
"SFmode",
",",
"val",
",",
"BFmode",
")",
";",
"if",
"(",
"ret",
")",
"return",
"ret",
";",
"ret",
"=",
"gen_reg_rtx",
"(",
"SImode",
")",
";",
"emit_move_insn",
"(",
"ret",
",",
"GEN_INT",
"(",
"INTVAL",
"(",
"op",
")",
"&",
"0xffff",
")",
")",
";",
"emit_insn",
"(",
"gen_ashlsi3",
"(",
"ret",
",",
"ret",
",",
"GEN_INT",
"(",
"16",
")",
")",
")",
";",
"return",
"gen_lowpart",
"(",
"SFmode",
",",
"ret",
")",
";",
"}",
"ret",
"=",
"gen_reg_rtx",
"(",
"SFmode",
")",
";",
"emit_insn",
"(",
"gen_extendbfsf2_1",
"(",
"ret",
",",
"force_reg",
"(",
"BFmode",
",",
"val",
")",
")",
")",
";",
"return",
"ret",
";",
"}",
"</s>"
] | [
"Convert",
"a",
"BFmode",
"VAL",
"to",
"SFmode",
"without",
"signaling",
"sNaNs",
".",
"This",
"is",
"done",
"by",
"returning",
"SF",
"SUBREG",
"of",
"(",
"(",
"HI",
"SUBREG",
")",
"(",
"VAL",
")",
")",
"<",
"<",
"16",
"."
] | [
"i386",
"0xffff",
"16"
] | i386-expand1 | ix86_expand_fast_convert_bf_to_sf | i386 | CPU | GCC | 8,666 | 119 | 1 | [] |
[
"<s>",
"static",
"tree",
"visium_handle_interrupt_attr",
"(",
"tree",
"*",
"node",
",",
"tree",
"name",
",",
"tree",
"args",
"ATTRIBUTE_UNUSED",
",",
"int",
"flags",
"ATTRIBUTE_UNUSED",
",",
"bool",
"*",
"no_add_attrs",
")",
"{",
"if",
"(",
"TREE_CODE",
"(",
"*",
"node",
")",
"!=",
"FUNCTION_DECL",
")",
"{",
"warning",
"(",
"OPT_Wattributes",
",",
"\"%qE attribute only applies to functions\"",
",",
"name",
")",
";",
"*",
"no_add_attrs",
"=",
"true",
";",
"}",
"else",
"if",
"(",
"!",
"TARGET_SV_MODE",
")",
"{",
"error",
"(",
"\"an interrupt handler cannot be compiled with -muser-mode\"",
")",
";",
"*",
"no_add_attrs",
"=",
"true",
";",
"}",
"return",
"NULL_TREE",
";",
"}",
"</s>"
] | [
"Handle",
"an",
"``",
"interrupt_handler",
"''",
"attribute",
";",
"arguments",
"as",
"in",
"struct",
"attribute_spec.handler",
"."
] | [
"visium",
"\"%qE attribute only applies to functions\"",
"\"an interrupt handler cannot be compiled with -muser-mode\""
] | visium2 | visium_handle_interrupt_attr | visium | Virtual ISA | GCC | 8,667 | 72 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"getPassName",
"(",
")",
"const",
"override",
"{",
"return",
"\"SI Lower control flow pseudo instructions\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"AMDGPU",
"\"SI Lower control flow pseudo instructions\""
] | SILowerControlFlow12 | getPassName | AMDGPU | GPU | LLVM | 8,668 | 13 | 1 | [] |
[
"<s>",
"StringRef",
"getPassName",
"(",
")",
"const",
"override",
"{",
"return",
"\"WebAssembly Fix Irreducible Control Flow\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"WebAssembly",
"\"WebAssembly Fix Irreducible Control Flow\""
] | WebAssemblyFixIrreducibleControlFlow | getPassName | WebAssembly | Virtual ISA | LLVM | 8,669 | 11 | 1 | [] |
[
"<s>",
"StringRef",
"getPassName",
"(",
")",
"const",
"override",
"{",
"return",
"\"Hexagon CFG Optimizer\"",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"Hexagon",
"\"Hexagon CFG Optimizer\""
] | HexagonCFGOptimizer (2) | getPassName | Hexagon | DSP | LLVM | 8,670 | 11 | 1 | [] |
[
"<s>",
"bool",
"HexagonSplitConst32AndConst64",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"Fn",
")",
"{",
"auto",
"&",
"HST",
"=",
"Fn",
".",
"getSubtarget",
"<",
"HexagonSubtarget",
">",
"(",
")",
";",
"auto",
"&",
"HTM",
"=",
"static_cast",
"<",
"const",
"HexagonTargetMachine",
"&",
">",
"(",
"Fn",
".",
"getTarget",
"(",
")",
")",
";",
"auto",
"&",
"TLOF",
"=",
"*",
"HTM",
".",
"getObjFileLowering",
"(",
")",
";",
"if",
"(",
"HST",
".",
"useSmallData",
"(",
")",
"&&",
"TLOF",
".",
"isSmallDataEnabled",
"(",
"HTM",
")",
")",
"return",
"false",
";",
"const",
"TargetInstrInfo",
"*",
"TII",
"=",
"HST",
".",
"getInstrInfo",
"(",
")",
";",
"const",
"TargetRegisterInfo",
"*",
"TRI",
"=",
"HST",
".",
"getRegisterInfo",
"(",
")",
";",
"for",
"(",
"MachineBasicBlock",
"&",
"B",
":",
"Fn",
")",
"{",
"for",
"(",
"MachineInstr",
"&",
"MI",
":",
"llvm",
"::",
"make_early_inc_range",
"(",
"B",
")",
")",
"{",
"unsigned",
"Opc",
"=",
"MI",
".",
"getOpcode",
"(",
")",
";",
"if",
"(",
"Opc",
"==",
"Hexagon",
"::",
"CONST32",
")",
"{",
"Register",
"DestReg",
"=",
"MI",
".",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
";",
"uint64_t",
"ImmValue",
"=",
"MI",
".",
"getOperand",
"(",
"1",
")",
".",
"getImm",
"(",
")",
";",
"const",
"DebugLoc",
"&",
"DL",
"=",
"MI",
".",
"getDebugLoc",
"(",
")",
";",
"BuildMI",
"(",
"B",
",",
"MI",
",",
"DL",
",",
"TII",
"->",
"get",
"(",
"Hexagon",
"::",
"A2_tfrsi",
")",
",",
"DestReg",
")",
".",
"addImm",
"(",
"ImmValue",
")",
";",
"B",
".",
"erase",
"(",
"&",
"MI",
")",
";",
"}",
"else",
"if",
"(",
"Opc",
"==",
"Hexagon",
"::",
"CONST64",
")",
"{",
"Register",
"DestReg",
"=",
"MI",
".",
"getOperand",
"(",
"0",
")",
".",
"getReg",
"(",
")",
";",
"int64_t",
"ImmValue",
"=",
"MI",
".",
"getOperand",
"(",
"1",
")",
".",
"getImm",
"(",
")",
";",
"const",
"DebugLoc",
"&",
"DL",
"=",
"MI",
".",
"getDebugLoc",
"(",
")",
";",
"Register",
"DestLo",
"=",
"TRI",
"->",
"getSubReg",
"(",
"DestReg",
",",
"Hexagon",
"::",
"isub_lo",
")",
";",
"Register",
"DestHi",
"=",
"TRI",
"->",
"getSubReg",
"(",
"DestReg",
",",
"Hexagon",
"::",
"isub_hi",
")",
";",
"int32_t",
"LowWord",
"=",
"(",
"ImmValue",
"&",
"0xFFFFFFFF",
")",
";",
"int32_t",
"HighWord",
"=",
"(",
"ImmValue",
">>",
"32",
")",
"&",
"0xFFFFFFFF",
";",
"BuildMI",
"(",
"B",
",",
"MI",
",",
"DL",
",",
"TII",
"->",
"get",
"(",
"Hexagon",
"::",
"A2_tfrsi",
")",
",",
"DestLo",
")",
".",
"addImm",
"(",
"LowWord",
")",
";",
"BuildMI",
"(",
"B",
",",
"MI",
",",
"DL",
",",
"TII",
"->",
"get",
"(",
"Hexagon",
"::",
"A2_tfrsi",
")",
",",
"DestHi",
")",
".",
"addImm",
"(",
"HighWord",
")",
";",
"B",
".",
"erase",
"(",
"&",
"MI",
")",
";",
"}",
"}",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"Hexagon",
"Hexagon",
"Hexagon",
"Hexagon",
"Hexagon::CONST32",
"0",
"1",
"Hexagon::A2_tfrsi",
"Hexagon::CONST64",
"0",
"1",
"Hexagon::isub_lo",
"Hexagon::isub_hi",
"0xFFFFFFFF",
"32",
"0xFFFFFFFF",
"Hexagon::A2_tfrsi",
"Hexagon::A2_tfrsi"
] | HexagonSplitConst32AndConst644 | runOnMachineFunction | Hexagon | DSP | LLVM | 8,671 | 368 | 1 | [] |
[
"<s>",
"unsigned",
"RISCVTargetLowering",
"::",
"getExceptionPointerRegister",
"(",
"const",
"Constant",
"*",
"PersonalityFn",
")",
"const",
"{",
"if",
"(",
"Subtarget",
".",
"isRV64",
"(",
")",
")",
"return",
"RISCV",
"::",
"epc_64",
";",
"else",
"return",
"RISCV",
"::",
"epc",
";",
"}",
"</s>"
] | [
"If",
"a",
"physical",
"register",
",",
"this",
"returns",
"the",
"register",
"that",
"receives",
"the",
"exception",
"address",
"on",
"entry",
"to",
"an",
"EH",
"pad",
"."
] | [
"RISCV",
"RISCV",
"RISCV::epc_64",
"RISCV::epc"
] | RISCVISelLowering (2)2 | getExceptionPointerRegister | RISCV | CPU | LLVM | 8,672 | 32 | 1 | [] |
[
"<s>",
"void",
"print",
"(",
"raw_ostream",
"&",
"OS",
")",
"const",
"override",
"{",
"switch",
"(",
"Kind",
")",
"{",
"case",
"Token",
":",
"OS",
"<<",
"\"Tok:\"",
"<<",
"Tok",
".",
"Tok",
";",
"break",
";",
"case",
"Local",
":",
"OS",
"<<",
"\"Loc:\"",
"<<",
"Reg",
".",
"RegNo",
"<<",
"\":\"",
"<<",
"static_cast",
"<",
"int",
">",
"(",
"Reg",
".",
"Type",
")",
";",
"break",
";",
"case",
"Stack",
":",
"OS",
"<<",
"\"Stk:\"",
"<<",
"Reg",
".",
"RegNo",
"<<",
"\":\"",
"<<",
"static_cast",
"<",
"int",
">",
"(",
"Reg",
".",
"Type",
")",
";",
"break",
";",
"case",
"Integer",
":",
"OS",
"<<",
"\"Int:\"",
"<<",
"Int",
".",
"Val",
";",
"break",
";",
"case",
"Float",
":",
"OS",
"<<",
"\"Flt:\"",
"<<",
"Flt",
".",
"Val",
";",
"break",
";",
"case",
"Symbol",
":",
"OS",
"<<",
"\"Sym:\"",
"<<",
"Sym",
".",
"Exp",
";",
"break",
";",
"}",
"}",
"</s>"
] | [
"print",
"-",
"Print",
"a",
"debug",
"representation",
"of",
"the",
"operand",
"to",
"the",
"given",
"stream",
"."
] | [
"WebAssembly",
"\"Tok:\"",
"\"Loc:\"",
"\":\"",
"\"Stk:\"",
"\":\"",
"\"Int:\"",
"\"Flt:\"",
"\"Sym:\""
] | WebAssemblyAsmParser27 | print | WebAssembly | Virtual ISA | LLVM | 8,673 | 119 | 1 | [] |
[
"<s>",
"static",
"void",
"sh_setup_incoming_varargs",
"(",
"cumulative_args_t",
"ca",
",",
"const",
"function_arg_info",
"&",
"arg",
",",
"int",
"*",
"pretend_arg_size",
",",
"int",
"second_time",
"ATTRIBUTE_UNUSED",
")",
"{",
"gcc_assert",
"(",
"cfun",
"->",
"stdarg",
")",
";",
"if",
"(",
"TARGET_VARARGS_PRETEND_ARGS",
"(",
"current_function_decl",
")",
")",
"{",
"int",
"named_parm_regs",
",",
"anon_parm_regs",
";",
"named_parm_regs",
"=",
"(",
"sh_round_reg",
"(",
"*",
"get_cumulative_args",
"(",
"ca",
")",
",",
"arg",
".",
"mode",
")",
"+",
"CEIL",
"(",
"arg",
".",
"promoted_size_in_bytes",
"(",
")",
",",
"UNITS_PER_WORD",
")",
")",
";",
"anon_parm_regs",
"=",
"NPARM_REGS",
"(",
"SImode",
")",
"-",
"named_parm_regs",
";",
"if",
"(",
"anon_parm_regs",
">",
"0",
")",
"*",
"pretend_arg_size",
"=",
"anon_parm_regs",
"*",
"4",
";",
"}",
"}",
"</s>"
] | [
"We",
"actually",
"emit",
"the",
"code",
"in",
"sh_expand_prologue",
".",
"We",
"used",
"to",
"use",
"a",
"static",
"variable",
"to",
"flag",
"that",
"we",
"need",
"to",
"emit",
"this",
"code",
",",
"but",
"that",
"does",
"n't",
"when",
"inlining",
",",
"when",
"functions",
"are",
"deferred",
"and",
"then",
"emitted",
"later",
".",
"Fortunately",
",",
"we",
"already",
"have",
"two",
"flags",
"that",
"are",
"part",
"of",
"struct",
"function",
"that",
"tell",
"if",
"a",
"function",
"uses",
"varargs",
"or",
"stdarg",
"."
] | [
"sh",
"0",
"4"
] | sh | sh_setup_incoming_varargs | sh | CPU | GCC | 8,674 | 93 | 1 | [] |
[
"<s>",
"CCAssignFn",
"*",
"MipsTargetLowering",
"::",
"CCAssignFnForReturn",
"(",
")",
"const",
"{",
"return",
"RetCC_Mips",
";",
"}",
"</s>"
] | [
"Selects",
"the",
"correct",
"CCAssignFn",
"for",
"a",
"given",
"CallingConvention",
"value",
"."
] | [
"Mips",
"Mips",
"Mips"
] | MipsISelLowering (2)4 | CCAssignFnForReturn | Mips | CPU | LLVM | 8,675 | 13 | 1 | [] |
[
"<s>",
"void",
"X86RegisterInfo",
"::",
"eliminateFrameIndex",
"(",
"MachineBasicBlock",
"::",
"iterator",
"II",
",",
"int",
"SPAdj",
",",
"RegScavenger",
"*",
"RS",
")",
"const",
"{",
"assert",
"(",
"SPAdj",
"==",
"0",
"&&",
"\"Unexpected\"",
")",
";",
"unsigned",
"i",
"=",
"0",
";",
"MachineInstr",
"&",
"MI",
"=",
"*",
"II",
";",
"MachineFunction",
"&",
"MF",
"=",
"*",
"MI",
".",
"getParent",
"(",
")",
"->",
"getParent",
"(",
")",
";",
"const",
"TargetFrameInfo",
"*",
"TFI",
"=",
"MF",
".",
"getTarget",
"(",
")",
".",
"getFrameInfo",
"(",
")",
";",
"while",
"(",
"!",
"MI",
".",
"getOperand",
"(",
"i",
")",
".",
"isFI",
"(",
")",
")",
"{",
"++",
"i",
";",
"assert",
"(",
"i",
"<",
"MI",
".",
"getNumOperands",
"(",
")",
"&&",
"\"Instr doesn't have FrameIndex operand!\"",
")",
";",
"}",
"int",
"FrameIndex",
"=",
"MI",
".",
"getOperand",
"(",
"i",
")",
".",
"getIndex",
"(",
")",
";",
"unsigned",
"BasePtr",
";",
"unsigned",
"Opc",
"=",
"MI",
".",
"getOpcode",
"(",
")",
";",
"bool",
"AfterFPPop",
"=",
"Opc",
"==",
"X86",
"::",
"TAILJMPm64",
"||",
"Opc",
"==",
"X86",
"::",
"TAILJMPm",
";",
"if",
"(",
"needsStackRealignment",
"(",
"MF",
")",
")",
"BasePtr",
"=",
"(",
"FrameIndex",
"<",
"0",
"?",
"FramePtr",
":",
"StackPtr",
")",
";",
"else",
"if",
"(",
"AfterFPPop",
")",
"BasePtr",
"=",
"StackPtr",
";",
"else",
"BasePtr",
"=",
"(",
"TFI",
"->",
"hasFP",
"(",
"MF",
")",
"?",
"FramePtr",
":",
"StackPtr",
")",
";",
"MI",
".",
"getOperand",
"(",
"i",
")",
".",
"ChangeToRegister",
"(",
"BasePtr",
",",
"false",
")",
";",
"int",
"FIOffset",
";",
"if",
"(",
"AfterFPPop",
")",
"{",
"const",
"MachineFrameInfo",
"*",
"MFI",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
";",
"FIOffset",
"=",
"MFI",
"->",
"getObjectOffset",
"(",
"FrameIndex",
")",
"-",
"TFI",
"->",
"getOffsetOfLocalArea",
"(",
")",
";",
"}",
"else",
"FIOffset",
"=",
"TFI",
"->",
"getFrameIndexOffset",
"(",
"MF",
",",
"FrameIndex",
")",
";",
"if",
"(",
"MI",
".",
"getOperand",
"(",
"i",
"+",
"3",
")",
".",
"isImm",
"(",
")",
")",
"{",
"int",
"Offset",
"=",
"FIOffset",
"+",
"(",
"int",
")",
"(",
"MI",
".",
"getOperand",
"(",
"i",
"+",
"3",
")",
".",
"getImm",
"(",
")",
")",
";",
"MI",
".",
"getOperand",
"(",
"i",
"+",
"3",
")",
".",
"ChangeToImmediate",
"(",
"Offset",
")",
";",
"}",
"else",
"{",
"uint64_t",
"Offset",
"=",
"FIOffset",
"+",
"(",
"uint64_t",
")",
"MI",
".",
"getOperand",
"(",
"i",
"+",
"3",
")",
".",
"getOffset",
"(",
")",
";",
"MI",
".",
"getOperand",
"(",
"i",
"+",
"3",
")",
".",
"setOffset",
"(",
"Offset",
")",
";",
"}",
"}",
"</s>"
] | [
"This",
"method",
"must",
"be",
"overriden",
"to",
"eliminate",
"abstract",
"frame",
"indices",
"from",
"instructions",
"which",
"may",
"use",
"them",
"."
] | [
"X86",
"X86",
"0",
"\"Unexpected\"",
"0",
"\"Instr doesn't have FrameIndex operand!\"",
"X86::TAILJMPm64",
"X86::TAILJMPm",
"0",
"3",
"3",
"3",
"3",
"3"
] | X86RegisterInfo40 | eliminateFrameIndex | X86 | CPU | LLVM | 8,676 | 341 | 1 | [] |
[
"<s>",
"void",
"RISCVAsmBackend",
"::",
"applyFixup",
"(",
"const",
"MCAssembler",
"&",
"Asm",
",",
"const",
"MCFixup",
"&",
"Fixup",
",",
"const",
"MCValue",
"&",
"Target",
",",
"MutableArrayRef",
"<",
"char",
">",
"Data",
",",
"uint64_t",
"Value",
",",
"bool",
"IsResolved",
",",
"const",
"MCSubtargetInfo",
"*",
"STI",
")",
"const",
"{",
"MCContext",
"&",
"Ctx",
"=",
"Asm",
".",
"getContext",
"(",
")",
";",
"MCFixupKindInfo",
"Info",
"=",
"getFixupKindInfo",
"(",
"Fixup",
".",
"getKind",
"(",
")",
")",
";",
"if",
"(",
"!",
"Value",
")",
"return",
";",
"Value",
"=",
"adjustFixupValue",
"(",
"Fixup",
",",
"Value",
",",
"Ctx",
")",
";",
"Value",
"<<=",
"Info",
".",
"TargetOffset",
";",
"unsigned",
"Offset",
"=",
"Fixup",
".",
"getOffset",
"(",
")",
";",
"unsigned",
"NumBytes",
"=",
"alignTo",
"(",
"Info",
".",
"TargetSize",
"+",
"Info",
".",
"TargetOffset",
",",
"8",
")",
"/",
"8",
";",
"assert",
"(",
"Offset",
"+",
"NumBytes",
"<=",
"Data",
".",
"size",
"(",
")",
"&&",
"\"Invalid fixup offset!\"",
")",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"!=",
"NumBytes",
";",
"++",
"i",
")",
"{",
"Data",
"[",
"Offset",
"+",
"i",
"]",
"|=",
"uint8_t",
"(",
"(",
"Value",
">>",
"(",
"i",
"*",
"8",
")",
")",
"&",
"0xff",
")",
";",
"}",
"}",
"</s>"
] | [
"Apply",
"the",
"Value",
"for",
"given",
"Fixup",
"into",
"the",
"provided",
"data",
"fragment",
",",
"at",
"the",
"offset",
"specified",
"by",
"the",
"fixup",
"and",
"following",
"the",
"fixup",
"kind",
"as",
"appropriate",
"."
] | [
"RISCV",
"RISCV",
"8",
"8",
"\"Invalid fixup offset!\"",
"0",
"8",
"0xff"
] | RISCVAsmBackend | applyFixup | RISCV | CPU | LLVM | 8,677 | 166 | 1 | [] |
[
"<s>",
"static",
"rtx",
"aarch64_gen_storewb_pair",
"(",
"machine_mode",
"mode",
",",
"rtx",
"base",
",",
"rtx",
"reg",
",",
"rtx",
"reg2",
",",
"HOST_WIDE_INT",
"adjustment",
")",
"{",
"switch",
"(",
"mode",
")",
"{",
"case",
"DImode",
":",
"return",
"gen_storewb_pairdi_di",
"(",
"base",
",",
"base",
",",
"reg",
",",
"reg2",
",",
"GEN_INT",
"(",
"-",
"adjustment",
")",
",",
"GEN_INT",
"(",
"UNITS_PER_WORD",
"-",
"adjustment",
")",
")",
";",
"case",
"DFmode",
":",
"return",
"gen_storewb_pairdf_di",
"(",
"base",
",",
"base",
",",
"reg",
",",
"reg2",
",",
"GEN_INT",
"(",
"-",
"adjustment",
")",
",",
"GEN_INT",
"(",
"UNITS_PER_WORD",
"-",
"adjustment",
")",
")",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"}",
"</s>"
] | [
"Generate",
"and",
"return",
"an",
"instruction",
"to",
"store",
"the",
"pair",
"of",
"registers",
"REG",
"and",
"REG2",
"of",
"mode",
"MODE",
"to",
"location",
"BASE",
"with",
"write-back",
"adjusting",
"the",
"stack",
"location",
"BASE",
"by",
"ADJUSTMENT",
"."
] | [
"aarch64"
] | aarch642 | aarch64_gen_storewb_pair | aarch64 | CPU | GCC | 8,678 | 89 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"TriCoreTargetLowering",
"::",
"getTargetNodeName",
"(",
"unsigned",
"Opcode",
")",
"const",
"{",
"switch",
"(",
"(",
"TriCoreISD",
"::",
"NodeType",
")",
"Opcode",
")",
"{",
"case",
"TriCoreISD",
"::",
"FIRST_NUMBER",
":",
"break",
";",
"case",
"TriCoreISD",
"::",
"RET_FLAG",
":",
"return",
"\"TriCoreISD::RetFlag\"",
";",
"case",
"TriCoreISD",
"::",
"LOAD_SYM",
":",
"return",
"\"TriCoreISD::LOAD_SYM\"",
";",
"case",
"TriCoreISD",
"::",
"MOVEi32",
":",
"return",
"\"TriCoreISD::MOVEi32\"",
";",
"case",
"TriCoreISD",
"::",
"CALL",
":",
"return",
"\"TriCoreISD::CALL\"",
";",
"case",
"TriCoreISD",
"::",
"BR_CC",
":",
"return",
"\"TriCoreISD::BR_CC\"",
";",
"case",
"TriCoreISD",
"::",
"SELECT_CC",
":",
"return",
"\"TriCoreISD::SELECT_CC\"",
";",
"case",
"TriCoreISD",
"::",
"LOGICCMP",
":",
"return",
"\"TriCoreISD::LOGICCMP\"",
";",
"case",
"TriCoreISD",
"::",
"CMP",
":",
"return",
"\"TriCoreISD::CMP\"",
";",
"case",
"TriCoreISD",
"::",
"IMASK",
":",
"return",
"\"TriCoreISD::IMASK\"",
";",
"case",
"TriCoreISD",
"::",
"Wrapper",
":",
"return",
"\"TriCoreISD::Wrapper\"",
";",
"case",
"TriCoreISD",
"::",
"SH",
":",
"return",
"\"TriCoreISD::SH\"",
";",
"case",
"TriCoreISD",
"::",
"SHA",
":",
"return",
"\"TriCoreISD::SHA\"",
";",
"case",
"TriCoreISD",
"::",
"EXTR",
":",
"return",
"\"TriCoreISD::EXTR\"",
";",
"case",
"TriCoreISD",
"::",
"ABS",
":",
"return",
"\"TriCoreISD::ABS\"",
";",
"}",
"return",
"nullptr",
";",
"}",
"</s>"
] | [
"getTargetNodeName",
"-",
"This",
"method",
"returns",
"the",
"name",
"of",
"a",
"target",
"specific"
] | [
"TriCore",
"TriCore",
"TriCoreISD::NodeType",
"TriCoreISD::FIRST_NUMBER",
"TriCoreISD::RET_FLAG",
"\"TriCoreISD::RetFlag\"",
"TriCoreISD::LOAD_SYM",
"\"TriCoreISD::LOAD_SYM\"",
"TriCoreISD::MOVEi32",
"\"TriCoreISD::MOVEi32\"",
"TriCoreISD::CALL",
"\"TriCoreISD::CALL\"",
"TriCoreISD::BR_CC",
"\"TriCoreISD::BR_CC\"",
"TriCoreISD::SELECT_CC",
"\"TriCoreISD::SELECT_CC\"",
"TriCoreISD::LOGICCMP",
"\"TriCoreISD::LOGICCMP\"",
"TriCoreISD::CMP",
"\"TriCoreISD::CMP\"",
"TriCoreISD::IMASK",
"\"TriCoreISD::IMASK\"",
"TriCoreISD::Wrapper",
"\"TriCoreISD::Wrapper\"",
"TriCoreISD::SH",
"\"TriCoreISD::SH\"",
"TriCoreISD::SHA",
"\"TriCoreISD::SHA\"",
"TriCoreISD::EXTR",
"\"TriCoreISD::EXTR\"",
"TriCoreISD::ABS",
"\"TriCoreISD::ABS\""
] | TriCoreISelLowering | getTargetNodeName | TriCore | MPU | LLVM | 8,679 | 146 | 1 | [] |
[
"<s>",
"void",
"BPFMCCodeEmitter",
"::",
"encodeInstruction",
"(",
"const",
"MCInst",
"&",
"MI",
",",
"raw_ostream",
"&",
"OS",
",",
"SmallVectorImpl",
"<",
"MCFixup",
">",
"&",
"Fixups",
",",
"const",
"MCSubtargetInfo",
"&",
"STI",
")",
"const",
"{",
"unsigned",
"Opcode",
"=",
"MI",
".",
"getOpcode",
"(",
")",
";",
"support",
"::",
"endian",
"::",
"Writer",
"<",
"support",
"::",
"little",
">",
"LE",
"(",
"OS",
")",
";",
"support",
"::",
"endian",
"::",
"Writer",
"<",
"support",
"::",
"big",
">",
"BE",
"(",
"OS",
")",
";",
"if",
"(",
"Opcode",
"==",
"BPF",
"::",
"LD_imm64",
"||",
"Opcode",
"==",
"BPF",
"::",
"LD_pseudo",
")",
"{",
"uint64_t",
"Value",
"=",
"getBinaryCodeForInstr",
"(",
"MI",
",",
"Fixups",
",",
"STI",
")",
";",
"LE",
".",
"write",
"<",
"uint8_t",
">",
"(",
"Value",
">>",
"56",
")",
";",
"if",
"(",
"IsLittleEndian",
")",
"LE",
".",
"write",
"<",
"uint8_t",
">",
"(",
"(",
"Value",
">>",
"48",
")",
"&",
"0xff",
")",
";",
"else",
"LE",
".",
"write",
"<",
"uint8_t",
">",
"(",
"SwapBits",
"(",
"(",
"Value",
">>",
"48",
")",
"&",
"0xff",
")",
")",
";",
"LE",
".",
"write",
"<",
"uint16_t",
">",
"(",
"0",
")",
";",
"if",
"(",
"IsLittleEndian",
")",
"LE",
".",
"write",
"<",
"uint32_t",
">",
"(",
"Value",
"&",
"0xffffFFFF",
")",
";",
"else",
"BE",
".",
"write",
"<",
"uint32_t",
">",
"(",
"Value",
"&",
"0xffffFFFF",
")",
";",
"const",
"MCOperand",
"&",
"MO",
"=",
"MI",
".",
"getOperand",
"(",
"1",
")",
";",
"uint64_t",
"Imm",
"=",
"MO",
".",
"isImm",
"(",
")",
"?",
"MO",
".",
"getImm",
"(",
")",
":",
"0",
";",
"LE",
".",
"write",
"<",
"uint8_t",
">",
"(",
"0",
")",
";",
"LE",
".",
"write",
"<",
"uint8_t",
">",
"(",
"0",
")",
";",
"LE",
".",
"write",
"<",
"uint16_t",
">",
"(",
"0",
")",
";",
"if",
"(",
"IsLittleEndian",
")",
"LE",
".",
"write",
"<",
"uint32_t",
">",
"(",
"Imm",
">>",
"32",
")",
";",
"else",
"BE",
".",
"write",
"<",
"uint32_t",
">",
"(",
"Imm",
">>",
"32",
")",
";",
"}",
"else",
"{",
"uint64_t",
"Value",
"=",
"getBinaryCodeForInstr",
"(",
"MI",
",",
"Fixups",
",",
"STI",
")",
";",
"LE",
".",
"write",
"<",
"uint8_t",
">",
"(",
"Value",
">>",
"56",
")",
";",
"if",
"(",
"IsLittleEndian",
")",
"{",
"LE",
".",
"write",
"<",
"uint8_t",
">",
"(",
"(",
"Value",
">>",
"48",
")",
"&",
"0xff",
")",
";",
"LE",
".",
"write",
"<",
"uint16_t",
">",
"(",
"(",
"Value",
">>",
"32",
")",
"&",
"0xffff",
")",
";",
"LE",
".",
"write",
"<",
"uint32_t",
">",
"(",
"Value",
"&",
"0xffffFFFF",
")",
";",
"}",
"else",
"{",
"LE",
".",
"write",
"<",
"uint8_t",
">",
"(",
"SwapBits",
"(",
"(",
"Value",
">>",
"48",
")",
"&",
"0xff",
")",
")",
";",
"BE",
".",
"write",
"<",
"uint16_t",
">",
"(",
"(",
"Value",
">>",
"32",
")",
"&",
"0xffff",
")",
";",
"BE",
".",
"write",
"<",
"uint32_t",
">",
"(",
"Value",
"&",
"0xffffFFFF",
")",
";",
"}",
"}",
"}",
"</s>"
] | [
"Encode",
"the",
"given",
"Inst",
"to",
"bytes",
"and",
"append",
"to",
"CB",
"."
] | [
"BPF",
"BPF",
"support::endian",
"support::little",
"support::endian",
"support::big",
"BPF::LD_imm64",
"BPF::LD_pseudo",
"56",
"48",
"0xff",
"48",
"0xff",
"0",
"0xffffFFFF",
"0xffffFFFF",
"1",
"0",
"0",
"0",
"0",
"32",
"32",
"56",
"48",
"0xff",
"32",
"0xffff",
"0xffffFFFF",
"48",
"0xff",
"32",
"0xffff",
"0xffffFFFF"
] | BPFMCCodeEmitter | encodeInstruction | BPF | Virtual ISA | LLVM | 8,680 | 402 | 1 | [] |
[
"<s>",
"static",
"pad_direction",
"ia64_function_arg_padding",
"(",
"machine_mode",
"mode",
",",
"const_tree",
"type",
")",
"{",
"if",
"(",
"TARGET_HPUX",
"&&",
"type",
"&&",
"AGGREGATE_TYPE_P",
"(",
"type",
")",
"&&",
"int_size_in_bytes",
"(",
"type",
")",
"<",
"UNITS_PER_WORD",
")",
"return",
"PAD_UPWARD",
";",
"return",
"default_function_arg_padding",
"(",
"mode",
",",
"type",
")",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_FUNCTION_ARG_PADDING",
".",
"For",
"the",
"HP-UX",
"IA64",
"aggregate",
"parameters",
"are",
"passed",
"stored",
"in",
"the",
"most",
"significant",
"bits",
"of",
"the",
"stack",
"slot",
"."
] | [
"ia64"
] | ia64 | ia64_function_arg_padding | ia64 | CPU | GCC | 8,681 | 41 | 1 | [] |
[
"<s>",
"void",
"xtensa_expand_atomic",
"(",
"enum",
"rtx_code",
"code",
",",
"rtx",
"target",
",",
"rtx",
"mem",
",",
"rtx",
"val",
",",
"bool",
"after",
")",
"{",
"machine_mode",
"mode",
"=",
"GET_MODE",
"(",
"mem",
")",
";",
"struct",
"alignment_context",
"ac",
";",
"rtx_code_label",
"*",
"csloop",
"=",
"gen_label_rtx",
"(",
")",
";",
"rtx",
"cmp",
",",
"tmp",
";",
"rtx",
"old",
"=",
"gen_reg_rtx",
"(",
"SImode",
")",
";",
"rtx",
"new_rtx",
"=",
"gen_reg_rtx",
"(",
"SImode",
")",
";",
"rtx",
"orig",
"=",
"NULL_RTX",
";",
"init_alignment_context",
"(",
"&",
"ac",
",",
"mem",
")",
";",
"if",
"(",
"ac",
".",
"shift",
"!=",
"NULL_RTX",
")",
"val",
"=",
"xtensa_expand_mask_and_shift",
"(",
"val",
",",
"mode",
",",
"ac",
".",
"shift",
")",
";",
"switch",
"(",
"code",
")",
"{",
"case",
"PLUS",
":",
"case",
"MINUS",
":",
"orig",
"=",
"gen_reg_rtx",
"(",
"SImode",
")",
";",
"convert_move",
"(",
"orig",
",",
"val",
",",
"1",
")",
";",
"break",
";",
"case",
"SET",
":",
"case",
"IOR",
":",
"case",
"XOR",
":",
"break",
";",
"case",
"MULT",
":",
"case",
"AND",
":",
"val",
"=",
"expand_simple_binop",
"(",
"SImode",
",",
"XOR",
",",
"val",
",",
"ac",
".",
"modemaski",
",",
"NULL_RTX",
",",
"1",
",",
"OPTAB_DIRECT",
")",
";",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"cmp",
"=",
"force_reg",
"(",
"SImode",
",",
"ac",
".",
"memsi",
")",
";",
"emit_label",
"(",
"csloop",
")",
";",
"emit_move_insn",
"(",
"old",
",",
"cmp",
")",
";",
"switch",
"(",
"code",
")",
"{",
"case",
"PLUS",
":",
"case",
"MINUS",
":",
"val",
"=",
"expand_simple_binop",
"(",
"SImode",
",",
"code",
",",
"old",
",",
"orig",
",",
"NULL_RTX",
",",
"1",
",",
"OPTAB_DIRECT",
")",
";",
"val",
"=",
"expand_simple_binop",
"(",
"SImode",
",",
"AND",
",",
"val",
",",
"ac",
".",
"modemask",
",",
"NULL_RTX",
",",
"1",
",",
"OPTAB_DIRECT",
")",
";",
"case",
"SET",
":",
"tmp",
"=",
"expand_simple_binop",
"(",
"SImode",
",",
"AND",
",",
"old",
",",
"ac",
".",
"modemaski",
",",
"NULL_RTX",
",",
"1",
",",
"OPTAB_DIRECT",
")",
";",
"tmp",
"=",
"expand_simple_binop",
"(",
"SImode",
",",
"IOR",
",",
"tmp",
",",
"val",
",",
"new_rtx",
",",
"1",
",",
"OPTAB_DIRECT",
")",
";",
"break",
";",
"case",
"AND",
":",
"case",
"IOR",
":",
"case",
"XOR",
":",
"tmp",
"=",
"expand_simple_binop",
"(",
"SImode",
",",
"code",
",",
"old",
",",
"val",
",",
"new_rtx",
",",
"1",
",",
"OPTAB_DIRECT",
")",
";",
"break",
";",
"case",
"MULT",
":",
"tmp",
"=",
"expand_simple_binop",
"(",
"SImode",
",",
"AND",
",",
"old",
",",
"val",
",",
"NULL_RTX",
",",
"1",
",",
"OPTAB_DIRECT",
")",
";",
"tmp",
"=",
"expand_simple_binop",
"(",
"SImode",
",",
"XOR",
",",
"tmp",
",",
"ac",
".",
"modemask",
",",
"new_rtx",
",",
"1",
",",
"OPTAB_DIRECT",
")",
";",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"if",
"(",
"tmp",
"!=",
"new_rtx",
")",
"emit_move_insn",
"(",
"new_rtx",
",",
"tmp",
")",
";",
"emit_insn",
"(",
"gen_sync_compare_and_swapsi",
"(",
"cmp",
",",
"ac",
".",
"memsi",
",",
"old",
",",
"new_rtx",
")",
")",
";",
"emit_cmp_and_jump_insns",
"(",
"cmp",
",",
"old",
",",
"NE",
",",
"const0_rtx",
",",
"SImode",
",",
"true",
",",
"csloop",
")",
";",
"if",
"(",
"target",
")",
"{",
"tmp",
"=",
"(",
"after",
"?",
"new_rtx",
":",
"cmp",
")",
";",
"convert_move",
"(",
"target",
",",
"(",
"ac",
".",
"shift",
"==",
"NULL_RTX",
"?",
"tmp",
":",
"expand_simple_binop",
"(",
"SImode",
",",
"LSHIFTRT",
",",
"tmp",
",",
"ac",
".",
"shift",
",",
"NULL_RTX",
",",
"1",
",",
"OPTAB_DIRECT",
")",
")",
",",
"1",
")",
";",
"}",
"}",
"</s>"
] | [
"Expand",
"an",
"atomic",
"operation",
"CODE",
"of",
"mode",
"MODE",
"(",
"either",
"HImode",
"or",
"QImode",
"--",
"the",
"default",
"expansion",
"works",
"fine",
"for",
"SImode",
")",
".",
"MEM",
"is",
"the",
"memory",
"location",
"and",
"VAL",
"the",
"value",
"to",
"play",
"with",
".",
"If",
"AFTER",
"is",
"true",
"then",
"store",
"the",
"value",
"MEM",
"holds",
"after",
"the",
"operation",
",",
"if",
"AFTER",
"is",
"false",
"then",
"store",
"the",
"value",
"MEM",
"holds",
"before",
"the",
"operation",
".",
"If",
"TARGET",
"is",
"zero",
"then",
"discard",
"that",
"value",
",",
"else",
"store",
"it",
"to",
"TARGET",
"."
] | [
"xtensa",
"1",
"1",
"1",
"1",
"1",
"1",
"1",
"1",
"1",
"1",
"1"
] | xtensa | xtensa_expand_atomic | xtensa | MPU | GCC | 8,682 | 471 | 1 | [] |
[
"<s>",
"static",
"rtx",
"frv_read_argument",
"(",
"tree",
"exp",
",",
"unsigned",
"int",
"index",
")",
"{",
"return",
"expand_normal",
"(",
"CALL_EXPR_ARG",
"(",
"exp",
",",
"index",
")",
")",
";",
"}",
"</s>"
] | [
"Read",
"a",
"value",
"from",
"the",
"head",
"of",
"the",
"tree",
"list",
"pointed",
"to",
"by",
"ARGLISTPTR",
".",
"Return",
"the",
"value",
"as",
"an",
"rtx",
"and",
"replace",
"*",
"ARGLISTPTR",
"with",
"the",
"tail",
"of",
"the",
"list",
"."
] | [
"frv"
] | frv | frv_read_argument | frv | VLIW | GCC | 8,683 | 24 | 1 | [] |
[
"<s>",
"void",
"CJGInstrInfo",
"::",
"copyPhysReg",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"I",
",",
"const",
"DebugLoc",
"&",
"DL",
",",
"unsigned",
"DestReg",
",",
"unsigned",
"SrcReg",
",",
"bool",
"KillSrc",
")",
"const",
"{",
"if",
"(",
"CJG",
"::",
"GPRegsRegClass",
".",
"contains",
"(",
"DestReg",
",",
"SrcReg",
")",
")",
"{",
"BuildMI",
"(",
"MBB",
",",
"I",
",",
"DL",
",",
"get",
"(",
"CJG",
"::",
"CPYrr",
")",
",",
"DestReg",
")",
".",
"addReg",
"(",
"SrcReg",
",",
"getKillRegState",
"(",
"KillSrc",
")",
")",
";",
"}",
"else",
"{",
"llvm_unreachable",
"(",
"\"Impossible reg-to-reg copy\"",
")",
";",
"}",
"}",
"</s>"
] | [
"}",
"Branch",
"Analysis",
"&",
"Modification"
] | [
"CJG",
"CJG",
"CJG::GPRegsRegClass",
"CJG::CPYrr",
"\"Impossible reg-to-reg copy\""
] | CJGInstrInfo | copyPhysReg | CJG | CPU | LLVM | 8,684 | 82 | 1 | [] |
[
"<s>",
"virtual",
"bool",
"mayNeedRelaxation",
"(",
"const",
"MCInst",
"&",
"Inst",
")",
"const",
"{",
"return",
"false",
";",
"}",
"</s>"
] | [
"Check",
"whether",
"the",
"given",
"instruction",
"may",
"need",
"relaxation",
"."
] | [
"R600"
] | AMDGPUAsmBackend16 | mayNeedRelaxation | R600 | GPU | LLVM | 8,685 | 15 | 1 | [] |
[
"<s>",
"bool",
"Dcpu16PassConfig",
"::",
"addPreEmitPass",
"(",
")",
"{",
"return",
"false",
";",
"}",
"</s>"
] | [
"This",
"pass",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"immediately",
"before",
"machine",
"code",
"is",
"emitted",
"."
] | [
"Dcpu16"
] | Dcpu16TargetMachine (2) | addPreEmitPass | Dcpu16 | CPU | LLVM | 8,686 | 11 | 1 | [] |
[
"<s>",
"void",
"AArch64FrameLowering",
"::",
"processFunctionBeforeFrameFinalized",
"(",
"MachineFunction",
"&",
"MF",
",",
"RegScavenger",
"*",
"RS",
")",
"const",
"{",
"MachineFrameInfo",
"&",
"MFI",
"=",
"MF",
".",
"getFrameInfo",
"(",
")",
";",
"assert",
"(",
"getStackGrowthDirection",
"(",
")",
"==",
"TargetFrameLowering",
"::",
"StackGrowsDown",
"&&",
"\"Upwards growing stack unsupported\"",
")",
";",
"int64_t",
"Offset",
"=",
"0",
";",
"for",
"(",
"int",
"I",
"=",
"MFI",
".",
"getObjectIndexBegin",
"(",
")",
";",
"I",
"!=",
"0",
";",
"++",
"I",
")",
"{",
"unsigned",
"StackID",
"=",
"MFI",
".",
"getStackID",
"(",
"I",
")",
";",
"if",
"(",
"StackID",
"==",
"TargetStackID",
"::",
"SVEVector",
")",
"{",
"int64_t",
"FixedOffset",
"=",
"-",
"MFI",
".",
"getObjectOffset",
"(",
"I",
")",
";",
"if",
"(",
"FixedOffset",
">",
"Offset",
")",
"Offset",
"=",
"FixedOffset",
";",
"}",
"}",
"unsigned",
"MaxAlign",
"=",
"getStackAlignment",
"(",
")",
";",
"uint64_t",
"SVEStackSize",
"=",
"alignTo",
"(",
"Offset",
",",
"MaxAlign",
")",
";",
"AArch64FunctionInfo",
"*",
"AFI",
"=",
"MF",
".",
"getInfo",
"<",
"AArch64FunctionInfo",
">",
"(",
")",
";",
"AFI",
"->",
"setStackSizeSVE",
"(",
"SVEStackSize",
")",
";",
"assert",
"(",
"MaxAlign",
"<=",
"16",
"&&",
"\"Cannot align scalable vectors more than 16 bytes\"",
")",
";",
"if",
"(",
"!",
"MF",
".",
"hasEHFunclets",
"(",
")",
")",
"return",
";",
"const",
"TargetInstrInfo",
"&",
"TII",
"=",
"*",
"MF",
".",
"getSubtarget",
"(",
")",
".",
"getInstrInfo",
"(",
")",
";",
"WinEHFuncInfo",
"&",
"EHInfo",
"=",
"*",
"MF",
".",
"getWinEHFuncInfo",
"(",
")",
";",
"MachineBasicBlock",
"&",
"MBB",
"=",
"MF",
".",
"front",
"(",
")",
";",
"auto",
"MBBI",
"=",
"MBB",
".",
"begin",
"(",
")",
";",
"while",
"(",
"MBBI",
"!=",
"MBB",
".",
"end",
"(",
")",
"&&",
"MBBI",
"->",
"getFlag",
"(",
"MachineInstr",
"::",
"FrameSetup",
")",
")",
"++",
"MBBI",
";",
"int",
"UnwindHelpFI",
"=",
"MFI",
".",
"CreateStackObject",
"(",
"8",
",",
"16",
",",
"false",
")",
";",
"EHInfo",
".",
"UnwindHelpFrameIdx",
"=",
"UnwindHelpFI",
";",
"DebugLoc",
"DL",
";",
"RS",
"->",
"enterBasicBlockEnd",
"(",
"MBB",
")",
";",
"RS",
"->",
"backward",
"(",
"std",
"::",
"prev",
"(",
"MBBI",
")",
")",
";",
"unsigned",
"DstReg",
"=",
"RS",
"->",
"FindUnusedReg",
"(",
"&",
"AArch64",
"::",
"GPR64commonRegClass",
")",
";",
"assert",
"(",
"DstReg",
"&&",
"\"There must be a free register after frame setup\"",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"MBBI",
",",
"DL",
",",
"TII",
".",
"get",
"(",
"AArch64",
"::",
"MOVi64imm",
")",
",",
"DstReg",
")",
".",
"addImm",
"(",
"-",
"2",
")",
";",
"BuildMI",
"(",
"MBB",
",",
"MBBI",
",",
"DL",
",",
"TII",
".",
"get",
"(",
"AArch64",
"::",
"STURXi",
")",
")",
".",
"addReg",
"(",
"DstReg",
",",
"getKillRegState",
"(",
"true",
")",
")",
".",
"addFrameIndex",
"(",
"UnwindHelpFI",
")",
".",
"addImm",
"(",
"0",
")",
";",
"}",
"</s>"
] | [
"processFunctionBeforeFrameFinalized",
"-",
"This",
"method",
"is",
"called",
"immediately",
"before",
"the",
"specified",
"function",
"'s",
"frame",
"layout",
"(",
"MF.getFrameInfo",
"(",
")",
")",
"is",
"finalized",
"."
] | [
"AArch64",
"AArch64",
"\"Upwards growing stack unsupported\"",
"0",
"0",
"AArch64",
"AArch64",
"16",
"\"Cannot align scalable vectors more than 16 bytes\"",
"8",
"16",
"AArch64::GPR64commonRegClass",
"\"There must be a free register after frame setup\"",
"AArch64::MOVi64imm",
"2",
"AArch64::STURXi",
"0"
] | AArch64FrameLowering30 | processFunctionBeforeFrameFinalized | AArch64 | CPU | LLVM | 8,687 | 356 | 1 | [] |
[
"<s>",
"DecodeStatus",
"ARMDisassembler",
"::",
"getInstruction",
"(",
"MCInst",
"&",
"MI",
",",
"uint64_t",
"&",
"Size",
",",
"ArrayRef",
"<",
"uint8_t",
">",
"Bytes",
",",
"uint64_t",
"Address",
",",
"raw_ostream",
"&",
"CS",
")",
"const",
"{",
"if",
"(",
"STI",
".",
"getFeatureBits",
"(",
")",
"[",
"ARM",
"::",
"ModeThumb",
"]",
")",
"return",
"getThumbInstruction",
"(",
"MI",
",",
"Size",
",",
"Bytes",
",",
"Address",
",",
"CS",
")",
";",
"return",
"getARMInstruction",
"(",
"MI",
",",
"Size",
",",
"Bytes",
",",
"Address",
",",
"CS",
")",
";",
"}",
"</s>"
] | [
"Returns",
"the",
"disassembly",
"of",
"a",
"single",
"instruction",
"."
] | [
"ARM",
"ARM",
"ARM::ModeThumb",
"ARM"
] | ARMDisassembler15 | getInstruction | ARM | CPU | LLVM | 8,688 | 70 | 1 | [] |
[
"<s>",
"static",
"void",
"rs6000_emit_madd",
"(",
"rtx",
"target",
",",
"rtx",
"m1",
",",
"rtx",
"m2",
",",
"rtx",
"a",
")",
"{",
"machine_mode",
"mode",
"=",
"GET_MODE",
"(",
"target",
")",
";",
"rtx",
"dst",
";",
"dst",
"=",
"expand_ternary_op",
"(",
"mode",
",",
"fma_optab",
",",
"m1",
",",
"m2",
",",
"a",
",",
"target",
",",
"0",
")",
";",
"gcc_assert",
"(",
"dst",
"!=",
"NULL",
")",
";",
"if",
"(",
"dst",
"!=",
"target",
")",
"emit_move_insn",
"(",
"target",
",",
"dst",
")",
";",
"}",
"</s>"
] | [
"Generate",
"an",
"FMA",
"instruction",
"."
] | [
"rs6000",
"0"
] | rs6000 | rs6000_emit_madd | rs6000 | CPU | GCC | 8,689 | 68 | 1 | [] |
[
"<s>",
"TargetLowering",
"::",
"ConstraintWeight",
"PPCTargetLowering",
"::",
"getSingleConstraintMatchWeight",
"(",
"AsmOperandInfo",
"&",
"info",
",",
"const",
"char",
"*",
"constraint",
")",
"const",
"{",
"ConstraintWeight",
"weight",
"=",
"CW_Invalid",
";",
"Value",
"*",
"CallOperandVal",
"=",
"info",
".",
"CallOperandVal",
";",
"if",
"(",
"CallOperandVal",
"==",
"NULL",
")",
"return",
"CW_Default",
";",
"Type",
"*",
"type",
"=",
"CallOperandVal",
"->",
"getType",
"(",
")",
";",
"if",
"(",
"StringRef",
"(",
"constraint",
")",
"==",
"\"wc\"",
"&&",
"type",
"->",
"isIntegerTy",
"(",
"1",
")",
")",
"return",
"CW_Register",
";",
"else",
"if",
"(",
"(",
"StringRef",
"(",
"constraint",
")",
"==",
"\"wa\"",
"||",
"StringRef",
"(",
"constraint",
")",
"==",
"\"wd\"",
"||",
"StringRef",
"(",
"constraint",
")",
"==",
"\"wf\"",
")",
"&&",
"type",
"->",
"isVectorTy",
"(",
")",
")",
"return",
"CW_Register",
";",
"else",
"if",
"(",
"StringRef",
"(",
"constraint",
")",
"==",
"\"ws\"",
"&&",
"type",
"->",
"isDoubleTy",
"(",
")",
")",
"return",
"CW_Register",
";",
"switch",
"(",
"*",
"constraint",
")",
"{",
"default",
":",
"weight",
"=",
"TargetLowering",
"::",
"getSingleConstraintMatchWeight",
"(",
"info",
",",
"constraint",
")",
";",
"break",
";",
"case",
"'b'",
":",
"if",
"(",
"type",
"->",
"isIntegerTy",
"(",
")",
")",
"weight",
"=",
"CW_Register",
";",
"break",
";",
"case",
"'f'",
":",
"if",
"(",
"type",
"->",
"isFloatTy",
"(",
")",
")",
"weight",
"=",
"CW_Register",
";",
"break",
";",
"case",
"'d'",
":",
"if",
"(",
"type",
"->",
"isDoubleTy",
"(",
")",
")",
"weight",
"=",
"CW_Register",
";",
"break",
";",
"case",
"'v'",
":",
"if",
"(",
"type",
"->",
"isVectorTy",
"(",
")",
")",
"weight",
"=",
"CW_Register",
";",
"break",
";",
"case",
"'y'",
":",
"weight",
"=",
"CW_Register",
";",
"break",
";",
"case",
"'Z'",
":",
"weight",
"=",
"CW_Memory",
";",
"break",
";",
"}",
"return",
"weight",
";",
"}",
"</s>"
] | [
"Examine",
"constraint",
"string",
"and",
"operand",
"type",
"and",
"determine",
"a",
"weight",
"value",
"."
] | [
"PowerPC",
"PPC",
"\"wc\"",
"1",
"\"wa\"",
"\"wd\"",
"\"wf\"",
"\"ws\""
] | PPCISelLowering61 | getSingleConstraintMatchWeight | PowerPC | CPU | LLVM | 8,690 | 235 | 1 | [] |
[
"<s>",
"bool",
"WebAssemblyTargetLowering",
"::",
"getTgtMemIntrinsic",
"(",
"IntrinsicInfo",
"&",
"Info",
",",
"const",
"CallInst",
"&",
"I",
",",
"MachineFunction",
"&",
"MF",
",",
"unsigned",
"Intrinsic",
")",
"const",
"{",
"switch",
"(",
"Intrinsic",
")",
"{",
"case",
"Intrinsic",
"::",
"wasm_atomic_notify",
":",
"Info",
".",
"opc",
"=",
"ISD",
"::",
"INTRINSIC_W_CHAIN",
";",
"Info",
".",
"memVT",
"=",
"MVT",
"::",
"i32",
";",
"Info",
".",
"ptrVal",
"=",
"I",
".",
"getArgOperand",
"(",
"0",
")",
";",
"Info",
".",
"offset",
"=",
"0",
";",
"Info",
".",
"align",
"=",
"Align",
"(",
"4",
")",
";",
"Info",
".",
"flags",
"=",
"MachineMemOperand",
"::",
"MOVolatile",
"|",
"MachineMemOperand",
"::",
"MOLoad",
";",
"return",
"true",
";",
"case",
"Intrinsic",
"::",
"wasm_atomic_wait_i32",
":",
"Info",
".",
"opc",
"=",
"ISD",
"::",
"INTRINSIC_W_CHAIN",
";",
"Info",
".",
"memVT",
"=",
"MVT",
"::",
"i32",
";",
"Info",
".",
"ptrVal",
"=",
"I",
".",
"getArgOperand",
"(",
"0",
")",
";",
"Info",
".",
"offset",
"=",
"0",
";",
"Info",
".",
"align",
"=",
"Align",
"(",
"4",
")",
";",
"Info",
".",
"flags",
"=",
"MachineMemOperand",
"::",
"MOVolatile",
"|",
"MachineMemOperand",
"::",
"MOLoad",
";",
"return",
"true",
";",
"case",
"Intrinsic",
"::",
"wasm_atomic_wait_i64",
":",
"Info",
".",
"opc",
"=",
"ISD",
"::",
"INTRINSIC_W_CHAIN",
";",
"Info",
".",
"memVT",
"=",
"MVT",
"::",
"i64",
";",
"Info",
".",
"ptrVal",
"=",
"I",
".",
"getArgOperand",
"(",
"0",
")",
";",
"Info",
".",
"offset",
"=",
"0",
";",
"Info",
".",
"align",
"=",
"Align",
"(",
"8",
")",
";",
"Info",
".",
"flags",
"=",
"MachineMemOperand",
"::",
"MOVolatile",
"|",
"MachineMemOperand",
"::",
"MOLoad",
";",
"return",
"true",
";",
"case",
"Intrinsic",
"::",
"wasm_load32_zero",
":",
"case",
"Intrinsic",
"::",
"wasm_load64_zero",
":",
"Info",
".",
"opc",
"=",
"ISD",
"::",
"INTRINSIC_W_CHAIN",
";",
"Info",
".",
"memVT",
"=",
"Intrinsic",
"==",
"Intrinsic",
"::",
"wasm_load32_zero",
"?",
"MVT",
"::",
"i32",
":",
"MVT",
"::",
"i64",
";",
"Info",
".",
"ptrVal",
"=",
"I",
".",
"getArgOperand",
"(",
"0",
")",
";",
"Info",
".",
"offset",
"=",
"0",
";",
"Info",
".",
"align",
"=",
"Info",
".",
"memVT",
"==",
"MVT",
"::",
"i32",
"?",
"Align",
"(",
"4",
")",
":",
"Align",
"(",
"8",
")",
";",
"Info",
".",
"flags",
"=",
"MachineMemOperand",
"::",
"MOLoad",
";",
"return",
"true",
";",
"default",
":",
"return",
"false",
";",
"}",
"}",
"</s>"
] | [
"Given",
"an",
"intrinsic",
",",
"checks",
"if",
"on",
"the",
"target",
"the",
"intrinsic",
"will",
"need",
"to",
"map",
"to",
"a",
"MemIntrinsicNode",
"(",
"touches",
"memory",
")",
"."
] | [
"WebAssembly",
"WebAssembly",
"Intrinsic::wasm_atomic_notify",
"ISD::INTRINSIC_W_CHAIN",
"MVT::i32",
"0",
"0",
"4",
"Intrinsic::wasm_atomic_wait_i32",
"ISD::INTRINSIC_W_CHAIN",
"MVT::i32",
"0",
"0",
"4",
"Intrinsic::wasm_atomic_wait_i64",
"ISD::INTRINSIC_W_CHAIN",
"MVT::i64",
"0",
"0",
"8",
"Intrinsic::wasm_load32_zero",
"Intrinsic::wasm_load64_zero",
"ISD::INTRINSIC_W_CHAIN",
"Intrinsic::wasm_load32_zero",
"MVT::i32",
"MVT::i64",
"0",
"0",
"MVT::i32",
"4",
"8"
] | WebAssemblyISelLowering33 | getTgtMemIntrinsic | WebAssembly | Virtual ISA | LLVM | 8,691 | 307 | 1 | [] |
[
"<s>",
"const",
"MCExpr",
"*",
"ARMElfTargetObjectFile",
"::",
"getTTypeGlobalReference",
"(",
"const",
"GlobalValue",
"*",
"GV",
",",
"unsigned",
"Encoding",
",",
"Mangler",
"&",
"Mang",
",",
"const",
"TargetMachine",
"&",
"TM",
",",
"MachineModuleInfo",
"*",
"MMI",
",",
"MCStreamer",
"&",
"Streamer",
")",
"const",
"{",
"assert",
"(",
"Encoding",
"==",
"DW_EH_PE_absptr",
"&&",
"\"Can handle absptr encoding only\"",
")",
";",
"return",
"MCSymbolRefExpr",
"::",
"Create",
"(",
"TM",
".",
"getSymbol",
"(",
"GV",
",",
"Mang",
")",
",",
"MCSymbolRefExpr",
"::",
"VK_ARM_TARGET2",
",",
"getContext",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"The",
"mach-o",
"version",
"of",
"this",
"method",
"defaults",
"to",
"returning",
"a",
"stub",
"reference",
"."
] | [
"ARM",
"ARM",
"\"Can handle absptr encoding only\"",
"ARM"
] | ARMTargetObjectFile16 | getTTypeGlobalReference | ARM | CPU | LLVM | 8,692 | 67 | 1 | [] |
[
"<s>",
"int",
"iq2000_check_split",
"(",
"rtx",
"address",
",",
"machine_mode",
"mode",
")",
"{",
"if",
"(",
"GET_MODE_SIZE",
"(",
"mode",
")",
">",
"(",
"unsigned",
")",
"UNITS_PER_WORD",
")",
"return",
"0",
";",
"if",
"(",
"(",
"GET_CODE",
"(",
"address",
")",
"==",
"SYMBOL_REF",
")",
"||",
"(",
"GET_CODE",
"(",
"address",
")",
"==",
"CONST",
"&&",
"GET_CODE",
"(",
"XEXP",
"(",
"XEXP",
"(",
"address",
",",
"0",
")",
",",
"0",
")",
")",
"==",
"SYMBOL_REF",
")",
"||",
"GET_CODE",
"(",
"address",
")",
"==",
"LABEL_REF",
")",
"return",
"1",
";",
"return",
"0",
";",
"}",
"</s>"
] | [
"Return",
"nonzero",
"if",
"we",
"split",
"the",
"address",
"into",
"high",
"and",
"low",
"parts",
"."
] | [
"iq2000",
"0",
"0",
"0",
"1",
"0"
] | iq2000 | iq2000_check_split | iq2000 | CPU | GCC | 8,693 | 76 | 1 | [] |
[
"<s>",
"void",
"R600MachineCFGStructurizer",
"::",
"removeSuccessor",
"(",
"MachineBasicBlock",
"*",
"MBB",
")",
"{",
"while",
"(",
"MBB",
"->",
"succ_size",
"(",
")",
")",
"MBB",
"->",
"removeSuccessor",
"(",
"*",
"MBB",
"->",
"succ_begin",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"Remove",
"specified",
"successor",
"from",
"the",
"successors",
"list",
"of",
"this",
"MachineBasicBlock",
"."
] | [
"AMDGPU",
"R600"
] | R600MachineCFGStructurizer | removeSuccessor | AMDGPU | GPU | LLVM | 8,694 | 31 | 1 | [] |
[
"<s>",
"static",
"unsigned",
"nvptx_process_pars",
"(",
"parallel",
"*",
"par",
")",
"{",
"if",
"(",
"nvptx_optimize",
")",
"nvptx_optimize_inner",
"(",
"par",
")",
";",
"unsigned",
"inner_mask",
"=",
"par",
"->",
"mask",
";",
"if",
"(",
"par",
"->",
"inner",
")",
"{",
"par",
"->",
"inner_mask",
"=",
"nvptx_process_pars",
"(",
"par",
"->",
"inner",
")",
";",
"inner_mask",
"|=",
"par",
"->",
"inner_mask",
";",
"}",
"if",
"(",
"par",
"->",
"mask",
"&",
"GOMP_DIM_MASK",
"(",
"GOMP_DIM_MAX",
")",
")",
";",
"else",
"if",
"(",
"par",
"->",
"mask",
"&",
"GOMP_DIM_MASK",
"(",
"GOMP_DIM_WORKER",
")",
")",
"{",
"nvptx_wpropagate",
"(",
"false",
",",
"par",
"->",
"forked_block",
",",
"par",
"->",
"forked_insn",
")",
";",
"nvptx_wpropagate",
"(",
"true",
",",
"par",
"->",
"forked_block",
",",
"par",
"->",
"fork_insn",
")",
";",
"emit_insn_after",
"(",
"nvptx_wsync",
"(",
"false",
")",
",",
"par",
"->",
"forked_insn",
")",
";",
"emit_insn_before",
"(",
"nvptx_wsync",
"(",
"true",
")",
",",
"par",
"->",
"joining_insn",
")",
";",
"}",
"else",
"if",
"(",
"par",
"->",
"mask",
"&",
"GOMP_DIM_MASK",
"(",
"GOMP_DIM_VECTOR",
")",
")",
"nvptx_vpropagate",
"(",
"par",
"->",
"forked_block",
",",
"par",
"->",
"forked_insn",
")",
";",
"if",
"(",
"par",
"->",
"next",
")",
"inner_mask",
"|=",
"nvptx_process_pars",
"(",
"par",
"->",
"next",
")",
";",
"return",
"inner_mask",
";",
"}",
"</s>"
] | [
"Process",
"the",
"parallel",
"PAR",
"and",
"all",
"its",
"contained",
"parallels",
".",
"We",
"do",
"everything",
"but",
"the",
"neutering",
".",
"Return",
"mask",
"of",
"partitioned",
"modes",
"used",
"within",
"this",
"parallel",
"."
] | [
"nvptx"
] | nvptx3 | nvptx_process_pars | nvptx | GPU | GCC | 8,695 | 168 | 1 | [] |
[
"<s>",
"bool",
"ARMBaseRegisterInfo",
"::",
"shouldCoalesce",
"(",
"MachineInstr",
"*",
"MI",
",",
"const",
"TargetRegisterClass",
"*",
"SrcRC",
",",
"unsigned",
"SubReg",
",",
"const",
"TargetRegisterClass",
"*",
"DstRC",
",",
"unsigned",
"DstSubReg",
",",
"const",
"TargetRegisterClass",
"*",
"NewRC",
",",
"LiveIntervals",
"&",
"LIS",
")",
"const",
"{",
"auto",
"MBB",
"=",
"MI",
"->",
"getParent",
"(",
")",
";",
"auto",
"MF",
"=",
"MBB",
"->",
"getParent",
"(",
")",
";",
"const",
"MachineRegisterInfo",
"&",
"MRI",
"=",
"MF",
"->",
"getRegInfo",
"(",
")",
";",
"if",
"(",
"!",
"DstSubReg",
")",
"return",
"true",
";",
"if",
"(",
"getRegSizeInBits",
"(",
"*",
"NewRC",
")",
"<",
"256",
"&&",
"getRegSizeInBits",
"(",
"*",
"DstRC",
")",
"<",
"256",
"&&",
"getRegSizeInBits",
"(",
"*",
"SrcRC",
")",
"<",
"256",
")",
"return",
"true",
";",
"auto",
"NewRCWeight",
"=",
"MRI",
".",
"getTargetRegisterInfo",
"(",
")",
"->",
"getRegClassWeight",
"(",
"NewRC",
")",
";",
"auto",
"SrcRCWeight",
"=",
"MRI",
".",
"getTargetRegisterInfo",
"(",
")",
"->",
"getRegClassWeight",
"(",
"SrcRC",
")",
";",
"auto",
"DstRCWeight",
"=",
"MRI",
".",
"getTargetRegisterInfo",
"(",
")",
"->",
"getRegClassWeight",
"(",
"DstRC",
")",
";",
"if",
"(",
"SrcRCWeight",
".",
"RegWeight",
">",
"NewRCWeight",
".",
"RegWeight",
")",
"return",
"true",
";",
"if",
"(",
"DstRCWeight",
".",
"RegWeight",
">",
"NewRCWeight",
".",
"RegWeight",
")",
"return",
"true",
";",
"auto",
"AFI",
"=",
"MF",
"->",
"getInfo",
"<",
"ARMFunctionInfo",
">",
"(",
")",
";",
"auto",
"It",
"=",
"AFI",
"->",
"getCoalescedWeight",
"(",
"MBB",
")",
";",
"DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"\\tARM::shouldCoalesce - Coalesced Weight: \"",
"<<",
"It",
"->",
"second",
"<<",
"\"\\n\"",
")",
";",
"DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"\\tARM::shouldCoalesce - Reg Weight: \"",
"<<",
"NewRCWeight",
".",
"RegWeight",
"<<",
"\"\\n\"",
")",
";",
"unsigned",
"SizeMultiplier",
"=",
"MBB",
"->",
"size",
"(",
")",
"/",
"100",
";",
"SizeMultiplier",
"=",
"SizeMultiplier",
"?",
"SizeMultiplier",
":",
"1",
";",
"if",
"(",
"It",
"->",
"second",
"<",
"NewRCWeight",
".",
"WeightLimit",
"*",
"SizeMultiplier",
")",
"{",
"It",
"->",
"second",
"+=",
"NewRCWeight",
".",
"RegWeight",
";",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"Subtarget",
"Hooks",
"."
] | [
"ARM",
"ARM",
"256",
"256",
"256",
"ARM",
"\"\\tARM::shouldCoalesce - Coalesced Weight: \"",
"\"\\n\"",
"\"\\tARM::shouldCoalesce - Reg Weight: \"",
"\"\\n\"",
"100",
"1"
] | ARMBaseRegisterInfo23 | shouldCoalesce | ARM | CPU | LLVM | 8,696 | 270 | 1 | [] |
[
"<s>",
"static",
"int",
"fp_regs_to_save",
"(",
"void",
")",
"{",
"int",
"i",
",",
"n",
"=",
"0",
";",
"if",
"(",
"!",
"TARGET_AM33_2",
")",
"return",
"0",
";",
"for",
"(",
"i",
"=",
"FIRST_FP_REGNUM",
";",
"i",
"<=",
"LAST_FP_REGNUM",
";",
"++",
"i",
")",
"if",
"(",
"df_regs_ever_live_p",
"(",
"i",
")",
"&&",
"!",
"call_used_regs",
"[",
"i",
"]",
")",
"++",
"n",
";",
"return",
"n",
";",
"}",
"</s>"
] | [
"Count",
"the",
"number",
"of",
"FP",
"registers",
"that",
"have",
"to",
"be",
"saved",
"."
] | [
"mn10300",
"0",
"0"
] | mn10300 | fp_regs_to_save | mn10300 | MPU | GCC | 8,697 | 55 | 1 | [] |
[
"<s>",
"unsigned",
"SparcMCCodeEmitter",
"::",
"getBranchTargetOpValue",
"(",
"const",
"MCInst",
"&",
"MI",
",",
"unsigned",
"OpNo",
",",
"SmallVectorImpl",
"<",
"MCFixup",
">",
"&",
"Fixups",
",",
"const",
"MCSubtargetInfo",
"&",
"STI",
")",
"const",
"{",
"const",
"MCOperand",
"&",
"MO",
"=",
"MI",
".",
"getOperand",
"(",
"OpNo",
")",
";",
"if",
"(",
"MO",
".",
"isReg",
"(",
")",
"||",
"MO",
".",
"isImm",
"(",
")",
")",
"return",
"getMachineOpValue",
"(",
"MI",
",",
"MO",
",",
"Fixups",
",",
"STI",
")",
";",
"Fixups",
".",
"push_back",
"(",
"MCFixup",
"::",
"Create",
"(",
"0",
",",
"MO",
".",
"getExpr",
"(",
")",
",",
"(",
"MCFixupKind",
")",
"Sparc",
"::",
"fixup_sparc_br22",
")",
")",
";",
"return",
"0",
";",
"}",
"</s>"
] | [
"getBranchTargetOpValue",
"-",
"Return",
"binary",
"encoding",
"of",
"the",
"branch",
"target",
"operand",
"."
] | [
"Sparc",
"Sparc",
"0",
"Sparc::fixup_sparc_br22",
"0"
] | SparcMCCodeEmitter14 | getBranchTargetOpValue | Sparc | CPU | LLVM | 8,698 | 94 | 1 | [] |
[
"<s>",
"Status",
"intersect",
"(",
"const",
"Status",
"&",
"S",
")",
"const",
"{",
"unsigned",
"NewMask",
"=",
"(",
"Mask",
"&",
"S",
".",
"Mask",
")",
"&",
"(",
"Mode",
"^",
"~",
"S",
".",
"Mode",
")",
";",
"unsigned",
"NewMode",
"=",
"(",
"Mode",
"&",
"NewMask",
")",
";",
"return",
"Status",
"(",
"NewMask",
",",
"NewMode",
")",
";",
"}",
"</s>"
] | [
"Intersect",
"this",
"set",
"with",
"a",
"temporary",
"other",
"set",
"in",
"place",
"."
] | [
"AMDGPU"
] | SIModeRegister | intersect | AMDGPU | GPU | LLVM | 8,699 | 48 | 1 | [] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.