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>",
"static",
"void",
"aarch64_start_file",
"(",
"void",
")",
"{",
"struct",
"cl_target_option",
"*",
"default_options",
"=",
"TREE_TARGET_OPTION",
"(",
"target_option_default_node",
")",
";",
"const",
"struct",
"processor",
"*",
"default_arch",
"=",
"aarch64_get_arch",
"(",
"default_options",
"->",
"x_explicit_arch",
")",
";",
"uint64_t",
"default_isa_flags",
"=",
"default_options",
"->",
"x_aarch64_isa_flags",
";",
"std",
"::",
"string",
"extension",
"=",
"aarch64_get_extension_string_for_isa_flags",
"(",
"default_isa_flags",
",",
"default_arch",
"->",
"flags",
")",
";",
"aarch64_last_printed_arch_string",
"=",
"default_arch",
"->",
"name",
"+",
"extension",
";",
"aarch64_last_printed_tune_string",
"=",
"\"\"",
";",
"asm_fprintf",
"(",
"asm_out_file",
",",
"\"\\t.arch %s\\n\"",
",",
"aarch64_last_printed_arch_string",
".",
"c_str",
"(",
")",
")",
";",
"default_file_start",
"(",
")",
";",
"}",
"</s>"
] | [
"Implements",
"TARGET_ASM_FILE_START",
".",
"Output",
"the",
"assembly",
"header",
"."
] | [
"aarch64",
"\"\"",
"\"\\t.arch %s\\n\""
] | aarch64 | aarch64_start_file | aarch64 | CPU | GCC | 2,000 | 81 | 1 | [] |
[
"<s>",
"bool",
"HexagonHardwareLoops",
"::",
"isDead",
"(",
"const",
"MachineInstr",
"*",
"MI",
",",
"SmallVector",
"<",
"MachineInstr",
"*",
",",
"1",
">",
"&",
"DeadPhis",
")",
"const",
"{",
"for",
"(",
"unsigned",
"i",
"=",
"0",
",",
"e",
"=",
"MI",
"->",
"getNumOperands",
"(",
")",
";",
"i",
"!=",
"e",
";",
"++",
"i",
")",
"{",
"const",
"MachineOperand",
"&",
"MO",
"=",
"MI",
"->",
"getOperand",
"(",
"i",
")",
";",
"if",
"(",
"!",
"MO",
".",
"isReg",
"(",
")",
"||",
"!",
"MO",
".",
"isDef",
"(",
")",
")",
"continue",
";",
"unsigned",
"Reg",
"=",
"MO",
".",
"getReg",
"(",
")",
";",
"if",
"(",
"MRI",
"->",
"use_nodbg_empty",
"(",
"Reg",
")",
")",
"continue",
";",
"typedef",
"MachineRegisterInfo",
"::",
"use_nodbg_iterator",
"use_nodbg_iterator",
";",
"use_nodbg_iterator",
"I",
"=",
"MRI",
"->",
"use_nodbg_begin",
"(",
"Reg",
")",
";",
"use_nodbg_iterator",
"End",
"=",
"MRI",
"->",
"use_nodbg_end",
"(",
")",
";",
"if",
"(",
"llvm",
"::",
"next",
"(",
"I",
")",
"!=",
"End",
"||",
"!",
"I",
".",
"getOperand",
"(",
")",
".",
"getParent",
"(",
")",
"->",
"isPHI",
"(",
")",
")",
"return",
"false",
";",
"MachineInstr",
"*",
"OnePhi",
"=",
"I",
".",
"getOperand",
"(",
")",
".",
"getParent",
"(",
")",
";",
"for",
"(",
"unsigned",
"j",
"=",
"0",
",",
"f",
"=",
"OnePhi",
"->",
"getNumOperands",
"(",
")",
";",
"j",
"!=",
"f",
";",
"++",
"j",
")",
"{",
"const",
"MachineOperand",
"&",
"OPO",
"=",
"OnePhi",
"->",
"getOperand",
"(",
"j",
")",
";",
"if",
"(",
"!",
"OPO",
".",
"isReg",
"(",
")",
"||",
"!",
"OPO",
".",
"isDef",
"(",
")",
")",
"continue",
";",
"unsigned",
"OPReg",
"=",
"OPO",
".",
"getReg",
"(",
")",
";",
"use_nodbg_iterator",
"nextJ",
";",
"for",
"(",
"use_nodbg_iterator",
"J",
"=",
"MRI",
"->",
"use_nodbg_begin",
"(",
"OPReg",
")",
";",
"J",
"!=",
"End",
";",
"J",
"=",
"nextJ",
")",
"{",
"nextJ",
"=",
"llvm",
"::",
"next",
"(",
"J",
")",
";",
"MachineOperand",
"&",
"Use",
"=",
"J",
".",
"getOperand",
"(",
")",
";",
"MachineInstr",
"*",
"UseMI",
"=",
"Use",
".",
"getParent",
"(",
")",
";",
"if",
"(",
"MI",
"!=",
"UseMI",
")",
"return",
"false",
";",
"}",
"}",
"DeadPhis",
".",
"push_back",
"(",
"OnePhi",
")",
";",
"}",
"return",
"true",
";",
"}",
"</s>"
] | [
"isDead",
"-",
"Returns",
"true",
"if",
"this",
"is",
"a",
"dead",
"def",
"kill",
"slot",
"."
] | [
"Hexagon",
"Hexagon",
"1",
"0",
"0"
] | HexagonHardwareLoops56 | isDead | Hexagon | DSP | LLVM | 2,001 | 301 | 1 | [] |
[
"<s>",
"rtx",
"m68k_legitimize_sibcall_address",
"(",
"rtx",
"x",
")",
"{",
"gcc_assert",
"(",
"MEM_P",
"(",
"x",
")",
")",
";",
"if",
"(",
"sibcall_operand",
"(",
"XEXP",
"(",
"x",
",",
"0",
")",
",",
"VOIDmode",
")",
")",
"return",
"x",
";",
"emit_move_insn",
"(",
"gen_rtx_REG",
"(",
"Pmode",
",",
"STATIC_CHAIN_REGNUM",
")",
",",
"XEXP",
"(",
"x",
",",
"0",
")",
")",
";",
"return",
"replace_equiv_address",
"(",
"x",
",",
"gen_rtx_REG",
"(",
"Pmode",
",",
"STATIC_CHAIN_REGNUM",
")",
")",
";",
"}",
"</s>"
] | [
"Likewise",
"for",
"sibling",
"calls",
"."
] | [
"m68k",
"0",
"0"
] | m68k | m68k_legitimize_sibcall_address | m68k | MPU | GCC | 2,002 | 63 | 1 | [] |
[
"<s>",
"unsigned",
"X86TargetLowering",
"::",
"getNumRegistersForCallingConv",
"(",
"LLVMContext",
"&",
"Context",
",",
"CallingConv",
"::",
"ID",
"CC",
",",
"EVT",
"VT",
")",
"const",
"{",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"v32i1",
"&&",
"Subtarget",
".",
"hasAVX512",
"(",
")",
"&&",
"!",
"Subtarget",
".",
"hasBWI",
"(",
")",
")",
"return",
"1",
";",
"if",
"(",
"(",
"VT",
"==",
"MVT",
"::",
"v32i16",
"||",
"VT",
"==",
"MVT",
"::",
"v64i8",
")",
"&&",
"Subtarget",
".",
"hasAVX512",
"(",
")",
"&&",
"!",
"Subtarget",
".",
"hasBWI",
"(",
")",
"&&",
"!",
"EnableOldKNLABI",
")",
"return",
"1",
";",
"return",
"TargetLowering",
"::",
"getNumRegistersForCallingConv",
"(",
"Context",
",",
"CC",
",",
"VT",
")",
";",
"}",
"</s>"
] | [
"Certain",
"targets",
"require",
"unusual",
"breakdowns",
"of",
"certain",
"types",
"."
] | [
"X86",
"X86",
"MVT::v32i1",
"1",
"MVT::v32i16",
"MVT::v64i8",
"1"
] | X86ISelLowering151 | getNumRegistersForCallingConv | X86 | CPU | LLVM | 2,003 | 91 | 1 | [] |
[
"<s>",
"bool",
"HexagonEvaluator",
"::",
"evaluate",
"(",
"const",
"MachineInstr",
"&",
"BI",
",",
"const",
"CellMapType",
"&",
"Inputs",
",",
"BranchTargetList",
"&",
"Targets",
",",
"bool",
"&",
"FallsThru",
")",
"const",
"{",
"unsigned",
"Opc",
"=",
"BI",
".",
"getOpcode",
"(",
")",
";",
"bool",
"SimpleBranch",
"=",
"false",
";",
"bool",
"Negated",
"=",
"false",
";",
"switch",
"(",
"Opc",
")",
"{",
"case",
"Hexagon",
"::",
"J2_jumpf",
":",
"case",
"Hexagon",
"::",
"J2_jumpfnew",
":",
"case",
"Hexagon",
"::",
"J2_jumpfnewpt",
":",
"Negated",
"=",
"true",
";",
"case",
"Hexagon",
"::",
"J2_jumpt",
":",
"case",
"Hexagon",
"::",
"J2_jumptnew",
":",
"case",
"Hexagon",
"::",
"J2_jumptnewpt",
":",
"SimpleBranch",
"=",
"true",
";",
"break",
";",
"case",
"Hexagon",
"::",
"J2_jump",
":",
"Targets",
".",
"insert",
"(",
"BI",
".",
"getOperand",
"(",
"0",
")",
".",
"getMBB",
"(",
")",
")",
";",
"FallsThru",
"=",
"false",
";",
"return",
"true",
";",
"default",
":",
"return",
"false",
";",
"}",
"if",
"(",
"!",
"SimpleBranch",
")",
"return",
"false",
";",
"RegisterRef",
"PR",
"=",
"BI",
".",
"getOperand",
"(",
"0",
")",
";",
"RegisterCell",
"PC",
"=",
"getCell",
"(",
"PR",
",",
"Inputs",
")",
";",
"const",
"BT",
"::",
"BitValue",
"&",
"Test",
"=",
"PC",
"[",
"0",
"]",
";",
"if",
"(",
"!",
"Test",
".",
"is",
"(",
"0",
")",
"&&",
"!",
"Test",
".",
"is",
"(",
"1",
")",
")",
"return",
"false",
";",
"if",
"(",
"!",
"Test",
".",
"is",
"(",
"!",
"Negated",
")",
")",
"{",
"FallsThru",
"=",
"true",
";",
"return",
"true",
";",
"}",
"Targets",
".",
"insert",
"(",
"BI",
".",
"getOperand",
"(",
"1",
")",
".",
"getMBB",
"(",
")",
")",
";",
"FallsThru",
"=",
"false",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"evaluate",
"-",
"Evaluate",
"Expr",
"and",
"append",
"the",
"resulting",
"set",
"to",
"Elts",
"."
] | [
"Hexagon",
"Hexagon",
"Hexagon::J2_jumpf",
"Hexagon::J2_jumpfnew",
"Hexagon::J2_jumpfnewpt",
"Hexagon::J2_jumpt",
"Hexagon::J2_jumptnew",
"Hexagon::J2_jumptnewpt",
"Hexagon::J2_jump",
"0",
"0",
"0",
"0",
"1",
"1"
] | HexagonBitTracker | evaluate | Hexagon | DSP | LLVM | 2,004 | 228 | 1 | [] |
[
"<s>",
"bool",
"isLegalMaskedStore",
"(",
"Type",
"*",
"DataTy",
",",
"MaybeAlign",
"Alignment",
")",
"{",
"return",
"isLegalMaskedLoad",
"(",
"DataTy",
",",
"Alignment",
")",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"the",
"target",
"supports",
"masked",
"store",
"."
] | [
"ARM"
] | ARMTargetTransformInfo1 | isLegalMaskedStore | ARM | CPU | LLVM | 2,005 | 20 | 1 | [] |
[
"<s>",
"void",
"X86PassConfig",
"::",
"addIRPasses",
"(",
")",
"{",
"addPass",
"(",
"createAtomicExpandPass",
"(",
")",
")",
";",
"addPass",
"(",
"createX86LowerAMXTypePass",
"(",
")",
")",
";",
"TargetPassConfig",
"::",
"addIRPasses",
"(",
")",
";",
"if",
"(",
"TM",
"->",
"getOptLevel",
"(",
")",
"!=",
"CodeGenOpt",
"::",
"None",
")",
"{",
"addPass",
"(",
"createInterleavedAccessPass",
"(",
")",
")",
";",
"addPass",
"(",
"createX86PartialReductionPass",
"(",
")",
")",
";",
"}",
"addPass",
"(",
"createIndirectBrExpandPass",
"(",
")",
")",
";",
"const",
"Triple",
"&",
"TT",
"=",
"TM",
"->",
"getTargetTriple",
"(",
")",
";",
"if",
"(",
"TT",
".",
"isOSWindows",
"(",
")",
")",
"{",
"if",
"(",
"TT",
".",
"getArch",
"(",
")",
"==",
"Triple",
"::",
"x86_64",
")",
"{",
"addPass",
"(",
"createCFGuardDispatchPass",
"(",
")",
")",
";",
"}",
"else",
"{",
"addPass",
"(",
"createCFGuardCheckPass",
"(",
")",
")",
";",
"}",
"}",
"}",
"</s>"
] | [
"Add",
"common",
"target",
"configurable",
"passes",
"that",
"perform",
"LLVM",
"IR",
"to",
"IR",
"transforms",
"following",
"machine",
"independent",
"optimization",
"."
] | [
"X86",
"X86",
"X86",
"X86"
] | X86TargetMachine97 | addIRPasses | X86 | CPU | LLVM | 2,006 | 115 | 1 | [] |
[
"<s>",
"uint64_t",
"getNullPointerValue",
"(",
"unsigned",
"AddrSpace",
")",
"const",
"{",
"switch",
"(",
"AddrSpace",
")",
"{",
"case",
"AMDGPUAS",
"::",
"PRIVATE_ADDRESS",
":",
"case",
"AMDGPUAS",
"::",
"LOCAL_ADDRESS",
":",
"case",
"AMDGPUAS",
"::",
"REGION_ADDRESS",
":",
"return",
"-",
"1",
";",
"default",
":",
"return",
"0",
";",
"}",
"}",
"</s>"
] | [
"Get",
"the",
"integer",
"value",
"of",
"a",
"null",
"pointer",
"in",
"the",
"given",
"address",
"space",
"."
] | [
"AMDGPU",
"AMDGPU",
"AMDGPU",
"AMDGPU",
"1",
"0"
] | AMDGPUTargetMachine26 | getNullPointerValue | AMDGPU | GPU | LLVM | 2,007 | 39 | 1 | [] |
[
"<s>",
"void",
"ARCompactRegisterInfo",
"::",
"eliminateCallFramePseudoInstr",
"(",
"MachineFunction",
"&",
"MF",
",",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"::",
"iterator",
"I",
")",
"const",
"{",
"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",
")",
"."
] | [
"ARCompact",
"ARC"
] | ARCompactRegisterInfo | eliminateCallFramePseudoInstr | ARCompact | MPU | LLVM | 2,008 | 28 | 1 | [] |
[
"<s>",
"bool",
"R600InstrInfo",
"::",
"fitsConstReadLimitations",
"(",
"const",
"std",
"::",
"vector",
"<",
"MachineInstr",
"*",
">",
"&",
"MIs",
")",
"const",
"{",
"std",
"::",
"vector",
"<",
"unsigned",
">",
"Consts",
";",
"SmallSet",
"<",
"int64_t",
",",
"4",
">",
"Literals",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
",",
"n",
"=",
"MIs",
".",
"size",
"(",
")",
";",
"i",
"<",
"n",
";",
"i",
"++",
")",
"{",
"MachineInstr",
"*",
"MI",
"=",
"MIs",
"[",
"i",
"]",
";",
"if",
"(",
"!",
"isALUInstr",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
")",
"continue",
";",
"ArrayRef",
"<",
"std",
"::",
"pair",
"<",
"MachineOperand",
"*",
",",
"int64_t",
">>",
"Srcs",
"=",
"getSrcs",
"(",
"MI",
")",
";",
"for",
"(",
"unsigned",
"j",
"=",
"0",
",",
"e",
"=",
"Srcs",
".",
"size",
"(",
")",
";",
"j",
"<",
"e",
";",
"j",
"++",
")",
"{",
"std",
"::",
"pair",
"<",
"MachineOperand",
"*",
",",
"unsigned",
">",
"Src",
"=",
"Srcs",
"[",
"j",
"]",
";",
"if",
"(",
"Src",
".",
"first",
"->",
"getReg",
"(",
")",
"==",
"AMDGPU",
"::",
"ALU_LITERAL_X",
")",
"Literals",
".",
"insert",
"(",
"Src",
".",
"second",
")",
";",
"if",
"(",
"Literals",
".",
"size",
"(",
")",
">",
"4",
")",
"return",
"false",
";",
"if",
"(",
"Src",
".",
"first",
"->",
"getReg",
"(",
")",
"==",
"AMDGPU",
"::",
"ALU_CONST",
")",
"Consts",
".",
"push_back",
"(",
"Src",
".",
"second",
")",
";",
"if",
"(",
"AMDGPU",
"::",
"R600_KC0RegClass",
".",
"contains",
"(",
"Src",
".",
"first",
"->",
"getReg",
"(",
")",
")",
"||",
"AMDGPU",
"::",
"R600_KC1RegClass",
".",
"contains",
"(",
"Src",
".",
"first",
"->",
"getReg",
"(",
")",
")",
")",
"{",
"unsigned",
"Index",
"=",
"RI",
".",
"getEncodingValue",
"(",
"Src",
".",
"first",
"->",
"getReg",
"(",
")",
")",
"&",
"0xff",
";",
"unsigned",
"Chan",
"=",
"RI",
".",
"getHWRegChan",
"(",
"Src",
".",
"first",
"->",
"getReg",
"(",
")",
")",
";",
"Consts",
".",
"push_back",
"(",
"(",
"Index",
"<<",
"2",
")",
"|",
"Chan",
")",
";",
"}",
"}",
"}",
"return",
"fitsConstReadLimitations",
"(",
"Consts",
")",
";",
"}",
"</s>"
] | [
"Same",
"but",
"using",
"const",
"index",
"set",
"instead",
"of",
"MI",
"set",
"."
] | [
"AMDGPU",
"R600",
"4",
"0",
"0",
"AMDGPU::ALU_LITERAL_X",
"4",
"AMDGPU::ALU_CONST",
"AMDGPU::R600_KC0RegClass",
"AMDGPU::R600_KC1RegClass",
"0xff",
"2"
] | R600InstrInfo (2) | fitsConstReadLimitations | AMDGPU | GPU | LLVM | 2,009 | 286 | 1 | [] |
[
"<s>",
"static",
"void",
"arm_initialize_isa",
"(",
"sbitmap",
"isa",
",",
"const",
"enum",
"isa_feature",
"*",
"isa_bits",
")",
"{",
"bitmap_clear",
"(",
"isa",
")",
";",
"while",
"(",
"*",
"isa_bits",
"!=",
"isa_nobit",
")",
"bitmap_set_bit",
"(",
"isa",
",",
"*",
"(",
"isa_bits",
"++",
")",
")",
";",
"}",
"</s>"
] | [
"Convert",
"a",
"static",
"initializer",
"array",
"of",
"feature",
"bits",
"to",
"sbitmap",
"representation",
"."
] | [
"arm"
] | arm6 | arm_initialize_isa | arm | CPU | GCC | 2,010 | 38 | 1 | [] |
[
"<s>",
"SDValue",
"SPUTargetLowering",
"::",
"LowerReturn",
"(",
"SDValue",
"Chain",
",",
"CallingConv",
"::",
"ID",
"CallConv",
",",
"bool",
"isVarArg",
",",
"const",
"SmallVectorImpl",
"<",
"ISD",
"::",
"OutputArg",
">",
"&",
"Outs",
",",
"const",
"SmallVectorImpl",
"<",
"SDValue",
">",
"&",
"OutVals",
",",
"DebugLoc",
"dl",
",",
"SelectionDAG",
"&",
"DAG",
")",
"const",
"{",
"SmallVector",
"<",
"CCValAssign",
",",
"16",
">",
"RVLocs",
";",
"CCState",
"CCInfo",
"(",
"CallConv",
",",
"isVarArg",
",",
"getTargetMachine",
"(",
")",
",",
"RVLocs",
",",
"*",
"DAG",
".",
"getContext",
"(",
")",
")",
";",
"CCInfo",
".",
"AnalyzeReturn",
"(",
"Outs",
",",
"RetCC_SPU",
")",
";",
"if",
"(",
"DAG",
".",
"getMachineFunction",
"(",
")",
".",
"getRegInfo",
"(",
")",
".",
"liveout_empty",
"(",
")",
")",
"{",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"!=",
"RVLocs",
".",
"size",
"(",
")",
";",
"++",
"i",
")",
"DAG",
".",
"getMachineFunction",
"(",
")",
".",
"getRegInfo",
"(",
")",
".",
"addLiveOut",
"(",
"RVLocs",
"[",
"i",
"]",
".",
"getLocReg",
"(",
")",
")",
";",
"}",
"SDValue",
"Flag",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"!=",
"RVLocs",
".",
"size",
"(",
")",
";",
"++",
"i",
")",
"{",
"CCValAssign",
"&",
"VA",
"=",
"RVLocs",
"[",
"i",
"]",
";",
"assert",
"(",
"VA",
".",
"isRegLoc",
"(",
")",
"&&",
"\"Can only return in registers!\"",
")",
";",
"Chain",
"=",
"DAG",
".",
"getCopyToReg",
"(",
"Chain",
",",
"dl",
",",
"VA",
".",
"getLocReg",
"(",
")",
",",
"OutVals",
"[",
"i",
"]",
",",
"Flag",
")",
";",
"Flag",
"=",
"Chain",
".",
"getValue",
"(",
"1",
")",
";",
"}",
"if",
"(",
"Flag",
".",
"getNode",
"(",
")",
")",
"return",
"DAG",
".",
"getNode",
"(",
"SPUISD",
"::",
"RET_FLAG",
",",
"dl",
",",
"MVT",
"::",
"Other",
",",
"Chain",
",",
"Flag",
")",
";",
"else",
"return",
"DAG",
".",
"getNode",
"(",
"SPUISD",
"::",
"RET_FLAG",
",",
"dl",
",",
"MVT",
"::",
"Other",
",",
"Chain",
")",
";",
"}",
"</s>"
] | [
"This",
"hook",
"must",
"be",
"implemented",
"to",
"lower",
"outgoing",
"return",
"values",
",",
"described",
"by",
"the",
"Outs",
"array",
",",
"into",
"the",
"specified",
"DAG",
"."
] | [
"CellSPU",
"SPU",
"ISD::OutputArg",
"16",
"SPU",
"0",
"0",
"\"Can only return in registers!\"",
"1",
"SPUISD::RET_FLAG",
"MVT::Other",
"SPUISD::RET_FLAG",
"MVT::Other"
] | SPUISelLowering3 | LowerReturn | CellSPU | MPU | LLVM | 2,011 | 263 | 1 | [] |
[
"<s>",
"unsigned",
"X86TargetLowering",
"::",
"ComputeNumSignBitsForTargetNode",
"(",
"SDValue",
"Op",
",",
"const",
"SelectionDAG",
"&",
",",
"unsigned",
"Depth",
")",
"const",
"{",
"if",
"(",
"Op",
".",
"getOpcode",
"(",
")",
"==",
"X86ISD",
"::",
"SETCC_CARRY",
")",
"return",
"Op",
".",
"getValueType",
"(",
")",
".",
"getScalarType",
"(",
")",
".",
"getSizeInBits",
"(",
")",
";",
"return",
"1",
";",
"}",
"</s>"
] | [
"Determine",
"the",
"number",
"of",
"bits",
"in",
"the",
"operation",
"that",
"are",
"sign",
"bits",
"."
] | [
"X86",
"X86",
"X86ISD::SETCC_CARRY",
"1"
] | X86ISelLowering (2) | ComputeNumSignBitsForTargetNode | X86 | CPU | LLVM | 2,012 | 48 | 1 | [] |
[
"<s>",
"bool",
"ParseDirective",
"(",
"AsmToken",
"DirectiveID",
")",
"override",
"{",
"assert",
"(",
"DirectiveID",
".",
"getKind",
"(",
")",
"==",
"AsmToken",
"::",
"Identifier",
")",
";",
"auto",
"&",
"Out",
"=",
"getStreamer",
"(",
")",
";",
"auto",
"&",
"TOut",
"=",
"reinterpret_cast",
"<",
"WebAssemblyTargetStreamer",
"&",
">",
"(",
"*",
"Out",
".",
"getTargetStreamer",
"(",
")",
")",
";",
"if",
"(",
"DirectiveID",
".",
"getString",
"(",
")",
"==",
"\".type\"",
")",
"{",
"if",
"(",
"!",
"(",
"IsNext",
"(",
"AsmToken",
"::",
"Identifier",
")",
"&&",
"IsNext",
"(",
"AsmToken",
"::",
"Comma",
")",
"&&",
"IsNext",
"(",
"AsmToken",
"::",
"At",
")",
"&&",
"Lexer",
".",
"is",
"(",
"AsmToken",
"::",
"Identifier",
")",
")",
")",
"return",
"Error",
"(",
"\"Expected label,@type declaration, got: \"",
",",
"Lexer",
".",
"getTok",
"(",
")",
")",
";",
"if",
"(",
"Lexer",
".",
"getTok",
"(",
")",
".",
"getString",
"(",
")",
"==",
"\"function\"",
")",
"{",
"LocalTypes",
".",
"clear",
"(",
")",
";",
"StackTypes",
".",
"clear",
"(",
")",
";",
"}",
"Parser",
".",
"Lex",
"(",
")",
";",
"}",
"else",
"if",
"(",
"DirectiveID",
".",
"getString",
"(",
")",
"==",
"\".param\"",
"||",
"DirectiveID",
".",
"getString",
"(",
")",
"==",
"\".local\"",
")",
"{",
"std",
"::",
"vector",
"<",
"MVT",
">",
"Params",
";",
"std",
"::",
"vector",
"<",
"MVT",
">",
"Locals",
";",
"while",
"(",
"Lexer",
".",
"is",
"(",
"AsmToken",
"::",
"Identifier",
")",
")",
"{",
"auto",
"RegType",
"=",
"ParseRegType",
"(",
"Lexer",
".",
"getTok",
"(",
")",
".",
"getString",
"(",
")",
")",
";",
"if",
"(",
"RegType",
"==",
"MVT",
"::",
"INVALID_SIMPLE_VALUE_TYPE",
")",
"return",
"true",
";",
"LocalTypes",
".",
"push_back",
"(",
"RegType",
")",
";",
"if",
"(",
"DirectiveID",
".",
"getString",
"(",
")",
"==",
"\".param\"",
")",
"{",
"Params",
".",
"push_back",
"(",
"RegType",
")",
";",
"}",
"else",
"{",
"Locals",
".",
"push_back",
"(",
"RegType",
")",
";",
"}",
"Parser",
".",
"Lex",
"(",
")",
";",
"if",
"(",
"!",
"IsNext",
"(",
"AsmToken",
"::",
"Comma",
")",
")",
"break",
";",
"}",
"assert",
"(",
"LastLabel",
")",
";",
"TOut",
".",
"emitParam",
"(",
"LastLabel",
",",
"Params",
")",
";",
"TOut",
".",
"emitLocal",
"(",
"Locals",
")",
";",
"}",
"else",
"{",
"while",
"(",
"Lexer",
".",
"isNot",
"(",
"AsmToken",
"::",
"EndOfStatement",
")",
")",
"Parser",
".",
"Lex",
"(",
")",
";",
"}",
"return",
"Expect",
"(",
"AsmToken",
"::",
"EndOfStatement",
",",
"\"EOL\"",
")",
";",
"}",
"</s>"
] | [
"ParseDirective",
"-",
"Parse",
"a",
"target",
"specific",
"assembler",
"directive",
"This",
"method",
"is",
"deprecated",
",",
"use",
"'parseDirective",
"'",
"instead",
"."
] | [
"WebAssembly",
"WebAssembly",
"\".type\"",
"\"Expected label,@type declaration, got: \"",
"\"function\"",
"\".param\"",
"\".local\"",
"MVT::INVALID_SIMPLE_VALUE_TYPE",
"\".param\"",
"\"EOL\""
] | WebAssemblyAsmParser27 | ParseDirective | WebAssembly | Virtual ISA | LLVM | 2,013 | 323 | 1 | [] |
[
"<s>",
"bool",
"SITargetLowering",
"::",
"isNoopAddrSpaceCast",
"(",
"unsigned",
"SrcAS",
",",
"unsigned",
"DestAS",
")",
"const",
"{",
"return",
"isFlatGlobalAddrSpace",
"(",
"SrcAS",
")",
"&&",
"isFlatGlobalAddrSpace",
"(",
"DestAS",
")",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"a",
"cast",
"between",
"SrcAS",
"and",
"DestAS",
"is",
"a",
"noop",
"."
] | [
"AMDGPU",
"SI"
] | SIISelLowering (2)3 | isNoopAddrSpaceCast | AMDGPU | GPU | LLVM | 2,014 | 25 | 1 | [] |
[
"<s>",
"bool",
"Cpu0FrameLowering",
"::",
"hasFP",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"const",
"MachineFrameInfo",
"*",
"MFI",
"=",
"&",
"MF",
".",
"getFrameInfo",
"(",
")",
";",
"const",
"TargetRegisterInfo",
"*",
"TRI",
"=",
"STI",
".",
"getRegisterInfo",
"(",
")",
";",
"return",
"MF",
".",
"getTarget",
"(",
")",
".",
"Options",
".",
"DisableFramePointerElim",
"(",
"MF",
")",
"||",
"MFI",
"->",
"hasVarSizedObjects",
"(",
")",
"||",
"MFI",
"->",
"isFrameAddressTaken",
"(",
")",
"||",
"TRI",
"->",
"needsStackRealignment",
"(",
"MF",
")",
";",
"}",
"</s>"
] | [
"hasFP",
"-",
"Return",
"true",
"if",
"the",
"specified",
"function",
"should",
"have",
"a",
"dedicated",
"frame",
"pointer",
"register",
"."
] | [
"Cpu0",
"Cpu0"
] | Cpu0FrameLowering | hasFP | Cpu0 | CPU | LLVM | 2,015 | 69 | 1 | [] |
[
"<s>",
"rtx",
"mips_rewrite_small_data",
"(",
"rtx",
"op",
")",
"{",
"op",
"=",
"copy_insn",
"(",
"op",
")",
";",
"for_each_rtx",
"(",
"&",
"op",
",",
"mips_rewrite_small_data_1",
",",
"0",
")",
";",
"return",
"op",
";",
"}",
"</s>"
] | [
"If",
"possible",
",",
"rewrite",
"OP",
"so",
"that",
"it",
"refers",
"to",
"small",
"data",
"using",
"explicit",
"relocations",
"."
] | [
"mips",
"0"
] | mips3 | mips_rewrite_small_data | mips | CPU | GCC | 2,016 | 28 | 1 | [] |
[
"<s>",
"MachineInstrBuilder",
"buildLoad",
"(",
"const",
"DstOp",
"&",
"Res",
",",
"Register",
"Addr",
",",
"uint64_t",
"Size",
",",
"unsigned",
"Alignment",
",",
"MachinePointerInfo",
"&",
"MPO",
")",
"{",
"auto",
"MMO",
"=",
"MIRBuilder",
".",
"getMF",
"(",
")",
".",
"getMachineMemOperand",
"(",
"MPO",
",",
"MachineMemOperand",
"::",
"MOLoad",
",",
"Size",
",",
"Alignment",
")",
";",
"return",
"MIRBuilder",
".",
"buildLoad",
"(",
"Res",
",",
"Addr",
",",
"*",
"MMO",
")",
";",
"}",
"</s>"
] | [
"Build",
"and",
"insert",
"a",
"G_LOAD",
"instruction",
",",
"while",
"constructing",
"the",
"MachineMemOperand",
"."
] | [
"ARM"
] | ARMCallLowering22 | buildLoad | ARM | CPU | LLVM | 2,017 | 58 | 1 | [] |
[
"<s>",
"int",
"ia64_direct_return",
"(",
"void",
")",
"{",
"if",
"(",
"reload_completed",
"&&",
"!",
"frame_pointer_needed",
")",
"{",
"ia64_compute_frame_size",
"(",
"get_frame_size",
"(",
")",
")",
";",
"return",
"(",
"current_frame_info",
".",
"total_size",
"==",
"0",
"&&",
"current_frame_info",
".",
"n_spilled",
"==",
"0",
"&&",
"current_frame_info",
".",
"reg_save_b0",
"==",
"0",
"&&",
"current_frame_info",
".",
"reg_save_pr",
"==",
"0",
"&&",
"current_frame_info",
".",
"reg_save_ar_pfs",
"==",
"0",
"&&",
"current_frame_info",
".",
"reg_save_ar_unat",
"==",
"0",
"&&",
"current_frame_info",
".",
"reg_save_ar_lc",
"==",
"0",
")",
";",
"}",
"return",
"0",
";",
"}",
"</s>"
] | [
"Return",
"1",
"if",
"br.ret",
"can",
"do",
"all",
"the",
"work",
"required",
"to",
"return",
"from",
"a",
"function",
"."
] | [
"ia64",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0"
] | ia643 | ia64_direct_return | ia64 | CPU | GCC | 2,018 | 71 | 1 | [] |
[
"<s>",
"static",
"bool",
"crx_fixed_condition_code_regs",
"(",
"unsigned",
"int",
"*",
"p1",
",",
"unsigned",
"int",
"*",
"p2",
")",
"{",
"*",
"p1",
"=",
"CC_REGNUM",
";",
"*",
"p2",
"=",
"INVALID_REGNUM",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Return",
"the",
"fixed",
"registers",
"used",
"for",
"condition",
"codes",
"."
] | [
"crx"
] | crx | crx_fixed_condition_code_regs | crx | CPU | GCC | 2,019 | 29 | 1 | [] |
[
"<s>",
"tree",
"rs6000_fold_builtin",
"(",
"tree",
"fndecl",
"ATTRIBUTE_UNUSED",
",",
"int",
"n_args",
"ATTRIBUTE_UNUSED",
",",
"tree",
"*",
"args",
"ATTRIBUTE_UNUSED",
",",
"bool",
"ignore",
"ATTRIBUTE_UNUSED",
")",
"{",
"return",
"SUBTARGET_FOLD_BUILTIN",
"(",
"fndecl",
",",
"n_args",
",",
"args",
",",
"ignore",
")",
";",
"return",
"NULL_TREE",
";",
"}",
"</s>"
] | [
"Target",
"hook",
"for",
"early",
"folding",
"of",
"built-ins",
",",
"shamelessly",
"stolen",
"from",
"ia64.cc",
"."
] | [
"rs6000"
] | rs6000-builtin | rs6000_fold_builtin | rs6000 | CPU | GCC | 2,020 | 37 | 1 | [] |
[
"<s>",
"SUnit",
"*",
"R600SchedStrategy",
"::",
"pickNode",
"(",
"bool",
"&",
"IsTopNode",
")",
"{",
"SUnit",
"*",
"SU",
"=",
"nullptr",
";",
"NextInstKind",
"=",
"IDOther",
";",
"IsTopNode",
"=",
"false",
";",
"bool",
"AllowSwitchToAlu",
"=",
"(",
"CurEmitted",
">=",
"InstKindLimit",
"[",
"CurInstKind",
"]",
")",
"||",
"(",
"Available",
"[",
"CurInstKind",
"]",
".",
"empty",
"(",
")",
")",
";",
"bool",
"AllowSwitchFromAlu",
"=",
"(",
"CurEmitted",
">=",
"InstKindLimit",
"[",
"CurInstKind",
"]",
")",
"&&",
"(",
"!",
"Available",
"[",
"IDFetch",
"]",
".",
"empty",
"(",
")",
"||",
"!",
"Available",
"[",
"IDOther",
"]",
".",
"empty",
"(",
")",
")",
";",
"if",
"(",
"CurInstKind",
"==",
"IDAlu",
"&&",
"!",
"Available",
"[",
"IDFetch",
"]",
".",
"empty",
"(",
")",
")",
"{",
"float",
"ALUFetchRationEstimate",
"=",
"(",
"AluInstCount",
"+",
"AvailablesAluCount",
"(",
")",
"+",
"Pending",
"[",
"IDAlu",
"]",
".",
"size",
"(",
")",
")",
"/",
"(",
"FetchInstCount",
"+",
"Available",
"[",
"IDFetch",
"]",
".",
"size",
"(",
")",
")",
";",
"if",
"(",
"ALUFetchRationEstimate",
"==",
"0",
")",
"{",
"AllowSwitchFromAlu",
"=",
"true",
";",
"}",
"else",
"{",
"unsigned",
"NeededWF",
"=",
"62.5f",
"/",
"ALUFetchRationEstimate",
";",
"DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"NeededWF",
"<<",
"\" approx. Wavefronts Required\\n\"",
")",
";",
"unsigned",
"NearRegisterRequirement",
"=",
"2",
"*",
"Available",
"[",
"IDFetch",
"]",
".",
"size",
"(",
")",
";",
"if",
"(",
"NeededWF",
">",
"getWFCountLimitedByGPR",
"(",
"NearRegisterRequirement",
")",
")",
"AllowSwitchFromAlu",
"=",
"true",
";",
"}",
"}",
"if",
"(",
"!",
"SU",
"&&",
"(",
"(",
"AllowSwitchToAlu",
"&&",
"CurInstKind",
"!=",
"IDAlu",
")",
"||",
"(",
"!",
"AllowSwitchFromAlu",
"&&",
"CurInstKind",
"==",
"IDAlu",
")",
")",
")",
"{",
"SU",
"=",
"pickAlu",
"(",
")",
";",
"if",
"(",
"!",
"SU",
"&&",
"!",
"PhysicalRegCopy",
".",
"empty",
"(",
")",
")",
"{",
"SU",
"=",
"PhysicalRegCopy",
".",
"front",
"(",
")",
";",
"PhysicalRegCopy",
".",
"erase",
"(",
"PhysicalRegCopy",
".",
"begin",
"(",
")",
")",
";",
"}",
"if",
"(",
"SU",
")",
"{",
"if",
"(",
"CurEmitted",
">=",
"InstKindLimit",
"[",
"IDAlu",
"]",
")",
"CurEmitted",
"=",
"0",
";",
"NextInstKind",
"=",
"IDAlu",
";",
"}",
"}",
"if",
"(",
"!",
"SU",
")",
"{",
"SU",
"=",
"pickOther",
"(",
"IDFetch",
")",
";",
"if",
"(",
"SU",
")",
"NextInstKind",
"=",
"IDFetch",
";",
"}",
"if",
"(",
"!",
"SU",
")",
"{",
"SU",
"=",
"pickOther",
"(",
"IDOther",
")",
";",
"if",
"(",
"SU",
")",
"NextInstKind",
"=",
"IDOther",
";",
"}",
"DEBUG",
"(",
"if",
"(",
"SU",
")",
"{",
"dbgs",
"(",
")",
"<<",
"\" ** Pick node **\\n\"",
";",
"SU",
"->",
"dump",
"(",
"DAG",
")",
";",
"}",
"else",
"{",
"dbgs",
"(",
")",
"<<",
"\"NO NODE \\n\"",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"<",
"DAG",
"->",
"SUnits",
".",
"size",
"(",
")",
";",
"i",
"++",
")",
"{",
"const",
"SUnit",
"&",
"S",
"=",
"DAG",
"->",
"SUnits",
"[",
"i",
"]",
";",
"if",
"(",
"!",
"S",
".",
"isScheduled",
")",
"S",
".",
"dump",
"(",
"DAG",
")",
";",
"}",
"}",
"</s>"
] | [
"Pick",
"the",
"next",
"node",
"to",
"schedule",
",",
"or",
"return",
"NULL",
"."
] | [
"R600",
"0",
"62.5f",
"\" approx. Wavefronts Required\\n\"",
"2",
"0",
"\" ** Pick node **\\n\"",
"\"NO NODE \\n\"",
"0"
] | R600MachineScheduler12 | pickNode | R600 | GPU | LLVM | 2,021 | 403 | 1 | [] |
[
"<s>",
"static",
"void",
"mips_end_ll_sc_sync_block",
"(",
"void",
")",
"{",
"if",
"(",
"!",
"ISA_HAS_LL_SC",
")",
"output_asm_insn",
"(",
"\".set\\tpop\"",
",",
"0",
")",
";",
"}",
"</s>"
] | [
"End",
"a",
"block",
"started",
"by",
"mips_start_ll_sc_sync_block",
"."
] | [
"mips",
"\".set\\tpop\"",
"0"
] | mips | mips_end_ll_sc_sync_block | mips | CPU | GCC | 2,022 | 20 | 1 | [] |
[
"<s>",
"static",
"bool",
"aarch64_handle_attr_arch",
"(",
"const",
"char",
"*",
"str",
",",
"const",
"char",
"*",
"pragma_or_attr",
")",
"{",
"const",
"struct",
"processor",
"*",
"tmp_arch",
"=",
"NULL",
";",
"enum",
"aarch64_parse_opt_result",
"parse_res",
"=",
"aarch64_parse_arch",
"(",
"str",
",",
"&",
"tmp_arch",
",",
"&",
"aarch64_isa_flags",
")",
";",
"if",
"(",
"parse_res",
"==",
"AARCH64_PARSE_OK",
")",
"{",
"gcc_assert",
"(",
"tmp_arch",
")",
";",
"selected_arch",
"=",
"tmp_arch",
";",
"explicit_arch",
"=",
"selected_arch",
"->",
"arch",
";",
"return",
"true",
";",
"}",
"switch",
"(",
"parse_res",
")",
"{",
"case",
"AARCH64_PARSE_MISSING_ARG",
":",
"error",
"(",
"\"missing architecture name in 'arch' target %s\"",
",",
"pragma_or_attr",
")",
";",
"break",
";",
"case",
"AARCH64_PARSE_INVALID_ARG",
":",
"error",
"(",
"\"unknown value %qs for 'arch' target %s\"",
",",
"str",
",",
"pragma_or_attr",
")",
";",
"break",
";",
"case",
"AARCH64_PARSE_INVALID_FEATURE",
":",
"error",
"(",
"\"invalid feature modifier %qs for 'arch' target %s\"",
",",
"str",
",",
"pragma_or_attr",
")",
";",
"break",
";",
"default",
":",
"gcc_unreachable",
"(",
")",
";",
"}",
"return",
"false",
";",
"}",
"</s>"
] | [
"Handle",
"the",
"ARCH_STR",
"argument",
"to",
"the",
"arch=",
"target",
"attribute",
".",
"PRAGMA_OR_ATTR",
"is",
"used",
"in",
"potential",
"error",
"messages",
"."
] | [
"aarch64",
"\"missing architecture name in 'arch' target %s\"",
"\"unknown value %qs for 'arch' target %s\"",
"\"invalid feature modifier %qs for 'arch' target %s\""
] | aarch643 | aarch64_handle_attr_arch | aarch64 | CPU | GCC | 2,023 | 120 | 1 | [] |
[
"<s>",
"void",
"HexagonEarlyIfConversion",
"::",
"removeBlock",
"(",
"MachineBasicBlock",
"*",
"B",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"Removing block \"",
"<<",
"PrintMB",
"(",
"B",
")",
"<<",
"\"\\n\"",
")",
";",
"MachineDomTreeNode",
"*",
"N",
"=",
"MDT",
"->",
"getNode",
"(",
"B",
")",
";",
"MachineDomTreeNode",
"*",
"IDN",
"=",
"N",
"->",
"getIDom",
"(",
")",
";",
"if",
"(",
"IDN",
")",
"{",
"MachineBasicBlock",
"*",
"IDB",
"=",
"IDN",
"->",
"getBlock",
"(",
")",
";",
"using",
"GTN",
"=",
"GraphTraits",
"<",
"MachineDomTreeNode",
"*",
">",
";",
"using",
"DTNodeVectType",
"=",
"SmallVector",
"<",
"MachineDomTreeNode",
"*",
",",
"4",
">",
";",
"DTNodeVectType",
"Cn",
"(",
"GTN",
"::",
"child_begin",
"(",
"N",
")",
",",
"GTN",
"::",
"child_end",
"(",
"N",
")",
")",
";",
"for",
"(",
"auto",
"&",
"I",
":",
"Cn",
")",
"{",
"MachineBasicBlock",
"*",
"SB",
"=",
"I",
"->",
"getBlock",
"(",
")",
";",
"MDT",
"->",
"changeImmediateDominator",
"(",
"SB",
",",
"IDB",
")",
";",
"}",
"}",
"while",
"(",
"!",
"B",
"->",
"succ_empty",
"(",
")",
")",
"B",
"->",
"removeSuccessor",
"(",
"B",
"->",
"succ_begin",
"(",
")",
")",
";",
"for",
"(",
"MachineBasicBlock",
"*",
"Pred",
":",
"B",
"->",
"predecessors",
"(",
")",
")",
"Pred",
"->",
"removeSuccessor",
"(",
"B",
",",
"true",
")",
";",
"Deleted",
".",
"insert",
"(",
"B",
")",
";",
"MDT",
"->",
"eraseNode",
"(",
"B",
")",
";",
"MFN",
"->",
"erase",
"(",
"B",
"->",
"getIterator",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"This",
"method",
"completely",
"removes",
"BB",
"from",
"all",
"data",
"structures",
",",
"including",
"all",
"of",
"the",
"Loop",
"objects",
"it",
"is",
"nested",
"in",
"and",
"our",
"mapping",
"from",
"MachineBasicBlocks",
"to",
"loops",
"."
] | [
"Hexagon",
"Hexagon",
"\"Removing block \"",
"\"\\n\"",
"4"
] | HexagonEarlyIfConv10 | removeBlock | Hexagon | DSP | LLVM | 2,024 | 197 | 1 | [] |
[
"<s>",
"bool",
"fixupNeedsRelaxation",
"(",
"const",
"MCFixup",
"&",
"Fixup",
",",
"uint64_t",
"Value",
",",
"const",
"MCRelaxableFragment",
"*",
"DF",
",",
"const",
"MCAsmLayout",
"&",
"Layout",
")",
"const",
"override",
"{",
"llvm_unreachable",
"(",
"\"Handled by fixupNeedsRelaxationAdvanced\"",
")",
";",
"}",
"</s>"
] | [
"Simple",
"predicate",
"for",
"targets",
"where",
"!",
"Resolved",
"implies",
"requiring",
"relaxation",
"."
] | [
"Hexagon",
"\"Handled by fixupNeedsRelaxationAdvanced\""
] | HexagonAsmBackend (2)1 | fixupNeedsRelaxation | Hexagon | DSP | LLVM | 2,025 | 30 | 1 | [] |
[
"<s>",
"Register",
"PPCTargetLowering",
"::",
"getRegisterByName",
"(",
"const",
"char",
"*",
"RegName",
",",
"EVT",
"VT",
",",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"bool",
"isPPC64",
"=",
"Subtarget",
".",
"isPPC64",
"(",
")",
";",
"bool",
"IsDarwinABI",
"=",
"Subtarget",
".",
"isDarwinABI",
"(",
")",
";",
"if",
"(",
"(",
"isPPC64",
"&&",
"VT",
"!=",
"MVT",
"::",
"i64",
"&&",
"VT",
"!=",
"MVT",
"::",
"i32",
")",
"||",
"(",
"!",
"isPPC64",
"&&",
"VT",
"!=",
"MVT",
"::",
"i32",
")",
")",
"report_fatal_error",
"(",
"\"Invalid register global variable type\"",
")",
";",
"bool",
"is64Bit",
"=",
"isPPC64",
"&&",
"VT",
"==",
"MVT",
"::",
"i64",
";",
"Register",
"Reg",
"=",
"StringSwitch",
"<",
"Register",
">",
"(",
"RegName",
")",
".",
"Case",
"(",
"\"r1\"",
",",
"is64Bit",
"?",
"PPC",
"::",
"X1",
":",
"PPC",
"::",
"R1",
")",
".",
"Case",
"(",
"\"r2\"",
",",
"(",
"IsDarwinABI",
"||",
"isPPC64",
")",
"?",
"Register",
"(",
")",
":",
"PPC",
"::",
"R2",
")",
".",
"Case",
"(",
"\"r13\"",
",",
"(",
"!",
"isPPC64",
"&&",
"IsDarwinABI",
")",
"?",
"Register",
"(",
")",
":",
"(",
"is64Bit",
"?",
"PPC",
"::",
"X13",
":",
"PPC",
"::",
"R13",
")",
")",
".",
"Default",
"(",
"Register",
"(",
")",
")",
";",
"if",
"(",
"Reg",
")",
"return",
"Reg",
";",
"report_fatal_error",
"(",
"\"Invalid register name global variable\"",
")",
";",
"}",
"</s>"
] | [
"Return",
"the",
"register",
"ID",
"of",
"the",
"name",
"passed",
"in",
"."
] | [
"PowerPC",
"PPC",
"PPC",
"PPC",
"PPC",
"MVT::i64",
"MVT::i32",
"PPC",
"MVT::i32",
"\"Invalid register global variable type\"",
"PPC",
"MVT::i64",
"\"r1\"",
"PPC::X1",
"PPC::R1",
"\"r2\"",
"PPC",
"PPC::R2",
"\"r13\"",
"PPC",
"PPC::X13",
"PPC::R13",
"\"Invalid register name global variable\""
] | PPCISelLowering103 | getRegisterByName | PowerPC | CPU | LLVM | 2,026 | 176 | 1 | [] |
[
"<s>",
"unsigned",
"MSP430MCCodeEmitter",
"::",
"getMachineOpValue",
"(",
"const",
"MCInst",
"&",
"MI",
",",
"const",
"MCOperand",
"&",
"MO",
",",
"SmallVectorImpl",
"<",
"MCFixup",
">",
"&",
"Fixups",
",",
"const",
"MCSubtargetInfo",
"&",
"STI",
")",
"const",
"{",
"if",
"(",
"MO",
".",
"isReg",
"(",
")",
")",
"return",
"Ctx",
".",
"getRegisterInfo",
"(",
")",
"->",
"getEncodingValue",
"(",
"MO",
".",
"getReg",
"(",
")",
")",
";",
"if",
"(",
"MO",
".",
"isImm",
"(",
")",
")",
"{",
"Offset",
"+=",
"2",
";",
"return",
"MO",
".",
"getImm",
"(",
")",
";",
"}",
"assert",
"(",
"MO",
".",
"isExpr",
"(",
")",
"&&",
"\"Expected expr operand\"",
")",
";",
"Fixups",
".",
"push_back",
"(",
"MCFixup",
"::",
"create",
"(",
"Offset",
",",
"MO",
".",
"getExpr",
"(",
")",
",",
"static_cast",
"<",
"MCFixupKind",
">",
"(",
"MSP430",
"::",
"fixup_16_byte",
")",
",",
"MI",
".",
"getLoc",
"(",
")",
")",
")",
";",
"Offset",
"+=",
"2",
";",
"return",
"0",
";",
"}",
"</s>"
] | [
"getMachineOpValue",
"-",
"Return",
"binary",
"encoding",
"of",
"operand",
"."
] | [
"MSP430",
"MSP430",
"2",
"\"Expected expr operand\"",
"MSP430::fixup_16_byte",
"2",
"0"
] | MSP430MCCodeEmitter | getMachineOpValue | MSP430 | MPU | LLVM | 2,027 | 127 | 1 | [] |
[
"<s>",
"void",
"rs6000_sibcall_aix",
"(",
"rtx",
"value",
",",
"rtx",
"func_desc",
",",
"rtx",
"flag",
",",
"rtx",
"cookie",
")",
"{",
"rtx",
"call",
"[",
"2",
"]",
";",
"rtx",
"insn",
";",
"gcc_assert",
"(",
"INTVAL",
"(",
"cookie",
")",
"==",
"0",
")",
";",
"call",
"[",
"0",
"]",
"=",
"gen_rtx_CALL",
"(",
"VOIDmode",
",",
"gen_rtx_MEM",
"(",
"SImode",
",",
"func_desc",
")",
",",
"flag",
")",
";",
"if",
"(",
"value",
"!=",
"NULL_RTX",
")",
"call",
"[",
"0",
"]",
"=",
"gen_rtx_SET",
"(",
"value",
",",
"call",
"[",
"0",
"]",
")",
";",
"call",
"[",
"1",
"]",
"=",
"simple_return_rtx",
";",
"insn",
"=",
"gen_rtx_PARALLEL",
"(",
"VOIDmode",
",",
"gen_rtvec_v",
"(",
"2",
",",
"call",
")",
")",
";",
"insn",
"=",
"emit_call_insn",
"(",
"insn",
")",
";",
"use_reg",
"(",
"&",
"CALL_INSN_FUNCTION_USAGE",
"(",
"insn",
")",
",",
"gen_rtx_REG",
"(",
"Pmode",
",",
"TOC_REGNUM",
")",
")",
";",
"}",
"</s>"
] | [
"Expand",
"code",
"to",
"perform",
"a",
"sibling",
"call",
"under",
"the",
"AIX",
"or",
"ELFv2",
"ABI",
"."
] | [
"powerpcspe",
"2",
"0",
"0",
"0",
"0",
"1",
"2"
] | powerpcspe | rs6000_sibcall_aix | powerpcspe | CPU | GCC | 2,028 | 120 | 1 | [] |
[
"<s>",
"ScheduleHazardRecognizer",
"*",
"PPCInstrInfo",
"::",
"CreateTargetPostRAHazardRecognizer",
"(",
"const",
"InstrItineraryData",
"*",
"II",
",",
"const",
"ScheduleDAG",
"*",
"DAG",
")",
"const",
"{",
"unsigned",
"Directive",
"=",
"DAG",
"->",
"TM",
".",
"getSubtarget",
"<",
"PPCSubtarget",
">",
"(",
")",
".",
"getDarwinDirective",
"(",
")",
";",
"if",
"(",
"Directive",
"==",
"PPC",
"::",
"DIR_PWR7",
"||",
"Directive",
"==",
"PPC",
"::",
"DIR_PWR8",
")",
"return",
"new",
"PPCDispatchGroupSBHazardRecognizer",
"(",
"II",
",",
"DAG",
")",
";",
"if",
"(",
"Directive",
"!=",
"PPC",
"::",
"DIR_440",
"&&",
"Directive",
"!=",
"PPC",
"::",
"DIR_A2",
"&&",
"Directive",
"!=",
"PPC",
"::",
"DIR_E500mc",
"&&",
"Directive",
"!=",
"PPC",
"::",
"DIR_E5500",
")",
"{",
"assert",
"(",
"DAG",
"->",
"TII",
"&&",
"\"No InstrInfo?\"",
")",
";",
"return",
"new",
"PPCHazardRecognizer970",
"(",
"*",
"DAG",
")",
";",
"}",
"return",
"new",
"ScoreboardHazardRecognizer",
"(",
"II",
",",
"DAG",
")",
";",
"}",
"</s>"
] | [
"Allocate",
"and",
"return",
"a",
"hazard",
"recognizer",
"to",
"use",
"for",
"by",
"non-scheduling",
"passes",
"."
] | [
"PowerPC",
"PPC",
"PPC",
"PPC::DIR_PWR7",
"PPC::DIR_PWR8",
"PPC",
"PPC::DIR_440",
"PPC::DIR_A2",
"PPC::DIR_E500mc",
"PPC::DIR_E5500",
"\"No InstrInfo?\"",
"PPC"
] | PPCInstrInfo1 | CreateTargetPostRAHazardRecognizer | PowerPC | CPU | LLVM | 2,029 | 114 | 1 | [] |
[
"<s>",
"static",
"void",
"alpha_override_options_after_change",
"(",
"void",
")",
"{",
"if",
"(",
"optimize",
">",
"0",
")",
"{",
"if",
"(",
"flag_align_loops",
"&&",
"!",
"str_align_loops",
")",
"str_align_loops",
"=",
"\"16\"",
";",
"if",
"(",
"flag_align_jumps",
"&&",
"!",
"str_align_jumps",
")",
"str_align_jumps",
"=",
"\"16\"",
";",
"}",
"if",
"(",
"flag_align_functions",
"&&",
"!",
"str_align_functions",
")",
"str_align_functions",
"=",
"\"16\"",
";",
"}",
"</s>"
] | [
"Implement",
"targetm.override_options_after_change",
"."
] | [
"alpha",
"0",
"\"16\"",
"\"16\"",
"\"16\""
] | alpha | alpha_override_options_after_change | alpha | MPU | GCC | 2,030 | 49 | 1 | [] |
[
"<s>",
"unsigned",
"F2003fInstrInfo",
"::",
"insertBranch",
"(",
"MachineBasicBlock",
"&",
"MBB",
",",
"MachineBasicBlock",
"*",
"TBB",
",",
"MachineBasicBlock",
"*",
"FBB",
",",
"ArrayRef",
"<",
"MachineOperand",
">",
"Cond",
",",
"const",
"DebugLoc",
"&",
"DL",
",",
"int",
"*",
"BytesAdded",
")",
"const",
"{",
"assert",
"(",
"TBB",
"&&",
"\"insertBranch must not be told to insert a fallthrough\"",
")",
";",
"assert",
"(",
"(",
"Cond",
".",
"empty",
"(",
")",
"||",
"(",
"getMalkrzFromFiMalkrz",
"(",
"Cond",
"[",
"0",
"]",
".",
"getImm",
"(",
")",
")",
"==",
"F2003f",
"::",
"MALKRZx",
"&&",
"get",
"(",
"Cond",
"[",
"0",
"]",
".",
"getImm",
"(",
")",
")",
".",
"getNumOperands",
"(",
")",
"==",
"Cond",
".",
"size",
"(",
")",
")",
")",
"&&",
"\"Invalid 2003f branch condition!\"",
")",
";",
"assert",
"(",
"!",
"BytesAdded",
"&&",
"\"code size not handled\"",
")",
";",
"if",
"(",
"Cond",
".",
"empty",
"(",
")",
")",
"{",
"assert",
"(",
"!",
"FBB",
"&&",
"\"Unconditional branch with multiple successors!\"",
")",
";",
"BuildMI",
"(",
"&",
"MBB",
",",
"DL",
",",
"get",
"(",
"F2003f",
"::",
"KRZx",
")",
")",
".",
"addMBB",
"(",
"TBB",
")",
";",
"return",
"1",
";",
"}",
"unsigned",
"Count",
"=",
"0",
";",
"MachineInstrBuilder",
"Malkrz",
"=",
"BuildMI",
"(",
"&",
"MBB",
",",
"DL",
",",
"get",
"(",
"Cond",
"[",
"0",
"]",
".",
"getImm",
"(",
")",
")",
")",
".",
"addMBB",
"(",
"TBB",
")",
";",
"for",
"(",
"unsigned",
"i",
"=",
"1",
";",
"i",
"<",
"Cond",
".",
"size",
"(",
")",
";",
"i",
"++",
")",
"{",
"Malkrz",
".",
"add",
"(",
"Cond",
"[",
"i",
"]",
")",
";",
"}",
"++",
"Count",
";",
"if",
"(",
"FBB",
")",
"{",
"BuildMI",
"(",
"&",
"MBB",
",",
"DL",
",",
"get",
"(",
"F2003f",
"::",
"KRZx",
")",
")",
".",
"addMBB",
"(",
"FBB",
")",
";",
"++",
"Count",
";",
"}",
"return",
"Count",
";",
"}",
"</s>"
] | [
"Insert",
"branch",
"code",
"into",
"the",
"end",
"of",
"the",
"specified",
"MachineBasicBlock",
"."
] | [
"F2003f",
"F2003f",
"\"insertBranch must not be told to insert a fallthrough\"",
"0",
"F2003f::MALKRZx",
"0",
"\"Invalid 2003f branch condition!\"",
"\"code size not handled\"",
"\"Unconditional branch with multiple successors!\"",
"F2003f::KRZx",
"1",
"0",
"0",
"1",
"F2003f::KRZx"
] | F2003fInstrInfo | insertBranch | F2003f | CPU | LLVM | 2,031 | 242 | 1 | [] |
[
"<s>",
"void",
"X86ATTInstPrinter",
"::",
"printInst",
"(",
"const",
"MCInst",
"*",
"MI",
",",
"raw_ostream",
"&",
"OS",
",",
"StringRef",
"Annot",
",",
"const",
"MCSubtargetInfo",
"&",
"STI",
")",
"{",
"const",
"MCInstrDesc",
"&",
"Desc",
"=",
"MII",
".",
"get",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
")",
";",
"uint64_t",
"TSFlags",
"=",
"Desc",
".",
"TSFlags",
";",
"if",
"(",
"CommentStream",
")",
"HasCustomInstComment",
"=",
"EmitAnyX86InstComments",
"(",
"MI",
",",
"*",
"CommentStream",
",",
"getRegisterName",
")",
";",
"unsigned",
"Flags",
"=",
"MI",
"->",
"getFlags",
"(",
")",
";",
"if",
"(",
"(",
"TSFlags",
"&",
"X86II",
"::",
"LOCK",
")",
"||",
"(",
"Flags",
"&",
"X86",
"::",
"IP_HAS_LOCK",
")",
")",
"OS",
"<<",
"\"\\tlock\\t\"",
";",
"if",
"(",
"Flags",
"&",
"X86",
"::",
"IP_HAS_REPEAT_NE",
")",
"OS",
"<<",
"\"\\trepne\\t\"",
";",
"else",
"if",
"(",
"Flags",
"&",
"X86",
"::",
"IP_HAS_REPEAT",
")",
"OS",
"<<",
"\"\\trep\\t\"",
";",
"if",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
"==",
"X86",
"::",
"CALLpcrel32",
"&&",
"(",
"STI",
".",
"getFeatureBits",
"(",
")",
"[",
"X86",
"::",
"Mode64Bit",
"]",
")",
")",
"{",
"OS",
"<<",
"\"\\tcallq\\t\"",
";",
"printPCRelImm",
"(",
"MI",
",",
"0",
",",
"OS",
")",
";",
"}",
"else",
"if",
"(",
"MI",
"->",
"getOpcode",
"(",
")",
"==",
"X86",
"::",
"DATA16_PREFIX",
"&&",
"(",
"STI",
".",
"getFeatureBits",
"(",
")",
"[",
"X86",
"::",
"Mode16Bit",
"]",
")",
")",
"{",
"MCInst",
"Data32MI",
"(",
"*",
"MI",
")",
";",
"Data32MI",
".",
"setOpcode",
"(",
"X86",
"::",
"DATA32_PREFIX",
")",
";",
"printInstruction",
"(",
"&",
"Data32MI",
",",
"OS",
")",
";",
"}",
"else",
"if",
"(",
"!",
"printAliasInstr",
"(",
"MI",
",",
"OS",
")",
")",
"printInstruction",
"(",
"MI",
",",
"OS",
")",
";",
"printAnnotation",
"(",
"OS",
",",
"Annot",
")",
";",
"}",
"</s>"
] | [
"Print",
"the",
"specified",
"MCInst",
"to",
"the",
"specified",
"raw_ostream",
"."
] | [
"X86",
"X86",
"X86",
"X86II::LOCK",
"X86::IP_HAS_LOCK",
"\"\\tlock\\t\"",
"X86::IP_HAS_REPEAT_NE",
"\"\\trepne\\t\"",
"X86::IP_HAS_REPEAT",
"\"\\trep\\t\"",
"X86::CALLpcrel32",
"X86::Mode64Bit",
"\"\\tcallq\\t\"",
"0",
"X86::DATA16_PREFIX",
"X86::Mode16Bit",
"X86::DATA32_PREFIX"
] | X86ATTInstPrinter55 | printInst | X86 | CPU | LLVM | 2,032 | 236 | 1 | [] |
[
"<s>",
"SDValue",
"VETargetLowering",
"::",
"LowerFormalArguments",
"(",
"SDValue",
"Chain",
",",
"CallingConv",
"::",
"ID",
"CallConv",
",",
"bool",
"IsVarArg",
",",
"const",
"SmallVectorImpl",
"<",
"ISD",
"::",
"InputArg",
">",
"&",
"Ins",
",",
"const",
"SDLoc",
"&",
"DL",
",",
"SelectionDAG",
"&",
"DAG",
",",
"SmallVectorImpl",
"<",
"SDValue",
">",
"&",
"InVals",
")",
"const",
"{",
"assert",
"(",
"!",
"IsVarArg",
"&&",
"\"TODO implement var args\"",
")",
";",
"assert",
"(",
"Ins",
".",
"empty",
"(",
")",
"&&",
"\"TODO implement input arguments\"",
")",
";",
"return",
"Chain",
";",
"}",
"</s>"
] | [
"This",
"hook",
"must",
"be",
"implemented",
"to",
"lower",
"the",
"incoming",
"(",
"formal",
")",
"arguments",
",",
"described",
"by",
"the",
"Ins",
"array",
",",
"into",
"the",
"specified",
"DAG",
"."
] | [
"VE",
"VE",
"ISD::InputArg",
"\"TODO implement var args\"",
"\"TODO implement input arguments\""
] | VEISelLowering16 | LowerFormalArguments | VE | CPU | LLVM | 2,033 | 67 | 1 | [] |
[
"<s>",
"bool",
"MBlazeIntrinsicInfo",
"::",
"isOverloaded",
"(",
"unsigned",
"IntrID",
")",
"const",
"{",
"const",
"bool",
"OTable",
"[",
"]",
"=",
"{",
"}",
";",
"if",
"(",
"IntrID",
"==",
"0",
")",
"return",
"false",
";",
"else",
"return",
"OTable",
"[",
"IntrID",
"-",
"Intrinsic",
"::",
"num_intrinsics",
"]",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"the",
"intrinsic",
"can",
"be",
"overloaded",
"."
] | [
"MBlaze",
"MBlaze",
"0",
"Intrinsic::num_intrinsics"
] | MBlazeIntrinsicInfo | isOverloaded | MBlaze | MPU | LLVM | 2,034 | 40 | 1 | [] |
[
"<s>",
"bool",
"A15SDOptimizer",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"Fn",
")",
"{",
"if",
"(",
"skipFunction",
"(",
"Fn",
".",
"getFunction",
"(",
")",
")",
")",
"return",
"false",
";",
"const",
"ARMSubtarget",
"&",
"STI",
"=",
"Fn",
".",
"getSubtarget",
"<",
"ARMSubtarget",
">",
"(",
")",
";",
"if",
"(",
"!",
"(",
"STI",
".",
"useSplatVFPToNeon",
"(",
")",
"&&",
"STI",
".",
"hasNEON",
"(",
")",
")",
")",
"return",
"false",
";",
"TII",
"=",
"STI",
".",
"getInstrInfo",
"(",
")",
";",
"TRI",
"=",
"STI",
".",
"getRegisterInfo",
"(",
")",
";",
"MRI",
"=",
"&",
"Fn",
".",
"getRegInfo",
"(",
")",
";",
"bool",
"Modified",
"=",
"false",
";",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"Running on function \"",
"<<",
"Fn",
".",
"getName",
"(",
")",
"<<",
"\"\\n\"",
")",
";",
"DeadInstr",
".",
"clear",
"(",
")",
";",
"Replacements",
".",
"clear",
"(",
")",
";",
"for",
"(",
"MachineBasicBlock",
"&",
"MBB",
":",
"Fn",
")",
"{",
"for",
"(",
"MachineInstr",
"&",
"MI",
":",
"MBB",
")",
"{",
"Modified",
"|=",
"runOnInstruction",
"(",
"&",
"MI",
")",
";",
"}",
"}",
"for",
"(",
"MachineInstr",
"*",
"MI",
":",
"DeadInstr",
")",
"{",
"MI",
"->",
"eraseFromParent",
"(",
")",
";",
"}",
"return",
"Modified",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"ARM",
"ARM",
"ARM",
"\"Running on function \"",
"\"\\n\""
] | A15SDOptimizer13 | runOnMachineFunction | ARM | CPU | LLVM | 2,035 | 165 | 1 | [] |
[
"<s>",
"bool",
"AMDGPUAnnotateUniformValues",
"::",
"runOnFunction",
"(",
"Function",
"&",
"F",
")",
"{",
"if",
"(",
"skipFunction",
"(",
"F",
")",
")",
"return",
"false",
";",
"DA",
"=",
"&",
"getAnalysis",
"<",
"LegacyDivergenceAnalysis",
">",
"(",
")",
";",
"MSSA",
"=",
"&",
"getAnalysis",
"<",
"MemorySSAWrapperPass",
">",
"(",
")",
".",
"getMSSA",
"(",
")",
";",
"AA",
"=",
"&",
"getAnalysis",
"<",
"AAResultsWrapperPass",
">",
"(",
")",
".",
"getAAResults",
"(",
")",
";",
"isEntryFunc",
"=",
"AMDGPU",
"::",
"isEntryFunctionCC",
"(",
"F",
".",
"getCallingConv",
"(",
")",
")",
";",
"Changed",
"=",
"false",
";",
"visit",
"(",
"F",
")",
";",
"return",
"Changed",
";",
"}",
"</s>"
] | [
"runOnFunction",
"-",
"Virtual",
"method",
"overriden",
"by",
"subclasses",
"to",
"do",
"the",
"per-function",
"processing",
"of",
"the",
"pass",
"."
] | [
"AMDGPU",
"AMDGPU",
"AMDGPU::isEntryFunctionCC"
] | AMDGPUAnnotateUniformValues8 | runOnFunction | AMDGPU | GPU | LLVM | 2,036 | 84 | 1 | [] |
[
"<s>",
"bool",
"AMDGPUTargetELFStreamer",
"::",
"EmitHSAMetadata",
"(",
"const",
"AMDGPU",
"::",
"HSAMD",
"::",
"Metadata",
"&",
"HSAMetadata",
")",
"{",
"std",
"::",
"string",
"HSAMetadataString",
";",
"if",
"(",
"HSAMD",
"::",
"toString",
"(",
"HSAMetadata",
",",
"HSAMetadataString",
")",
")",
"return",
"false",
";",
"auto",
"&",
"Context",
"=",
"getContext",
"(",
")",
";",
"auto",
"*",
"DescBegin",
"=",
"Context",
".",
"createTempSymbol",
"(",
")",
";",
"auto",
"*",
"DescEnd",
"=",
"Context",
".",
"createTempSymbol",
"(",
")",
";",
"auto",
"*",
"DescSZ",
"=",
"MCBinaryExpr",
"::",
"createSub",
"(",
"MCSymbolRefExpr",
"::",
"create",
"(",
"DescEnd",
",",
"Context",
")",
",",
"MCSymbolRefExpr",
"::",
"create",
"(",
"DescBegin",
",",
"Context",
")",
",",
"Context",
")",
";",
"EmitNote",
"(",
"ElfNote",
"::",
"NoteNameV2",
",",
"DescSZ",
",",
"ELF",
"::",
"NT_AMD_AMDGPU_HSA_METADATA",
",",
"[",
"&",
"]",
"(",
"MCELFStreamer",
"&",
"OS",
")",
"{",
"OS",
".",
"EmitLabel",
"(",
"DescBegin",
")",
";",
"OS",
".",
"EmitBytes",
"(",
"HSAMetadataString",
")",
";",
"OS",
".",
"EmitLabel",
"(",
"DescEnd",
")",
";",
"}",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Emit",
"HSA",
"Metadata",
"."
] | [
"AMDGPU",
"AMDGPU",
"AMDGPU::HSAMD",
"AMDGPU"
] | AMDGPUTargetStreamer14 | EmitHSAMetadata | AMDGPU | GPU | LLVM | 2,037 | 140 | 1 | [] |
[
"<s>",
"void",
"AnalyzeFormalArguments",
"(",
"const",
"SmallVectorImpl",
"<",
"ISD",
"::",
"InputArg",
">",
"&",
"Ins",
",",
"CCAssignFn",
"Fn",
")",
"{",
"ArgIsFixed",
".",
"clear",
"(",
")",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"<",
"Ins",
".",
"size",
"(",
")",
";",
"++",
"i",
")",
"ArgIsFixed",
".",
"push_back",
"(",
"true",
")",
";",
"ArgIsShortVector",
".",
"clear",
"(",
")",
";",
"for",
"(",
"unsigned",
"i",
"=",
"0",
";",
"i",
"<",
"Ins",
".",
"size",
"(",
")",
";",
"++",
"i",
")",
"ArgIsShortVector",
".",
"push_back",
"(",
"IsShortVectorType",
"(",
"Ins",
"[",
"i",
"]",
".",
"ArgVT",
")",
")",
";",
"CCState",
"::",
"AnalyzeFormalArguments",
"(",
"Ins",
",",
"Fn",
")",
";",
"}",
"</s>"
] | [
"AnalyzeFormalArguments",
"-",
"Analyze",
"an",
"array",
"of",
"argument",
"values",
",",
"incorporating",
"info",
"about",
"the",
"formals",
"into",
"this",
"state",
"."
] | [
"SystemZ",
"ISD::InputArg",
"0",
"0"
] | SystemZCallingConv | AnalyzeFormalArguments | SystemZ | CPU | LLVM | 2,038 | 97 | 1 | [] |
[
"<s>",
"bool",
"rs6000_is_valid_mask",
"(",
"rtx",
"mask",
",",
"int",
"*",
"b",
",",
"int",
"*",
"e",
",",
"machine_mode",
"mode",
")",
"{",
"unsigned",
"HOST_WIDE_INT",
"val",
"=",
"INTVAL",
"(",
"mask",
")",
";",
"unsigned",
"HOST_WIDE_INT",
"bit",
";",
"int",
"nb",
",",
"ne",
";",
"int",
"n",
"=",
"GET_MODE_PRECISION",
"(",
"mode",
")",
";",
"if",
"(",
"mode",
"!=",
"DImode",
"&&",
"mode",
"!=",
"SImode",
")",
"return",
"false",
";",
"if",
"(",
"INTVAL",
"(",
"mask",
")",
">=",
"0",
")",
"{",
"bit",
"=",
"val",
"&",
"-",
"val",
";",
"ne",
"=",
"exact_log2",
"(",
"bit",
")",
";",
"nb",
"=",
"exact_log2",
"(",
"val",
"+",
"bit",
")",
";",
"}",
"else",
"if",
"(",
"val",
"+",
"1",
"==",
"0",
")",
"{",
"nb",
"=",
"n",
";",
"ne",
"=",
"0",
";",
"}",
"else",
"if",
"(",
"val",
"&",
"1",
")",
"{",
"val",
"=",
"~",
"val",
";",
"bit",
"=",
"val",
"&",
"-",
"val",
";",
"nb",
"=",
"exact_log2",
"(",
"bit",
")",
";",
"ne",
"=",
"exact_log2",
"(",
"val",
"+",
"bit",
")",
";",
"}",
"else",
"{",
"bit",
"=",
"val",
"&",
"-",
"val",
";",
"ne",
"=",
"exact_log2",
"(",
"bit",
")",
";",
"if",
"(",
"val",
"+",
"bit",
"==",
"0",
")",
"nb",
"=",
"n",
";",
"else",
"nb",
"=",
"0",
";",
"}",
"nb",
"--",
";",
"if",
"(",
"nb",
"<",
"0",
"||",
"ne",
"<",
"0",
"||",
"nb",
">=",
"n",
"||",
"ne",
">=",
"n",
")",
"return",
"false",
";",
"if",
"(",
"b",
")",
"*",
"b",
"=",
"nb",
";",
"if",
"(",
"e",
")",
"*",
"e",
"=",
"ne",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"Return",
"whether",
"MASK",
"(",
"a",
"CONST_INT",
")",
"is",
"a",
"valid",
"mask",
"for",
"any",
"rlwinm",
",",
"rldicl",
",",
"rldicr",
",",
"or",
"rldic",
"instruction",
"in",
"mode",
"MODE",
".",
"If",
"so",
",",
"if",
"E",
"is",
"not",
"zero",
",",
"store",
"there",
"the",
"bit",
"offset",
"(",
"counted",
"from",
"the",
"right",
")",
"where",
"the",
"single",
"stretch",
"of",
"1",
"bits",
"begins",
";",
"and",
"similarly",
"for",
"B",
",",
"the",
"bit",
"offset",
"where",
"it",
"ends",
"."
] | [
"powerpcspe",
"0",
"1",
"0",
"0",
"1",
"0",
"0",
"0",
"0"
] | powerpcspe | rs6000_is_valid_mask | powerpcspe | CPU | GCC | 2,039 | 227 | 1 | [] |
[
"<s>",
"const",
"uint32_t",
"*",
"ARM64RegisterInfo",
"::",
"getCallPreservedMask",
"(",
"CallingConv",
"::",
"ID",
"CC",
")",
"const",
"{",
"if",
"(",
"CC",
"==",
"CallingConv",
"::",
"AnyReg",
")",
"return",
"CSR_ARM64_AllRegs_RegMask",
";",
"else",
"return",
"CSR_ARM64_AAPCS_RegMask",
";",
"}",
"</s>"
] | [
"Return",
"a",
"mask",
"of",
"call-preserved",
"registers",
"for",
"the",
"given",
"calling",
"convention",
"on",
"the",
"current",
"function",
"."
] | [
"ARM64",
"ARM64",
"ARM64",
"ARM64"
] | ARM64RegisterInfo | getCallPreservedMask | ARM64 | CPU | LLVM | 2,040 | 30 | 1 | [] |
[
"<s>",
"bool",
"MipsSETargetLowering",
"::",
"allowsMisalignedMemoryAccesses",
"(",
"EVT",
"VT",
",",
"unsigned",
",",
"unsigned",
",",
"MachineMemOperand",
"::",
"Flags",
",",
"bool",
"*",
"Fast",
")",
"const",
"{",
"MVT",
"::",
"SimpleValueType",
"SVT",
"=",
"VT",
".",
"getSimpleVT",
"(",
")",
".",
"SimpleTy",
";",
"if",
"(",
"Subtarget",
".",
"systemSupportsUnalignedAccess",
"(",
")",
")",
"{",
"if",
"(",
"Fast",
")",
"*",
"Fast",
"=",
"true",
";",
"return",
"true",
";",
"}",
"switch",
"(",
"SVT",
")",
"{",
"case",
"MVT",
"::",
"i64",
":",
"case",
"MVT",
"::",
"i32",
":",
"if",
"(",
"Fast",
")",
"*",
"Fast",
"=",
"true",
";",
"return",
"true",
";",
"default",
":",
"return",
"false",
";",
"}",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"the",
"target",
"allows",
"unaligned",
"memory",
"accesses",
"of",
"the",
"specified",
"type",
"."
] | [
"Mips",
"Mips",
"MVT::SimpleValueType",
"MVT::i64",
"MVT::i32"
] | MipsSEISelLowering32 | allowsMisalignedMemoryAccesses | Mips | CPU | LLVM | 2,041 | 91 | 1 | [] |
[
"<s>",
"SDValue",
"X86TargetLowering",
"::",
"SimplifyMultipleUseDemandedBitsForTargetNode",
"(",
"SDValue",
"Op",
",",
"const",
"APInt",
"&",
"DemandedBits",
",",
"const",
"APInt",
"&",
"DemandedElts",
",",
"SelectionDAG",
"&",
"DAG",
",",
"unsigned",
"Depth",
")",
"const",
"{",
"int",
"NumElts",
"=",
"DemandedElts",
".",
"getBitWidth",
"(",
")",
";",
"unsigned",
"Opc",
"=",
"Op",
".",
"getOpcode",
"(",
")",
";",
"EVT",
"VT",
"=",
"Op",
".",
"getValueType",
"(",
")",
";",
"switch",
"(",
"Opc",
")",
"{",
"case",
"X86ISD",
"::",
"PINSRB",
":",
"case",
"X86ISD",
"::",
"PINSRW",
":",
"{",
"SDValue",
"Vec",
"=",
"Op",
".",
"getOperand",
"(",
"0",
")",
";",
"auto",
"*",
"CIdx",
"=",
"dyn_cast",
"<",
"ConstantSDNode",
">",
"(",
"Op",
".",
"getOperand",
"(",
"2",
")",
")",
";",
"MVT",
"VecVT",
"=",
"Vec",
".",
"getSimpleValueType",
"(",
")",
";",
"if",
"(",
"CIdx",
"&&",
"CIdx",
"->",
"getAPIntValue",
"(",
")",
".",
"ult",
"(",
"VecVT",
".",
"getVectorNumElements",
"(",
")",
")",
"&&",
"!",
"DemandedElts",
"[",
"CIdx",
"->",
"getZExtValue",
"(",
")",
"]",
")",
"return",
"Vec",
";",
"break",
";",
"}",
"case",
"X86ISD",
"::",
"PCMPGT",
":",
"if",
"(",
"DemandedBits",
".",
"isSignMask",
"(",
")",
"&&",
"ISD",
"::",
"isBuildVectorAllZeros",
"(",
"Op",
".",
"getOperand",
"(",
"0",
")",
".",
"getNode",
"(",
")",
")",
")",
"return",
"Op",
".",
"getOperand",
"(",
"1",
")",
";",
"break",
";",
"}",
"APInt",
"ShuffleUndef",
",",
"ShuffleZero",
";",
"SmallVector",
"<",
"int",
",",
"16",
">",
"ShuffleMask",
";",
"SmallVector",
"<",
"SDValue",
",",
"2",
">",
"ShuffleOps",
";",
"if",
"(",
"getTargetShuffleInputs",
"(",
"Op",
",",
"DemandedElts",
",",
"ShuffleOps",
",",
"ShuffleMask",
",",
"ShuffleUndef",
",",
"ShuffleZero",
",",
"DAG",
",",
"Depth",
",",
"false",
")",
")",
"{",
"int",
"NumOps",
"=",
"ShuffleOps",
".",
"size",
"(",
")",
";",
"if",
"(",
"ShuffleMask",
".",
"size",
"(",
")",
"==",
"(",
"unsigned",
")",
"NumElts",
"&&",
"llvm",
"::",
"all_of",
"(",
"ShuffleOps",
",",
"[",
"VT",
"]",
"(",
"SDValue",
"V",
")",
"{",
"return",
"VT",
".",
"getSizeInBits",
"(",
")",
"==",
"V",
".",
"getValueSizeInBits",
"(",
")",
";",
"}",
")",
")",
"{",
"if",
"(",
"DemandedElts",
".",
"isSubsetOf",
"(",
"ShuffleUndef",
")",
")",
"return",
"DAG",
".",
"getUNDEF",
"(",
"VT",
")",
";",
"if",
"(",
"DemandedElts",
".",
"isSubsetOf",
"(",
"ShuffleUndef",
"|",
"ShuffleZero",
")",
")",
"return",
"getZeroVector",
"(",
"VT",
".",
"getSimpleVT",
"(",
")",
",",
"Subtarget",
",",
"DAG",
",",
"SDLoc",
"(",
"Op",
")",
")",
";",
"APInt",
"IdentityOp",
"=",
"APInt",
"::",
"getAllOnesValue",
"(",
"NumOps",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"!=",
"NumElts",
";",
"++",
"i",
")",
"{",
"int",
"M",
"=",
"ShuffleMask",
"[",
"i",
"]",
";",
"if",
"(",
"!",
"DemandedElts",
"[",
"i",
"]",
"||",
"ShuffleUndef",
"[",
"i",
"]",
")",
"continue",
";",
"int",
"OpIdx",
"=",
"M",
"/",
"NumElts",
";",
"int",
"EltIdx",
"=",
"M",
"%",
"NumElts",
";",
"if",
"(",
"M",
"<",
"0",
"||",
"EltIdx",
"!=",
"i",
")",
"{",
"IdentityOp",
".",
"clearAllBits",
"(",
")",
";",
"break",
";",
"}",
"IdentityOp",
"&=",
"APInt",
"::",
"getOneBitSet",
"(",
"NumOps",
",",
"OpIdx",
")",
";",
"if",
"(",
"IdentityOp",
"==",
"0",
")",
"break",
";",
"}",
"assert",
"(",
"(",
"IdentityOp",
"==",
"0",
"||",
"IdentityOp",
".",
"countPopulation",
"(",
")",
"==",
"1",
")",
"&&",
"\"Multiple identity shuffles detected\"",
")",
";",
"if",
"(",
"IdentityOp",
"!=",
"0",
")",
"return",
"DAG",
".",
"getBitcast",
"(",
"VT",
",",
"ShuffleOps",
"[",
"IdentityOp",
".",
"countTrailingZeros",
"(",
")",
"]",
")",
";",
"}",
"}",
"return",
"TargetLowering",
"::",
"SimplifyMultipleUseDemandedBitsForTargetNode",
"(",
"Op",
",",
"DemandedBits",
",",
"DemandedElts",
",",
"DAG",
",",
"Depth",
")",
";",
"}",
"</s>"
] | [
"More",
"limited",
"version",
"of",
"SimplifyDemandedBits",
"that",
"can",
"be",
"used",
"to",
"``",
"look",
"through",
"''",
"ops",
"that",
"do",
"n't",
"contribute",
"to",
"the",
"DemandedBits/DemandedElts",
"-",
"bitwise",
"ops",
"etc",
"."
] | [
"X86",
"X86",
"X86ISD::PINSRB",
"X86ISD::PINSRW",
"0",
"2",
"X86ISD::PCMPGT",
"ISD::isBuildVectorAllZeros",
"0",
"1",
"16",
"2",
"0",
"0",
"0",
"0",
"1",
"\"Multiple identity shuffles detected\"",
"0"
] | X86ISelLowering130 | SimplifyMultipleUseDemandedBitsForTargetNode | X86 | CPU | LLVM | 2,042 | 489 | 1 | [] |
[
"<s>",
"static",
"rtx",
"warp_prop_gen",
"(",
"rtx",
"reg",
",",
"propagate_mask",
"pm",
",",
"unsigned",
"ARG_UNUSED",
"(",
"count",
")",
",",
"void",
"*",
"ARG_UNUSED",
"(",
"data",
")",
",",
"bool",
"ARG_UNUSED",
"(",
"vector",
")",
")",
"{",
"if",
"(",
"!",
"(",
"pm",
"&",
"PM_read_write",
")",
")",
"return",
"0",
";",
"return",
"nvptx_gen_warp_bcast",
"(",
"reg",
")",
";",
"}",
"</s>"
] | [
"Worker",
"for",
"nvptx_warp_propagate",
"."
] | [
"nvptx",
"0"
] | nvptx | warp_prop_gen | nvptx | GPU | GCC | 2,043 | 49 | 1 | [] |
[
"<s>",
"MipsSubtarget",
"&",
"MipsSubtarget",
"::",
"initializeSubtargetDependencies",
"(",
"StringRef",
"CPU",
",",
"StringRef",
"FS",
",",
"const",
"TargetMachine",
"&",
"TM",
")",
"{",
"std",
"::",
"string",
"CPUName",
"=",
"MIPS_MC",
"::",
"selectMipsCPU",
"(",
"TM",
".",
"getTargetTriple",
"(",
")",
",",
"CPU",
")",
";",
"ParseSubtargetFeatures",
"(",
"CPUName",
",",
"FS",
")",
";",
"InstrItins",
"=",
"getInstrItineraryForCPU",
"(",
"CPUName",
")",
";",
"if",
"(",
"InMips16Mode",
"&&",
"!",
"IsSoftFloat",
")",
"InMips16HardFloat",
"=",
"true",
";",
"if",
"(",
"StackAlignOverride",
")",
"stackAlignment",
"=",
"StackAlignOverride",
";",
"else",
"if",
"(",
"isABI_N32",
"(",
")",
"||",
"isABI_N64",
"(",
")",
")",
"stackAlignment",
"=",
"16",
";",
"else",
"{",
"assert",
"(",
"isABI_O32",
"(",
")",
"&&",
"\"Unknown ABI for stack alignment!\"",
")",
";",
"stackAlignment",
"=",
"8",
";",
"}",
"return",
"*",
"this",
";",
"}",
"</s>"
] | [
"initializeSubtargetDependencies",
"-",
"Initializes",
"using",
"a",
"CPU",
",",
"a",
"TuneCPU",
",",
"and",
"feature",
"string",
"so",
"that",
"we",
"can",
"use",
"initializer",
"lists",
"for",
"subtarget",
"initialization",
"."
] | [
"Mips",
"Mips",
"Mips",
"MIPS_MC::selectMipsCPU",
"Mips",
"Mips",
"16",
"\"Unknown ABI for stack alignment!\"",
"8"
] | MipsSubtarget14 | initializeSubtargetDependencies | Mips | CPU | LLVM | 2,044 | 105 | 1 | [] |
[
"<s>",
"static",
"bool",
"r10k_simplified_address_p",
"(",
"rtx",
"x",
")",
"{",
"if",
"(",
"GET_CODE",
"(",
"x",
")",
"==",
"PLUS",
"&&",
"CONST_INT_P",
"(",
"XEXP",
"(",
"x",
",",
"1",
")",
")",
")",
"x",
"=",
"XEXP",
"(",
"x",
",",
"0",
")",
";",
"return",
"x",
"==",
"virtual_incoming_args_rtx",
"||",
"CONSTANT_P",
"(",
"x",
")",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"it",
"is",
"worth",
"r10k_simplify_address",
"'s",
"while",
"replacing",
"an",
"address",
"with",
"X",
".",
"We",
"are",
"looking",
"for",
"constants",
",",
"and",
"for",
"addresses",
"at",
"a",
"known",
"offset",
"from",
"the",
"incoming",
"stack",
"pointer",
"."
] | [
"mips",
"1",
"0"
] | mips | r10k_simplified_address_p | mips | CPU | GCC | 2,045 | 47 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"MipsTargetLowering",
"::",
"getTargetNodeName",
"(",
"unsigned",
"Opcode",
")",
"const",
"{",
"switch",
"(",
"Opcode",
")",
"{",
"case",
"MipsISD",
"::",
"JmpLink",
":",
"return",
"\"MipsISD::JmpLink\"",
";",
"case",
"MipsISD",
"::",
"TailCall",
":",
"return",
"\"MipsISD::TailCall\"",
";",
"case",
"MipsISD",
"::",
"Hi",
":",
"return",
"\"MipsISD::Hi\"",
";",
"case",
"MipsISD",
"::",
"Lo",
":",
"return",
"\"MipsISD::Lo\"",
";",
"case",
"MipsISD",
"::",
"GPRel",
":",
"return",
"\"MipsISD::GPRel\"",
";",
"case",
"MipsISD",
"::",
"ThreadPointer",
":",
"return",
"\"MipsISD::ThreadPointer\"",
";",
"case",
"MipsISD",
"::",
"Ret",
":",
"return",
"\"MipsISD::Ret\"",
";",
"case",
"MipsISD",
"::",
"EH_RETURN",
":",
"return",
"\"MipsISD::EH_RETURN\"",
";",
"case",
"MipsISD",
"::",
"FPBrcond",
":",
"return",
"\"MipsISD::FPBrcond\"",
";",
"case",
"MipsISD",
"::",
"FPCmp",
":",
"return",
"\"MipsISD::FPCmp\"",
";",
"case",
"MipsISD",
"::",
"CMovFP_T",
":",
"return",
"\"MipsISD::CMovFP_T\"",
";",
"case",
"MipsISD",
"::",
"CMovFP_F",
":",
"return",
"\"MipsISD::CMovFP_F\"",
";",
"case",
"MipsISD",
"::",
"FPRound",
":",
"return",
"\"MipsISD::FPRound\"",
";",
"case",
"MipsISD",
"::",
"MAdd",
":",
"return",
"\"MipsISD::MAdd\"",
";",
"case",
"MipsISD",
"::",
"MAddu",
":",
"return",
"\"MipsISD::MAddu\"",
";",
"case",
"MipsISD",
"::",
"MSub",
":",
"return",
"\"MipsISD::MSub\"",
";",
"case",
"MipsISD",
"::",
"MSubu",
":",
"return",
"\"MipsISD::MSubu\"",
";",
"case",
"MipsISD",
"::",
"DivRem",
":",
"return",
"\"MipsISD::DivRem\"",
";",
"case",
"MipsISD",
"::",
"DivRemU",
":",
"return",
"\"MipsISD::DivRemU\"",
";",
"case",
"MipsISD",
"::",
"BuildPairF64",
":",
"return",
"\"MipsISD::BuildPairF64\"",
";",
"case",
"MipsISD",
"::",
"ExtractElementF64",
":",
"return",
"\"MipsISD::ExtractElementF64\"",
";",
"case",
"MipsISD",
"::",
"Wrapper",
":",
"return",
"\"MipsISD::Wrapper\"",
";",
"case",
"MipsISD",
"::",
"Sync",
":",
"return",
"\"MipsISD::Sync\"",
";",
"case",
"MipsISD",
"::",
"Ext",
":",
"return",
"\"MipsISD::Ext\"",
";",
"case",
"MipsISD",
"::",
"Ins",
":",
"return",
"\"MipsISD::Ins\"",
";",
"case",
"MipsISD",
"::",
"LWL",
":",
"return",
"\"MipsISD::LWL\"",
";",
"case",
"MipsISD",
"::",
"LWR",
":",
"return",
"\"MipsISD::LWR\"",
";",
"case",
"MipsISD",
"::",
"SWL",
":",
"return",
"\"MipsISD::SWL\"",
";",
"case",
"MipsISD",
"::",
"SWR",
":",
"return",
"\"MipsISD::SWR\"",
";",
"case",
"MipsISD",
"::",
"LDL",
":",
"return",
"\"MipsISD::LDL\"",
";",
"case",
"MipsISD",
"::",
"LDR",
":",
"return",
"\"MipsISD::LDR\"",
";",
"case",
"MipsISD",
"::",
"SDL",
":",
"return",
"\"MipsISD::SDL\"",
";",
"case",
"MipsISD",
"::",
"SDR",
":",
"return",
"\"MipsISD::SDR\"",
";",
"case",
"MipsISD",
"::",
"EXTP",
":",
"return",
"\"MipsISD::EXTP\"",
";",
"case",
"MipsISD",
"::",
"EXTPDP",
":",
"return",
"\"MipsISD::EXTPDP\"",
";",
"case",
"MipsISD",
"::",
"EXTR_S_H",
":",
"return",
"\"MipsISD::EXTR_S_H\"",
";",
"case",
"MipsISD",
"::",
"EXTR_W",
":",
"return",
"\"MipsISD::EXTR_W\"",
";",
"case",
"MipsISD",
"::",
"EXTR_R_W",
":",
"return",
"\"MipsISD::EXTR_R_W\"",
";",
"case",
"MipsISD",
"::",
"EXTR_RS_W",
":",
"return",
"\"MipsISD::EXTR_RS_W\"",
";",
"case",
"MipsISD",
"::",
"SHILO",
":",
"return",
"\"MipsISD::SHILO\"",
";",
"case",
"MipsISD",
"::",
"MTHLIP",
":",
"return",
"\"MipsISD::MTHLIP\"",
";",
"case",
"MipsISD",
"::",
"MULT",
":",
"return",
"\"MipsISD::MULT\"",
";",
"case",
"MipsISD",
"::",
"MULTU",
":",
"return",
"\"MipsISD::MULTU\"",
";",
"case",
"MipsISD",
"::",
"MADD_DSP",
":",
"return",
"\"MipsISD::MADD_DSP\"",
";",
"case",
"MipsISD",
"::",
"MADDU_DSP",
":",
"return",
"\"MipsISD::MADDU_DSP\"",
";",
"case",
"MipsISD",
"::",
"MSUB_DSP",
":",
"return",
"\"MipsISD::MSUB_DSP\"",
";",
"case",
"MipsISD",
"::",
"MSUBU_DSP",
":",
"return",
"\"MipsISD::MSUBU_DSP\"",
";",
"default",
":",
"return",
"NULL",
";",
"}",
"}",
"</s>"
] | [
"getTargetNodeName",
"-",
"This",
"method",
"returns",
"the",
"name",
"of",
"a",
"target",
"specific"
] | [
"Mips",
"Mips",
"MipsISD::JmpLink",
"\"MipsISD::JmpLink\"",
"MipsISD::TailCall",
"\"MipsISD::TailCall\"",
"MipsISD::Hi",
"\"MipsISD::Hi\"",
"MipsISD::Lo",
"\"MipsISD::Lo\"",
"MipsISD::GPRel",
"\"MipsISD::GPRel\"",
"MipsISD::ThreadPointer",
"\"MipsISD::ThreadPointer\"",
"MipsISD::Ret",
"\"MipsISD::Ret\"",
"MipsISD::EH_RETURN",
"\"MipsISD::EH_RETURN\"",
"MipsISD::FPBrcond",
"\"MipsISD::FPBrcond\"",
"MipsISD::FPCmp",
"\"MipsISD::FPCmp\"",
"MipsISD::CMovFP_T",
"\"MipsISD::CMovFP_T\"",
"MipsISD::CMovFP_F",
"\"MipsISD::CMovFP_F\"",
"MipsISD::FPRound",
"\"MipsISD::FPRound\"",
"MipsISD::MAdd",
"\"MipsISD::MAdd\"",
"MipsISD::MAddu",
"\"MipsISD::MAddu\"",
"MipsISD::MSub",
"\"MipsISD::MSub\"",
"MipsISD::MSubu",
"\"MipsISD::MSubu\"",
"MipsISD::DivRem",
"\"MipsISD::DivRem\"",
"MipsISD::DivRemU",
"\"MipsISD::DivRemU\"",
"MipsISD::BuildPairF64",
"\"MipsISD::BuildPairF64\"",
"MipsISD::ExtractElementF64",
"\"MipsISD::ExtractElementF64\"",
"MipsISD::Wrapper",
"\"MipsISD::Wrapper\"",
"MipsISD::Sync",
"\"MipsISD::Sync\"",
"MipsISD::Ext",
"\"MipsISD::Ext\"",
"MipsISD::Ins",
"\"MipsISD::Ins\"",
"MipsISD::LWL",
"\"MipsISD::LWL\"",
"MipsISD::LWR",
"\"MipsISD::LWR\"",
"MipsISD::SWL",
"\"MipsISD::SWL\"",
"MipsISD::SWR",
"\"MipsISD::SWR\"",
"MipsISD::LDL",
"\"MipsISD::LDL\"",
"MipsISD::LDR",
"\"MipsISD::LDR\"",
"MipsISD::SDL",
"\"MipsISD::SDL\"",
"MipsISD::SDR",
"\"MipsISD::SDR\"",
"MipsISD::EXTP",
"\"MipsISD::EXTP\"",
"MipsISD::EXTPDP",
"\"MipsISD::EXTPDP\"",
"MipsISD::EXTR_S_H",
"\"MipsISD::EXTR_S_H\"",
"MipsISD::EXTR_W",
"\"MipsISD::EXTR_W\"",
"MipsISD::EXTR_R_W",
"\"MipsISD::EXTR_R_W\"",
"MipsISD::EXTR_RS_W",
"\"MipsISD::EXTR_RS_W\"",
"MipsISD::SHILO",
"\"MipsISD::SHILO\"",
"MipsISD::MTHLIP",
"\"MipsISD::MTHLIP\"",
"MipsISD::MULT",
"\"MipsISD::MULT\"",
"MipsISD::MULTU",
"\"MipsISD::MULTU\"",
"MipsISD::MADD_DSP",
"\"MipsISD::MADD_DSP\"",
"MipsISD::MADDU_DSP",
"\"MipsISD::MADDU_DSP\"",
"MipsISD::MSUB_DSP",
"\"MipsISD::MSUB_DSP\"",
"MipsISD::MSUBU_DSP",
"\"MipsISD::MSUBU_DSP\""
] | MipsISelLowering126 | getTargetNodeName | Mips | CPU | LLVM | 2,046 | 400 | 1 | [] |
[
"<s>",
"void",
"sh_set_return_address",
"(",
"rtx",
"ra",
",",
"rtx",
"tmp",
")",
"{",
"HARD_REG_SET",
"live_regs_mask",
";",
"int",
"d",
"=",
"calc_live_regs",
"(",
"&",
"live_regs_mask",
")",
";",
"if",
"(",
"!",
"TEST_HARD_REG_BIT",
"(",
"live_regs_mask",
",",
"PR_REG",
")",
")",
"{",
"rtx",
"rr",
"=",
"gen_rtx_REG",
"(",
"SImode",
",",
"PR_REG",
")",
";",
"emit_insn",
"(",
"GEN_MOV",
"(",
"rr",
",",
"ra",
")",
")",
";",
"emit_use",
"(",
"rr",
")",
";",
"return",
";",
"}",
"int",
"pr_offset",
"=",
"rounded_frame_size",
"(",
"d",
")",
";",
"emit_insn",
"(",
"GEN_MOV",
"(",
"tmp",
",",
"GEN_INT",
"(",
"pr_offset",
")",
")",
")",
";",
"if",
"(",
"frame_pointer_needed",
")",
"emit_insn",
"(",
"GEN_ADD3",
"(",
"tmp",
",",
"tmp",
",",
"hard_frame_pointer_rtx",
")",
")",
";",
"else",
"emit_insn",
"(",
"GEN_ADD3",
"(",
"tmp",
",",
"tmp",
",",
"stack_pointer_rtx",
")",
")",
";",
"tmp",
"=",
"gen_frame_mem",
"(",
"Pmode",
",",
"tmp",
")",
";",
"emit_insn",
"(",
"GEN_MOV",
"(",
"tmp",
",",
"ra",
")",
")",
";",
"emit_use",
"(",
"tmp",
")",
";",
"}",
"</s>"
] | [
"Emit",
"code",
"to",
"change",
"the",
"current",
"function",
"'s",
"return",
"address",
"to",
"RA",
".",
"TEMP",
"is",
"available",
"as",
"a",
"scratch",
"register",
",",
"if",
"needed",
"."
] | [
"sh"
] | sh | sh_set_return_address | sh | CPU | GCC | 2,047 | 136 | 1 | [] |
[
"<s>",
"unsigned",
"ARMBaseInstrInfo",
"::",
"getInstrLatency",
"(",
"const",
"InstrItineraryData",
"*",
"ItinData",
",",
"const",
"MachineInstr",
"&",
"MI",
",",
"unsigned",
"*",
"PredCost",
")",
"const",
"{",
"if",
"(",
"MI",
".",
"isCopyLike",
"(",
")",
"||",
"MI",
".",
"isInsertSubreg",
"(",
")",
"||",
"MI",
".",
"isRegSequence",
"(",
")",
"||",
"MI",
".",
"isImplicitDef",
"(",
")",
")",
"return",
"1",
";",
"if",
"(",
"MI",
".",
"isBundle",
"(",
")",
")",
"{",
"unsigned",
"Latency",
"=",
"0",
";",
"MachineBasicBlock",
"::",
"const_instr_iterator",
"I",
"=",
"MI",
".",
"getIterator",
"(",
")",
";",
"MachineBasicBlock",
"::",
"const_instr_iterator",
"E",
"=",
"MI",
".",
"getParent",
"(",
")",
"->",
"instr_end",
"(",
")",
";",
"while",
"(",
"++",
"I",
"!=",
"E",
"&&",
"I",
"->",
"isInsideBundle",
"(",
")",
")",
"{",
"if",
"(",
"I",
"->",
"getOpcode",
"(",
")",
"!=",
"ARM",
"::",
"t2IT",
")",
"Latency",
"+=",
"getInstrLatency",
"(",
"ItinData",
",",
"*",
"I",
",",
"PredCost",
")",
";",
"}",
"return",
"Latency",
";",
"}",
"const",
"MCInstrDesc",
"&",
"MCID",
"=",
"MI",
".",
"getDesc",
"(",
")",
";",
"if",
"(",
"PredCost",
"&&",
"(",
"MCID",
".",
"isCall",
"(",
")",
"||",
"(",
"MCID",
".",
"hasImplicitDefOfPhysReg",
"(",
"ARM",
"::",
"CPSR",
")",
"&&",
"!",
"Subtarget",
".",
"cheapPredicableCPSRDef",
"(",
")",
")",
")",
")",
"{",
"*",
"PredCost",
"=",
"1",
";",
"}",
"if",
"(",
"!",
"ItinData",
")",
"return",
"MI",
".",
"mayLoad",
"(",
")",
"?",
"3",
":",
"1",
";",
"unsigned",
"Class",
"=",
"MCID",
".",
"getSchedClass",
"(",
")",
";",
"if",
"(",
"!",
"ItinData",
"->",
"isEmpty",
"(",
")",
"&&",
"ItinData",
"->",
"getNumMicroOps",
"(",
"Class",
")",
"<",
"0",
")",
"return",
"getNumMicroOps",
"(",
"ItinData",
",",
"MI",
")",
";",
"unsigned",
"Latency",
"=",
"ItinData",
"->",
"getStageLatency",
"(",
"Class",
")",
";",
"unsigned",
"DefAlign",
"=",
"MI",
".",
"hasOneMemOperand",
"(",
")",
"?",
"(",
"*",
"MI",
".",
"memoperands_begin",
"(",
")",
")",
"->",
"getAlignment",
"(",
")",
":",
"0",
";",
"int",
"Adj",
"=",
"adjustDefLatency",
"(",
"Subtarget",
",",
"MI",
",",
"MCID",
",",
"DefAlign",
")",
";",
"if",
"(",
"Adj",
">=",
"0",
"||",
"(",
"int",
")",
"Latency",
">",
"-",
"Adj",
")",
"{",
"return",
"Latency",
"+",
"Adj",
";",
"}",
"return",
"Latency",
";",
"}",
"</s>"
] | [
"Compute",
"the",
"instruction",
"latency",
"of",
"a",
"given",
"instruction",
"."
] | [
"ARM",
"ARM",
"1",
"0",
"ARM::t2IT",
"ARM::CPSR",
"1",
"3",
"1",
"0",
"0",
"0"
] | ARMBaseInstrInfo1 | getInstrLatency | ARM | CPU | LLVM | 2,048 | 305 | 1 | [] |
[
"<s>",
"int",
"standard_80387_constant_p",
"(",
"rtx",
"x",
")",
"{",
"if",
"(",
"GET_CODE",
"(",
"x",
")",
"!=",
"CONST_DOUBLE",
"||",
"!",
"FLOAT_MODE_P",
"(",
"GET_MODE",
"(",
"x",
")",
")",
")",
"return",
"-",
"1",
";",
"if",
"(",
"x",
"==",
"CONST0_RTX",
"(",
"GET_MODE",
"(",
"x",
")",
")",
")",
"return",
"1",
";",
"if",
"(",
"x",
"==",
"CONST1_RTX",
"(",
"GET_MODE",
"(",
"x",
")",
")",
")",
"return",
"2",
";",
"if",
"(",
"GET_MODE",
"(",
"x",
")",
"==",
"XFmode",
"&&",
"(",
"optimize_size",
"||",
"x86_ext_80387_constants",
"&",
"TUNEMASK",
")",
")",
"{",
"REAL_VALUE_TYPE",
"r",
";",
"int",
"i",
";",
"if",
"(",
"!",
"ext_80387_constants_init",
")",
"init_ext_80387_constants",
"(",
")",
";",
"REAL_VALUE_FROM_CONST_DOUBLE",
"(",
"r",
",",
"x",
")",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"5",
";",
"i",
"++",
")",
"if",
"(",
"real_identical",
"(",
"&",
"r",
",",
"&",
"ext_80387_constants_table",
"[",
"i",
"]",
")",
")",
"return",
"i",
"+",
"3",
";",
"}",
"return",
"0",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"the",
"constant",
"is",
"something",
"that",
"can",
"be",
"loaded",
"with",
"a",
"special",
"instruction",
"."
] | [
"i386",
"1",
"1",
"2",
"0",
"5",
"3",
"0"
] | i3863 | standard_80387_constant_p | i386 | CPU | GCC | 2,049 | 136 | 1 | [] |
[
"<s>",
"StringRef",
"getPassName",
"(",
")",
"const",
"override",
"{",
"return",
"AARCH64_LOAD_STORE_OPT_NAME",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"AArch64"
] | AArch64LoadStoreOptimizer (2)1 | getPassName | AArch64 | CPU | LLVM | 2,050 | 11 | 1 | [] |
[
"<s>",
"bool",
"PPCInstrInfo",
"::",
"shouldReduceRegisterPressure",
"(",
"MachineBasicBlock",
"*",
"MBB",
",",
"RegisterClassInfo",
"*",
"RegClassInfo",
")",
"const",
"{",
"if",
"(",
"!",
"EnableFMARegPressureReduction",
")",
"return",
"false",
";",
"if",
"(",
"!",
"(",
"Subtarget",
".",
"isPPC64",
"(",
")",
"&&",
"Subtarget",
".",
"hasP9Vector",
"(",
")",
"&&",
"Subtarget",
".",
"getTargetMachine",
"(",
")",
".",
"getCodeModel",
"(",
")",
"==",
"CodeModel",
"::",
"Medium",
")",
")",
"return",
"false",
";",
"const",
"TargetRegisterInfo",
"*",
"TRI",
"=",
"&",
"getRegisterInfo",
"(",
")",
";",
"MachineFunction",
"*",
"MF",
"=",
"MBB",
"->",
"getParent",
"(",
")",
";",
"MachineRegisterInfo",
"*",
"MRI",
"=",
"&",
"MF",
"->",
"getRegInfo",
"(",
")",
";",
"auto",
"GetMBBPressure",
"=",
"[",
"&",
"]",
"(",
"MachineBasicBlock",
"*",
"MBB",
")",
"->",
"std",
"::",
"vector",
"<",
"unsigned",
">",
"{",
"RegionPressure",
"Pressure",
";",
"RegPressureTracker",
"RPTracker",
"(",
"Pressure",
")",
";",
"RPTracker",
".",
"init",
"(",
"MBB",
"->",
"getParent",
"(",
")",
",",
"RegClassInfo",
",",
"nullptr",
",",
"MBB",
",",
"MBB",
"->",
"end",
"(",
")",
",",
"false",
",",
"true",
")",
";",
"for",
"(",
"MachineBasicBlock",
"::",
"iterator",
"MII",
"=",
"MBB",
"->",
"instr_end",
"(",
")",
",",
"MIE",
"=",
"MBB",
"->",
"instr_begin",
"(",
")",
";",
"MII",
"!=",
"MIE",
";",
"--",
"MII",
")",
"{",
"MachineInstr",
"&",
"MI",
"=",
"*",
"std",
"::",
"prev",
"(",
"MII",
")",
";",
"if",
"(",
"MI",
".",
"isDebugValue",
"(",
")",
"||",
"MI",
".",
"isDebugLabel",
"(",
")",
")",
"continue",
";",
"RegisterOperands",
"RegOpers",
";",
"RegOpers",
".",
"collect",
"(",
"MI",
",",
"*",
"TRI",
",",
"*",
"MRI",
",",
"false",
",",
"false",
")",
";",
"RPTracker",
".",
"recedeSkipDebugValues",
"(",
")",
";",
"assert",
"(",
"&",
"*",
"RPTracker",
".",
"getPos",
"(",
")",
"==",
"&",
"MI",
"&&",
"\"RPTracker sync error!\"",
")",
";",
"RPTracker",
".",
"recede",
"(",
"RegOpers",
")",
";",
"}",
"RPTracker",
".",
"closeRegion",
"(",
")",
";",
"return",
"RPTracker",
".",
"getPressure",
"(",
")",
".",
"MaxSetPressure",
";",
"}",
";",
"unsigned",
"VSSRCLimit",
"=",
"TRI",
"->",
"getRegPressureSetLimit",
"(",
"*",
"MBB",
"->",
"getParent",
"(",
")",
",",
"PPC",
"::",
"RegisterPressureSets",
"::",
"VSSRC",
")",
";",
"return",
"GetMBBPressure",
"(",
"MBB",
")",
"[",
"PPC",
"::",
"RegisterPressureSets",
"::",
"VSSRC",
"]",
">",
"(",
"float",
")",
"VSSRCLimit",
"*",
"FMARPFactor",
";",
"}",
"</s>"
] | [
"Return",
"true",
"if",
"target",
"supports",
"reassociation",
"of",
"instructions",
"in",
"machine",
"combiner",
"pass",
"to",
"reduce",
"register",
"pressure",
"for",
"a",
"given",
"BB",
"."
] | [
"PowerPC",
"PPC",
"PPC",
"\"RPTracker sync error!\"",
"PPC::RegisterPressureSets",
"PPC::RegisterPressureSets"
] | PPCInstrInfo | shouldReduceRegisterPressure | PowerPC | CPU | LLVM | 2,051 | 309 | 1 | [] |
[
"<s>",
"bool",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"override",
"{",
"const",
"DLXSubtarget",
"&",
"Subtarget",
"=",
"MF",
".",
"getSubtarget",
"<",
"DLXSubtarget",
">",
"(",
")",
";",
"TII",
"=",
"Subtarget",
".",
"getInstrInfo",
"(",
")",
";",
"TRI",
"=",
"Subtarget",
".",
"getRegisterInfo",
"(",
")",
";",
"bool",
"Changed",
"=",
"false",
";",
"for",
"(",
"MachineFunction",
"::",
"iterator",
"FI",
"=",
"MF",
".",
"begin",
"(",
")",
",",
"FE",
"=",
"MF",
".",
"end",
"(",
")",
";",
"FI",
"!=",
"FE",
";",
"++",
"FI",
")",
"Changed",
"|=",
"runOnMachineBasicBlock",
"(",
"*",
"FI",
")",
";",
"return",
"Changed",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"DLX",
"DLX",
"DLX"
] | DLXDelaySlotFiller | runOnMachineFunction | DLX | CPU | LLVM | 2,052 | 84 | 1 | [] |
[
"<s>",
"void",
"PPCTargetLowering",
"::",
"insertCopiesSplitCSR",
"(",
"MachineBasicBlock",
"*",
"Entry",
",",
"const",
"SmallVectorImpl",
"<",
"MachineBasicBlock",
"*",
">",
"&",
"Exits",
")",
"const",
"{",
"const",
"PPCRegisterInfo",
"*",
"TRI",
"=",
"Subtarget",
".",
"getRegisterInfo",
"(",
")",
";",
"const",
"MCPhysReg",
"*",
"IStart",
"=",
"TRI",
"->",
"getCalleeSavedRegsViaCopy",
"(",
"Entry",
"->",
"getParent",
"(",
")",
")",
";",
"if",
"(",
"!",
"IStart",
")",
"return",
";",
"const",
"TargetInstrInfo",
"*",
"TII",
"=",
"Subtarget",
".",
"getInstrInfo",
"(",
")",
";",
"MachineRegisterInfo",
"*",
"MRI",
"=",
"&",
"Entry",
"->",
"getParent",
"(",
")",
"->",
"getRegInfo",
"(",
")",
";",
"MachineBasicBlock",
"::",
"iterator",
"MBBI",
"=",
"Entry",
"->",
"begin",
"(",
")",
";",
"for",
"(",
"const",
"MCPhysReg",
"*",
"I",
"=",
"IStart",
";",
"*",
"I",
";",
"++",
"I",
")",
"{",
"const",
"TargetRegisterClass",
"*",
"RC",
"=",
"nullptr",
";",
"if",
"(",
"PPC",
"::",
"G8RCRegClass",
".",
"contains",
"(",
"*",
"I",
")",
")",
"RC",
"=",
"&",
"PPC",
"::",
"G8RCRegClass",
";",
"else",
"if",
"(",
"PPC",
"::",
"F8RCRegClass",
".",
"contains",
"(",
"*",
"I",
")",
")",
"RC",
"=",
"&",
"PPC",
"::",
"F8RCRegClass",
";",
"else",
"if",
"(",
"PPC",
"::",
"CRRCRegClass",
".",
"contains",
"(",
"*",
"I",
")",
")",
"RC",
"=",
"&",
"PPC",
"::",
"CRRCRegClass",
";",
"else",
"if",
"(",
"PPC",
"::",
"VRRCRegClass",
".",
"contains",
"(",
"*",
"I",
")",
")",
"RC",
"=",
"&",
"PPC",
"::",
"VRRCRegClass",
";",
"else",
"llvm_unreachable",
"(",
"\"Unexpected register class in CSRsViaCopy!\"",
")",
";",
"Register",
"NewVR",
"=",
"MRI",
"->",
"createVirtualRegister",
"(",
"RC",
")",
";",
"assert",
"(",
"Entry",
"->",
"getParent",
"(",
")",
"->",
"getFunction",
"(",
")",
".",
"hasFnAttribute",
"(",
"Attribute",
"::",
"NoUnwind",
")",
"&&",
"\"Function should be nounwind in insertCopiesSplitCSR!\"",
")",
";",
"Entry",
"->",
"addLiveIn",
"(",
"*",
"I",
")",
";",
"BuildMI",
"(",
"*",
"Entry",
",",
"MBBI",
",",
"DebugLoc",
"(",
")",
",",
"TII",
"->",
"get",
"(",
"TargetOpcode",
"::",
"COPY",
")",
",",
"NewVR",
")",
".",
"addReg",
"(",
"*",
"I",
")",
";",
"for",
"(",
"auto",
"*",
"Exit",
":",
"Exits",
")",
"BuildMI",
"(",
"*",
"Exit",
",",
"Exit",
"->",
"getFirstTerminator",
"(",
")",
",",
"DebugLoc",
"(",
")",
",",
"TII",
"->",
"get",
"(",
"TargetOpcode",
"::",
"COPY",
")",
",",
"*",
"I",
")",
".",
"addReg",
"(",
"NewVR",
")",
";",
"}",
"}",
"</s>"
] | [
"Insert",
"explicit",
"copies",
"in",
"entry",
"and",
"exit",
"blocks",
"."
] | [
"PowerPC",
"PPC",
"PPC",
"PPC::G8RCRegClass",
"PPC::G8RCRegClass",
"PPC::F8RCRegClass",
"PPC::F8RCRegClass",
"PPC::CRRCRegClass",
"PPC::CRRCRegClass",
"PPC::VRRCRegClass",
"PPC::VRRCRegClass",
"\"Unexpected register class in CSRsViaCopy!\"",
"\"Function should be nounwind in insertCopiesSplitCSR!\""
] | PPCISelLowering101 | insertCopiesSplitCSR | PowerPC | CPU | LLVM | 2,053 | 311 | 1 | [] |
[
"<s>",
"const",
"uint32_t",
"*",
"AArch64RegisterInfo",
"::",
"getThisReturnPreservedMask",
"(",
"CallingConv",
"::",
"ID",
"CC",
")",
"const",
"{",
"assert",
"(",
"CC",
"!=",
"CallingConv",
"::",
"GHC",
"&&",
"\"should not be GHC calling convention.\"",
")",
";",
"return",
"CSR_AArch64_AAPCS_ThisReturn_RegMask",
";",
"}",
"</s>"
] | [
"getThisReturnPreservedMask",
"-",
"Returns",
"a",
"call",
"preserved",
"mask",
"specific",
"to",
"the",
"case",
"that",
"'returned",
"'",
"is",
"on",
"an",
"i32",
"first",
"argument",
"if",
"the",
"calling",
"convention",
"is",
"one",
"that",
"can",
"(",
"partially",
")",
"model",
"this",
"attribute",
"with",
"a",
"preserved",
"mask",
"(",
"i.e",
"."
] | [
"AArch64",
"AArch64",
"\"should not be GHC calling convention.\"",
"AArch64"
] | AArch64RegisterInfo63 | getThisReturnPreservedMask | AArch64 | CPU | LLVM | 2,054 | 29 | 1 | [] |
[
"<s>",
"scalar_chain",
"::",
"scalar_chain",
"(",
")",
"{",
"chain_id",
"=",
"++",
"max_id",
";",
"if",
"(",
"dump_file",
")",
"fprintf",
"(",
"dump_file",
",",
"\"Created a new instruction chain #%d\\n\"",
",",
"chain_id",
")",
";",
"bitmap_obstack_initialize",
"(",
"NULL",
")",
";",
"insns",
"=",
"BITMAP_ALLOC",
"(",
"NULL",
")",
";",
"defs",
"=",
"BITMAP_ALLOC",
"(",
"NULL",
")",
";",
"defs_conv",
"=",
"BITMAP_ALLOC",
"(",
"NULL",
")",
";",
"queue",
"=",
"NULL",
";",
"}",
"</s>"
] | [
"Initialize",
"new",
"chain",
"."
] | [
"i386",
"\"Created a new instruction chain #%d\\n\""
] | i3865 | scalar_chain | i386 | CPU | GCC | 2,055 | 55 | 1 | [] |
[
"<s>",
"OperandMatchResultTy",
"SparcAsmParser",
"::",
"tryParseRegister",
"(",
"unsigned",
"&",
"RegNo",
",",
"SMLoc",
"&",
"StartLoc",
",",
"SMLoc",
"&",
"EndLoc",
")",
"{",
"const",
"AsmToken",
"&",
"Tok",
"=",
"Parser",
".",
"getTok",
"(",
")",
";",
"StartLoc",
"=",
"Tok",
".",
"getLoc",
"(",
")",
";",
"EndLoc",
"=",
"Tok",
".",
"getEndLoc",
"(",
")",
";",
"RegNo",
"=",
"0",
";",
"if",
"(",
"getLexer",
"(",
")",
".",
"getKind",
"(",
")",
"!=",
"AsmToken",
"::",
"Percent",
")",
"return",
"MatchOperand_Success",
";",
"Parser",
".",
"Lex",
"(",
")",
";",
"unsigned",
"regKind",
"=",
"SparcOperand",
"::",
"rk_None",
";",
"if",
"(",
"matchRegisterName",
"(",
"Tok",
",",
"RegNo",
",",
"regKind",
")",
")",
"{",
"Parser",
".",
"Lex",
"(",
")",
";",
"return",
"MatchOperand_Success",
";",
"}",
"getLexer",
"(",
")",
".",
"UnLex",
"(",
"Tok",
")",
";",
"return",
"MatchOperand_NoMatch",
";",
"}",
"</s>"
] | [
"tryParseRegister",
"-",
"parse",
"one",
"register",
"if",
"possible"
] | [
"Sparc",
"Sparc",
"0",
"SparcOperand::rk_None"
] | SparcAsmParser23 | tryParseRegister | Sparc | CPU | LLVM | 2,056 | 114 | 1 | [] |
[
"<s>",
"void",
"XCorePassConfig",
"::",
"addIRPasses",
"(",
")",
"{",
"addPass",
"(",
"createAtomicExpandPass",
"(",
"&",
"getXCoreTargetMachine",
"(",
")",
")",
")",
";",
"TargetPassConfig",
"::",
"addIRPasses",
"(",
")",
";",
"}",
"</s>"
] | [
"Add",
"common",
"target",
"configurable",
"passes",
"that",
"perform",
"LLVM",
"IR",
"to",
"IR",
"transforms",
"following",
"machine",
"independent",
"optimization",
"."
] | [
"XCore",
"XCore",
"XCore"
] | XCoreTargetMachine15 | addIRPasses | XCore | MPU | LLVM | 2,057 | 25 | 1 | [] |
[
"<s>",
"void",
"WebAssemblyExceptionInfo",
"::",
"recalculate",
"(",
"MachineDominatorTree",
"&",
"MDT",
",",
"const",
"MachineDominanceFrontier",
"&",
"MDF",
")",
"{",
"SmallVector",
"<",
"WebAssemblyException",
"*",
",",
"8",
">",
"Exceptions",
";",
"for",
"(",
"auto",
"DomNode",
":",
"post_order",
"(",
"&",
"MDT",
")",
")",
"{",
"MachineBasicBlock",
"*",
"EHPad",
"=",
"DomNode",
"->",
"getBlock",
"(",
")",
";",
"if",
"(",
"!",
"EHPad",
"->",
"isEHPad",
"(",
")",
")",
"continue",
";",
"auto",
"*",
"WE",
"=",
"new",
"WebAssemblyException",
"(",
"EHPad",
")",
";",
"discoverAndMapException",
"(",
"WE",
",",
"MDT",
",",
"MDF",
")",
";",
"Exceptions",
".",
"push_back",
"(",
"WE",
")",
";",
"}",
"for",
"(",
"auto",
"DomNode",
":",
"post_order",
"(",
"&",
"MDT",
")",
")",
"{",
"MachineBasicBlock",
"*",
"MBB",
"=",
"DomNode",
"->",
"getBlock",
"(",
")",
";",
"WebAssemblyException",
"*",
"WE",
"=",
"getExceptionFor",
"(",
"MBB",
")",
";",
"for",
"(",
";",
"WE",
";",
"WE",
"=",
"WE",
"->",
"getParentException",
"(",
")",
")",
"WE",
"->",
"addBlock",
"(",
"MBB",
")",
";",
"}",
"for",
"(",
"auto",
"*",
"WE",
":",
"Exceptions",
")",
"{",
"if",
"(",
"WE",
"->",
"getParentException",
"(",
")",
")",
"WE",
"->",
"getParentException",
"(",
")",
"->",
"getSubExceptions",
"(",
")",
".",
"push_back",
"(",
"WE",
")",
";",
"else",
"addTopLevelException",
"(",
"WE",
")",
";",
"}",
"for",
"(",
"auto",
"*",
"WE",
":",
"Exceptions",
")",
"{",
"WE",
"->",
"reverseBlock",
"(",
")",
";",
"std",
"::",
"reverse",
"(",
"WE",
"->",
"getSubExceptions",
"(",
")",
".",
"begin",
"(",
")",
",",
"WE",
"->",
"getSubExceptions",
"(",
")",
".",
"end",
"(",
")",
")",
";",
"}",
"}",
"</s>"
] | [
"Notify",
"DTU",
"that",
"the",
"entry",
"block",
"was",
"replaced",
"."
] | [
"WebAssembly",
"WebAssembly",
"WebAssembly",
"8",
"WebAssembly",
"WebAssembly"
] | WebAssemblyExceptionInfo1 | recalculate | WebAssembly | Virtual ISA | LLVM | 2,058 | 217 | 1 | [] |
[
"<s>",
"int",
"m32c_trampoline_alignment",
"(",
"void",
")",
"{",
"return",
"2",
";",
"}",
"</s>"
] | [
"Implements",
"TRAMPOLINE_ALIGNMENT",
"."
] | [
"m32c",
"2"
] | m32c | m32c_trampoline_alignment | m32c | MPU | GCC | 2,059 | 10 | 1 | [] |
[
"<s>",
"EVT",
"X86TargetLowering",
"::",
"getOptimalMemOpType",
"(",
"uint64_t",
"Size",
",",
"unsigned",
"DstAlign",
",",
"unsigned",
"SrcAlign",
",",
"bool",
"NonScalarIntSafe",
",",
"bool",
"MemcpyStrSrc",
",",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"const",
"Function",
"*",
"F",
"=",
"MF",
".",
"getFunction",
"(",
")",
";",
"if",
"(",
"NonScalarIntSafe",
"&&",
"!",
"F",
"->",
"hasFnAttr",
"(",
"Attribute",
"::",
"NoImplicitFloat",
")",
")",
"{",
"if",
"(",
"Size",
">=",
"16",
"&&",
"(",
"Subtarget",
"->",
"isUnalignedMemAccessFast",
"(",
")",
"||",
"(",
"(",
"DstAlign",
"==",
"0",
"||",
"DstAlign",
">=",
"16",
")",
"&&",
"(",
"SrcAlign",
"==",
"0",
"||",
"SrcAlign",
">=",
"16",
")",
")",
")",
"&&",
"Subtarget",
"->",
"getStackAlignment",
"(",
")",
">=",
"16",
")",
"{",
"if",
"(",
"Subtarget",
"->",
"hasSSE2",
"(",
")",
")",
"return",
"MVT",
"::",
"v4i32",
";",
"if",
"(",
"Subtarget",
"->",
"hasSSE1",
"(",
")",
")",
"return",
"MVT",
"::",
"v4f32",
";",
"}",
"else",
"if",
"(",
"!",
"MemcpyStrSrc",
"&&",
"Size",
">=",
"8",
"&&",
"!",
"Subtarget",
"->",
"is64Bit",
"(",
")",
"&&",
"Subtarget",
"->",
"getStackAlignment",
"(",
")",
">=",
"8",
"&&",
"Subtarget",
"->",
"hasSSE2",
"(",
")",
")",
"{",
"return",
"MVT",
"::",
"f64",
";",
"}",
"}",
"if",
"(",
"Subtarget",
"->",
"is64Bit",
"(",
")",
"&&",
"Size",
">=",
"8",
")",
"return",
"MVT",
"::",
"i64",
";",
"return",
"MVT",
"::",
"i32",
";",
"}",
"</s>"
] | [
"It",
"returns",
"EVT",
":",
":Other",
"if",
"the",
"type",
"should",
"be",
"determined",
"using",
"generic",
"target-independent",
"logic",
"."
] | [
"X86",
"X86",
"16",
"0",
"16",
"0",
"16",
"16",
"MVT::v4i32",
"MVT::v4f32",
"8",
"8",
"MVT::f64",
"8",
"MVT::i64",
"MVT::i32"
] | X86ISelLowering73 | getOptimalMemOpType | X86 | CPU | LLVM | 2,060 | 186 | 1 | [] |
[
"<s>",
"RCPair",
"ARMTargetLowering",
"::",
"getRegForInlineAsmConstraint",
"(",
"const",
"std",
"::",
"string",
"&",
"Constraint",
",",
"MVT",
"VT",
")",
"const",
"{",
"if",
"(",
"Constraint",
".",
"size",
"(",
")",
"==",
"1",
")",
"{",
"switch",
"(",
"Constraint",
"[",
"0",
"]",
")",
"{",
"case",
"'l'",
":",
"if",
"(",
"Subtarget",
"->",
"isThumb",
"(",
")",
")",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"tGPRRegClass",
")",
";",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"GPRRegClass",
")",
";",
"case",
"'h'",
":",
"if",
"(",
"Subtarget",
"->",
"isThumb",
"(",
")",
")",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"hGPRRegClass",
")",
";",
"break",
";",
"case",
"'r'",
":",
"if",
"(",
"Subtarget",
"->",
"isThumb1Only",
"(",
")",
")",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"tGPRRegClass",
")",
";",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"GPRRegClass",
")",
";",
"case",
"'w'",
":",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"Other",
")",
"break",
";",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"f32",
")",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"SPRRegClass",
")",
";",
"if",
"(",
"VT",
".",
"getSizeInBits",
"(",
")",
"==",
"64",
")",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"DPRRegClass",
")",
";",
"if",
"(",
"VT",
".",
"getSizeInBits",
"(",
")",
"==",
"128",
")",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"QPRRegClass",
")",
";",
"break",
";",
"case",
"'x'",
":",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"Other",
")",
"break",
";",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"f32",
")",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"SPR_8RegClass",
")",
";",
"if",
"(",
"VT",
".",
"getSizeInBits",
"(",
")",
"==",
"64",
")",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"DPR_8RegClass",
")",
";",
"if",
"(",
"VT",
".",
"getSizeInBits",
"(",
")",
"==",
"128",
")",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"QPR_8RegClass",
")",
";",
"break",
";",
"case",
"'t'",
":",
"if",
"(",
"VT",
"==",
"MVT",
"::",
"f32",
")",
"return",
"RCPair",
"(",
"0U",
",",
"&",
"ARM",
"::",
"SPRRegClass",
")",
";",
"break",
";",
"}",
"}",
"if",
"(",
"StringRef",
"(",
"\"{cc}\"",
")",
".",
"equals_lower",
"(",
"Constraint",
")",
")",
"return",
"std",
"::",
"make_pair",
"(",
"unsigned",
"(",
"ARM",
"::",
"CPSR",
")",
",",
"&",
"ARM",
"::",
"CCRRegClass",
")",
";",
"return",
"TargetLowering",
"::",
"getRegForInlineAsmConstraint",
"(",
"Constraint",
",",
"VT",
")",
";",
"}",
"</s>"
] | [
"Given",
"a",
"physical",
"register",
"constraint",
"(",
"e.g",
"."
] | [
"ARM",
"ARM",
"1",
"0",
"0U",
"ARM::tGPRRegClass",
"0U",
"ARM::GPRRegClass",
"0U",
"ARM::hGPRRegClass",
"0U",
"ARM::tGPRRegClass",
"0U",
"ARM::GPRRegClass",
"MVT::Other",
"MVT::f32",
"0U",
"ARM::SPRRegClass",
"64",
"0U",
"ARM::DPRRegClass",
"128",
"0U",
"ARM::QPRRegClass",
"MVT::Other",
"MVT::f32",
"0U",
"ARM::SPR_8RegClass",
"64",
"0U",
"ARM::DPR_8RegClass",
"128",
"0U",
"ARM::QPR_8RegClass",
"MVT::f32",
"0U",
"ARM::SPRRegClass",
"\"{cc}\"",
"ARM::CPSR",
"ARM::CCRRegClass"
] | ARMISelLowering (2)3 | getRegForInlineAsmConstraint | ARM | CPU | LLVM | 2,061 | 345 | 1 | [] |
[
"<s>",
"const",
"MCExpr",
"*",
"X86ELFTargetObjectFile",
"::",
"getDebugThreadLocalSymbol",
"(",
"const",
"MCSymbol",
"*",
"Sym",
")",
"const",
"{",
"return",
"MCSymbolRefExpr",
"::",
"create",
"(",
"Sym",
",",
"MCSymbolRefExpr",
"::",
"VK_DTPOFF",
",",
"getContext",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"Describe",
"a",
"TLS",
"variable",
"address",
"within",
"debug",
"info",
"."
] | [
"X86",
"X86"
] | X86TargetObjectFile16 | getDebugThreadLocalSymbol | X86 | CPU | LLVM | 2,062 | 31 | 1 | [] |
[
"<s>",
"static",
"section",
"*",
"alpha_elf_select_rtx_section",
"(",
"machine_mode",
"mode",
",",
"rtx",
"x",
",",
"unsigned",
"HOST_WIDE_INT",
"align",
")",
"{",
"if",
"(",
"TARGET_SMALL_DATA",
"&&",
"GET_MODE_SIZE",
"(",
"mode",
")",
"<=",
"g_switch_value",
")",
"return",
"sdata_section",
";",
"else",
"return",
"default_elf_select_rtx_section",
"(",
"mode",
",",
"x",
",",
"align",
")",
";",
"}",
"</s>"
] | [
"Switch",
"to",
"the",
"section",
"to",
"which",
"we",
"should",
"output",
"X",
".",
"The",
"only",
"thing",
"special",
"we",
"do",
"here",
"is",
"to",
"honor",
"small",
"data",
"."
] | [
"alpha"
] | alpha | alpha_elf_select_rtx_section | alpha | MPU | GCC | 2,063 | 42 | 1 | [] |
[
"<s>",
"static",
"rtx",
"aarch64_strip_extend",
"(",
"rtx",
"x",
")",
"{",
"rtx",
"op",
"=",
"x",
";",
"if",
"(",
"(",
"GET_CODE",
"(",
"op",
")",
"==",
"ZERO_EXTRACT",
"||",
"GET_CODE",
"(",
"op",
")",
"==",
"SIGN_EXTRACT",
")",
"&&",
"XEXP",
"(",
"op",
",",
"2",
")",
"==",
"const0_rtx",
"&&",
"GET_CODE",
"(",
"XEXP",
"(",
"op",
",",
"0",
")",
")",
"==",
"MULT",
"&&",
"aarch64_is_extend_from_extract",
"(",
"GET_MODE",
"(",
"op",
")",
",",
"XEXP",
"(",
"XEXP",
"(",
"op",
",",
"0",
")",
",",
"1",
")",
",",
"XEXP",
"(",
"op",
",",
"1",
")",
")",
")",
"return",
"XEXP",
"(",
"XEXP",
"(",
"op",
",",
"0",
")",
",",
"0",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"op",
")",
"==",
"AND",
"&&",
"GET_CODE",
"(",
"XEXP",
"(",
"op",
",",
"0",
")",
")",
"==",
"MULT",
"&&",
"CONST_INT_P",
"(",
"XEXP",
"(",
"XEXP",
"(",
"op",
",",
"0",
")",
",",
"1",
")",
")",
"&&",
"CONST_INT_P",
"(",
"XEXP",
"(",
"op",
",",
"1",
")",
")",
"&&",
"aarch64_uxt_size",
"(",
"exact_log2",
"(",
"INTVAL",
"(",
"XEXP",
"(",
"XEXP",
"(",
"op",
",",
"0",
")",
",",
"1",
")",
")",
")",
",",
"INTVAL",
"(",
"XEXP",
"(",
"op",
",",
"1",
")",
")",
")",
"!=",
"0",
")",
"return",
"XEXP",
"(",
"XEXP",
"(",
"op",
",",
"0",
")",
",",
"0",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"op",
")",
"==",
"ASHIFT",
"&&",
"CONST_INT_P",
"(",
"XEXP",
"(",
"op",
",",
"1",
")",
")",
"&&",
"(",
"(",
"unsigned",
"HOST_WIDE_INT",
")",
"INTVAL",
"(",
"XEXP",
"(",
"op",
",",
"1",
")",
")",
")",
"<=",
"4",
")",
"op",
"=",
"XEXP",
"(",
"op",
",",
"0",
")",
";",
"if",
"(",
"GET_CODE",
"(",
"op",
")",
"==",
"ZERO_EXTEND",
"||",
"GET_CODE",
"(",
"op",
")",
"==",
"SIGN_EXTEND",
")",
"op",
"=",
"XEXP",
"(",
"op",
",",
"0",
")",
";",
"if",
"(",
"op",
"!=",
"x",
")",
"return",
"op",
";",
"return",
"x",
";",
"}",
"</s>"
] | [
"Helper",
"function",
"for",
"rtx",
"cost",
"calculation",
".",
"Strip",
"an",
"extend",
"expression",
"from",
"X",
".",
"Returns",
"the",
"inner",
"operand",
"if",
"successful",
",",
"or",
"the",
"original",
"expression",
"on",
"failure",
".",
"We",
"deal",
"with",
"a",
"number",
"of",
"possible",
"canonicalization",
"variations",
"here",
"."
] | [
"aarch64",
"2",
"0",
"0",
"1",
"1",
"0",
"0",
"0",
"0",
"1",
"1",
"0",
"1",
"1",
"0",
"0",
"0",
"1",
"1",
"4",
"0",
"0"
] | aarch642 | aarch64_strip_extend | aarch64 | CPU | GCC | 2,064 | 268 | 1 | [] |
[
"<s>",
"static",
"rtx",
"rs6000_emit_stack_reset",
"(",
"rs6000_stack_t",
"*",
"info",
",",
"rtx",
"frame_reg_rtx",
",",
"HOST_WIDE_INT",
"frame_off",
",",
"unsigned",
"updt_regno",
")",
"{",
"if",
"(",
"frame_off",
"==",
"0",
"&&",
"REGNO",
"(",
"frame_reg_rtx",
")",
"==",
"updt_regno",
")",
"return",
"NULL_RTX",
";",
"rtx",
"updt_reg_rtx",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"updt_regno",
")",
";",
"if",
"(",
"DEFAULT_ABI",
"==",
"ABI_V4",
"||",
"(",
"TARGET_SPE_ABI",
"&&",
"info",
"->",
"spe_64bit_regs_used",
"!=",
"0",
"&&",
"info",
"->",
"first_gp_reg_save",
"!=",
"32",
")",
")",
"return",
"emit_insn",
"(",
"gen_stack_restore_tie",
"(",
"updt_reg_rtx",
",",
"frame_reg_rtx",
",",
"GEN_INT",
"(",
"frame_off",
")",
")",
")",
";",
"if",
"(",
"frame_off",
"!=",
"0",
")",
"return",
"emit_insn",
"(",
"gen_add3_insn",
"(",
"updt_reg_rtx",
",",
"frame_reg_rtx",
",",
"GEN_INT",
"(",
"frame_off",
")",
")",
")",
";",
"else",
"return",
"emit_move_insn",
"(",
"updt_reg_rtx",
",",
"frame_reg_rtx",
")",
";",
"return",
"NULL_RTX",
";",
"}",
"</s>"
] | [
"Emit",
"a",
"sequence",
"of",
"insns",
",",
"including",
"a",
"stack",
"tie",
"if",
"needed",
",",
"for",
"resetting",
"the",
"stack",
"pointer",
".",
"If",
"UPDT_REGNO",
"is",
"not",
"1",
",",
"then",
"do",
"n't",
"reset",
"the",
"stack",
"pointer",
",",
"but",
"move",
"the",
"base",
"of",
"the",
"frame",
"into",
"reg",
"UPDT_REGNO",
"for",
"use",
"by",
"out-of-line",
"register",
"restore",
"routines",
"."
] | [
"rs6000",
"0",
"0",
"32",
"0"
] | rs60006 | rs6000_emit_stack_reset | rs6000 | CPU | GCC | 2,065 | 117 | 1 | [] |
[
"<s>",
"static",
"void",
"recombine_lvx_stvx_patterns",
"(",
"function",
"*",
"fun",
")",
"{",
"int",
"i",
";",
"basic_block",
"bb",
";",
"rtx_insn",
"*",
"insn",
";",
"int",
"num_insns",
"=",
"get_max_uid",
"(",
")",
";",
"del_info",
"*",
"to_delete",
"=",
"XCNEWVEC",
"(",
"del_info",
",",
"num_insns",
")",
";",
"FOR_ALL_BB_FN",
"(",
"bb",
",",
"fun",
")",
"FOR_BB_INSNS",
"(",
"bb",
",",
"insn",
")",
"{",
"if",
"(",
"!",
"NONDEBUG_INSN_P",
"(",
"insn",
")",
")",
"continue",
";",
"if",
"(",
"insn_is_load_p",
"(",
"insn",
")",
"&&",
"insn_is_swap_p",
"(",
"insn",
")",
")",
"recombine_lvx_pattern",
"(",
"insn",
",",
"to_delete",
")",
";",
"else",
"if",
"(",
"insn_is_store_p",
"(",
"insn",
")",
"&&",
"insn_is_swap_p",
"(",
"insn",
")",
")",
"recombine_stvx_pattern",
"(",
"insn",
",",
"to_delete",
")",
";",
"}",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"num_insns",
";",
"i",
"++",
")",
"if",
"(",
"to_delete",
"[",
"i",
"]",
".",
"replace",
")",
"{",
"rtx",
"swap_body",
"=",
"PATTERN",
"(",
"to_delete",
"[",
"i",
"]",
".",
"replace_insn",
")",
";",
"rtx",
"src_reg",
"=",
"XEXP",
"(",
"SET_SRC",
"(",
"swap_body",
")",
",",
"0",
")",
";",
"rtx",
"copy",
"=",
"gen_rtx_SET",
"(",
"SET_DEST",
"(",
"swap_body",
")",
",",
"src_reg",
")",
";",
"rtx_insn",
"*",
"new_insn",
"=",
"emit_insn_before",
"(",
"copy",
",",
"to_delete",
"[",
"i",
"]",
".",
"replace_insn",
")",
";",
"set_block_for_insn",
"(",
"new_insn",
",",
"BLOCK_FOR_INSN",
"(",
"to_delete",
"[",
"i",
"]",
".",
"replace_insn",
")",
")",
";",
"df_insn_rescan",
"(",
"new_insn",
")",
";",
"df_insn_delete",
"(",
"to_delete",
"[",
"i",
"]",
".",
"replace_insn",
")",
";",
"remove_insn",
"(",
"to_delete",
"[",
"i",
"]",
".",
"replace_insn",
")",
";",
"to_delete",
"[",
"i",
"]",
".",
"replace_insn",
"->",
"set_deleted",
"(",
")",
";",
"}",
"free",
"(",
"to_delete",
")",
";",
"}",
"</s>"
] | [
"Look",
"for",
"patterns",
"created",
"from",
"builtin",
"lvx",
"and",
"stvx",
"calls",
",",
"and",
"canonicalize",
"them",
"to",
"be",
"properly",
"recognized",
"as",
"such",
"."
] | [
"powerpcspe",
"0",
"0"
] | powerpcspe | recombine_lvx_stvx_patterns | powerpcspe | CPU | GCC | 2,066 | 236 | 1 | [] |
[
"<s>",
"EVT",
"PPCTargetLowering",
"::",
"getOptimalMemOpType",
"(",
"uint64_t",
"Size",
",",
"unsigned",
"Align",
",",
"bool",
"isSrcConst",
",",
"bool",
"isSrcStr",
",",
"SelectionDAG",
"&",
"DAG",
")",
"const",
"{",
"if",
"(",
"this",
"->",
"PPCSubTarget",
".",
"isPPC64",
"(",
")",
")",
"{",
"return",
"MVT",
"::",
"i64",
";",
"}",
"else",
"{",
"return",
"MVT",
"::",
"i32",
";",
"}",
"}",
"</s>"
] | [
"It",
"returns",
"EVT",
":",
":Other",
"if",
"the",
"type",
"should",
"be",
"determined",
"using",
"generic",
"target-independent",
"logic",
"."
] | [
"PowerPC",
"PPC",
"PPC",
"PPC",
"MVT::i64",
"MVT::i32"
] | PPCISelLowering107 | getOptimalMemOpType | PowerPC | CPU | LLVM | 2,067 | 49 | 1 | [] |
[
"<s>",
"static",
"bool",
"is_store_insn",
"(",
"rtx",
"insn",
",",
"rtx",
"*",
"str_mem",
")",
"{",
"if",
"(",
"!",
"insn",
"||",
"!",
"INSN_P",
"(",
"insn",
")",
")",
"return",
"false",
";",
"return",
"is_store_insn1",
"(",
"PATTERN",
"(",
"insn",
")",
",",
"str_mem",
")",
";",
"}",
"</s>"
] | [
"Determine",
"if",
"INSN",
"stores",
"to",
"memory",
"."
] | [
"powerpcspe"
] | powerpcspe | is_store_insn | powerpcspe | CPU | GCC | 2,068 | 38 | 1 | [] |
[
"<s>",
"static",
"unsigned",
"int",
"m68k_hard_regno_nregs",
"(",
"unsigned",
"int",
"regno",
",",
"machine_mode",
"mode",
")",
"{",
"if",
"(",
"regno",
">=",
"16",
")",
"return",
"GET_MODE_NUNITS",
"(",
"mode",
")",
";",
"return",
"CEIL",
"(",
"GET_MODE_SIZE",
"(",
"mode",
")",
",",
"UNITS_PER_WORD",
")",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_HARD_REGNO_NREGS",
".",
"On",
"the",
"m68k",
",",
"ordinary",
"registers",
"hold",
"32",
"bits",
"worth",
";",
"for",
"the",
"68881",
"registers",
",",
"a",
"single",
"register",
"is",
"always",
"enough",
"for",
"anything",
"that",
"can",
"be",
"stored",
"in",
"them",
"at",
"all",
"."
] | [
"m68k",
"16"
] | m68k | m68k_hard_regno_nregs | m68k | MPU | GCC | 2,069 | 37 | 1 | [] |
[
"<s>",
"static",
"machine_mode",
"aarch64_simd_container_mode",
"(",
"machine_mode",
"mode",
",",
"unsigned",
"width",
")",
"{",
"gcc_assert",
"(",
"width",
"==",
"64",
"||",
"width",
"==",
"128",
")",
";",
"if",
"(",
"TARGET_SIMD",
")",
"{",
"if",
"(",
"width",
"==",
"128",
")",
"switch",
"(",
"mode",
")",
"{",
"case",
"DFmode",
":",
"return",
"V2DFmode",
";",
"case",
"SFmode",
":",
"return",
"V4SFmode",
";",
"case",
"HFmode",
":",
"return",
"V8HFmode",
";",
"case",
"SImode",
":",
"return",
"V4SImode",
";",
"case",
"HImode",
":",
"return",
"V8HImode",
";",
"case",
"QImode",
":",
"return",
"V16QImode",
";",
"case",
"DImode",
":",
"return",
"V2DImode",
";",
"default",
":",
"break",
";",
"}",
"else",
"switch",
"(",
"mode",
")",
"{",
"case",
"SFmode",
":",
"return",
"V2SFmode",
";",
"case",
"HFmode",
":",
"return",
"V4HFmode",
";",
"case",
"SImode",
":",
"return",
"V2SImode",
";",
"case",
"HImode",
":",
"return",
"V4HImode",
";",
"case",
"QImode",
":",
"return",
"V8QImode",
";",
"default",
":",
"break",
";",
"}",
"}",
"return",
"word_mode",
";",
"}",
"</s>"
] | [
"Return",
"appropriate",
"SIMD",
"container",
"for",
"MODE",
"within",
"a",
"vector",
"of",
"WIDTH",
"bits",
"."
] | [
"aarch64",
"64",
"128",
"128"
] | aarch644 | aarch64_simd_container_mode | aarch64 | CPU | GCC | 2,070 | 131 | 1 | [] |
[
"<s>",
"const",
"char",
"*",
"AMDGPUPALMetadata",
"::",
"getVendor",
"(",
")",
"const",
"{",
"return",
"isLegacy",
"(",
")",
"?",
"ElfNote",
"::",
"NoteNameV2",
":",
"ElfNote",
"::",
"NoteNameV3",
";",
"}",
"</s>"
] | [
"Get",
"the",
"parsed",
"vendor",
"type",
"of",
"this",
"triple",
"."
] | [
"AMDGPU",
"AMDGPU"
] | AMDGPUPALMetadata | getVendor | AMDGPU | GPU | LLVM | 2,071 | 24 | 1 | [] |
[
"<s>",
"static",
"bool",
"rs6000_secondary_reload_simple_move",
"(",
"enum",
"rs6000_reg_type",
"to_type",
",",
"enum",
"rs6000_reg_type",
"from_type",
",",
"machine_mode",
"mode",
")",
"{",
"int",
"size",
"=",
"GET_MODE_SIZE",
"(",
"mode",
")",
";",
"if",
"(",
"TARGET_DIRECT_MOVE",
"&&",
"(",
"(",
"to_type",
"==",
"GPR_REG_TYPE",
"&&",
"from_type",
"==",
"VSX_REG_TYPE",
")",
"||",
"(",
"to_type",
"==",
"VSX_REG_TYPE",
"&&",
"from_type",
"==",
"GPR_REG_TYPE",
")",
")",
")",
"{",
"if",
"(",
"TARGET_POWERPC64",
")",
"{",
"if",
"(",
"size",
"==",
"8",
")",
"return",
"true",
";",
"if",
"(",
"size",
"==",
"16",
"&&",
"TARGET_P9_VECTOR",
"&&",
"mode",
"!=",
"TDmode",
")",
"return",
"true",
";",
"}",
"if",
"(",
"TARGET_P8_VECTOR",
")",
"{",
"if",
"(",
"mode",
"==",
"SImode",
")",
"return",
"true",
";",
"if",
"(",
"TARGET_P9_VECTOR",
"&&",
"(",
"mode",
"==",
"HImode",
"||",
"mode",
"==",
"QImode",
")",
")",
"return",
"true",
";",
"}",
"if",
"(",
"mode",
"==",
"SDmode",
")",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"TARGET_MFPGPR",
"&&",
"TARGET_POWERPC64",
"&&",
"size",
"==",
"8",
"&&",
"(",
"(",
"to_type",
"==",
"GPR_REG_TYPE",
"&&",
"from_type",
"==",
"FPR_REG_TYPE",
")",
"||",
"(",
"to_type",
"==",
"FPR_REG_TYPE",
"&&",
"from_type",
"==",
"GPR_REG_TYPE",
")",
")",
")",
"return",
"true",
";",
"else",
"if",
"(",
"(",
"size",
"==",
"4",
"||",
"(",
"TARGET_POWERPC64",
"&&",
"size",
"==",
"8",
")",
")",
"&&",
"(",
"(",
"to_type",
"==",
"GPR_REG_TYPE",
"&&",
"from_type",
"==",
"SPR_REG_TYPE",
")",
"||",
"(",
"to_type",
"==",
"SPR_REG_TYPE",
"&&",
"from_type",
"==",
"GPR_REG_TYPE",
")",
")",
")",
"return",
"true",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"Helper",
"function",
"for",
"rs6000_secondary_reload",
"to",
"return",
"true",
"if",
"a",
"move",
"to",
"a",
"different",
"register",
"classe",
"is",
"really",
"a",
"simple",
"move",
"."
] | [
"rs6000",
"8",
"16",
"8",
"4",
"8"
] | rs60007 | rs6000_secondary_reload_simple_move | rs6000 | CPU | GCC | 2,072 | 205 | 1 | [] |
[
"<s>",
"static",
"unsigned",
"HOST_WIDE_INT",
"mips_asan_shadow_offset",
"(",
"void",
")",
"{",
"return",
"SUBTARGET_SHADOW_OFFSET",
";",
"}",
"</s>"
] | [
"Implement",
"the",
"TARGET_ASAN_SHADOW_OFFSET",
"hook",
"."
] | [
"mips"
] | mips | mips_asan_shadow_offset | mips | CPU | GCC | 2,073 | 12 | 1 | [] |
[
"<s>",
"void",
"AArch64PassConfig",
"::",
"addPreEmitPass",
"(",
")",
"{",
"if",
"(",
"TM",
"->",
"getOptLevel",
"(",
")",
">=",
"CodeGenOpt",
"::",
"Aggressive",
"&&",
"EnableLoadStoreOpt",
")",
"addPass",
"(",
"createAArch64LoadStoreOptimizationPass",
"(",
")",
")",
";",
"if",
"(",
"EnableA53Fix835769",
")",
"addPass",
"(",
"createAArch64A53Fix835769",
"(",
")",
")",
";",
"if",
"(",
"EnableBranchTargets",
")",
"addPass",
"(",
"createAArch64BranchTargetsPass",
"(",
")",
")",
";",
"if",
"(",
"BranchRelaxation",
")",
"addPass",
"(",
"&",
"BranchRelaxationPassID",
")",
";",
"if",
"(",
"TM",
"->",
"getTargetTriple",
"(",
")",
".",
"isOSWindows",
"(",
")",
")",
"{",
"addPass",
"(",
"createCFGuardLongjmpPass",
"(",
")",
")",
";",
"addPass",
"(",
"createEHContGuardCatchretPass",
"(",
")",
")",
";",
"}",
"if",
"(",
"TM",
"->",
"getOptLevel",
"(",
")",
"!=",
"CodeGenOpt",
"::",
"None",
"&&",
"EnableCompressJumpTables",
")",
"addPass",
"(",
"createAArch64CompressJumpTablesPass",
"(",
")",
")",
";",
"addPass",
"(",
"createAArch64ExpandHardenedPseudosPass",
"(",
")",
")",
";",
"if",
"(",
"TM",
"->",
"getOptLevel",
"(",
")",
"!=",
"CodeGenOpt",
"::",
"None",
"&&",
"EnableCollectLOH",
"&&",
"TM",
"->",
"getTargetTriple",
"(",
")",
".",
"isOSBinFormatMachO",
"(",
")",
")",
"addPass",
"(",
"createAArch64CollectLOHPass",
"(",
")",
")",
";",
"}",
"</s>"
] | [
"This",
"pass",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"immediately",
"before",
"machine",
"code",
"is",
"emitted",
"."
] | [
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64",
"AArch64"
] | AArch64TargetMachine47 | addPreEmitPass | AArch64 | CPU | LLVM | 2,074 | 148 | 1 | [] |
[
"<s>",
"bool",
"HexagonInstrInfo",
"::",
"isPredicated",
"(",
"unsigned",
"Opcode",
")",
"const",
"{",
"const",
"uint64_t",
"F",
"=",
"get",
"(",
"Opcode",
")",
".",
"TSFlags",
";",
"return",
"(",
"(",
"F",
">>",
"HexagonII",
"::",
"PredicatedPos",
")",
"&",
"HexagonII",
"::",
"PredicatedMask",
")",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"the",
"instruction",
"is",
"already",
"predicated",
"."
] | [
"Hexagon",
"Hexagon",
"HexagonII::PredicatedPos",
"HexagonII::PredicatedMask"
] | HexagonInstrInfo | isPredicated | Hexagon | DSP | LLVM | 2,075 | 37 | 1 | [] |
[
"<s>",
"static",
"rtx",
"nds32_expand_scw_builtin",
"(",
"enum",
"insn_code",
"icode",
",",
"tree",
"exp",
",",
"rtx",
"target",
")",
"{",
"rtx",
"pat",
";",
"rtx",
"op0",
"=",
"nds32_read_argument",
"(",
"exp",
",",
"0",
")",
";",
"rtx",
"op1",
"=",
"nds32_read_argument",
"(",
"exp",
",",
"1",
")",
";",
"rtx",
"addr_helper",
"=",
"gen_reg_rtx",
"(",
"insn_data",
"[",
"icode",
"]",
".",
"operand",
"[",
"1",
"]",
".",
"mode",
")",
";",
"target",
"=",
"nds32_legitimize_target",
"(",
"icode",
",",
"target",
")",
";",
"op0",
"=",
"nds32_legitimize_argument",
"(",
"icode",
",",
"1",
",",
"op0",
")",
";",
"op1",
"=",
"nds32_legitimize_argument",
"(",
"icode",
",",
"2",
",",
"op1",
")",
";",
"pat",
"=",
"GEN_FCN",
"(",
"icode",
")",
"(",
"target",
",",
"op0",
",",
"addr_helper",
",",
"target",
")",
";",
"if",
"(",
"!",
"pat",
")",
"return",
"NULL_RTX",
";",
"emit_move_insn",
"(",
"addr_helper",
",",
"GEN_INT",
"(",
"0",
")",
")",
";",
"emit_move_insn",
"(",
"target",
",",
"op1",
")",
";",
"emit_insn",
"(",
"pat",
")",
";",
"return",
"target",
";",
"}",
"</s>"
] | [
"Expand",
"scw",
"builtins",
"."
] | [
"nds32",
"0",
"1",
"1",
"1",
"2",
"0"
] | nds32-intrinsic | nds32_expand_scw_builtin | nds32 | CPU | GCC | 2,076 | 137 | 1 | [] |
[
"<s>",
"Optional",
"<",
"MCDisassembler",
"::",
"DecodeStatus",
">",
"MOSDisassembler",
"::",
"onSymbolStart",
"(",
"SymbolInfoTy",
"&",
"Symbol",
",",
"uint64_t",
"&",
"Size",
",",
"ArrayRef",
"<",
"uint8_t",
">",
"Bytes",
",",
"uint64_t",
"Address",
",",
"raw_ostream",
"&",
"CStream",
")",
"const",
"{",
"if",
"(",
"Has65816",
")",
"{",
"if",
"(",
"Symbol",
".",
"Name",
".",
"startswith",
"(",
"\"$ml\"",
")",
")",
"MLow",
"=",
"true",
";",
"else",
"if",
"(",
"Symbol",
".",
"Name",
".",
"startswith",
"(",
"\"$mh\"",
")",
")",
"MLow",
"=",
"false",
";",
"else",
"if",
"(",
"Symbol",
".",
"Name",
".",
"startswith",
"(",
"\"$xl\"",
")",
")",
"XLow",
"=",
"true",
";",
"else",
"if",
"(",
"Symbol",
".",
"Name",
".",
"startswith",
"(",
"\"$xh\"",
")",
")",
"XLow",
"=",
"false",
";",
"}",
"return",
"None",
";",
"}",
"</s>"
] | [
"Used",
"to",
"perform",
"separate",
"target",
"specific",
"disassembly",
"for",
"a",
"particular",
"symbol",
"."
] | [
"MOS",
"MOS",
"\"$ml\"",
"\"$mh\"",
"\"$xl\"",
"\"$xh\""
] | MOSDisassembler | onSymbolStart | MOS | MPU | LLVM | 2,077 | 106 | 1 | [] |
[
"<s>",
"machine_mode",
"mmix_promote_function_mode",
"(",
"const_tree",
"type",
"ATTRIBUTE_UNUSED",
",",
"machine_mode",
"mode",
",",
"int",
"*",
"punsignedp",
"ATTRIBUTE_UNUSED",
",",
"const_tree",
"fntype",
"ATTRIBUTE_UNUSED",
",",
"int",
"for_return",
")",
"{",
"if",
"(",
"for_return",
"==",
"1",
")",
"return",
"mode",
";",
"if",
"(",
"GET_MODE_CLASS",
"(",
"mode",
")",
"==",
"MODE_INT",
"&&",
"GET_MODE_SIZE",
"(",
"mode",
")",
"<",
"8",
")",
"return",
"DImode",
";",
"else",
"return",
"mode",
";",
"}",
"</s>"
] | [
"Worker",
"function",
"for",
"TARGET_PROMOTE_FUNCTION_MODE",
"."
] | [
"mmix",
"1",
"8"
] | mmix | mmix_promote_function_mode | mmix | CPU | GCC | 2,078 | 56 | 1 | [] |
[
"<s>",
"bool",
"MipsCodeEmitter",
"::",
"runOnMachineFunction",
"(",
"MachineFunction",
"&",
"MF",
")",
"{",
"MipsTargetMachine",
"&",
"Target",
"=",
"static_cast",
"<",
"MipsTargetMachine",
"&",
">",
"(",
"const_cast",
"<",
"TargetMachine",
"&",
">",
"(",
"MF",
".",
"getTarget",
"(",
")",
")",
")",
";",
"JTI",
"=",
"Target",
".",
"getJITInfo",
"(",
")",
";",
"II",
"=",
"Target",
".",
"getInstrInfo",
"(",
")",
";",
"TD",
"=",
"Target",
".",
"getDataLayout",
"(",
")",
";",
"Subtarget",
"=",
"&",
"TM",
".",
"getSubtarget",
"<",
"MipsSubtarget",
">",
"(",
")",
";",
"MCPEs",
"=",
"&",
"MF",
".",
"getConstantPool",
"(",
")",
"->",
"getConstants",
"(",
")",
";",
"MJTEs",
"=",
"nullptr",
";",
"if",
"(",
"MF",
".",
"getJumpTableInfo",
"(",
")",
")",
"MJTEs",
"=",
"&",
"MF",
".",
"getJumpTableInfo",
"(",
")",
"->",
"getJumpTables",
"(",
")",
";",
"JTI",
"->",
"Initialize",
"(",
"MF",
",",
"IsPIC",
",",
"Subtarget",
"->",
"isLittle",
"(",
")",
")",
";",
"MCE",
".",
"setModuleInfo",
"(",
"&",
"getAnalysis",
"<",
"MachineModuleInfo",
">",
"(",
")",
")",
";",
"do",
"{",
"DEBUG",
"(",
"errs",
"(",
")",
"<<",
"\"JITTing function '\"",
"<<",
"MF",
".",
"getName",
"(",
")",
"<<",
"\"'\\n\"",
")",
";",
"MCE",
".",
"startFunction",
"(",
"MF",
")",
";",
"for",
"(",
"MachineFunction",
"::",
"iterator",
"MBB",
"=",
"MF",
".",
"begin",
"(",
")",
",",
"E",
"=",
"MF",
".",
"end",
"(",
")",
";",
"MBB",
"!=",
"E",
";",
"++",
"MBB",
")",
"{",
"MCE",
".",
"StartMachineBasicBlock",
"(",
"MBB",
")",
";",
"for",
"(",
"MachineBasicBlock",
"::",
"instr_iterator",
"I",
"=",
"MBB",
"->",
"instr_begin",
"(",
")",
",",
"E",
"=",
"MBB",
"->",
"instr_end",
"(",
")",
";",
"I",
"!=",
"E",
";",
")",
"emitInstruction",
"(",
"*",
"I",
"++",
",",
"*",
"MBB",
")",
";",
"}",
"}",
"while",
"(",
"MCE",
".",
"finishFunction",
"(",
"MF",
")",
")",
";",
"return",
"false",
";",
"}",
"</s>"
] | [
"runOnMachineFunction",
"-",
"Emit",
"the",
"function",
"body",
"."
] | [
"Mips",
"Mips",
"Mips",
"Mips",
"Mips",
"\"JITTing function '\"",
"\"'\\n\""
] | MipsCodeEmitter11 | runOnMachineFunction | Mips | CPU | LLVM | 2,079 | 250 | 1 | [] |
[
"<s>",
"virtual",
"MachineInstr",
"*",
"foldMemoryOperandImpl",
"(",
"MachineFunction",
"&",
"MF",
",",
"MachineInstr",
"*",
"MI",
",",
"const",
"SmallVectorImpl",
"<",
"unsigned",
">",
"&",
"Ops",
",",
"MachineInstr",
"*",
"LoadMI",
")",
"const",
"{",
"return",
"0",
";",
"}",
"</s>"
] | [
"foldMemoryOperand",
"-",
"Same",
"as",
"the",
"previous",
"version",
"except",
"it",
"allows",
"folding",
"of",
"any",
"load",
"and",
"store",
"from",
"/",
"to",
"any",
"address",
",",
"not",
"just",
"from",
"a",
"specific",
"stack",
"slot",
"."
] | [
"Hexagon",
"0"
] | HexagonInstrInfo (2) | foldMemoryOperandImpl | Hexagon | DSP | LLVM | 2,080 | 31 | 1 | [] |
[
"<s>",
"bool",
"R600InstrInfo",
"::",
"isVector",
"(",
"const",
"MachineInstr",
"&",
"MI",
")",
"const",
"{",
"return",
"get",
"(",
"MI",
".",
"getOpcode",
"(",
")",
")",
".",
"TSFlags",
"&",
"R600_InstFlag",
"::",
"VECTOR",
";",
"}",
"</s>"
] | [
"Vector",
"instructions",
"are",
"instructions",
"that",
"must",
"fill",
"all",
"instruction",
"slots",
"within",
"an",
"instruction",
"group",
"."
] | [
"AMDGPU",
"R600",
"R600_InstFlag::VECTOR"
] | R600InstrInfo (2) | isVector | AMDGPU | GPU | LLVM | 2,081 | 29 | 1 | [] |
[
"<s>",
"static",
"void",
"mips_legitimize_const_move",
"(",
"enum",
"machine_mode",
"mode",
",",
"rtx",
"dest",
",",
"rtx",
"src",
")",
"{",
"rtx",
"base",
";",
"HOST_WIDE_INT",
"offset",
";",
"enum",
"mips_symbol_type",
"symbol_type",
";",
"if",
"(",
"GET_CODE",
"(",
"src",
")",
"==",
"CONST_INT",
"&&",
"!",
"TARGET_MIPS16",
")",
"{",
"mips_move_integer",
"(",
"dest",
",",
"INTVAL",
"(",
"src",
")",
")",
";",
"return",
";",
"}",
"if",
"(",
"mips_tls_operand_p",
"(",
"src",
")",
")",
"{",
"emit_move_insn",
"(",
"dest",
",",
"mips_legitimize_tls_address",
"(",
"src",
")",
")",
";",
"return",
";",
"}",
"if",
"(",
"!",
"TARGET_MIPS16",
"&&",
"mips_symbolic_constant_p",
"(",
"src",
",",
"&",
"symbol_type",
")",
"&&",
"mips_split_p",
"[",
"symbol_type",
"]",
")",
"{",
"emit_move_insn",
"(",
"dest",
",",
"mips_split_symbol",
"(",
"dest",
",",
"src",
")",
")",
";",
"return",
";",
"}",
"mips_split_const",
"(",
"src",
",",
"&",
"base",
",",
"&",
"offset",
")",
";",
"if",
"(",
"!",
"TARGET_MIPS16",
"&&",
"offset",
"!=",
"0",
"&&",
"(",
"!",
"no_new_pseudos",
"||",
"SMALL_OPERAND",
"(",
"offset",
")",
")",
")",
"{",
"base",
"=",
"mips_force_temporary",
"(",
"dest",
",",
"base",
")",
";",
"emit_move_insn",
"(",
"dest",
",",
"mips_add_offset",
"(",
"0",
",",
"base",
",",
"offset",
")",
")",
";",
"return",
";",
"}",
"src",
"=",
"force_const_mem",
"(",
"mode",
",",
"src",
")",
";",
"if",
"(",
"!",
"memory_operand",
"(",
"src",
",",
"VOIDmode",
")",
")",
"src",
"=",
"replace_equiv_address",
"(",
"src",
",",
"mips_split_symbol",
"(",
"dest",
",",
"XEXP",
"(",
"src",
",",
"0",
")",
")",
")",
";",
"emit_move_insn",
"(",
"dest",
",",
"src",
")",
";",
"}",
"</s>"
] | [
"Subroutine",
"of",
"mips_legitimize_move",
".",
"Move",
"constant",
"SRC",
"into",
"register",
"DEST",
"given",
"that",
"SRC",
"satisfies",
"immediate_operand",
"but",
"does",
"n't",
"satisfy",
"move_operand",
"."
] | [
"mips",
"0",
"0",
"0"
] | mips3 | mips_legitimize_const_move | mips | CPU | GCC | 2,082 | 209 | 1 | [] |
[
"<s>",
"void",
"cris_asm_output_case_end",
"(",
"FILE",
"*",
"stream",
",",
"int",
"num",
",",
"rtx",
"table",
")",
"{",
"rtx",
"whole_jump_insn",
"=",
"prev_nonnote_nondebug_insn",
"(",
"table",
")",
";",
"gcc_assert",
"(",
"whole_jump_insn",
"!=",
"NULL_RTX",
"&&",
"LABEL_P",
"(",
"whole_jump_insn",
")",
")",
";",
"whole_jump_insn",
"=",
"prev_nonnote_nondebug_insn",
"(",
"whole_jump_insn",
")",
";",
"gcc_assert",
"(",
"whole_jump_insn",
"!=",
"NULL_RTX",
"&&",
"(",
"JUMP_P",
"(",
"whole_jump_insn",
")",
"||",
"(",
"TARGET_V32",
"&&",
"INSN_P",
"(",
"whole_jump_insn",
")",
"&&",
"GET_CODE",
"(",
"PATTERN",
"(",
"whole_jump_insn",
")",
")",
"==",
"SEQUENCE",
")",
")",
")",
";",
"whole_jump_insn",
"=",
"PATTERN",
"(",
"whole_jump_insn",
")",
";",
"if",
"(",
"TARGET_V32",
")",
"{",
"rtx",
"parallel_jump",
"=",
"(",
"GET_CODE",
"(",
"whole_jump_insn",
")",
"==",
"SEQUENCE",
"?",
"PATTERN",
"(",
"XVECEXP",
"(",
"whole_jump_insn",
",",
"0",
",",
"0",
")",
")",
":",
"whole_jump_insn",
")",
";",
"asm_fprintf",
"(",
"stream",
",",
"\"\\t.word %LL%d-.%s\\n\"",
",",
"CODE_LABEL_NUMBER",
"(",
"XEXP",
"(",
"XEXP",
"(",
"XEXP",
"(",
"XVECEXP",
"(",
"parallel_jump",
",",
"0",
",",
"0",
")",
",",
"1",
")",
",",
"2",
")",
",",
"0",
")",
")",
",",
"(",
"TARGET_PDEBUG",
"?",
"\"; default\"",
":",
"\"\"",
")",
")",
";",
"return",
";",
"}",
"asm_fprintf",
"(",
"stream",
",",
"\"\\t.word %LL%d-%LL%d%s\\n\"",
",",
"CODE_LABEL_NUMBER",
"(",
"XEXP",
"(",
"XEXP",
"(",
"XEXP",
"(",
"XVECEXP",
"(",
"whole_jump_insn",
",",
"0",
",",
"0",
")",
",",
"1",
")",
",",
"2",
")",
",",
"0",
")",
")",
",",
"num",
",",
"(",
"TARGET_PDEBUG",
"?",
"\"; default\"",
":",
"\"\"",
")",
")",
";",
"}",
"</s>"
] | [
"The",
"ASM_OUTPUT_CASE_END",
"worker",
"."
] | [
"cris",
"0",
"0",
"\"\\t.word %LL%d-.%s\\n\"",
"0",
"0",
"1",
"2",
"0",
"\"; default\"",
"\"\"",
"\"\\t.word %LL%d-%LL%d%s\\n\"",
"0",
"0",
"1",
"2",
"0",
"\"; default\"",
"\"\""
] | cris4 | cris_asm_output_case_end | cris | MPU | GCC | 2,083 | 202 | 1 | [] |
[
"<s>",
"void",
"AArch64PostLegalizerCombiner",
"::",
"getAnalysisUsage",
"(",
"AnalysisUsage",
"&",
"AU",
")",
"const",
"{",
"AU",
".",
"addRequired",
"<",
"TargetPassConfig",
">",
"(",
")",
";",
"AU",
".",
"setPreservesCFG",
"(",
")",
";",
"getSelectionDAGFallbackAnalysisUsage",
"(",
"AU",
")",
";",
"AU",
".",
"addRequired",
"<",
"GISelKnownBitsAnalysis",
">",
"(",
")",
";",
"AU",
".",
"addPreserved",
"<",
"GISelKnownBitsAnalysis",
">",
"(",
")",
";",
"if",
"(",
"!",
"IsOptNone",
")",
"{",
"AU",
".",
"addRequired",
"<",
"MachineDominatorTree",
">",
"(",
")",
";",
"AU",
".",
"addPreserved",
"<",
"MachineDominatorTree",
">",
"(",
")",
";",
"}",
"MachineFunctionPass",
"::",
"getAnalysisUsage",
"(",
"AU",
")",
";",
"}",
"</s>"
] | [
"getAnalysisUsage",
"-",
"Subclasses",
"that",
"override",
"getAnalysisUsage",
"must",
"call",
"this",
"."
] | [
"AArch64",
"AArch64"
] | AArch64PostLegalizerCombiner | getAnalysisUsage | AArch64 | CPU | LLVM | 2,084 | 82 | 1 | [] |
[
"<s>",
"bool",
"ARMBaseTargetMachine",
"::",
"addPreEmitPass",
"(",
"PassManagerBase",
"&",
"PM",
",",
"CodeGenOpt",
"::",
"Level",
"OptLevel",
")",
"{",
"if",
"(",
"OptLevel",
"!=",
"CodeGenOpt",
"::",
"None",
")",
"{",
"if",
"(",
"!",
"Subtarget",
".",
"isThumb1Only",
"(",
")",
")",
"PM",
".",
"add",
"(",
"createIfConverterPass",
"(",
")",
")",
";",
"if",
"(",
"Subtarget",
".",
"hasNEON",
"(",
")",
")",
"PM",
".",
"add",
"(",
"createNEONMoveFixPass",
"(",
")",
")",
";",
"}",
"if",
"(",
"Subtarget",
".",
"isThumb2",
"(",
")",
")",
"{",
"PM",
".",
"add",
"(",
"createThumb2ITBlockPass",
"(",
")",
")",
";",
"PM",
".",
"add",
"(",
"createThumb2SizeReductionPass",
"(",
")",
")",
";",
"}",
"PM",
".",
"add",
"(",
"createARMConstantIslandPass",
"(",
")",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"This",
"pass",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"immediately",
"before",
"machine",
"code",
"is",
"emitted",
"."
] | [
"ARM",
"ARM",
"ARM"
] | ARMTargetMachine91 | addPreEmitPass | ARM | CPU | LLVM | 2,085 | 101 | 1 | [] |
[
"<s>",
"static",
"bool",
"isConstant",
"(",
"const",
"MachineInstr",
"&",
"MI",
")",
"{",
"return",
"MI",
".",
"getOpcode",
"(",
")",
"==",
"TargetOpcode",
"::",
"G_CONSTANT",
";",
"}",
"</s>"
] | [
"Returns",
"true",
"if",
"we",
"know",
"the",
"value",
"of",
"all",
"bits",
"."
] | [
"AMDGPU"
] | AMDGPUInstructionSelector | isConstant | AMDGPU | GPU | LLVM | 2,086 | 22 | 1 | [] |
[
"<s>",
"static",
"void",
"nios2_emit_stack_limit_check",
"(",
"int",
"size",
")",
"{",
"rtx",
"sum",
"=",
"NULL_RTX",
";",
"if",
"(",
"GET_CODE",
"(",
"stack_limit_rtx",
")",
"==",
"SYMBOL_REF",
")",
"{",
"sum",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"TEMP_REG_NUM",
")",
";",
"emit_move_insn",
"(",
"sum",
",",
"plus_constant",
"(",
"Pmode",
",",
"stack_limit_rtx",
",",
"size",
")",
")",
";",
"}",
"else",
"if",
"(",
"!",
"REG_P",
"(",
"stack_limit_rtx",
")",
")",
"sorry",
"(",
"\"Unknown form for stack limit expression\"",
")",
";",
"else",
"if",
"(",
"size",
"==",
"0",
")",
"sum",
"=",
"stack_limit_rtx",
";",
"else",
"if",
"(",
"SMALL_INT",
"(",
"size",
")",
")",
"{",
"sum",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"TEMP_REG_NUM",
")",
";",
"emit_move_insn",
"(",
"sum",
",",
"plus_constant",
"(",
"Pmode",
",",
"stack_limit_rtx",
",",
"size",
")",
")",
";",
"}",
"else",
"{",
"sum",
"=",
"gen_rtx_REG",
"(",
"Pmode",
",",
"TEMP_REG_NUM",
")",
";",
"emit_move_insn",
"(",
"sum",
",",
"gen_int_mode",
"(",
"size",
",",
"Pmode",
")",
")",
";",
"emit_insn",
"(",
"gen_add2_insn",
"(",
"sum",
",",
"stack_limit_rtx",
")",
")",
";",
"}",
"emit_insn",
"(",
"gen_ctrapsi4",
"(",
"gen_rtx_LTU",
"(",
"VOIDmode",
",",
"stack_pointer_rtx",
",",
"sum",
")",
",",
"stack_pointer_rtx",
",",
"sum",
",",
"GEN_INT",
"(",
"3",
")",
")",
")",
";",
"}",
"</s>"
] | [
"Emit",
"conditional",
"trap",
"for",
"checking",
"stack",
"limit",
"."
] | [
"nios2",
"\"Unknown form for stack limit expression\"",
"0",
"3"
] | nios2 | nios2_emit_stack_limit_check | nios2 | MPU | GCC | 2,087 | 164 | 1 | [] |
[
"<s>",
"static",
"unsigned",
"int",
"spu_hard_regno_nregs",
"(",
"unsigned",
"int",
",",
"machine_mode",
"mode",
")",
"{",
"return",
"CEIL",
"(",
"GET_MODE_BITSIZE",
"(",
"mode",
")",
",",
"MAX_FIXED_MODE_SIZE",
")",
";",
"}",
"</s>"
] | [
"Implement",
"TARGET_HARD_REGNO_NREGS",
"."
] | [
"spu"
] | spu3 | spu_hard_regno_nregs | spu | MPU | GCC | 2,088 | 24 | 1 | [] |
[
"<s>",
"StringRef",
"getPassName",
"(",
")",
"const",
"override",
"{",
"return",
"OPTADDRMODE_DESC",
";",
"}",
"</s>"
] | [
"getPassName",
"-",
"Return",
"a",
"nice",
"clean",
"name",
"for",
"a",
"pass",
"."
] | [
"ARC"
] | ARCOptAddrMode | getPassName | ARC | MPU | LLVM | 2,089 | 11 | 1 | [] |
[
"<s>",
"BitVector",
"MipsRegisterInfo",
"::",
"getReservedRegs",
"(",
"const",
"MachineFunction",
"&",
"MF",
")",
"const",
"{",
"static",
"const",
"uint16_t",
"ReservedCPURegs",
"[",
"]",
"=",
"{",
"Mips",
"::",
"ZERO",
",",
"Mips",
"::",
"AT",
",",
"Mips",
"::",
"K0",
",",
"Mips",
"::",
"K1",
",",
"Mips",
"::",
"SP",
",",
"Mips",
"::",
"FP",
",",
"Mips",
"::",
"RA",
"}",
";",
"static",
"const",
"uint16_t",
"ReservedCPU64Regs",
"[",
"]",
"=",
"{",
"Mips",
"::",
"ZERO_64",
",",
"Mips",
"::",
"AT_64",
",",
"Mips",
"::",
"K0_64",
",",
"Mips",
"::",
"K1_64",
",",
"Mips",
"::",
"SP_64",
",",
"Mips",
"::",
"FP_64",
",",
"Mips",
"::",
"RA_64",
"}",
";",
"BitVector",
"Reserved",
"(",
"getNumRegs",
"(",
")",
")",
";",
"typedef",
"TargetRegisterClass",
"::",
"iterator",
"RegIter",
";",
"for",
"(",
"unsigned",
"I",
"=",
"0",
";",
"I",
"<",
"array_lengthof",
"(",
"ReservedCPURegs",
")",
";",
"++",
"I",
")",
"Reserved",
".",
"set",
"(",
"ReservedCPURegs",
"[",
"I",
"]",
")",
";",
"if",
"(",
"Subtarget",
".",
"hasMips64",
"(",
")",
")",
"{",
"for",
"(",
"unsigned",
"I",
"=",
"0",
";",
"I",
"<",
"array_lengthof",
"(",
"ReservedCPU64Regs",
")",
";",
"++",
"I",
")",
"Reserved",
".",
"set",
"(",
"ReservedCPU64Regs",
"[",
"I",
"]",
")",
";",
"for",
"(",
"RegIter",
"Reg",
"=",
"Mips",
"::",
"AFGR64RegisterClass",
"->",
"begin",
"(",
")",
";",
"Reg",
"!=",
"Mips",
"::",
"AFGR64RegisterClass",
"->",
"end",
"(",
")",
";",
"++",
"Reg",
")",
"Reserved",
".",
"set",
"(",
"*",
"Reg",
")",
";",
"}",
"else",
"{",
"for",
"(",
"RegIter",
"Reg",
"=",
"Mips",
"::",
"CPU64RegsRegisterClass",
"->",
"begin",
"(",
")",
";",
"Reg",
"!=",
"Mips",
"::",
"CPU64RegsRegisterClass",
"->",
"end",
"(",
")",
";",
"++",
"Reg",
")",
"Reserved",
".",
"set",
"(",
"*",
"Reg",
")",
";",
"for",
"(",
"RegIter",
"Reg",
"=",
"Mips",
"::",
"FGR64RegisterClass",
"->",
"begin",
"(",
")",
";",
"Reg",
"!=",
"Mips",
"::",
"FGR64RegisterClass",
"->",
"end",
"(",
")",
";",
"++",
"Reg",
")",
"Reserved",
".",
"set",
"(",
"*",
"Reg",
")",
";",
"}",
"if",
"(",
"MF",
".",
"getInfo",
"<",
"MipsFunctionInfo",
">",
"(",
")",
"->",
"globalBaseRegFixed",
"(",
")",
")",
"{",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"GP",
")",
";",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"GP_64",
")",
";",
"}",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"HWR29",
")",
";",
"Reserved",
".",
"set",
"(",
"Mips",
"::",
"HWR29_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::AT",
"Mips::K0",
"Mips::K1",
"Mips::SP",
"Mips::FP",
"Mips::RA",
"Mips::ZERO_64",
"Mips::AT_64",
"Mips::K0_64",
"Mips::K1_64",
"Mips::SP_64",
"Mips::FP_64",
"Mips::RA_64",
"0",
"Mips",
"0",
"Mips::AFGR64RegisterClass",
"Mips::AFGR64RegisterClass",
"Mips::CPU64RegsRegisterClass",
"Mips::CPU64RegsRegisterClass",
"Mips::FGR64RegisterClass",
"Mips::FGR64RegisterClass",
"Mips",
"Mips::GP",
"Mips::GP_64",
"Mips::HWR29",
"Mips::HWR29_64"
] | MipsRegisterInfo7 | getReservedRegs | Mips | CPU | LLVM | 2,090 | 326 | 1 | [] |
[
"<s>",
"static",
"bool",
"mips_can_eliminate",
"(",
"const",
"int",
"from",
"ATTRIBUTE_UNUSED",
",",
"const",
"int",
"to",
")",
"{",
"return",
"(",
"to",
"==",
"HARD_FRAME_POINTER_REGNUM",
"||",
"to",
"==",
"STACK_POINTER_REGNUM",
")",
";",
"}",
"</s>"
] | [
"Make",
"sure",
"that",
"we",
"'re",
"not",
"trying",
"to",
"eliminate",
"to",
"the",
"wrong",
"hard",
"frame",
"pointer",
"."
] | [
"mips"
] | mips | mips_can_eliminate | mips | CPU | GCC | 2,091 | 26 | 1 | [] |
[
"<s>",
"void",
"ARMTTIImpl",
"::",
"getUnrollingPreferences",
"(",
"Loop",
"*",
"L",
",",
"ScalarEvolution",
"&",
"SE",
",",
"TTI",
"::",
"UnrollingPreferences",
"&",
"UP",
")",
"{",
"if",
"(",
"!",
"ST",
"->",
"isMClass",
"(",
")",
")",
"return",
"BasicTTIImplBase",
"::",
"getUnrollingPreferences",
"(",
"L",
",",
"SE",
",",
"UP",
")",
";",
"UP",
".",
"OptSizeThreshold",
"=",
"0",
";",
"UP",
".",
"PartialOptSizeThreshold",
"=",
"0",
";",
"if",
"(",
"L",
"->",
"getHeader",
"(",
")",
"->",
"getParent",
"(",
")",
"->",
"hasOptSize",
"(",
")",
")",
"return",
";",
"if",
"(",
"!",
"ST",
"->",
"isThumb2",
"(",
")",
")",
"return",
";",
"SmallVector",
"<",
"BasicBlock",
"*",
",",
"4",
">",
"ExitingBlocks",
";",
"L",
"->",
"getExitingBlocks",
"(",
"ExitingBlocks",
")",
";",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"Loop has:\\n\"",
"<<",
"\"Blocks: \"",
"<<",
"L",
"->",
"getNumBlocks",
"(",
")",
"<<",
"\"\\n\"",
"<<",
"\"Exit blocks: \"",
"<<",
"ExitingBlocks",
".",
"size",
"(",
")",
"<<",
"\"\\n\"",
")",
";",
"if",
"(",
"ExitingBlocks",
".",
"size",
"(",
")",
">",
"2",
")",
"return",
";",
"if",
"(",
"ST",
"->",
"hasBranchPredictor",
"(",
")",
"&&",
"L",
"->",
"getNumBlocks",
"(",
")",
">",
"4",
")",
"return",
";",
"unsigned",
"Cost",
"=",
"0",
";",
"for",
"(",
"auto",
"*",
"BB",
":",
"L",
"->",
"getBlocks",
"(",
")",
")",
"{",
"for",
"(",
"auto",
"&",
"I",
":",
"*",
"BB",
")",
"{",
"if",
"(",
"isa",
"<",
"CallInst",
">",
"(",
"I",
")",
"||",
"isa",
"<",
"InvokeInst",
">",
"(",
"I",
")",
")",
"{",
"ImmutableCallSite",
"CS",
"(",
"&",
"I",
")",
";",
"if",
"(",
"const",
"Function",
"*",
"F",
"=",
"CS",
".",
"getCalledFunction",
"(",
")",
")",
"{",
"if",
"(",
"!",
"isLoweredToCall",
"(",
"F",
")",
")",
"continue",
";",
"}",
"return",
";",
"}",
"SmallVector",
"<",
"const",
"Value",
"*",
",",
"4",
">",
"Operands",
"(",
"I",
".",
"value_op_begin",
"(",
")",
",",
"I",
".",
"value_op_end",
"(",
")",
")",
";",
"Cost",
"+=",
"getUserCost",
"(",
"&",
"I",
",",
"Operands",
")",
";",
"}",
"}",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"Cost of loop: \"",
"<<",
"Cost",
"<<",
"\"\\n\"",
")",
";",
"UP",
".",
"Partial",
"=",
"true",
";",
"UP",
".",
"Runtime",
"=",
"true",
";",
"UP",
".",
"UnrollRemainder",
"=",
"true",
";",
"UP",
".",
"DefaultUnrollRuntimeCount",
"=",
"4",
";",
"UP",
".",
"UnrollAndJam",
"=",
"true",
";",
"UP",
".",
"UnrollAndJamInnerLoopThreshold",
"=",
"60",
";",
"if",
"(",
"Cost",
"<",
"12",
")",
"UP",
".",
"Force",
"=",
"true",
";",
"}",
"</s>"
] | [
"Get",
"target-customized",
"preferences",
"for",
"the",
"generic",
"loop",
"unrolling",
"transformation",
"."
] | [
"ARM",
"ARM",
"0",
"0",
"4",
"\"Loop has:\\n\"",
"\"Blocks: \"",
"\"\\n\"",
"\"Exit blocks: \"",
"\"\\n\"",
"2",
"4",
"0",
"4",
"\"Cost of loop: \"",
"\"\\n\"",
"4",
"60",
"12"
] | ARMTargetTransformInfo53 | getUnrollingPreferences | ARM | CPU | LLVM | 2,092 | 336 | 1 | [] |
[
"<s>",
"int",
"direct_return",
"(",
"void",
")",
"{",
"if",
"(",
"reload_completed",
")",
"{",
"if",
"(",
"cfun",
"->",
"static_chain_decl",
"==",
"0",
"&&",
"(",
"spu_saved_regs_size",
"(",
")",
"+",
"get_frame_size",
"(",
")",
"+",
"crtl",
"->",
"outgoing_args_size",
"+",
"crtl",
"->",
"args",
".",
"pretend_args_size",
"==",
"0",
")",
"&&",
"crtl",
"->",
"is_leaf",
")",
"return",
"1",
";",
"}",
"return",
"0",
";",
"}",
"</s>"
] | [
"Return",
"non-zero",
"if",
"this",
"function",
"is",
"known",
"to",
"have",
"a",
"null",
"epilogue",
"."
] | [
"spu",
"0",
"0",
"1",
"0"
] | spu | direct_return | spu | MPU | GCC | 2,093 | 53 | 1 | [] |
[
"<s>",
"void",
"SystemZMCAsmBackend",
"::",
"applyFixup",
"(",
"const",
"MCAssembler",
"&",
"Asm",
",",
"const",
"MCFixup",
"&",
"Fixup",
",",
"const",
"MCValue",
"&",
"Target",
",",
"MutableArrayRef",
"<",
"char",
">",
"Data",
",",
"uint64_t",
"Value",
",",
"bool",
"IsResolved",
",",
"const",
"MCSubtargetInfo",
"*",
"STI",
")",
"const",
"{",
"MCFixupKind",
"Kind",
"=",
"Fixup",
".",
"getKind",
"(",
")",
";",
"if",
"(",
"Kind",
">=",
"FirstLiteralRelocationKind",
")",
"return",
";",
"unsigned",
"Offset",
"=",
"Fixup",
".",
"getOffset",
"(",
")",
";",
"unsigned",
"BitSize",
"=",
"getFixupKindInfo",
"(",
"Kind",
")",
".",
"TargetSize",
";",
"unsigned",
"Size",
"=",
"(",
"BitSize",
"+",
"7",
")",
"/",
"8",
";",
"assert",
"(",
"Offset",
"+",
"Size",
"<=",
"Data",
".",
"size",
"(",
")",
"&&",
"\"Invalid fixup offset!\"",
")",
";",
"Value",
"=",
"extractBitsForFixup",
"(",
"Kind",
",",
"Value",
")",
";",
"if",
"(",
"BitSize",
"<",
"64",
")",
"Value",
"&=",
"(",
"(",
"uint64_t",
")",
"1",
"<<",
"BitSize",
")",
"-",
"1",
";",
"unsigned",
"ShiftValue",
"=",
"(",
"Size",
"*",
"8",
")",
"-",
"8",
";",
"for",
"(",
"unsigned",
"I",
"=",
"0",
";",
"I",
"!=",
"Size",
";",
"++",
"I",
")",
"{",
"Data",
"[",
"Offset",
"+",
"I",
"]",
"|=",
"uint8_t",
"(",
"Value",
">>",
"ShiftValue",
")",
";",
"ShiftValue",
"-=",
"8",
";",
"}",
"}",
"</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",
"."
] | [
"SystemZ",
"SystemZ",
"7",
"8",
"\"Invalid fixup offset!\"",
"64",
"1",
"1",
"8",
"8",
"0",
"8"
] | SystemZMCAsmBackend22 | applyFixup | SystemZ | CPU | LLVM | 2,094 | 175 | 1 | [] |
[
"<s>",
"void",
"MipsTargetMachine",
"::",
"resetSubtarget",
"(",
"MachineFunction",
"*",
"MF",
")",
"{",
"LLVM_DEBUG",
"(",
"dbgs",
"(",
")",
"<<",
"\"resetSubtarget\\n\"",
")",
";",
"Subtarget",
"=",
"const_cast",
"<",
"MipsSubtarget",
"*",
">",
"(",
"getSubtargetImpl",
"(",
"MF",
"->",
"getFunction",
"(",
")",
")",
")",
";",
"MF",
"->",
"setSubtarget",
"(",
"Subtarget",
")",
";",
"}",
"</s>"
] | [
"Reset",
"the",
"subtarget",
"for",
"the",
"Mips",
"target",
"."
] | [
"Mips",
"Mips",
"\"resetSubtarget\\n\"",
"Mips"
] | MipsTargetMachine16 | resetSubtarget | Mips | CPU | LLVM | 2,095 | 45 | 1 | [] |
[
"<s>",
"bool",
"MipsPassConfig",
"::",
"addPreEmitPass",
"(",
")",
"{",
"PM",
"->",
"add",
"(",
"createMipsDelaySlotFillerPass",
"(",
"getMipsTargetMachine",
"(",
")",
")",
")",
";",
"return",
"true",
";",
"}",
"</s>"
] | [
"This",
"pass",
"may",
"be",
"implemented",
"by",
"targets",
"that",
"want",
"to",
"run",
"passes",
"immediately",
"before",
"machine",
"code",
"is",
"emitted",
"."
] | [
"Mips",
"Mips",
"Mips",
"Mips"
] | MipsTargetMachine59 | addPreEmitPass | Mips | CPU | LLVM | 2,096 | 23 | 1 | [] |
[
"<s>",
"SDValue",
"J2TargetLowering",
"::",
"LowerReturn",
"(",
"SDValue",
"Chain",
",",
"CallingConv",
"::",
"ID",
"CallConv",
",",
"bool",
"isVarArg",
",",
"const",
"SmallVectorImpl",
"<",
"ISD",
"::",
"OutputArg",
">",
"&",
"Outs",
",",
"const",
"SmallVectorImpl",
"<",
"SDValue",
">",
"&",
"OutVals",
",",
"const",
"SDLoc",
"&",
"DL",
",",
"SelectionDAG",
"&",
"DAG",
")",
"const",
"{",
"assert",
"(",
"!",
"isVarArg",
"&&",
"\"Variable arguments not supported.\"",
")",
";",
"auto",
"&",
"MF",
"=",
"DAG",
".",
"getMachineFunction",
"(",
")",
";",
"SmallVector",
"<",
"CCValAssign",
",",
"4",
">",
"RVLocs",
";",
"CCState",
"CCInfo",
"(",
"CallConv",
",",
"isVarArg",
",",
"MF",
",",
"RVLocs",
",",
"*",
"DAG",
".",
"getContext",
"(",
")",
")",
";",
"CCInfo",
".",
"AnalyzeReturn",
"(",
"Outs",
",",
"RetCC_J2",
")",
";",
"SmallVector",
"<",
"SDValue",
",",
"4",
">",
"RetOps",
"{",
"Chain",
"}",
";",
"SDValue",
"Glue",
";",
"for",
"(",
"size_t",
"i",
"=",
"0",
";",
"i",
"<",
"RVLocs",
".",
"size",
"(",
")",
";",
"++",
"i",
")",
"{",
"CCValAssign",
"&",
"VA",
"=",
"RVLocs",
"[",
"i",
"]",
";",
"assert",
"(",
"VA",
".",
"isRegLoc",
"(",
")",
"&&",
"\"Return in memory is not supported!\"",
")",
";",
"SDValue",
"ValToCopy",
"=",
"OutVals",
"[",
"i",
"]",
";",
"Chain",
"=",
"DAG",
".",
"getCopyToReg",
"(",
"Chain",
",",
"DL",
",",
"VA",
".",
"getLocReg",
"(",
")",
",",
"ValToCopy",
",",
"Glue",
")",
";",
"Glue",
"=",
"Chain",
".",
"getValue",
"(",
"1",
")",
";",
"RetOps",
".",
"push_back",
"(",
"DAG",
".",
"getRegister",
"(",
"VA",
".",
"getLocReg",
"(",
")",
",",
"VA",
".",
"getLocVT",
"(",
")",
")",
")",
";",
"}",
"RetOps",
"[",
"0",
"]",
"=",
"Chain",
";",
"if",
"(",
"Glue",
".",
"getNode",
"(",
")",
")",
"RetOps",
".",
"push_back",
"(",
"Glue",
")",
";",
"return",
"DAG",
".",
"getNode",
"(",
"J2ISD",
"::",
"Ret",
",",
"DL",
",",
"MVT",
"::",
"Other",
",",
"RetOps",
")",
";",
"}",
"</s>"
] | [
"This",
"hook",
"must",
"be",
"implemented",
"to",
"lower",
"outgoing",
"return",
"values",
",",
"described",
"by",
"the",
"Outs",
"array",
",",
"into",
"the",
"specified",
"DAG",
"."
] | [
"J2",
"J2",
"ISD::OutputArg",
"\"Variable arguments not supported.\"",
"4",
"J2",
"4",
"0",
"\"Return in memory is not supported!\"",
"1",
"0",
"J2ISD::Ret",
"MVT::Other"
] | J2ISelLowering | LowerReturn | J2 | MPU | LLVM | 2,097 | 254 | 1 | [] |
[
"<s>",
"static",
"raw_ostream",
"&",
"printName",
"(",
"raw_ostream",
"&",
"OS",
",",
"StringRef",
"Name",
")",
"{",
"return",
"OS",
"<<",
"Name",
"<<",
"\" = \"",
";",
"}",
"</s>"
] | [
"Print",
"the",
"basic",
"block",
"'s",
"name",
"as",
":"
] | [
"AMDGPU",
"\" = \""
] | AMDKernelCodeTUtils10 | printName | AMDGPU | GPU | LLVM | 2,098 | 21 | 1 | [] |
[
"<s>",
"void",
"X86InsertPrefetch",
"::",
"getAnalysisUsage",
"(",
"AnalysisUsage",
"&",
"AU",
")",
"const",
"{",
"AU",
".",
"setPreservesAll",
"(",
")",
";",
"AU",
".",
"addRequired",
"<",
"MachineModuleInfoWrapperPass",
">",
"(",
")",
";",
"}",
"</s>"
] | [
"getAnalysisUsage",
"-",
"Subclasses",
"that",
"override",
"getAnalysisUsage",
"must",
"call",
"this",
"."
] | [
"X86",
"X86"
] | X86InsertPrefetch6 | getAnalysisUsage | X86 | CPU | LLVM | 2,099 | 27 | 1 | [] |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.