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>", "void", "M68kOperand", "::", "addExpr", "(", "MCInst", "&", "Inst", ",", "const", "MCExpr", "*", "Expr", ")", "{", "if", "(", "auto", "Const", "=", "dyn_cast", "<", "MCConstantExpr", ">", "(", "Expr", ")", ")", "{", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createImm", "(", "Const", "->", "getValue", "(", ")", ")", ")", ";", "return", ";", "}", "Inst", ".", "addOperand", "(", "MCOperand", "::", "createExpr", "(", "Expr", ")", ")", ";", "}", "</s>" ]
[ "Add", "a", "new", "MCExpr", "operand", "." ]
[ "M68k", "M68k" ]
M68kAsmParser
addExpr
M68k
MPU
LLVM
1,700
61
1
[]
[ "<s>", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"Hexagon Split Double Registers\"", ";", "}", "</s>" ]
[ "getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "." ]
[ "Hexagon", "\"Hexagon Split Double Registers\"" ]
HexagonSplitDouble1
getPassName
Hexagon
DSP
LLVM
1,701
11
1
[]
[ "<s>", "void", "PPCFrameLowering", "::", "determineFrameLayout", "(", "MachineFunction", "&", "MF", ")", "const", "{", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "unsigned", "FrameSize", "=", "MFI", "->", "getStackSize", "(", ")", ";", "unsigned", "MaxAlign", "=", "MFI", "->", "getMaxAlignment", "(", ")", ";", "unsigned", "TargetAlign", "=", "getStackAlignment", "(", ")", ";", "unsigned", "AlignMask", "=", "TargetAlign", "-", "1", ";", "bool", "DisableRedZone", "=", "MF", ".", "getFunction", "(", ")", "->", "hasFnAttr", "(", "Attribute", "::", "NoRedZone", ")", ";", "if", "(", "!", "DisableRedZone", "&&", "FrameSize", "<=", "224", "&&", "!", "MFI", "->", "hasVarSizedObjects", "(", ")", "&&", "!", "MFI", "->", "adjustsStack", "(", ")", "&&", "(", "!", "ALIGN_STACK", "||", "MaxAlign", "<=", "TargetAlign", ")", ")", "{", "MFI", "->", "setStackSize", "(", "0", ")", ";", "return", ";", "}", "unsigned", "maxCallFrameSize", "=", "MFI", "->", "getMaxCallFrameSize", "(", ")", ";", "unsigned", "minCallFrameSize", "=", "getMinCallFrameSize", "(", "Subtarget", ".", "isPPC64", "(", ")", ",", "Subtarget", ".", "isDarwinABI", "(", ")", ")", ";", "maxCallFrameSize", "=", "std", "::", "max", "(", "maxCallFrameSize", ",", "minCallFrameSize", ")", ";", "if", "(", "MFI", "->", "hasVarSizedObjects", "(", ")", ")", "maxCallFrameSize", "=", "(", "maxCallFrameSize", "+", "AlignMask", ")", "&", "~", "AlignMask", ";", "MFI", "->", "setMaxCallFrameSize", "(", "maxCallFrameSize", ")", ";", "FrameSize", "+=", "maxCallFrameSize", ";", "FrameSize", "=", "(", "FrameSize", "+", "AlignMask", ")", "&", "~", "AlignMask", ";", "MFI", "->", "setStackSize", "(", "FrameSize", ")", ";", "}", "</s>" ]
[ "Determine", "the", "frame", "layout", "but", "do", "not", "update", "the", "machine", "function", "." ]
[ "PowerPC", "PPC", "1", "224", "0", "PPC" ]
PPCFrameLowering25
determineFrameLayout
PowerPC
CPU
LLVM
1,702
199
1
[]
[ "<s>", "bool", "isTargetEHABICompatible", "(", ")", "const", "{", "return", "TargetTriple", ".", "isTargetEHABICompatible", "(", ")", ";", "}", "</s>" ]
[ "Tests", "whether", "the", "target", "supports", "the", "EHABI", "exception", "handling", "standard", "." ]
[ "ARM" ]
ARMSubtarget118
isTargetEHABICompatible
ARM
CPU
LLVM
1,703
14
1
[]
[ "<s>", "static", "int", "bfin_address_cost", "(", "rtx", "addr", "ATTRIBUTE_UNUSED", ",", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "addr_space_t", "as", "ATTRIBUTE_UNUSED", ",", "bool", "speed", "ATTRIBUTE_UNUSED", ")", "{", "return", "1", ";", "}", "</s>" ]
[ "Return", "cost", "of", "the", "memory", "address", "ADDR", ".", "All", "addressing", "modes", "are", "equally", "cheap", "on", "the", "Blackfin", "." ]
[ "bfin", "1" ]
bfin
bfin_address_cost
bfin
DSP
GCC
1,704
25
1
[]
[ "<s>", "static", "reg_class_t", "aarch64_ira_change_pseudo_allocno_class", "(", "int", "regno", ",", "reg_class_t", "allocno_class", ",", "reg_class_t", "best_class", ")", "{", "machine_mode", "mode", ";", "if", "(", "allocno_class", "!=", "ALL_REGS", ")", "return", "allocno_class", ";", "if", "(", "best_class", "!=", "ALL_REGS", ")", "return", "best_class", ";", "mode", "=", "PSEUDO_REGNO_MODE", "(", "regno", ")", ";", "return", "FLOAT_MODE_P", "(", "mode", ")", "||", "VECTOR_MODE_P", "(", "mode", ")", "?", "FP_REGS", ":", "GENERAL_REGS", ";", "}", "</s>" ]
[ "Implement", "TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS", ".", "The", "register", "allocator", "chooses", "ALL_REGS", "if", "FP_REGS", "and", "GENERAL_REGS", "have", "the", "same", "cost", "even", "if", "ALL_REGS", "has", "a", "much", "larger", "cost", ".", "ALL_REGS", "is", "also", "used", "if", "the", "cost", "of", "both", "FP_REGS", "and", "GENERAL_REGS", "is", "lower", "than", "the", "memory", "cost", "(", "in", "this", "case", "the", "best", "class", "is", "the", "lowest", "cost", "one", ")", ".", "Using", "ALL_REGS", "irrespectively", "of", "its", "cost", "results", "in", "bad", "allocations", "with", "many", "redundant", "int", "<", "-", ">", "FP", "moves", "which", "are", "expensive", "on", "various", "cores", ".", "To", "avoid", "this", "we", "do", "n't", "allow", "ALL_REGS", "as", "the", "allocno", "class", ",", "but", "force", "a", "decision", "between", "FP_REGS", "and", "GENERAL_REGS", ".", "We", "use", "the", "allocno", "class", "if", "it", "is", "n't", "ALL_REGS", ".", "Similarly", ",", "use", "the", "best", "class", "if", "it", "is", "n't", "ALL_REGS", ".", "Otherwise", "set", "the", "allocno", "class", "depending", "on", "the", "mode", ".", "The", "result", "of", "this", "is", "that", "it", "is", "no", "longer", "inefficient", "to", "have", "a", "higher", "memory", "move", "cost", "than", "the", "register", "move", "cost", "." ]
[ "aarch64" ]
aarch645
aarch64_ira_change_pseudo_allocno_class
aarch64
CPU
GCC
1,705
58
1
[]
[ "<s>", "static", "const", "char", "*", "avr_out_movhi_r_mr_reg_disp_tiny", "(", "rtx", "op", "[", "]", ",", "int", "*", "plen", ")", "{", "rtx", "dest", "=", "op", "[", "0", "]", ";", "rtx", "src", "=", "op", "[", "1", "]", ";", "rtx", "base", "=", "XEXP", "(", "src", ",", "0", ")", ";", "int", "reg_dest", "=", "true_regnum", "(", "dest", ")", ";", "int", "reg_base", "=", "true_regnum", "(", "XEXP", "(", "base", ",", "0", ")", ")", ";", "if", "(", "reg_base", "==", "reg_dest", ")", "{", "return", "avr_asm_len", "(", "TINY_ADIW", "(", "%", "I1", ",", "%", "J1", ",", "%", "o1", ")", "CR_TAB", "\"ld __tmp_reg__,%b1+\"", "CR_TAB", "\"ld %B0,%b1\"", "CR_TAB", "\"mov %A0,__tmp_reg__\"", ",", "op", ",", "plen", ",", "-", "5", ")", ";", "}", "else", "{", "return", "avr_asm_len", "(", "TINY_ADIW", "(", "%", "I1", ",", "%", "J1", ",", "%", "o1", ")", "CR_TAB", "\"ld %A0,%b1+\"", "CR_TAB", "\"ld %B0,%b1\"", "CR_TAB", "TINY_SBIW", "(", "%", "I1", ",", "%", "J1", ",", "%", "o1", "+", "1", ")", ",", "op", ",", "plen", ",", "-", "6", ")", ";", "}", "}", "</s>" ]
[ "Same", "as", "movhi_r_mr", ",", "but", "TINY", "does", "not", "have", "ADIW", ",", "SBIW", "and", "LDD" ]
[ "avr", "0", "1", "0", "0", "\"ld __tmp_reg__,%b1+\"", "\"ld %B0,%b1\"", "\"mov %A0,__tmp_reg__\"", "5", "\"ld %A0,%b1+\"", "\"ld %B0,%b1\"", "1", "6" ]
avr4
avr_out_movhi_r_mr_reg_disp_tiny
avr
MPU
GCC
1,706
145
1
[]
[ "<s>", "TargetLoweringObjectFile", "*", "getObjFileLowering", "(", ")", "const", "override", "{", "return", "TLOF", ".", "get", "(", ")", ";", "}", "</s>" ]
[ "Return", "information", "about", "object", "file", "lowering", "." ]
[ "M88k" ]
M88kTargetMachine
getObjFileLowering
M88k
MPU
LLVM
1,707
16
1
[]
[ "<s>", "virtual", "unsigned", "int", "execute", "(", "function", "*", ")", "{", "return", "convert_scalars_to_vector", "(", ")", ";", "}", "</s>" ]
[ "Main", "entry", "point", "for", "this", "pass", "." ]
[ "i386" ]
i3865
execute
i386
CPU
GCC
1,708
15
1
[]
[ "<s>", "tree", "memory_scalar_type", "(", "const", "function_instance", "&", "fi", ")", "const", "OVERRIDE", "{", "return", "fi", ".", "scalar_type", "(", "0", ")", ";", "}", "</s>" ]
[ "If", "the", "function", "addresses", "memory", ",", "return", "the", "type", "of", "a", "single", "scalar", "memory", "element", "." ]
[ "aarch64", "0" ]
aarch64-sve-builtins-base
memory_scalar_type
aarch64
CPU
GCC
1,709
20
1
[]
[ "<s>", "BitVector", "AArch64RegisterInfo", "::", "getReservedRegs", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "AArch64FrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "BitVector", "Reserved", "(", "getNumRegs", "(", ")", ")", ";", "Reserved", ".", "set", "(", "AArch64", "::", "SP", ")", ";", "Reserved", ".", "set", "(", "AArch64", "::", "XZR", ")", ";", "Reserved", ".", "set", "(", "AArch64", "::", "WSP", ")", ";", "Reserved", ".", "set", "(", "AArch64", "::", "WZR", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", "||", "TT", ".", "isOSDarwin", "(", ")", ")", "{", "Reserved", ".", "set", "(", "AArch64", "::", "FP", ")", ";", "Reserved", ".", "set", "(", "AArch64", "::", "W29", ")", ";", "}", "if", "(", "TT", ".", "isOSDarwin", "(", ")", "||", "ReserveX18", ")", "{", "Reserved", ".", "set", "(", "AArch64", "::", "X18", ")", ";", "Reserved", ".", "set", "(", "AArch64", "::", "W18", ")", ";", "}", "if", "(", "hasBasePointer", "(", "MF", ")", ")", "{", "Reserved", ".", "set", "(", "AArch64", "::", "X19", ")", ";", "Reserved", ".", "set", "(", "AArch64", "::", "W19", ")", ";", "}", "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", "." ]
[ "AArch64", "AArch64", "AArch64", "AArch64::SP", "AArch64::XZR", "AArch64::WSP", "AArch64::WZR", "AArch64::FP", "AArch64::W29", "AArch64::X18", "AArch64::W18", "AArch64::X19", "AArch64::W19" ]
AArch64RegisterInfo3
getReservedRegs
AArch64
CPU
LLVM
1,710
162
1
[]
[ "<s>", "static", "void", "mcore_setup_incoming_varargs", "(", "CUMULATIVE_ARGS", "*", "args_so_far", ",", "enum", "machine_mode", "mode", ",", "tree", "type", ",", "int", "*", "ptr_pretend_size", "ATTRIBUTE_UNUSED", ",", "int", "second_time", "ATTRIBUTE_UNUSED", ")", "{", "current_function_anonymous_args", "=", "1", ";", "number_of_regs_before_varargs", "=", "*", "args_so_far", "+", "mcore_num_arg_regs", "(", "mode", ",", "type", ")", ";", "number_of_regs_before_varargs", "=", "*", "args_so_far", ";", "if", "(", "number_of_regs_before_varargs", ">", "NPARM_REGS", ")", "number_of_regs_before_varargs", "=", "NPARM_REGS", ";", "}", "</s>" ]
[ "Keep", "track", "of", "some", "information", "about", "varargs", "for", "the", "prolog", "." ]
[ "mcore", "1" ]
mcore3
mcore_setup_incoming_varargs
mcore
MPU
GCC
1,711
57
1
[]
[ "<s>", "unsigned", "HexagonInstrInfo", "::", "getSize", "(", "const", "MachineInstr", "*", "MI", ")", "const", "{", "if", "(", "MI", "->", "isDebugValue", "(", ")", "||", "MI", "->", "isPosition", "(", ")", ")", "return", "0", ";", "unsigned", "Size", "=", "MI", "->", "getDesc", "(", ")", ".", "getSize", "(", ")", ";", "if", "(", "!", "Size", ")", "Size", "=", "HEXAGON_INSTR_SIZE", ";", "if", "(", "isConstExtended", "(", "MI", ")", "||", "isExtended", "(", "MI", ")", ")", "Size", "+=", "HEXAGON_INSTR_SIZE", ";", "if", "(", "BranchRelaxAsmLarge", "&&", "MI", "->", "getOpcode", "(", ")", "==", "Hexagon", "::", "INLINEASM", ")", "{", "const", "MachineBasicBlock", "&", "MBB", "=", "*", "MI", "->", "getParent", "(", ")", ";", "const", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "const", "MCAsmInfo", "*", "MAI", "=", "MF", "->", "getTarget", "(", ")", ".", "getMCAsmInfo", "(", ")", ";", "unsigned", "NumDefs", "=", "0", ";", "for", "(", ";", "MI", "->", "getOperand", "(", "NumDefs", ")", ".", "isReg", "(", ")", "&&", "MI", "->", "getOperand", "(", "NumDefs", ")", ".", "isDef", "(", ")", ";", "++", "NumDefs", ")", "assert", "(", "NumDefs", "!=", "MI", "->", "getNumOperands", "(", ")", "-", "2", "&&", "\"No asm string?\"", ")", ";", "assert", "(", "MI", "->", "getOperand", "(", "NumDefs", ")", ".", "isSymbol", "(", ")", "&&", "\"No asm string?\"", ")", ";", "const", "char", "*", "AsmStr", "=", "MI", "->", "getOperand", "(", "NumDefs", ")", ".", "getSymbolName", "(", ")", ";", "Size", "=", "getInlineAsmLength", "(", "AsmStr", ",", "*", "MAI", ")", ";", "}", "return", "Size", ";", "}", "</s>" ]
[ "Return", "the", "number", "of", "bytes", "in", "the", "encoding", "of", "this", "instruction", ",", "or", "zero", "if", "the", "encoding", "size", "can", "not", "be", "known", "from", "the", "opcode", "." ]
[ "Hexagon", "Hexagon", "0", "Hexagon::INLINEASM", "0", "2", "\"No asm string?\"", "\"No asm string?\"" ]
HexagonInstrInfo (2)
getSize
Hexagon
DSP
LLVM
1,712
215
1
[]
[ "<s>", "static", "tree", "get_arm_sve_vector_bits_attributes", "(", "tree", "old_attrs", ",", "tree", "new_sve_type_args", ")", "{", "tree", "new_attrs", "=", "NULL_TREE", ";", "tree", "*", "ptr", "=", "&", "new_attrs", ";", "for", "(", "tree", "attr", "=", "old_attrs", ";", "attr", ";", "attr", "=", "TREE_CHAIN", "(", "attr", ")", ")", "{", "tree", "name", "=", "get_attribute_name", "(", "attr", ")", ";", "if", "(", "is_attribute_p", "(", "\"SVE sizeless type\"", ",", "name", ")", ")", "continue", ";", "tree", "args", "=", "TREE_VALUE", "(", "attr", ")", ";", "if", "(", "is_attribute_p", "(", "\"SVE type\"", ",", "name", ")", ")", "args", "=", "new_sve_type_args", ";", "*", "ptr", "=", "tree_cons", "(", "TREE_PURPOSE", "(", "attr", ")", ",", "args", ",", "NULL_TREE", ")", ";", "ptr", "=", "&", "TREE_CHAIN", "(", "*", "ptr", ")", ";", "}", "return", "new_attrs", ";", "}", "</s>" ]
[ "ATTRS", "is", "the", "attribute", "list", "for", "a", "sizeless", "SVE", "type", ".", "Return", "the", "attributes", "of", "the", "associated", "fixed-length", "SVE", "type", ",", "taking", "the", "``", "SVE", "type", "''", "attributes", "from", "NEW_SVE_TYPE_ARGS", "." ]
[ "aarch64", "\"SVE sizeless type\"", "\"SVE type\"" ]
aarch64-sve-builtins1
get_arm_sve_vector_bits_attributes
aarch64
CPU
GCC
1,713
109
1
[]
[ "<s>", "static", "rtx", "sh_trampoline_adjust_address", "(", "rtx", "tramp", ")", "{", "return", "tramp", ";", "}", "</s>" ]
[ "On", "SH5", ",", "trampolines", "are", "SHmedia", "code", ",", "so", "add", "1", "to", "the", "address", "." ]
[ "sh" ]
sh
sh_trampoline_adjust_address
sh
CPU
GCC
1,714
12
1
[]
[ "<s>", "static", "void", "spu_unique_section", "(", "tree", "decl", ",", "int", "reloc", ")", "{", "if", "(", "TREE_TYPE", "(", "decl", ")", "!=", "error_mark_node", "&&", "TYPE_ADDR_SPACE", "(", "TREE_TYPE", "(", "decl", ")", ")", "!=", "0", ")", "return", ";", "default_unique_section", "(", "decl", ",", "reloc", ")", ";", "}", "</s>" ]
[ "Implement", "targetm.unique_section", "." ]
[ "spu", "0" ]
spu
spu_unique_section
spu
MPU
GCC
1,715
40
1
[]
[ "<s>", "static", "section", "*", "riscv_elf_select_rtx_section", "(", "machine_mode", "mode", ",", "rtx", "x", ",", "unsigned", "HOST_WIDE_INT", "align", ")", "{", "section", "*", "s", "=", "default_elf_select_rtx_section", "(", "mode", ",", "x", ",", "align", ")", ";", "if", "(", "riscv_size_ok_for_small_data_p", "(", "GET_MODE_SIZE", "(", "mode", ")", ")", ")", "{", "if", "(", "startswith", "(", "s", "->", "named", ".", "name", ",", "\".rodata.cst\"", ")", ")", "{", "char", "*", "name", "=", "(", "char", "*", ")", "alloca", "(", "strlen", "(", "s", "->", "named", ".", "name", ")", "+", "2", ")", ";", "sprintf", "(", "name", ",", "\".s%s\"", ",", "s", "->", "named", ".", "name", "+", "1", ")", ";", "return", "get_section", "(", "name", ",", "s", "->", "named", ".", "common", ".", "flags", ",", "NULL", ")", ";", "}", "if", "(", "s", "==", "data_section", ")", "return", "sdata_section", ";", "}", "return", "s", ";", "}", "</s>" ]
[ "Return", "a", "section", "for", "X", ",", "handling", "small", "data", "." ]
[ "riscv", "\".rodata.cst\"", "2", "\".s%s\"", "1" ]
riscv
riscv_elf_select_rtx_section
riscv
CPU
GCC
1,716
122
1
[]
[ "<s>", "TargetPassConfig", "*", "LM32TargetMachine", "::", "createPassConfig", "(", "PassManagerBase", "&", "PM", ")", "{", "return", "new", "LM32PassConfig", "(", "this", ",", "PM", ")", ";", "}", "</s>" ]
[ "Create", "a", "pass", "configuration", "object", "to", "be", "used", "by", "addPassToEmitX", "methods", "for", "generating", "a", "pipeline", "of", "CodeGen", "passes", "." ]
[ "LM32", "LM32", "LM32" ]
LM32TargetMachine
createPassConfig
LM32
MPU
LLVM
1,717
21
1
[]
[ "<s>", "bool", "SIInstrInfo", "::", "usesConstantBus", "(", "const", "MachineRegisterInfo", "&", "MRI", ",", "const", "MachineOperand", "&", "MO", ",", "unsigned", "OpSize", ")", "const", "{", "if", "(", "isLiteralConstant", "(", "MO", ",", "OpSize", ")", ")", "return", "true", ";", "if", "(", "!", "MO", ".", "isReg", "(", ")", "||", "!", "MO", ".", "isUse", "(", ")", ")", "return", "false", ";", "if", "(", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "MO", ".", "getReg", "(", ")", ")", ")", "return", "RI", ".", "isSGPRClass", "(", "MRI", ".", "getRegClass", "(", "MO", ".", "getReg", "(", ")", ")", ")", ";", "if", "(", "!", "MO", ".", "isImplicit", "(", ")", "&&", "(", "MO", ".", "getReg", "(", ")", "==", "AMDGPU", "::", "FLAT_SCR", ")", ")", "return", "true", ";", "if", "(", "!", "MO", ".", "isImplicit", "(", ")", "&&", "MO", ".", "getReg", "(", ")", "==", "AMDGPU", "::", "EXEC", ")", "return", "true", ";", "return", "(", "MO", ".", "getReg", "(", ")", "==", "AMDGPU", "::", "VCC", "||", "MO", ".", "getReg", "(", ")", "==", "AMDGPU", "::", "M0", "||", "(", "!", "MO", ".", "isImplicit", "(", ")", "&&", "(", "AMDGPU", "::", "SGPR_32RegClass", ".", "contains", "(", "MO", ".", "getReg", "(", ")", ")", "||", "AMDGPU", "::", "SGPR_64RegClass", ".", "contains", "(", "MO", ".", "getReg", "(", ")", ")", ")", ")", ")", ";", "}", "</s>" ]
[ "Returns", "true", "if", "this", "operand", "uses", "the", "constant", "bus", "." ]
[ "AMDGPU", "SI", "AMDGPU::FLAT_SCR", "AMDGPU::EXEC", "AMDGPU::VCC", "AMDGPU::M0", "AMDGPU::SGPR_32RegClass", "AMDGPU::SGPR_64RegClass" ]
SIInstrInfo100
usesConstantBus
AMDGPU
GPU
LLVM
1,718
188
1
[]
[ "<s>", "bool", "X86FrameLowering", "::", "spillCalleeSavedRegisters", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "const", "std", "::", "vector", "<", "CalleeSavedInfo", ">", "&", "CSI", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", "=", "MBB", ".", "findDebugLoc", "(", "MI", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "const", "X86Subtarget", "&", "STI", "=", "MF", ".", "getSubtarget", "<", "X86Subtarget", ">", "(", ")", ";", "const", "TargetInstrInfo", "&", "TII", "=", "*", "STI", ".", "getInstrInfo", "(", ")", ";", "unsigned", "Opc", "=", "STI", ".", "is64Bit", "(", ")", "?", "X86", "::", "PUSH64r", ":", "X86", "::", "PUSH32r", ";", "for", "(", "unsigned", "i", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "0", ";", "--", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "-", "1", "]", ".", "getReg", "(", ")", ";", "if", "(", "!", "X86", "::", "GR64RegClass", ".", "contains", "(", "Reg", ")", "&&", "!", "X86", "::", "GR32RegClass", ".", "contains", "(", "Reg", ")", ")", "continue", ";", "MBB", ".", "addLiveIn", "(", "Reg", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "TII", ".", "get", "(", "Opc", ")", ")", ".", "addReg", "(", "Reg", ",", "RegState", "::", "Kill", ")", ".", "setMIFlag", "(", "MachineInstr", "::", "FrameSetup", ")", ";", "}", "for", "(", "unsigned", "i", "=", "CSI", ".", "size", "(", ")", ";", "i", "!=", "0", ";", "--", "i", ")", "{", "unsigned", "Reg", "=", "CSI", "[", "i", "-", "1", "]", ".", "getReg", "(", ")", ";", "if", "(", "X86", "::", "GR64RegClass", ".", "contains", "(", "Reg", ")", "||", "X86", "::", "GR32RegClass", ".", "contains", "(", "Reg", ")", ")", "continue", ";", "MBB", ".", "addLiveIn", "(", "Reg", ")", ";", "const", "TargetRegisterClass", "*", "RC", "=", "TRI", "->", "getMinimalPhysRegClass", "(", "Reg", ")", ";", "TII", ".", "storeRegToStackSlot", "(", "MBB", ",", "MI", ",", "Reg", ",", "true", ",", "CSI", "[", "i", "-", "1", "]", ".", "getFrameIdx", "(", ")", ",", "RC", ",", "TRI", ")", ";", "--", "MI", ";", "MI", "->", "setFlag", "(", "MachineInstr", "::", "FrameSetup", ")", ";", "++", "MI", ";", "}", "return", "true", ";", "}", "</s>" ]
[ "spillCalleeSavedRegisters", "-", "Issues", "instruction", "(", "s", ")", "to", "spill", "all", "callee", "saved", "registers", "and", "returns", "true", "if", "it", "is", "n't", "possible", "/", "profitable", "to", "do", "so", "by", "issuing", "a", "series", "of", "store", "instructions", "via", "storeRegToStackSlot", "(", ")", "." ]
[ "X86", "X86", "X86", "X86", "X86::PUSH64r", "X86::PUSH32r", "0", "1", "X86::GR64RegClass", "X86::GR32RegClass", "0", "1", "X86::GR64RegClass", "X86::GR32RegClass", "1" ]
X86FrameLowering109
spillCalleeSavedRegisters
X86
CPU
LLVM
1,719
314
1
[]
[ "<s>", "bool", "NVPTXLowerAlloca", "::", "runOnFunction", "(", "Function", "&", "F", ")", "{", "if", "(", "skipFunction", "(", "F", ")", ")", "return", "false", ";", "bool", "Changed", "=", "false", ";", "for", "(", "auto", "&", "BB", ":", "F", ")", "for", "(", "auto", "&", "I", ":", "BB", ")", "{", "if", "(", "auto", "allocaInst", "=", "dyn_cast", "<", "AllocaInst", ">", "(", "&", "I", ")", ")", "{", "Changed", "=", "true", ";", "auto", "PTy", "=", "dyn_cast", "<", "PointerType", ">", "(", "allocaInst", "->", "getType", "(", ")", ")", ";", "auto", "ETy", "=", "PTy", "->", "getElementType", "(", ")", ";", "auto", "LocalAddrTy", "=", "PointerType", "::", "get", "(", "ETy", ",", "ADDRESS_SPACE_LOCAL", ")", ";", "auto", "NewASCToLocal", "=", "new", "AddrSpaceCastInst", "(", "allocaInst", ",", "LocalAddrTy", ",", "\"\"", ")", ";", "auto", "GenericAddrTy", "=", "PointerType", "::", "get", "(", "ETy", ",", "ADDRESS_SPACE_GENERIC", ")", ";", "auto", "NewASCToGeneric", "=", "new", "AddrSpaceCastInst", "(", "NewASCToLocal", ",", "GenericAddrTy", ",", "\"\"", ")", ";", "NewASCToLocal", "->", "insertAfter", "(", "allocaInst", ")", ";", "NewASCToGeneric", "->", "insertAfter", "(", "NewASCToLocal", ")", ";", "for", "(", "Value", "::", "use_iterator", "UI", "=", "allocaInst", "->", "use_begin", "(", ")", ",", "UE", "=", "allocaInst", "->", "use_end", "(", ")", ";", "UI", "!=", "UE", ";", ")", "{", "const", "auto", "&", "AllocaUse", "=", "*", "UI", "++", ";", "auto", "LI", "=", "dyn_cast", "<", "LoadInst", ">", "(", "AllocaUse", ".", "getUser", "(", ")", ")", ";", "if", "(", "LI", "&&", "LI", "->", "getPointerOperand", "(", ")", "==", "allocaInst", "&&", "!", "LI", "->", "isVolatile", "(", ")", ")", "{", "LI", "->", "setOperand", "(", "LI", "->", "getPointerOperandIndex", "(", ")", ",", "NewASCToGeneric", ")", ";", "continue", ";", "}", "auto", "SI", "=", "dyn_cast", "<", "StoreInst", ">", "(", "AllocaUse", ".", "getUser", "(", ")", ")", ";", "if", "(", "SI", "&&", "SI", "->", "getPointerOperand", "(", ")", "==", "allocaInst", "&&", "!", "SI", "->", "isVolatile", "(", ")", ")", "{", "SI", "->", "setOperand", "(", "SI", "->", "getPointerOperandIndex", "(", ")", ",", "NewASCToGeneric", ")", ";", "continue", ";", "}", "auto", "GI", "=", "dyn_cast", "<", "GetElementPtrInst", ">", "(", "AllocaUse", ".", "getUser", "(", ")", ")", ";", "if", "(", "GI", "&&", "GI", "->", "getPointerOperand", "(", ")", "==", "allocaInst", ")", "{", "GI", "->", "setOperand", "(", "GI", "->", "getPointerOperandIndex", "(", ")", ",", "NewASCToGeneric", ")", ";", "continue", ";", "}", "auto", "BI", "=", "dyn_cast", "<", "BitCastInst", ">", "(", "AllocaUse", ".", "getUser", "(", ")", ")", ";", "if", "(", "BI", "&&", "BI", "->", "getOperand", "(", "0", ")", "==", "allocaInst", ")", "{", "BI", "->", "setOperand", "(", "0", ",", "NewASCToGeneric", ")", ";", "continue", ";", "}", "}", "}", "}", "return", "Changed", ";", "}", "</s>" ]
[ "runOnFunction", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "the", "per-function", "processing", "of", "the", "pass", "." ]
[ "NVPTX", "NVPTX", "\"\"", "\"\"", "0", "0" ]
NVPTXLowerAlloca13
runOnFunction
NVPTX
GPU
LLVM
1,720
379
1
[]
[ "<s>", "void", "xtensa_emit_loop_end", "(", "rtx", "insn", ",", "rtx", "*", "operands", ")", "{", "char", "done", "=", "0", ";", "for", "(", "insn", "=", "PREV_INSN", "(", "insn", ")", ";", "insn", "&&", "!", "done", ";", "insn", "=", "PREV_INSN", "(", "insn", ")", ")", "{", "switch", "(", "GET_CODE", "(", "insn", ")", ")", "{", "case", "NOTE", ":", "case", "BARRIER", ":", "break", ";", "case", "CODE_LABEL", ":", "output_asm_insn", "(", "TARGET_DENSITY", "?", "\"nop.n\"", ":", "\"nop\"", ",", "operands", ")", ";", "done", "=", "1", ";", "break", ";", "default", ":", "{", "rtx", "body", "=", "PATTERN", "(", "insn", ")", ";", "if", "(", "GET_CODE", "(", "body", ")", "==", "JUMP_INSN", ")", "{", "output_asm_insn", "(", "TARGET_DENSITY", "?", "\"nop.n\"", ":", "\"nop\"", ",", "operands", ")", ";", "done", "=", "1", ";", "}", "else", "if", "(", "(", "GET_CODE", "(", "body", ")", "!=", "USE", ")", "&&", "(", "GET_CODE", "(", "body", ")", "!=", "CLOBBER", ")", ")", "done", "=", "1", ";", "}", "break", ";", "}", "}", "output_asm_insn", "(", "\"# loop end for %0\"", ",", "operands", ")", ";", "}", "</s>" ]
[ "Emit", "the", "assembly", "for", "the", "end", "of", "a", "zero-cost", "loop", ".", "Normally", "we", "just", "emit", "a", "comment", "showing", "where", "the", "end", "of", "the", "loop", "is", ".", "However", ",", "if", "there", "is", "a", "label", "or", "a", "branch", "at", "the", "end", "of", "the", "loop", "then", "we", "need", "to", "place", "a", "nop", "there", ".", "If", "the", "loop", "ends", "with", "a", "label", "we", "need", "the", "nop", "so", "that", "branches", "targetting", "that", "label", "will", "target", "the", "nop", "(", "and", "thus", "remain", "in", "the", "loop", ")", ",", "instead", "of", "targetting", "the", "instruction", "after", "the", "loop", "(", "and", "thus", "exiting", "the", "loop", ")", ".", "If", "the", "loop", "ends", "with", "a", "branch", ",", "we", "need", "the", "nop", "in", "case", "the", "branch", "is", "targetting", "a", "location", "inside", "the", "loop", ".", "When", "the", "branch", "executes", "it", "will", "cause", "the", "loop", "count", "to", "be", "decremented", "even", "if", "it", "is", "taken", "(", "because", "it", "is", "the", "last", "instruction", "in", "the", "loop", ")", ",", "so", "we", "need", "to", "nop", "after", "the", "branch", "to", "prevent", "the", "loop", "count", "from", "being", "decremented", "when", "the", "branch", "is", "taken", "." ]
[ "xtensa", "0", "\"nop.n\"", "\"nop\"", "1", "\"nop.n\"", "\"nop\"", "1", "1", "\"# loop end for %0\"" ]
xtensa3
xtensa_emit_loop_end
xtensa
MPU
GCC
1,721
149
1
[]
[ "<s>", "static", "rtx", "mep_function_arg", "(", "cumulative_args_t", "cum_v", ",", "machine_mode", "mode", ",", "const_tree", "type", "ATTRIBUTE_UNUSED", ",", "bool", "named", "ATTRIBUTE_UNUSED", ")", "{", "CUMULATIVE_ARGS", "*", "cum", "=", "get_cumulative_args", "(", "cum_v", ")", ";", "if", "(", "mode", "==", "VOIDmode", ")", "return", "GEN_INT", "(", "cum", "->", "vliw", ")", ";", "if", "(", "cum", "->", "nregs", "<", "4", ")", "{", "if", "(", "type", "&&", "TARGET_IVC2", "&&", "VECTOR_TYPE_P", "(", "type", ")", ")", "return", "gen_rtx_REG", "(", "mode", ",", "cum", "->", "nregs", "+", "49", ")", ";", "else", "return", "gen_rtx_REG", "(", "mode", ",", "cum", "->", "nregs", "+", "1", ")", ";", "}", "return", "NULL_RTX", ";", "}", "</s>" ]
[ "The", "ABI", "is", "thus", ":", "Arguments", "are", "in", "$", "1", ",", "$", "2", ",", "$", "3", ",", "$", "4", ",", "stack", ".", "Arguments", "larger", "than", "4", "bytes", "are", "passed", "indirectly", ".", "Return", "value", "in", "0", ",", "unless", "bigger", "than", "4", "bytes", ",", "then", "the", "caller", "passes", "a", "pointer", "as", "the", "first", "arg", ".", "For", "varargs", ",", "we", "copy", "$", "1", "..", "$", "4", "to", "the", "stack", "." ]
[ "mep", "4", "49", "1" ]
mep
mep_function_arg
mep
CPU
GCC
1,722
92
1
[]
[ "<s>", "uint32_t", "generateCompactUnwindEncoding", "(", "ArrayRef", "<", "MCCFIInstruction", ">", "Instrs", ")", "const", "override", "{", "return", "SupportsCU", "?", "generateCompactUnwindEncodingImpl", "(", "Instrs", ")", ":", "0", ";", "}", "</s>" ]
[ "Generate", "compact", "unwind", "encoding", "for", "the", "function", "based", "on", "the", "CFI", "instructions", "." ]
[ "X86", "0" ]
X86AsmBackend34
generateCompactUnwindEncoding
X86
CPU
LLVM
1,723
23
1
[]
[ "<s>", "void", "Clear", "(", ")", "{", "Stack", ".", "clear", "(", ")", ";", "LocalTypes", ".", "clear", "(", ")", ";", "ReturnTypes", ".", "clear", "(", ")", ";", "TypeErrorThisFunction", "=", "false", ";", "}", "</s>" ]
[ "Clear", "value", "data", "entries", "and", "edge", "counters", "." ]
[ "WebAssembly" ]
WebAssemblyAsmTypeCheck2
Clear
WebAssembly
Virtual ISA
LLVM
1,724
28
1
[]
[ "<s>", "void", "HexagonInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "raw_ostream", "&", "OS", ",", "StringRef", "Annot", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "{", "assert", "(", "HexagonMCInstrInfo", "::", "isBundle", "(", "*", "MI", ")", ")", ";", "assert", "(", "HexagonMCInstrInfo", "::", "bundleSize", "(", "*", "MI", ")", "<=", "HEXAGON_PACKET_SIZE", ")", ";", "assert", "(", "HexagonMCInstrInfo", "::", "bundleSize", "(", "*", "MI", ")", ">", "0", ")", ";", "HasExtender", "=", "false", ";", "for", "(", "auto", "const", "&", "I", ":", "HexagonMCInstrInfo", "::", "bundleInstructions", "(", "*", "MI", ")", ")", "{", "MCInst", "const", "&", "MCI", "=", "*", "I", ".", "getInst", "(", ")", ";", "if", "(", "HexagonMCInstrInfo", "::", "isDuplex", "(", "MII", ",", "MCI", ")", ")", "{", "printInstruction", "(", "MCI", ".", "getOperand", "(", "1", ")", ".", "getInst", "(", ")", ",", "OS", ")", ";", "OS", "<<", "'\\v'", ";", "HasExtender", "=", "false", ";", "printInstruction", "(", "MCI", ".", "getOperand", "(", "0", ")", ".", "getInst", "(", ")", ",", "OS", ")", ";", "}", "else", "printInstruction", "(", "&", "MCI", ",", "OS", ")", ";", "setExtender", "(", "MCI", ")", ";", "OS", "<<", "\"\\n\"", ";", "}", "auto", "Separator", "=", "\"\"", ";", "if", "(", "HexagonMCInstrInfo", "::", "isInnerLoop", "(", "*", "MI", ")", ")", "{", "OS", "<<", "Separator", ";", "Separator", "=", "\" \"", ";", "MCInst", "ME", ";", "ME", ".", "setOpcode", "(", "Hexagon", "::", "ENDLOOP0", ")", ";", "printInstruction", "(", "&", "ME", ",", "OS", ")", ";", "}", "if", "(", "HexagonMCInstrInfo", "::", "isOuterLoop", "(", "*", "MI", ")", ")", "{", "OS", "<<", "Separator", ";", "MCInst", "ME", ";", "ME", ".", "setOpcode", "(", "Hexagon", "::", "ENDLOOP1", ")", ";", "printInstruction", "(", "&", "ME", ",", "OS", ")", ";", "}", "}", "</s>" ]
[ "Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "." ]
[ "Hexagon", "Hexagon", "Hexagon", "Hexagon", "Hexagon", "0", "Hexagon", "Hexagon", "1", "0", "\"\\n\"", "\"\"", "Hexagon", "\" \"", "Hexagon::ENDLOOP0", "Hexagon", "Hexagon::ENDLOOP1" ]
HexagonInstPrinter17
printInst
Hexagon
DSP
LLVM
1,725
246
1
[]
[ "<s>", "static", "const", "char", "*", "getName", "(", ")", "{", "return", "DEBUG_TYPE", ";", "}", "</s>" ]
[ "Return", "a", "string", "with", "the", "name", "of", "the", "plan", "and", "the", "applicable", "VFs", "and", "UFs", "." ]
[ "SPIRV" ]
SPIRVInstructionSelector
getName
SPIRV
Virtual ISA
LLVM
1,726
12
1
[]
[ "<s>", "EVT", "PPCTargetLowering", "::", "getSetCCResultType", "(", "LLVMContext", "&", ",", "EVT", "VT", ")", "const", "{", "if", "(", "!", "VT", ".", "isVector", "(", ")", ")", "return", "PPCSubTarget", ".", "useCRBits", "(", ")", "?", "MVT", "::", "i1", ":", "MVT", "::", "i32", ";", "return", "VT", ".", "changeVectorElementTypeToInteger", "(", ")", ";", "}", "</s>" ]
[ "Return", "the", "value", "type", "to", "use", "for", "ISD", ":", ":SETCC", "." ]
[ "PowerPC", "PPC", "PPC", "MVT::i1", "MVT::i32" ]
PPCISelLowering (2)
getSetCCResultType
PowerPC
CPU
LLVM
1,727
45
1
[]
[ "<s>", "bool", "HexagonGenPredicate", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "skipFunction", "(", "*", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "TII", "=", "MF", ".", "getSubtarget", "<", "HexagonSubtarget", ">", "(", ")", ".", "getInstrInfo", "(", ")", ";", "TRI", "=", "MF", ".", "getSubtarget", "<", "HexagonSubtarget", ">", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "PredGPRs", ".", "clear", "(", ")", ";", "PUsers", ".", "clear", "(", ")", ";", "G2P", ".", "clear", "(", ")", ";", "bool", "Changed", "=", "false", ";", "collectPredicateGPR", "(", "MF", ")", ";", "for", "(", "SetOfReg", "::", "iterator", "I", "=", "PredGPRs", ".", "begin", "(", ")", ",", "E", "=", "PredGPRs", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "processPredicateGPR", "(", "*", "I", ")", ";", "bool", "Again", ";", "do", "{", "Again", "=", "false", ";", "VectOfInst", "Processed", ",", "Copy", ";", "typedef", "VectOfInst", "::", "iterator", "iterator", ";", "Copy", "=", "PUsers", ";", "for", "(", "iterator", "I", "=", "Copy", ".", "begin", "(", ")", ",", "E", "=", "Copy", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "MachineInstr", "*", "MI", "=", "*", "I", ";", "bool", "Done", "=", "convertToPredForm", "(", "MI", ")", ";", "if", "(", "Done", ")", "{", "Processed", ".", "insert", "(", "MI", ")", ";", "Again", "=", "true", ";", "}", "}", "Changed", "|=", "Again", ";", "auto", "Done", "=", "[", "Processed", "]", "(", "MachineInstr", "*", "MI", ")", "->", "bool", "{", "return", "Processed", ".", "count", "(", "MI", ")", ";", "}", ";", "PUsers", ".", "remove_if", "(", "Done", ")", ";", "}", "while", "(", "Again", ")", ";", "Changed", "|=", "eliminatePredCopies", "(", "MF", ")", ";", "return", "Changed", ";", "}", "</s>" ]
[ "runOnMachineFunction", "-", "Emit", "the", "function", "body", "." ]
[ "Hexagon", "Hexagon", "Hexagon", "Hexagon" ]
HexagonGenPredicate13
runOnMachineFunction
Hexagon
DSP
LLVM
1,728
262
1
[]
[ "<s>", "bool", "RISCVInstructionSelector", "::", "select", "(", "MachineInstr", "&", "I", ")", "{", "if", "(", "!", "isPreISelGenericOpcode", "(", "I", ".", "getOpcode", "(", ")", ")", ")", "{", "return", "true", ";", "}", "if", "(", "selectImpl", "(", "I", ",", "*", "CoverageInfo", ")", ")", "return", "true", ";", "return", "false", ";", "}", "</s>" ]
[ "Select", "the", "(", "possibly", "generic", ")", "instruction", "I", "to", "only", "use", "target-specific", "opcodes", "." ]
[ "RI5CY", "RISCV" ]
RISCVInstructionSelector
select
RI5CY
CPU
LLVM
1,729
44
1
[]
[ "<s>", "bool", "AlphaTargetMachine", "::", "addInstSelector", "(", "PassManagerBase", "&", "PM", ",", "CodeGenOpt", "::", "Level", "OptLevel", ")", "{", "PM", ".", "add", "(", "createAlphaISelDag", "(", "*", "this", ")", ")", ";", "return", "false", ";", "}", "</s>" ]
[ "addInstSelector", "-", "This", "method", "should", "install", "an", "instruction", "selector", "pass", ",", "which", "converts", "from", "LLVM", "code", "to", "machine", "instructions", "." ]
[ "Alpha", "Alpha", "Alpha" ]
AlphaTargetMachine
addInstSelector
Alpha
MPU
LLVM
1,730
30
1
[]
[ "<s>", "void", "RegDefsUses", "::", "init", "(", "const", "MachineInstr", "&", "MI", ")", "{", "update", "(", "MI", ",", "0", ",", "MI", ".", "getDesc", "(", ")", ".", "getNumOperands", "(", ")", ")", ";", "if", "(", "MI", ".", "isCall", "(", ")", ")", "{", "assert", "(", "MI", ".", "getDesc", "(", ")", ".", "getNumImplicitDefs", "(", ")", "<=", "2", "&&", "\"Expected one implicit def for call instruction\"", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "MI", ".", "getDesc", "(", ")", ".", "getNumImplicitDefs", "(", ")", ";", "i", "++", ")", "{", "MCPhysReg", "Reg", "=", "MI", ".", "getDesc", "(", ")", ".", "getImplicitDefs", "(", ")", "[", "i", "]", ";", "if", "(", "Reg", "==", "Mips", "::", "C26", ")", "continue", ";", "Defs", ".", "set", "(", "Reg", ")", ";", "}", "}", "if", "(", "MI", ".", "isBranch", "(", ")", ")", "{", "update", "(", "MI", ",", "MI", ".", "getDesc", "(", ")", ".", "getNumOperands", "(", ")", ",", "MI", ".", "getNumOperands", "(", ")", ")", ";", "Defs", ".", "reset", "(", "Mips", "::", "AT", ")", ";", "}", "}", "</s>" ]
[ "Initialize", "the", "machine", "model", "for", "instruction", "scheduling", "." ]
[ "Mips", "0", "2", "\"Expected one implicit def for call instruction\"", "0", "Mips::C26", "Mips::AT" ]
MipsDelaySlotFiller35
init
Mips
CPU
LLVM
1,731
153
1
[]
[ "<s>", "bool", "ARMTargetLowering", "::", "isUsedByReturnOnly", "(", "SDNode", "*", "N", ",", "SDValue", "&", "Chain", ")", "const", "{", "if", "(", "N", "->", "getNumValues", "(", ")", "!=", "1", ")", "return", "false", ";", "if", "(", "!", "N", "->", "hasNUsesOfValue", "(", "1", ",", "0", ")", ")", "return", "false", ";", "SDValue", "TCChain", "=", "Chain", ";", "SDNode", "*", "Copy", "=", "*", "N", "->", "use_begin", "(", ")", ";", "if", "(", "Copy", "->", "getOpcode", "(", ")", "==", "ISD", "::", "CopyToReg", ")", "{", "if", "(", "Copy", "->", "getOperand", "(", "Copy", "->", "getNumOperands", "(", ")", "-", "1", ")", ".", "getValueType", "(", ")", "==", "MVT", "::", "Glue", ")", "return", "false", ";", "TCChain", "=", "Copy", "->", "getOperand", "(", "0", ")", ";", "}", "else", "if", "(", "Copy", "->", "getOpcode", "(", ")", "==", "ARMISD", "::", "VMOVRRD", ")", "{", "SDNode", "*", "VMov", "=", "Copy", ";", "SmallPtrSet", "<", "SDNode", "*", ",", "2", ">", "Copies", ";", "for", "(", "SDNode", "::", "use_iterator", "UI", "=", "VMov", "->", "use_begin", "(", ")", ",", "UE", "=", "VMov", "->", "use_end", "(", ")", ";", "UI", "!=", "UE", ";", "++", "UI", ")", "{", "if", "(", "UI", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "CopyToReg", ")", "return", "false", ";", "Copies", ".", "insert", "(", "*", "UI", ")", ";", "}", "if", "(", "Copies", ".", "size", "(", ")", ">", "2", ")", "return", "false", ";", "for", "(", "SDNode", "::", "use_iterator", "UI", "=", "VMov", "->", "use_begin", "(", ")", ",", "UE", "=", "VMov", "->", "use_end", "(", ")", ";", "UI", "!=", "UE", ";", "++", "UI", ")", "{", "SDValue", "UseChain", "=", "UI", "->", "getOperand", "(", "0", ")", ";", "if", "(", "Copies", ".", "count", "(", "UseChain", ".", "getNode", "(", ")", ")", ")", "Copy", "=", "*", "UI", ";", "else", "TCChain", "=", "UseChain", ";", "}", "}", "else", "if", "(", "Copy", "->", "getOpcode", "(", ")", "==", "ISD", "::", "BITCAST", ")", "{", "if", "(", "!", "Copy", "->", "hasOneUse", "(", ")", ")", "return", "false", ";", "Copy", "=", "*", "Copy", "->", "use_begin", "(", ")", ";", "if", "(", "Copy", "->", "getOpcode", "(", ")", "!=", "ISD", "::", "CopyToReg", "||", "!", "Copy", "->", "hasNUsesOfValue", "(", "1", ",", "0", ")", ")", "return", "false", ";", "Chain", "=", "Copy", "->", "getOperand", "(", "0", ")", ";", "}", "else", "{", "return", "false", ";", "}", "bool", "HasRet", "=", "false", ";", "for", "(", "SDNode", "::", "use_iterator", "UI", "=", "Copy", "->", "use_begin", "(", ")", ",", "UE", "=", "Copy", "->", "use_end", "(", ")", ";", "UI", "!=", "UE", ";", "++", "UI", ")", "{", "if", "(", "UI", "->", "getOpcode", "(", ")", "!=", "ARMISD", "::", "RET_FLAG", ")", "return", "false", ";", "HasRet", "=", "true", ";", "}", "if", "(", "!", "HasRet", ")", "return", "false", ";", "Chain", "=", "TCChain", ";", "return", "true", ";", "}", "</s>" ]
[ "Return", "true", "if", "result", "of", "the", "specified", "node", "is", "used", "by", "a", "return", "node", "only", "." ]
[ "ARM", "ARM", "1", "1", "0", "ISD::CopyToReg", "1", "MVT::Glue", "0", "ARMISD::VMOVRRD", "2", "ISD::CopyToReg", "2", "0", "ISD::BITCAST", "ISD::CopyToReg", "1", "0", "0", "ARMISD::RET_FLAG" ]
ARMISelLowering107
isUsedByReturnOnly
ARM
CPU
LLVM
1,732
413
1
[]
[ "<s>", "unsigned", "SHUXIMCCodeEmitter", "::", "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", "(", ")", ")", "{", "return", "static_cast", "<", "unsigned", ">", "(", "MO", ".", "getImm", "(", ")", ")", ";", "}", "if", "(", "MO", ".", "isExpr", "(", ")", ")", "{", "const", "MCExpr", "*", "Expr", "=", "MO", ".", "getExpr", "(", ")", ";", "MCExpr", "::", "ExprKind", "Kind", "=", "Expr", "->", "getKind", "(", ")", ";", "if", "(", "Kind", "==", "MCExpr", "::", "Constant", ")", "{", "return", "cast", "<", "MCConstantExpr", ">", "(", "Expr", ")", "->", "getValue", "(", ")", ";", "}", "if", "(", "Kind", "==", "MCExpr", "::", "Binary", ")", "{", "Expr", "=", "static_cast", "<", "const", "MCBinaryExpr", "*", ">", "(", "Expr", ")", "->", "getLHS", "(", ")", ";", "Kind", "=", "Expr", "->", "getKind", "(", ")", ";", "}", "assert", "(", "Kind", "==", "MCExpr", "::", "SymbolRef", "&&", "\"unknown MCExpr kind\"", ")", ";", "SHUXI", "::", "Fixups", "FixupKind", "=", "SHUXI", "::", "Fixups", "(", "0", ")", ";", "switch", "(", "cast", "<", "MCSymbolRefExpr", ">", "(", "Expr", ")", "->", "getKind", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown fixup kind!\"", ")", ";", "case", "MCSymbolRefExpr", "::", "VK_None", ":", "FixupKind", "=", "SHUXI", "::", "fixup_SHUXI_32", ";", "break", ";", "}", "Fixups", ".", "push_back", "(", "MCFixup", "::", "create", "(", "0", ",", "Expr", ",", "MCFixupKind", "(", "FixupKind", ")", ")", ")", ";", "return", "0", ";", "}", "llvm_unreachable", "(", "\"Unhandled expression!\"", ")", ";", "return", "0", ";", "}", "</s>" ]
[ "getMachineOpValue", "-", "Return", "binary", "encoding", "of", "operand", "." ]
[ "SHUXI", "SHUXI", "\"unknown MCExpr kind\"", "SHUXI::Fixups", "SHUXI::Fixups", "0", "\"Unknown fixup kind!\"", "SHUXI::fixup_SHUXI_32", "0", "0", "\"Unhandled expression!\"", "0" ]
SHUXIMCCodeEmitter
getMachineOpValue
SHUXI
CPU
LLVM
1,733
257
1
[]
[ "<s>", "bool", "SITargetLowering", "::", "canMergeStoresTo", "(", "unsigned", "AS", ",", "EVT", "MemVT", ",", "const", "SelectionDAG", "&", "DAG", ")", "const", "{", "if", "(", "AS", "==", "AMDGPUAS", "::", "GLOBAL_ADDRESS", "||", "AS", "==", "AMDGPUAS", "::", "FLAT_ADDRESS", ")", "{", "return", "(", "MemVT", ".", "getSizeInBits", "(", ")", "<=", "4", "*", "32", ")", ";", "}", "else", "if", "(", "AS", "==", "AMDGPUAS", "::", "PRIVATE_ADDRESS", ")", "{", "unsigned", "MaxPrivateBits", "=", "8", "*", "getSubtarget", "(", ")", "->", "getMaxPrivateElementSize", "(", ")", ";", "return", "(", "MemVT", ".", "getSizeInBits", "(", ")", "<=", "MaxPrivateBits", ")", ";", "}", "else", "if", "(", "AS", "==", "AMDGPUAS", "::", "LOCAL_ADDRESS", ")", "{", "return", "(", "MemVT", ".", "getSizeInBits", "(", ")", "<=", "2", "*", "32", ")", ";", "}", "return", "true", ";", "}", "</s>" ]
[ "Returns", "if", "it", "'s", "reasonable", "to", "merge", "stores", "to", "MemVT", "size", "." ]
[ "AMDGPU", "SI", "AMDGPU", "AMDGPU", "4", "32", "AMDGPU", "8", "AMDGPU", "2", "32" ]
SIISelLowering (2)3
canMergeStoresTo
AMDGPU
GPU
LLVM
1,734
110
1
[]
[ "<s>", "static", "bool", "use_32bit_hwmult", "(", "void", ")", "{", "static", "const", "char", "*", "cached_match", "=", "NULL", ";", "static", "bool", "cached_result", ";", "if", "(", "msp430_hwmult_type", "==", "MSP430_HWMULT_LARGE", ")", "return", "true", ";", "if", "(", "target_mcu", "==", "NULL", "||", "msp430_hwmult_type", "!=", "MSP430_HWMULT_AUTO", ")", "return", "false", ";", "if", "(", "target_mcu", "==", "cached_match", ")", "return", "cached_result", ";", "cached_match", "=", "target_mcu", ";", "msp430_extract_mcu_data", "(", "target_mcu", ")", ";", "if", "(", "extracted_mcu_data", ".", "name", "!=", "NULL", ")", "return", "cached_result", "=", "extracted_mcu_data", ".", "hwmpy", "==", "4", ";", "return", "cached_result", "=", "false", ";", "}", "</s>" ]
[ "Returns", "true", "if", "the", "current", "MCU", "has", "a", "second", "generation", "32-bit", "hardware", "multiplier", "." ]
[ "msp430", "4" ]
msp430
use_32bit_hwmult
msp430
MPU
GCC
1,735
82
1
[]
[ "<s>", "static", "bool", "avr_rtx_costs", "(", "rtx", "x", ",", "int", "codearg", ",", "int", "outer_code", ",", "int", "opno", ",", "int", "*", "total", ",", "bool", "speed", ")", "{", "bool", "done", "=", "avr_rtx_costs_1", "(", "x", ",", "codearg", ",", "outer_code", ",", "opno", ",", "total", ",", "speed", ")", ";", "if", "(", "avr_log", ".", "rtx_costs", ")", "{", "avr_edump", "(", "\"\\n%?=%b (%s) total=%d, outer=%C:\\n%r\\n\"", ",", "done", ",", "speed", "?", "\"speed\"", ":", "\"size\"", ",", "*", "total", ",", "outer_code", ",", "x", ")", ";", "}", "return", "done", ";", "}", "</s>" ]
[ "The", "AVR", "backend", "'s", "rtx_cost", "function", ".", "X", "is", "rtx", "expression", "whose", "cost", "is", "to", "be", "calculated", ".", "Return", "true", "if", "the", "complete", "cost", "has", "been", "computed", ",", "and", "false", "if", "subexpressions", "should", "be", "scanned", ".", "In", "either", "case", ",", "*", "TOTAL", "contains", "the", "cost", "result", "." ]
[ "avr", "\"\\n%?=%b (%s) total=%d, outer=%C:\\n%r\\n\"", "\"speed\"", "\"size\"" ]
avr4
avr_rtx_costs
avr
MPU
GCC
1,736
74
1
[]
[ "<s>", "void", "ix86_expand_xorsign", "(", "rtx", "operands", "[", "]", ")", "{", "rtx", "(", "*", "xorsign_insn", ")", "(", "rtx", ",", "rtx", ",", "rtx", ",", "rtx", ")", ";", "machine_mode", "mode", ",", "vmode", ";", "rtx", "dest", ",", "op0", ",", "op1", ",", "mask", ";", "dest", "=", "operands", "[", "0", "]", ";", "op0", "=", "operands", "[", "1", "]", ";", "op1", "=", "operands", "[", "2", "]", ";", "mode", "=", "GET_MODE", "(", "dest", ")", ";", "if", "(", "mode", "==", "SFmode", ")", "{", "xorsign_insn", "=", "gen_xorsignsf3_1", ";", "vmode", "=", "V4SFmode", ";", "}", "else", "if", "(", "mode", "==", "DFmode", ")", "{", "xorsign_insn", "=", "gen_xorsigndf3_1", ";", "vmode", "=", "V2DFmode", ";", "}", "else", "gcc_unreachable", "(", ")", ";", "mask", "=", "ix86_build_signbit_mask", "(", "vmode", ",", "0", ",", "0", ")", ";", "emit_insn", "(", "xorsign_insn", "(", "dest", ",", "op0", ",", "op1", ",", "mask", ")", ")", ";", "}", "</s>" ]
[ "Expand", "an", "xorsign", "operation", "." ]
[ "i386", "0", "1", "2", "0", "0" ]
i3868
ix86_expand_xorsign
i386
CPU
GCC
1,737
130
1
[]
[ "<s>", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "addPreserved", "<", "StackProtector", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "TargetTransformInfoWrapperPass", ">", "(", ")", ";", "}", "</s>" ]
[ "getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "." ]
[ "NVPTX" ]
NVPTXLowerAggrCopies12
getAnalysisUsage
NVPTX
GPU
LLVM
1,738
29
1
[]
[ "<s>", "Optional", "<", "DestSourcePair", ">", "AArch64InstrInfo", "::", "isAddImmediate", "(", "const", "MachineInstr", "&", "MI", ",", "int64_t", "&", "Offset", ")", "const", "{", "int", "Sign", "=", "1", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "return", "None", ";", "case", "AArch64", "::", "SUBWri", ":", "case", "AArch64", "::", "SUBXri", ":", "case", "AArch64", "::", "SUBSWri", ":", "case", "AArch64", "::", "SUBSXri", ":", "Sign", "*=", "-", "1", ";", "LLVM_FALLTHROUGH", ";", "case", "AArch64", "::", "ADDSWri", ":", "case", "AArch64", "::", "ADDSXri", ":", "case", "AArch64", "::", "ADDWri", ":", "case", "AArch64", "::", "ADDXri", ":", "{", "if", "(", "!", "MI", ".", "getOperand", "(", "0", ")", ".", "isReg", "(", ")", "||", "!", "MI", ".", "getOperand", "(", "1", ")", ".", "isReg", "(", ")", "||", "!", "MI", ".", "getOperand", "(", "2", ")", ".", "isImm", "(", ")", ")", "return", "None", ";", "Offset", "=", "MI", ".", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", "*", "Sign", ";", "int", "Shift", "=", "MI", ".", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", ";", "assert", "(", "(", "Shift", "==", "0", "||", "Shift", "==", "12", ")", "&&", "\"Shift can be either 0 or 12\"", ")", ";", "Offset", "=", "Offset", "<<", "Shift", ";", "}", "}", "return", "DestSourcePair", "{", "MI", ".", "getOperand", "(", "0", ")", ",", "MI", ".", "getOperand", "(", "1", ")", "}", ";", "}", "</s>" ]
[ "If", "the", "specific", "machine", "instruction", "is", "an", "instruction", "that", "adds", "an", "immediate", "value", "and", "a", "register", ",", "and", "stores", "the", "result", "in", "the", "given", "register", "Reg", ",", "return", "a", "pair", "of", "the", "source", "register", "and", "the", "offset", "which", "has", "been", "added", "." ]
[ "AArch64", "AArch64", "1", "AArch64::SUBWri", "AArch64::SUBXri", "AArch64::SUBSWri", "AArch64::SUBSXri", "1", "AArch64::ADDSWri", "AArch64::ADDSXri", "AArch64::ADDWri", "AArch64::ADDXri", "0", "1", "2", "2", "3", "0", "12", "\"Shift can be either 0 or 12\"", "0", "1" ]
AArch64InstrInfo124
isAddImmediate
AArch64
CPU
LLVM
1,739
198
1
[]
[ "<s>", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "{", "AU", ".", "addRequired", "<", "MachineModuleInfo", ">", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", "</s>" ]
[ "getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "." ]
[ "Sparc" ]
SparcCodeEmitter
getAnalysisUsage
Sparc
CPU
LLVM
1,740
26
1
[]
[ "<s>", "static", "void", "s390_frame_area", "(", "int", "*", "area_bottom", ",", "int", "*", "area_top", ")", "{", "int", "b", ",", "t", ";", "b", "=", "INT_MAX", ";", "t", "=", "INT_MIN", ";", "if", "(", "cfun_frame_layout", ".", "first_restore_gpr", "!=", "-", "1", ")", "{", "b", "=", "(", "cfun_frame_layout", ".", "gprs_offset", "+", "cfun_frame_layout", ".", "first_restore_gpr", "*", "UNITS_PER_LONG", ")", ";", "t", "=", "b", "+", "(", "cfun_frame_layout", ".", "last_restore_gpr", "-", "cfun_frame_layout", ".", "first_restore_gpr", "+", "1", ")", "*", "UNITS_PER_LONG", ";", "}", "if", "(", "TARGET_64BIT", "&&", "cfun_save_high_fprs_p", ")", "{", "b", "=", "MIN", "(", "b", ",", "cfun_frame_layout", ".", "f8_offset", ")", ";", "t", "=", "MAX", "(", "t", ",", "(", "cfun_frame_layout", ".", "f8_offset", "+", "cfun_frame_layout", ".", "high_fprs", "*", "8", ")", ")", ";", "}", "if", "(", "!", "TARGET_64BIT", ")", "{", "if", "(", "cfun_fpr_save_p", "(", "FPR4_REGNUM", ")", ")", "{", "b", "=", "MIN", "(", "b", ",", "cfun_frame_layout", ".", "f4_offset", ")", ";", "t", "=", "MAX", "(", "t", ",", "cfun_frame_layout", ".", "f4_offset", "+", "8", ")", ";", "}", "if", "(", "cfun_fpr_save_p", "(", "FPR6_REGNUM", ")", ")", "{", "b", "=", "MIN", "(", "b", ",", "cfun_frame_layout", ".", "f4_offset", "+", "8", ")", ";", "t", "=", "MAX", "(", "t", ",", "cfun_frame_layout", ".", "f4_offset", "+", "16", ")", ";", "}", "}", "*", "area_bottom", "=", "b", ";", "*", "area_top", "=", "t", ";", "}", "</s>" ]
[ "Determine", "the", "frame", "area", "which", "actually", "has", "to", "be", "accessed", "in", "the", "function", "epilogue", ".", "The", "values", "are", "stored", "at", "the", "given", "pointers", "AREA_BOTTOM", "(", "address", "of", "the", "lowest", "used", "stack", "address", ")", "and", "AREA_TOP", "(", "address", "of", "the", "first", "item", "which", "does", "not", "belong", "to", "the", "stack", "frame", ")", "." ]
[ "s390", "1", "1", "8", "8", "8", "16" ]
s390
s390_frame_area
s390
MPU
GCC
1,741
193
1
[]
[ "<s>", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"AAP Short Instruction Peephole\"", ";", "}", "</s>" ]
[ "getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "." ]
[ "AAP", "\"AAP Short Instruction Peephole\"" ]
AAPShortInstrPeephole
getPassName
AAP
MPU
LLVM
1,742
11
1
[]
[ "<s>", "void", "SystemZInstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MBBI", ",", "DebugLoc", "DL", ",", "unsigned", "DestReg", ",", "unsigned", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "if", "(", "SystemZ", "::", "GR128BitRegClass", ".", "contains", "(", "DestReg", ",", "SrcReg", ")", ")", "{", "copyPhysReg", "(", "MBB", ",", "MBBI", ",", "DL", ",", "RI", ".", "getSubReg", "(", "DestReg", ",", "SystemZ", "::", "subreg_high", ")", ",", "RI", ".", "getSubReg", "(", "SrcReg", ",", "SystemZ", "::", "subreg_high", ")", ",", "KillSrc", ")", ";", "copyPhysReg", "(", "MBB", ",", "MBBI", ",", "DL", ",", "RI", ".", "getSubReg", "(", "DestReg", ",", "SystemZ", "::", "subreg_low", ")", ",", "RI", ".", "getSubReg", "(", "SrcReg", ",", "SystemZ", "::", "subreg_low", ")", ",", "KillSrc", ")", ";", "return", ";", "}", "unsigned", "Opcode", ";", "if", "(", "SystemZ", "::", "GR32BitRegClass", ".", "contains", "(", "DestReg", ",", "SrcReg", ")", ")", "Opcode", "=", "SystemZ", "::", "LR", ";", "else", "if", "(", "SystemZ", "::", "GR64BitRegClass", ".", "contains", "(", "DestReg", ",", "SrcReg", ")", ")", "Opcode", "=", "SystemZ", "::", "LGR", ";", "else", "if", "(", "SystemZ", "::", "FP32BitRegClass", ".", "contains", "(", "DestReg", ",", "SrcReg", ")", ")", "Opcode", "=", "SystemZ", "::", "LER", ";", "else", "if", "(", "SystemZ", "::", "FP64BitRegClass", ".", "contains", "(", "DestReg", ",", "SrcReg", ")", ")", "Opcode", "=", "SystemZ", "::", "LDR", ";", "else", "if", "(", "SystemZ", "::", "FP128BitRegClass", ".", "contains", "(", "DestReg", ",", "SrcReg", ")", ")", "Opcode", "=", "SystemZ", "::", "LXR", ";", "else", "llvm_unreachable", "(", "\"Impossible reg-to-reg copy\"", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "DL", ",", "get", "(", "Opcode", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "}", "</s>" ]
[ "}", "Branch", "Analysis", "&", "Modification" ]
[ "SystemZ", "SystemZ", "SystemZ::GR128BitRegClass", "SystemZ::subreg_high", "SystemZ::subreg_high", "SystemZ::subreg_low", "SystemZ::subreg_low", "SystemZ::GR32BitRegClass", "SystemZ::LR", "SystemZ::GR64BitRegClass", "SystemZ::LGR", "SystemZ::FP32BitRegClass", "SystemZ::LER", "SystemZ::FP64BitRegClass", "SystemZ::LDR", "SystemZ::FP128BitRegClass", "SystemZ::LXR", "\"Impossible reg-to-reg copy\"" ]
SystemZInstrInfo (2)
copyPhysReg
SystemZ
CPU
LLVM
1,743
246
1
[]
[ "<s>", "bool", "splitFramePushPop", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "(", "getFramePointerReg", "(", ")", "==", "ARM", "::", "R7", "&&", "MF", ".", "getTarget", "(", ")", ".", "Options", ".", "DisableFramePointerElim", "(", "MF", ")", ")", "||", "isThumb1Only", "(", ")", ";", "}", "</s>" ]
[ "Returns", "true", "if", "the", "frame", "setup", "is", "split", "into", "two", "separate", "pushes", "(", "first", "r0-r7", ",", "lr", "then", "r8-r11", ")", ",", "principally", "so", "that", "the", "frame", "pointer", "is", "adjacent", "to", "lr", "." ]
[ "ARM", "ARM::R7" ]
ARMSubtarget100
splitFramePushPop
ARM
CPU
LLVM
1,744
39
1
[]
[ "<s>", "void", "NVPTXTargetStreamer", "::", "changeSection", "(", "const", "MCSection", "*", "CurSection", ",", "MCSection", "*", "Section", ",", "const", "MCExpr", "*", "SubSection", ",", "raw_ostream", "&", "OS", ")", "{", "assert", "(", "!", "SubSection", "&&", "\"SubSection is not null!\"", ")", ";", "const", "MCObjectFileInfo", "*", "FI", "=", "getStreamer", "(", ")", ".", "getContext", "(", ")", ".", "getObjectFileInfo", "(", ")", ";", "if", "(", "isDwarfSection", "(", "FI", ",", "CurSection", ")", ")", "OS", "<<", "\"\\t}\\n\"", ";", "if", "(", "isDwarfSection", "(", "FI", ",", "Section", ")", ")", "{", "outputDwarfFileDirectives", "(", ")", ";", "OS", "<<", "\"\\t.section\"", ";", "Section", "->", "PrintSwitchToSection", "(", "*", "getStreamer", "(", ")", ".", "getContext", "(", ")", ".", "getAsmInfo", "(", ")", ",", "getStreamer", "(", ")", ".", "getContext", "(", ")", ".", "getTargetTriple", "(", ")", ",", "OS", ",", "SubSection", ")", ";", "OS", "<<", "\"\\t{\\n\"", ";", "HasSections", "=", "true", ";", "}", "}", "</s>" ]
[ "Update", "streamer", "for", "a", "new", "active", "section", "." ]
[ "NVPTX", "NVPTX", "\"SubSection is not null!\"", "\"\\t}\\n\"", "\"\\t.section\"", "\"\\t{\\n\"" ]
NVPTXTargetStreamer
changeSection
NVPTX
GPU
LLVM
1,745
124
1
[]
[ "<s>", "static", "rtx", "pseudo_reg_set", "(", "rtx_insn", "*", "insn", ")", "{", "rtx", "set", "=", "single_set", "(", "insn", ")", ";", "if", "(", "!", "set", ")", "return", "NULL", ";", "machine_mode", "mode", "=", "TARGET_64BIT", "?", "TImode", ":", "DImode", ";", "if", "(", "REG_P", "(", "SET_SRC", "(", "set", ")", ")", "&&", "!", "HARD_REGISTER_P", "(", "SET_SRC", "(", "set", ")", ")", "&&", "push_operand", "(", "SET_DEST", "(", "set", ")", ",", "mode", ")", ")", "return", "set", ";", "df_ref", "ref", ";", "FOR_EACH_INSN_DEF", "(", "ref", ",", "insn", ")", "if", "(", "HARD_REGISTER_P", "(", "DF_REF_REAL_REG", "(", "ref", ")", ")", "&&", "!", "DF_REF_FLAGS_IS_SET", "(", "ref", ",", "DF_REF_MUST_CLOBBER", ")", "&&", "DF_REF_REGNO", "(", "ref", ")", "!=", "FLAGS_REG", ")", "return", "NULL", ";", "FOR_EACH_INSN_USE", "(", "ref", ",", "insn", ")", "if", "(", "!", "DF_REF_REG_MEM_P", "(", "ref", ")", "&&", "HARD_REGISTER_P", "(", "DF_REF_REAL_REG", "(", "ref", ")", ")", ")", "return", "NULL", ";", "return", "set", ";", "}", "</s>" ]
[ "Return", "the", "SET", "expression", "if", "INSN", "does", "n't", "reference", "hard", "register", ".", "Return", "NULL", "if", "INSN", "uses", "or", "defines", "a", "hard", "register", ",", "excluding", "pseudo", "register", "pushes", ",", "hard", "register", "uses", "in", "a", "memory", "address", ",", "clobbers", "and", "flags", "definitions", "." ]
[ "i386" ]
i386-features
pseudo_reg_set
i386
CPU
GCC
1,746
132
1
[]
[ "<s>", "static", "bool", "mips16e_collect_argument_save_p", "(", "rtx", "dest", ",", "rtx", "src", ",", "rtx", "*", "reg_values", ",", "unsigned", "int", "*", "regno_ptr", ")", "{", "unsigned", "int", "argno", ",", "regno", ";", "HOST_WIDE_INT", "offset", ",", "required_offset", ";", "rtx", "addr", ",", "base", ";", "if", "(", "!", "MEM_P", "(", "dest", ")", "||", "!", "REG_P", "(", "src", ")", "||", "GET_MODE", "(", "dest", ")", "!=", "word_mode", ")", "return", "false", ";", "regno", "=", "REGNO", "(", "src", ")", ";", "if", "(", "!", "IN_RANGE", "(", "regno", ",", "GP_ARG_FIRST", ",", "GP_ARG_LAST", ")", "||", "reg_values", "[", "regno", "]", ")", "return", "false", ";", "argno", "=", "regno", "-", "GP_ARG_FIRST", ";", "addr", "=", "mips16e_collect_propagate_value", "(", "XEXP", "(", "dest", ",", "0", ")", ",", "reg_values", ")", ";", "mips_split_plus", "(", "addr", ",", "&", "base", ",", "&", "offset", ")", ";", "required_offset", "=", "cfun", "->", "machine", "->", "frame", ".", "total_size", "+", "argno", "*", "UNITS_PER_WORD", ";", "if", "(", "base", "==", "hard_frame_pointer_rtx", ")", "required_offset", "-=", "cfun", "->", "machine", "->", "frame", ".", "hard_frame_pointer_offset", ";", "else", "if", "(", "base", "!=", "stack_pointer_rtx", ")", "return", "false", ";", "if", "(", "offset", "!=", "required_offset", ")", "return", "false", ";", "*", "regno_ptr", "=", "regno", ";", "return", "true", ";", "}", "</s>" ]
[ "Return", "true", "if", "(", "set", "DEST", "SRC", ")", "stores", "an", "argument", "register", "into", "its", "caller-allocated", "save", "slot", ",", "storing", "the", "number", "of", "that", "argument", "register", "in", "*", "REGNO_PTR", "if", "so", ".", "REG_VALUES", "is", "as", "for", "mips16e_collect_propagate_value", "." ]
[ "mips", "0" ]
mips
mips16e_collect_argument_save_p
mips
CPU
GCC
1,747
176
1
[]
[ "<s>", "void", "Thumb2InstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "Register", "DestReg", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FI", ")", ",", "MachineMemOperand", "::", "MOLoad", ",", "MFI", ".", "getObjectSize", "(", "FI", ")", ",", "MFI", ".", "getObjectAlign", "(", "FI", ")", ")", ";", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "if", "(", "ARM", "::", "GPRRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "t2LDRi12", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ".", "add", "(", "predOps", "(", "ARMCC", "::", "AL", ")", ")", ";", "return", ";", "}", "if", "(", "ARM", "::", "GPRPairRegClass", ".", "hasSubClassEq", "(", "RC", ")", ")", "{", "if", "(", "Register", "::", "isVirtualRegister", "(", "DestReg", ")", ")", "{", "MachineRegisterInfo", "*", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "MRI", "->", "constrainRegClass", "(", "DestReg", ",", "&", "ARM", "::", "GPRPairnospRegClass", ")", ";", "}", "MachineInstrBuilder", "MIB", "=", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "t2LDRDi8", ")", ")", ";", "AddDReg", "(", "MIB", ",", "DestReg", ",", "ARM", "::", "gsub_0", ",", "RegState", "::", "DefineNoRead", ",", "TRI", ")", ";", "AddDReg", "(", "MIB", ",", "DestReg", ",", "ARM", "::", "gsub_1", ",", "RegState", "::", "DefineNoRead", ",", "TRI", ")", ";", "MIB", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ".", "add", "(", "predOps", "(", "ARMCC", "::", "AL", ")", ")", ";", "if", "(", "Register", "::", "isPhysicalRegister", "(", "DestReg", ")", ")", "MIB", ".", "addReg", "(", "DestReg", ",", "RegState", "::", "ImplicitDefine", ")", ";", "return", ";", "}", "ARMBaseInstrInfo", "::", "loadRegFromStackSlot", "(", "MBB", ",", "I", ",", "DestReg", ",", "FI", ",", "RC", ",", "TRI", ")", ";", "}", "</s>" ]
[ "Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "." ]
[ "ARM", "ARM::GPRRegClass", "ARM::t2LDRi12", "0", "ARMCC::AL", "ARM::GPRPairRegClass", "ARM::GPRPairnospRegClass", "ARM::t2LDRDi8", "ARM::gsub_0", "ARM::gsub_1", "0", "ARMCC::AL", "ARM" ]
Thumb2InstrInfo
loadRegFromStackSlot
ARM
CPU
LLVM
1,748
335
1
[]
[ "<s>", "static", "bool", "alpha_scalar_mode_supported_p", "(", "enum", "machine_mode", "mode", ")", "{", "switch", "(", "mode", ")", "{", "case", "QImode", ":", "case", "HImode", ":", "case", "SImode", ":", "case", "DImode", ":", "case", "TImode", ":", "return", "true", ";", "case", "SFmode", ":", "case", "DFmode", ":", "return", "true", ";", "case", "TFmode", ":", "return", "TARGET_HAS_XFLOATING_LIBS", ";", "default", ":", "return", "false", ";", "}", "}", "</s>" ]
[ "The", "scalar", "modes", "supported", "differs", "from", "the", "default", "check-what-c-supports", "version", "in", "that", "sometimes", "TFmode", "is", "available", "even", "when", "long", "double", "indicates", "only", "DFmode", ".", "On", "unicosmk", ",", "we", "have", "the", "situation", "that", "HImode", "does", "n't", "map", "to", "any", "C", "type", ",", "but", "of", "course", "we", "still", "support", "that", "." ]
[ "alpha" ]
alpha3
alpha_scalar_mode_supported_p
alpha
MPU
GCC
1,749
54
1
[]
[ "<s>", "void", "NVPTXAsmPrinter", "::", "EmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "SmallString", "<", "128", ">", "Str", ";", "raw_svector_ostream", "OS", "(", "Str", ")", ";", "if", "(", "static_cast", "<", "NVPTXTargetMachine", "&", ">", "(", "TM", ")", ".", "getDrvInterface", "(", ")", "==", "NVPTX", "::", "CUDA", ")", "emitLineNumberAsDotLoc", "(", "*", "MI", ")", ";", "MCInst", "Inst", ";", "lowerToMCInst", "(", "MI", ",", "Inst", ")", ";", "EmitToStreamer", "(", "OutStreamer", ",", "Inst", ")", ";", "}", "</s>" ]
[ "EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "." ]
[ "NVPTX", "NVPTX", "128", "NVPTX", "NVPTX::CUDA" ]
NVPTXAsmPrinter25
EmitInstruction
NVPTX
GPU
LLVM
1,750
66
1
[]
[ "<s>", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"ARM Indirect Thunks\"", ";", "}", "</s>" ]
[ "getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "." ]
[ "ARM", "\"ARM Indirect Thunks\"" ]
ARMSLSHardening
getPassName
ARM
CPU
LLVM
1,751
11
1
[]
[ "<s>", "static", "bool", "is_branch_slot_insn", "(", "rtx_insn", "*", "insn", ")", "{", "if", "(", "!", "insn", "||", "!", "NONDEBUG_INSN_P", "(", "insn", ")", "||", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "==", "USE", "||", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "==", "CLOBBER", ")", "return", "false", ";", "if", "(", "rs6000_sched_groups", ")", "{", "enum", "attr_type", "type", "=", "get_attr_type", "(", "insn", ")", ";", "if", "(", "type", "==", "TYPE_BRANCH", "||", "type", "==", "TYPE_JMPREG", ")", "return", "true", ";", "return", "false", ";", "}", "return", "false", ";", "}", "</s>" ]
[ "The", "function", "returns", "true", "if", "INSN", "can", "be", "issued", "only", "from", "the", "branch", "slot", "." ]
[ "powerpcspe" ]
powerpcspe
is_branch_slot_insn
powerpcspe
CPU
GCC
1,752
78
1
[]
[ "<s>", "void", "MBlazeAsmBackend", "::", "relaxInstruction", "(", "const", "MCInst", "&", "Inst", ",", "MCInst", "&", "Res", ")", "const", "{", "Res", "=", "Inst", ";", "Res", ".", "setOpcode", "(", "getRelaxedOpcode", "(", "Inst", ".", "getOpcode", "(", ")", ")", ")", ";", "}", "</s>" ]
[ "Relax", "the", "instruction", "in", "the", "given", "fragment", "to", "the", "next", "wider", "instruction", "." ]
[ "MBlaze", "MBlaze" ]
MBlazeAsmBackend1
relaxInstruction
MBlaze
MPU
LLVM
1,753
35
1
[]
[ "<s>", "bool", "AMDGPUOpenCLEnqueuedBlockLowering", "::", "runOnModule", "(", "Module", "&", "M", ")", "{", "DenseSet", "<", "Function", "*", ">", "Callers", ";", "auto", "&", "C", "=", "M", ".", "getContext", "(", ")", ";", "bool", "Changed", "=", "false", ";", "for", "(", "auto", "&", "F", ":", "M", ".", "functions", "(", ")", ")", "{", "if", "(", "F", ".", "hasFnAttribute", "(", "\"enqueued-block\"", ")", ")", "{", "if", "(", "!", "F", ".", "hasName", "(", ")", ")", "{", "SmallString", "<", "64", ">", "Name", ";", "Mangler", "::", "getNameWithPrefix", "(", "Name", ",", "\"__amdgpu_enqueued_kernel\"", ",", "M", ".", "getDataLayout", "(", ")", ")", ";", "F", ".", "setName", "(", "Name", ")", ";", "}", "auto", "RuntimeHandle", "=", "(", "F", ".", "getName", "(", ")", "+", "\".runtime_handle\"", ")", ".", "str", "(", ")", ";", "auto", "*", "GV", "=", "new", "GlobalVariable", "(", "M", ",", "Type", "::", "getInt8Ty", "(", "C", ")", "->", "getPointerTo", "(", "AMDGPUAS", "::", "GLOBAL_ADDRESS", ")", ",", "true", ",", "GlobalValue", "::", "ExternalLinkage", ",", "nullptr", ",", "RuntimeHandle", ",", "nullptr", ",", "GlobalValue", "::", "NotThreadLocal", ",", "AMDGPUAS", "::", "GLOBAL_ADDRESS", ",", "true", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"runtime handle created: \"", "<<", "*", "GV", "<<", "'\\n'", ")", ";", "for", "(", "auto", "U", ":", "F", ".", "users", "(", ")", ")", "{", "if", "(", "!", "isa", "<", "ConstantExpr", ">", "(", "&", "*", "U", ")", ")", "continue", ";", "auto", "*", "BitCast", "=", "cast", "<", "ConstantExpr", ">", "(", "&", "*", "U", ")", ";", "auto", "*", "NewPtr", "=", "ConstantExpr", "::", "getPointerCast", "(", "GV", ",", "BitCast", "->", "getType", "(", ")", ")", ";", "BitCast", "->", "replaceAllUsesWith", "(", "NewPtr", ")", ";", "F", ".", "addFnAttr", "(", "\"runtime-handle\"", ",", "RuntimeHandle", ")", ";", "F", ".", "setLinkage", "(", "GlobalValue", "::", "ExternalLinkage", ")", ";", "for", "(", "auto", "U", ":", "NewPtr", "->", "users", "(", ")", ")", "{", "if", "(", "auto", "*", "I", "=", "dyn_cast", "<", "Instruction", ">", "(", "&", "*", "U", ")", ")", "{", "auto", "*", "F", "=", "I", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "Callers", ".", "insert", "(", "F", ")", ";", "collectCallers", "(", "F", ",", "Callers", ")", ";", "}", "}", "Changed", "=", "true", ";", "}", "}", "}", "for", "(", "auto", "F", ":", "Callers", ")", "{", "if", "(", "F", "->", "getCallingConv", "(", ")", "!=", "CallingConv", "::", "AMDGPU_KERNEL", ")", "continue", ";", "F", "->", "addFnAttr", "(", "\"calls-enqueue-kernel\"", ")", ";", "}", "return", "Changed", ";", "}", "</s>" ]
[ "runOnModule", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "process", "the", "module", "being", "operated", "on", "." ]
[ "AMDGPU", "AMDGPU", "\"enqueued-block\"", "64", "\"__amdgpu_enqueued_kernel\"", "\".runtime_handle\"", "AMDGPU", "AMDGPU", "\"runtime handle created: \"", "\"runtime-handle\"", "AMDGPU", "\"calls-enqueue-kernel\"" ]
AMDGPUOpenCLEnqueuedBlockLowering12
runOnModule
AMDGPU
GPU
LLVM
1,754
354
1
[]
[ "<s>", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "addRequired", "<", "MachineDominatorTree", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "MachineLoopInfo", ">", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", "</s>" ]
[ "getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "." ]
[ "RI5CY" ]
PULPHardwareLoops
getAnalysisUsage
RI5CY
CPU
LLVM
1,755
36
1
[]
[ "<s>", "int", "simple_memory_operand", "(", "rtx", "op", ",", "enum", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ")", "{", "rtx", "addr", ";", "if", "(", "GET_CODE", "(", "op", ")", "!=", "MEM", ")", "return", "FALSE", ";", "if", "(", "GET_MODE_SIZE", "(", "GET_MODE", "(", "op", ")", ")", ">", "(", "HAVE_64BIT_P", "(", ")", "?", "8", ":", "4", ")", ")", "return", "FALSE", ";", "indirection", ":", "addr", "=", "XEXP", "(", "op", ",", "0", ")", ";", "switch", "(", "GET_CODE", "(", "addr", ")", ")", "{", "case", "REG", ":", "return", "1", ";", "case", "PRE_DEC", ":", "case", "POST_INC", ":", "return", "0", ";", "case", "MEM", ":", "if", "(", "GET_CODE", "(", "XEXP", "(", "addr", ",", "0", ")", ")", "==", "REG", ")", "return", "0", ";", "op", "=", "addr", ";", "goto", "indirection", ";", "case", "CONST_INT", ":", "case", "LABEL_REF", ":", "case", "CONST", ":", "case", "SYMBOL_REF", ":", "return", "0", ";", "case", "PLUS", ":", "return", "0", ";", "default", ":", "break", ";", "}", "return", "FALSE", ";", "}", "</s>" ]
[ "Return", "truth", "value", "if", "a", "memory", "operand", "fits", "in", "a", "single", "instruction", "(", "ie", ",", "register", "+", "small", "offset", ")", "." ]
[ "pdp11", "8", "4", "0", "1", "0", "0", "0", "0", "0" ]
pdp113
simple_memory_operand
pdp11
MPU
GCC
1,756
141
1
[]
[ "<s>", "static", "rtx", "pa_function_value", "(", "const_tree", "valtype", ",", "const_tree", "func", "ATTRIBUTE_UNUSED", ",", "bool", "outgoing", "ATTRIBUTE_UNUSED", ")", "{", "machine_mode", "valmode", ";", "if", "(", "AGGREGATE_TYPE_P", "(", "valtype", ")", "||", "TREE_CODE", "(", "valtype", ")", "==", "COMPLEX_TYPE", "||", "TREE_CODE", "(", "valtype", ")", "==", "VECTOR_TYPE", ")", "{", "HOST_WIDE_INT", "valsize", "=", "int_size_in_bytes", "(", "valtype", ")", ";", "if", "(", "valsize", "==", "UNITS_PER_WORD", "||", "valsize", "==", "2", "*", "UNITS_PER_WORD", ")", "return", "gen_rtx_REG", "(", "TYPE_MODE", "(", "valtype", ")", ",", "28", ")", ";", "if", "(", "TARGET_64BIT", ")", "{", "rtx", "loc", "[", "2", "]", ";", "int", "i", ",", "offset", "=", "0", ";", "int", "ub", "=", "valsize", "<=", "UNITS_PER_WORD", "?", "1", ":", "2", ";", "for", "(", "i", "=", "0", ";", "i", "<", "ub", ";", "i", "++", ")", "{", "loc", "[", "i", "]", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "DImode", ",", "28", "+", "i", ")", ",", "GEN_INT", "(", "offset", ")", ")", ";", "offset", "+=", "8", ";", "}", "return", "gen_rtx_PARALLEL", "(", "BLKmode", ",", "gen_rtvec_v", "(", "ub", ",", "loc", ")", ")", ";", "}", "else", "if", "(", "valsize", ">", "UNITS_PER_WORD", ")", "{", "rtx", "loc", "=", "gen_rtx_EXPR_LIST", "(", "VOIDmode", ",", "gen_rtx_REG", "(", "DImode", ",", "28", ")", ",", "const0_rtx", ")", ";", "return", "gen_rtx_PARALLEL", "(", "BLKmode", ",", "gen_rtvec", "(", "1", ",", "loc", ")", ")", ";", "}", "}", "if", "(", "(", "INTEGRAL_TYPE_P", "(", "valtype", ")", "&&", "GET_MODE_BITSIZE", "(", "TYPE_MODE", "(", "valtype", ")", ")", "<", "BITS_PER_WORD", ")", "||", "POINTER_TYPE_P", "(", "valtype", ")", ")", "valmode", "=", "word_mode", ";", "else", "valmode", "=", "TYPE_MODE", "(", "valtype", ")", ";", "if", "(", "TREE_CODE", "(", "valtype", ")", "==", "REAL_TYPE", "&&", "!", "AGGREGATE_TYPE_P", "(", "valtype", ")", "&&", "TYPE_MODE", "(", "valtype", ")", "!=", "TFmode", "&&", "!", "TARGET_SOFT_FLOAT", ")", "return", "gen_rtx_REG", "(", "valmode", ",", "32", ")", ";", "return", "gen_rtx_REG", "(", "valmode", ",", "28", ")", ";", "}", "</s>" ]
[ "On", "the", "HP-PA", "the", "value", "is", "found", "in", "register", "(", "s", ")", "28", "(", "-29", ")", ",", "unless", "the", "mode", "is", "SF", "or", "DF", ".", "Then", "the", "value", "is", "returned", "in", "fr4", "(", "32", ")", ".", "This", "must", "perform", "the", "same", "promotions", "as", "PROMOTE_MODE", ",", "else", "promoting", "return", "values", "in", "TARGET_PROMOTE_FUNCTION_MODE", "will", "not", "work", "correctly", ".", "Small", "structures", "must", "be", "returned", "in", "a", "PARALLEL", "on", "PA64", "in", "order", "to", "match", "the", "HP", "Compiler", "ABI", "." ]
[ "pa", "2", "28", "2", "0", "1", "2", "0", "28", "8", "28", "1", "32", "28" ]
pa
pa_function_value
pa
CPU
GCC
1,757
276
1
[]
[ "<s>", "int", "arc_delay_slots_for_epilogue", "(", "void", ")", "{", "if", "(", "arc_compute_function_type", "(", "current_function_decl", ")", "!=", "ARC_FUNCTION_NORMAL", ")", "return", "0", ";", "if", "(", "!", "current_frame_info", ".", "initialized", ")", "(", "void", ")", "arc_compute_frame_size", "(", "get_frame_size", "(", ")", ")", ";", "if", "(", "current_frame_info", ".", "total_size", "==", "0", ")", "return", "1", ";", "return", "0", ";", "}", "</s>" ]
[ "Define", "the", "number", "of", "delay", "slots", "needed", "for", "the", "function", "epilogue", ".", "Interrupt", "handlers", "ca", "n't", "have", "any", "epilogue", "delay", "slots", "(", "it", "'s", "always", "needed", "for", "something", "else", ",", "I", "think", ")", ".", "For", "normal", "functions", ",", "we", "have", "to", "worry", "about", "using", "call-saved", "regs", "as", "they", "'ll", "be", "restored", "before", "the", "delay", "slot", "insn", ".", "Functions", "with", "non-empty", "frames", "already", "have", "enough", "choices", "for", "the", "epilogue", "delay", "slot", "so", "for", "now", "we", "only", "consider", "functions", "with", "empty", "frames", "." ]
[ "arc", "0", "0", "1", "0" ]
arc3
arc_delay_slots_for_epilogue
arc
MPU
GCC
1,758
50
1
[]
[ "<s>", "bool", "isNoopAddrSpaceCast", "(", "unsigned", "SrcAS", ",", "unsigned", "DestAS", ")", "const", "override", "{", "return", "true", ";", "}", "</s>" ]
[ "Returns", "true", "if", "a", "cast", "between", "SrcAS", "and", "DestAS", "is", "a", "noop", "." ]
[ "PowerPC" ]
PPCISelLowering (2)2
isNoopAddrSpaceCast
PowerPC
CPU
LLVM
1,759
16
1
[]
[ "<s>", "static", "bool", "pdp11_return_in_memory", "(", "tree", "type", ",", "tree", "fntype", "ATTRIBUTE_UNUSED", ")", "{", "return", "(", "TYPE_MODE", "(", "type", ")", "==", "DImode", "||", "(", "TYPE_MODE", "(", "type", ")", "==", "DFmode", "&&", "!", "TARGET_AC0", ")", ")", ";", "}", "</s>" ]
[ "Worker", "function", "for", "TARGET_RETURN_IN_MEMORY", "." ]
[ "pdp11" ]
pdp113
pdp11_return_in_memory
pdp11
MPU
GCC
1,760
35
1
[]
[ "<s>", "ARMCC", "::", "CondCodes", "getPredicate", "(", "const", "MachineInstr", "&", "MI", ")", "const", "{", "int", "PIdx", "=", "MI", ".", "findFirstPredOperandIdx", "(", ")", ";", "return", "PIdx", "!=", "-", "1", "?", "(", "ARMCC", "::", "CondCodes", ")", "MI", ".", "getOperand", "(", "PIdx", ")", ".", "getImm", "(", ")", ":", "ARMCC", "::", "AL", ";", "}", "</s>" ]
[ "Returns", "the", "comparison", "predicate", "underlying", "the", "intrinsic", "." ]
[ "ARM", "ARMCC::CondCodes", "1", "ARMCC::CondCodes", "ARMCC::AL" ]
ARMBaseInstrInfo (2)2
getPredicate
ARM
CPU
LLVM
1,761
48
1
[]
[ "<s>", "bool", "isInterruptOrSignalHandler", "(", ")", "const", "{", "return", "isInterruptHandler", "(", ")", "||", "isSignalHandler", "(", ")", ";", "}", "</s>" ]
[ "Checks", "if", "the", "function", "is", "some", "form", "of", "interrupt", "service", "routine", "." ]
[ "AVR" ]
AVRMachineFunctionInfo2
isInterruptOrSignalHandler
AVR
MPU
LLVM
1,762
16
1
[]
[ "<s>", "InstructionCost", "SystemZTTIImpl", "::", "getIntrinsicInstrCost", "(", "const", "IntrinsicCostAttributes", "&", "ICA", ",", "TTI", "::", "TargetCostKind", "CostKind", ")", "{", "InstructionCost", "Cost", "=", "getVectorIntrinsicInstrCost", "(", "ICA", ".", "getID", "(", ")", ",", "ICA", ".", "getReturnType", "(", ")", ")", ";", "if", "(", "Cost", "!=", "-", "1", ")", "return", "Cost", ";", "return", "BaseT", "::", "getIntrinsicInstrCost", "(", "ICA", ",", "CostKind", ")", ";", "}", "</s>" ]
[ "Get", "intrinsic", "cost", "based", "on", "arguments", "." ]
[ "SystemZ", "SystemZ", "1" ]
SystemZTargetTransformInfo1
getIntrinsicInstrCost
SystemZ
CPU
LLVM
1,763
55
1
[]
[ "<s>", "void", "initialize", "(", "MCContext", "&", "Context", ")", "{", "Ctx", "=", "&", "Context", ";", "MSTI", "=", "Ctx", "->", "getSubtargetInfo", "(", ")", ";", "usesSgprAt", "(", "SgprIndexUnusedMin", "=", "-", "1", ")", ";", "usesVgprAt", "(", "VgprIndexUnusedMin", "=", "-", "1", ")", ";", "if", "(", "hasMAIInsts", "(", "*", "MSTI", ")", ")", "{", "usesAgprAt", "(", "AgprIndexUnusedMin", "=", "-", "1", ")", ";", "}", "}", "</s>" ]
[ "Initialize", "the", "strategy", "after", "building", "the", "DAG", "for", "a", "new", "region", "." ]
[ "AMDGPU", "1", "1", "1" ]
AMDGPUAsmParser3
initialize
AMDGPU
GPU
LLVM
1,764
56
1
[]
[ "<s>", "void", "TOYInstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "DebugLoc", "DL", ",", "unsigned", "DestReg", ",", "unsigned", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "if", "(", "TOY", "::", "GRRegsRegClass", ".", "contains", "(", "DestReg", ")", "&&", "TOY", "::", "GRRegsRegClass", ".", "contains", "(", "SrcReg", ")", ")", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "TOY", "::", "ADDri", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ")", ".", "addImm", "(", "0", ")", ";", "return", ";", "}", "else", "{", "llvm_unreachable", "(", "\"COPY with other register classes is not supported\"", ")", ";", "}", "}", "</s>" ]
[ "}", "Branch", "Analysis", "&", "Modification" ]
[ "TOY", "TOY", "TOY::GRRegsRegClass", "TOY::GRRegsRegClass", "TOY::ADDri", "0", "\"COPY with other register classes is not supported\"" ]
TOYInstrInfo
copyPhysReg
TOY
CPU
LLVM
1,765
89
1
[]
[ "<s>", "static", "inline", "int", "inline_memory_move_cost", "(", "machine_mode", "mode", ",", "enum", "reg_class", "regclass", ",", "int", "in", ")", "{", "int", "cost", ";", "if", "(", "FLOAT_CLASS_P", "(", "regclass", ")", ")", "{", "int", "index", ";", "switch", "(", "mode", ")", "{", "case", "E_SFmode", ":", "index", "=", "0", ";", "break", ";", "case", "E_DFmode", ":", "index", "=", "1", ";", "break", ";", "case", "E_XFmode", ":", "index", "=", "2", ";", "break", ";", "default", ":", "return", "100", ";", "}", "if", "(", "in", "==", "2", ")", "return", "MAX", "(", "ix86_cost", "->", "fp_load", "[", "index", "]", ",", "ix86_cost", "->", "fp_store", "[", "index", "]", ")", ";", "return", "in", "?", "ix86_cost", "->", "fp_load", "[", "index", "]", ":", "ix86_cost", "->", "fp_store", "[", "index", "]", ";", "}", "if", "(", "SSE_CLASS_P", "(", "regclass", ")", ")", "{", "int", "index", "=", "sse_store_index", "(", "mode", ")", ";", "if", "(", "index", "==", "-", "1", ")", "return", "100", ";", "if", "(", "in", "==", "2", ")", "return", "MAX", "(", "ix86_cost", "->", "sse_load", "[", "index", "]", ",", "ix86_cost", "->", "sse_store", "[", "index", "]", ")", ";", "return", "in", "?", "ix86_cost", "->", "sse_load", "[", "index", "]", ":", "ix86_cost", "->", "sse_store", "[", "index", "]", ";", "}", "if", "(", "MMX_CLASS_P", "(", "regclass", ")", ")", "{", "int", "index", ";", "switch", "(", "GET_MODE_SIZE", "(", "mode", ")", ")", "{", "case", "4", ":", "index", "=", "0", ";", "break", ";", "case", "8", ":", "index", "=", "1", ";", "break", ";", "default", ":", "return", "100", ";", "}", "if", "(", "in", "==", "2", ")", "return", "MAX", "(", "ix86_cost", "->", "mmx_load", "[", "index", "]", ",", "ix86_cost", "->", "mmx_store", "[", "index", "]", ")", ";", "return", "in", "?", "ix86_cost", "->", "mmx_load", "[", "index", "]", ":", "ix86_cost", "->", "mmx_store", "[", "index", "]", ";", "}", "switch", "(", "GET_MODE_SIZE", "(", "mode", ")", ")", "{", "case", "1", ":", "if", "(", "Q_CLASS_P", "(", "regclass", ")", "||", "TARGET_64BIT", ")", "{", "if", "(", "!", "in", ")", "return", "ix86_cost", "->", "int_store", "[", "0", "]", ";", "if", "(", "TARGET_PARTIAL_REG_DEPENDENCY", "&&", "optimize_function_for_speed_p", "(", "cfun", ")", ")", "cost", "=", "ix86_cost", "->", "movzbl_load", ";", "else", "cost", "=", "ix86_cost", "->", "int_load", "[", "0", "]", ";", "if", "(", "in", "==", "2", ")", "return", "MAX", "(", "cost", ",", "ix86_cost", "->", "int_store", "[", "0", "]", ")", ";", "return", "cost", ";", "}", "else", "{", "if", "(", "in", "==", "2", ")", "return", "MAX", "(", "ix86_cost", "->", "movzbl_load", ",", "ix86_cost", "->", "int_store", "[", "0", "]", "+", "4", ")", ";", "if", "(", "in", ")", "return", "ix86_cost", "->", "movzbl_load", ";", "else", "return", "ix86_cost", "->", "int_store", "[", "0", "]", "+", "4", ";", "}", "break", ";", "case", "2", ":", "if", "(", "in", "==", "2", ")", "return", "MAX", "(", "ix86_cost", "->", "int_load", "[", "1", "]", ",", "ix86_cost", "->", "int_store", "[", "1", "]", ")", ";", "return", "in", "?", "ix86_cost", "->", "int_load", "[", "1", "]", ":", "ix86_cost", "->", "int_store", "[", "1", "]", ";", "default", ":", "if", "(", "in", "==", "2", ")", "cost", "=", "MAX", "(", "ix86_cost", "->", "int_load", "[", "2", "]", ",", "ix86_cost", "->", "int_store", "[", "2", "]", ")", ";", "else", "if", "(", "in", ")", "cost", "=", "ix86_cost", "->", "int_load", "[", "2", "]", ";", "else", "cost", "=", "ix86_cost", "->", "int_store", "[", "2", "]", ";", "return", "cost", "*", "CEIL", "(", "(", "int", ")", "GET_MODE_SIZE", "(", "mode", ")", ",", "UNITS_PER_WORD", ")", ";", "}", "}", "</s>" ]
[ "Return", "the", "cost", "of", "moving", "data", "of", "mode", "M", "between", "a", "register", "and", "memory", ".", "A", "value", "of", "2", "is", "the", "default", ";", "this", "cost", "is", "relative", "to", "those", "in", "`", "REGISTER_MOVE_COST", "'", ".", "This", "function", "is", "used", "extensively", "by", "register_move_cost", "that", "is", "used", "to", "build", "tables", "at", "startup", ".", "Make", "it", "inline", "in", "this", "case", ".", "When", "IN", "is", "2", ",", "return", "maximum", "of", "in", "and", "out", "move", "cost", ".", "If", "moving", "between", "registers", "and", "memory", "is", "more", "expensive", "than", "between", "two", "registers", ",", "you", "should", "define", "this", "macro", "to", "express", "the", "relative", "cost", ".", "Model", "also", "increased", "moving", "costs", "of", "QImode", "registers", "in", "non", "Q_REGS", "classes", "." ]
[ "i386", "0", "1", "2", "100", "2", "1", "100", "2", "4", "0", "8", "1", "100", "2", "1", "0", "0", "2", "0", "2", "0", "4", "0", "4", "2", "2", "1", "1", "1", "1", "2", "2", "2", "2", "2" ]
i3868
inline_memory_move_cost
i386
CPU
GCC
1,766
506
1
[]
[ "<s>", "bool", "legitimize_move", "(", "rtx", "dest", ",", "rtx", "src", ",", "machine_mode", "mask_mode", ")", "{", "machine_mode", "mode", "=", "GET_MODE", "(", "dest", ")", ";", "if", "(", "CONST_VECTOR_P", "(", "src", ")", ")", "{", "expand_const_vector", "(", "dest", ",", "src", ",", "mask_mode", ")", ";", "return", "true", ";", "}", "if", "(", "(", "known_lt", "(", "GET_MODE_SIZE", "(", "mode", ")", ",", "BYTES_PER_RISCV_VECTOR", ")", "||", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_VECTOR_BOOL", ")", "&&", "lra_in_progress", ")", "{", "emit_insn", "(", "gen_mov_lra", "(", "mode", ",", "Pmode", ",", "dest", ",", "src", ")", ")", ";", "return", "true", ";", "}", "if", "(", "known_ge", "(", "GET_MODE_SIZE", "(", "mode", ")", ",", "BYTES_PER_RISCV_VECTOR", ")", "&&", "GET_MODE_CLASS", "(", "mode", ")", "!=", "MODE_VECTOR_BOOL", ")", "{", "if", "(", "MEM_P", "(", "dest", ")", "&&", "!", "REG_P", "(", "src", ")", ")", "src", "=", "force_reg", "(", "mode", ",", "src", ")", ";", "return", "false", ";", "}", "if", "(", "register_operand", "(", "src", ",", "mode", ")", "&&", "register_operand", "(", "dest", ",", "mode", ")", ")", "{", "emit_insn", "(", "gen_rtx_SET", "(", "dest", ",", "src", ")", ")", ";", "return", "true", ";", "}", "if", "(", "!", "register_operand", "(", "src", ",", "mode", ")", "&&", "!", "register_operand", "(", "dest", ",", "mode", ")", ")", "{", "rtx", "tmp", "=", "gen_reg_rtx", "(", "mode", ")", ";", "if", "(", "MEM_P", "(", "src", ")", ")", "emit_vlmax_op", "(", "code_for_pred_mov", "(", "mode", ")", ",", "tmp", ",", "src", ",", "mask_mode", ")", ";", "else", "emit_move_insn", "(", "tmp", ",", "src", ")", ";", "src", "=", "tmp", ";", "}", "if", "(", "satisfies_constraint_vu", "(", "src", ")", ")", "return", "false", ";", "emit_vlmax_op", "(", "code_for_pred_mov", "(", "mode", ")", ",", "dest", ",", "src", ",", "mask_mode", ")", ";", "return", "true", ";", "}", "</s>" ]
[ "Expand", "a", "pre-RA", "RVV", "data", "move", "from", "SRC", "to", "DEST", ".", "It", "expands", "move", "for", "RVV", "fractional", "vector", "modes", "." ]
[ "riscv" ]
riscv-v
legitimize_move
riscv
CPU
GCC
1,767
250
1
[]
[ "<s>", "Register", "AArch64RegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "AArch64FrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "return", "TFI", "->", "hasFP", "(", "MF", ")", "?", "AArch64", "::", "FP", ":", "AArch64", "::", "SP", ";", "}", "</s>" ]
[ "Debug", "information", "queries", "." ]
[ "AArch64", "AArch64", "AArch64", "AArch64::FP", "AArch64::SP" ]
AArch64RegisterInfo12
getFrameRegister
AArch64
CPU
LLVM
1,768
39
1
[]
[ "<s>", "bool", "ARMPreAllocLoadStoreOpt", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "Fn", ")", "{", "if", "(", "AssumeMisalignedLoadStores", ")", "return", "false", ";", "TD", "=", "&", "Fn", ".", "getDataLayout", "(", ")", ";", "STI", "=", "&", "static_cast", "<", "const", "ARMSubtarget", "&", ">", "(", "Fn", ".", "getSubtarget", "(", ")", ")", ";", "TII", "=", "STI", "->", "getInstrInfo", "(", ")", ";", "TRI", "=", "STI", "->", "getRegisterInfo", "(", ")", ";", "MRI", "=", "&", "Fn", ".", "getRegInfo", "(", ")", ";", "MF", "=", "&", "Fn", ";", "bool", "Modified", "=", "false", ";", "for", "(", "MachineBasicBlock", "&", "MFI", ":", "Fn", ")", "Modified", "|=", "RescheduleLoadStoreInstrs", "(", "&", "MFI", ")", ";", "return", "Modified", ";", "}", "</s>" ]
[ "runOnMachineFunction", "-", "Emit", "the", "function", "body", "." ]
[ "ARM", "ARM", "ARM" ]
ARMLoadStoreOptimizer9
runOnMachineFunction
ARM
CPU
LLVM
1,769
98
1
[]
[ "<s>", "static", "void", "walk_args_for_param", "(", "FILE", "*", "file", ",", "tree", "argtypes", ",", "tree", "args", ",", "bool", "write_copy", ",", "bool", "return_in_mem", ")", "{", "int", "i", ";", "bool", "args_from_decl", "=", "false", ";", "if", "(", "argtypes", "==", "0", ")", "args_from_decl", "=", "true", ";", "else", "args", "=", "argtypes", ";", "for", "(", "i", "=", "return_in_mem", "?", "1", ":", "0", ";", "args", "!=", "NULL_TREE", ";", "args", "=", "TREE_CHAIN", "(", "args", ")", ")", "{", "tree", "type", "=", "args_from_decl", "?", "TREE_TYPE", "(", "args", ")", ":", "TREE_VALUE", "(", "args", ")", ";", "machine_mode", "mode", "=", "TYPE_MODE", "(", "type", ")", ";", "if", "(", "mode", "==", "VOIDmode", ")", "break", ";", "if", "(", "!", "PASS_IN_REG_P", "(", "mode", ",", "type", ")", ")", "mode", "=", "Pmode", ";", "int", "count", "=", "maybe_split_mode", "(", "&", "mode", ")", ";", "if", "(", "count", "==", "1", ")", "{", "if", "(", "argtypes", "==", "NULL", "&&", "!", "AGGREGATE_TYPE_P", "(", "type", ")", ")", "{", "if", "(", "mode", "==", "SFmode", ")", "mode", "=", "DFmode", ";", "}", "mode", "=", "arg_promotion", "(", "mode", ")", ";", "}", "while", "(", "count", "--", ">", "0", ")", "{", "i", "++", ";", "if", "(", "write_copy", ")", "fprintf", "(", "file", ",", "\"\\tld.param%s %%ar%d, [%%in_ar%d];\\n\"", ",", "nvptx_ptx_type_from_mode", "(", "mode", ",", "false", ")", ",", "i", ",", "i", ")", ";", "else", "fprintf", "(", "file", ",", "\"\\t.reg%s %%ar%d;\\n\"", ",", "nvptx_ptx_type_from_mode", "(", "mode", ",", "false", ")", ",", "i", ")", ";", "}", "}", "}", "</s>" ]
[ "Walk", "either", "ARGTYPES", "or", "ARGS", "if", "the", "former", "is", "null", ",", "and", "write", "out", "part", "of", "the", "function", "header", "to", "FILE", ".", "If", "WRITE_COPY", "is", "false", ",", "write", "reg", "declarations", ",", "otherwise", "write", "the", "copy", "from", "the", "incoming", "argument", "to", "that", "reg", ".", "RETURN_IN_MEM", "indicates", "whether", "to", "start", "counting", "arg", "numbers", "at", "1", "instead", "of", "0", "." ]
[ "nvptx", "0", "1", "0", "1", "0", "\"\\tld.param%s %%ar%d, [%%in_ar%d];\\n\"", "\"\\t.reg%s %%ar%d;\\n\"" ]
nvptx2
walk_args_for_param
nvptx
GPU
GCC
1,770
212
1
[]
[ "<s>", "void", "AlphaTargetLowering", "::", "ReplaceNodeResults", "(", "SDNode", "*", "N", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "Results", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "DebugLoc", "dl", "=", "N", "->", "getDebugLoc", "(", ")", ";", "assert", "(", "N", "->", "getValueType", "(", "0", ")", "==", "MVT", "::", "i32", "&&", "N", "->", "getOpcode", "(", ")", "==", "ISD", "::", "VAARG", "&&", "\"Unknown node to custom promote!\"", ")", ";", "SDValue", "Chain", ",", "DataPtr", ";", "LowerVAARG", "(", "N", ",", "Chain", ",", "DataPtr", ",", "DAG", ")", ";", "SDValue", "Res", "=", "DAG", ".", "getLoad", "(", "N", "->", "getValueType", "(", "0", ")", ",", "dl", ",", "Chain", ",", "DataPtr", ",", "MachinePointerInfo", "(", ")", ",", "false", ",", "false", ",", "0", ")", ";", "Results", ".", "push_back", "(", "Res", ")", ";", "Results", ".", "push_back", "(", "SDValue", "(", "Res", ".", "getNode", "(", ")", ",", "1", ")", ")", ";", "}", "</s>" ]
[ "ReplaceNodeResults", "-", "Replace", "the", "results", "of", "node", "with", "an", "illegal", "result", "type", "with", "new", "values", "built", "out", "of", "custom", "code", "." ]
[ "Alpha", "Alpha", "0", "MVT::i32", "ISD::VAARG", "\"Unknown node to custom promote!\"", "0", "0", "1" ]
AlphaISelLowering2
ReplaceNodeResults
Alpha
MPU
LLVM
1,771
128
1
[]
[ "<s>", "static", "int", "xtensa_constantsynth_2insn", "(", "rtx", "dst", ",", "HOST_WIDE_INT", "srcval", ",", "rtx", "(", "*", "gen_op", ")", "(", "rtx", ",", "HOST_WIDE_INT", ")", ",", "HOST_WIDE_INT", "op_imm", ")", "{", "HOST_WIDE_INT", "imm", "=", "INT_MAX", ";", "rtx", "x", "=", "NULL_RTX", ";", "int", "shift", ";", "gcc_assert", "(", "REG_P", "(", "dst", ")", ")", ";", "shift", "=", "exact_log2", "(", "srcval", "+", "1", ")", ";", "if", "(", "IN_RANGE", "(", "shift", ",", "1", ",", "31", ")", ")", "{", "imm", "=", "-", "1", ";", "x", "=", "gen_lshrsi3", "(", "dst", ",", "dst", ",", "GEN_INT", "(", "32", "-", "shift", ")", ")", ";", "}", "shift", "=", "ctz_hwi", "(", "srcval", ")", ";", "if", "(", "(", "!", "x", "||", "(", "TARGET_DENSITY", "&&", "!", "IN_RANGE", "(", "imm", ",", "-", "32", ",", "95", ")", ")", ")", "&&", "xtensa_simm12b", "(", "srcval", ">>", "shift", ")", ")", "{", "imm", "=", "srcval", ">>", "shift", ";", "x", "=", "gen_ashlsi3", "(", "dst", ",", "dst", ",", "GEN_INT", "(", "shift", ")", ")", ";", "}", "if", "(", "(", "!", "x", "||", "(", "TARGET_DENSITY", "&&", "!", "IN_RANGE", "(", "imm", ",", "-", "32", ",", "95", ")", ")", ")", "&&", "IN_RANGE", "(", "srcval", ",", "(", "-", "2048", "-", "32768", ")", ",", "(", "2047", "+", "32512", ")", ")", ")", "{", "HOST_WIDE_INT", "imm0", ",", "imm1", ";", "if", "(", "srcval", "<", "-", "32768", ")", "imm1", "=", "-", "32768", ";", "else", "if", "(", "srcval", ">", "32512", ")", "imm1", "=", "32512", ";", "else", "imm1", "=", "srcval", "&", "~", "255", ";", "imm0", "=", "srcval", "-", "imm1", ";", "if", "(", "TARGET_DENSITY", "&&", "imm1", "<", "32512", "&&", "IN_RANGE", "(", "imm0", ",", "224", ",", "255", ")", ")", "imm0", "-=", "256", ",", "imm1", "+=", "256", ";", "imm", "=", "imm0", ";", "x", "=", "gen_addsi3", "(", "dst", ",", "dst", ",", "GEN_INT", "(", "imm1", ")", ")", ";", "}", "if", "(", "!", "x", ")", "return", "0", ";", "emit_move_insn", "(", "dst", ",", "GEN_INT", "(", "imm", ")", ")", ";", "emit_insn", "(", "x", ")", ";", "if", "(", "gen_op", ")", "emit_move_insn", "(", "dst", ",", "gen_op", "(", "dst", ",", "op_imm", ")", ")", ";", "return", "1", ";", "}", "</s>" ]
[ "Try", "to", "emit", "insns", "to", "load", "srcval", "(", "that", "can", "not", "fit", "into", "signed", "12-bit", ")", "into", "dst", "with", "synthesizing", "a", "such", "constant", "value", "from", "a", "sequence", "of", "load-immediate", "/", "arithmetic", "ones", ",", "instead", "of", "a", "L32R", "instruction", "(", "plus", "a", "constant", "in", "litpool", ")", "." ]
[ "xtensa", "1", "1", "31", "1", "32", "32", "95", "32", "95", "2048", "32768", "2047", "32512", "32768", "32768", "32512", "32512", "255", "32512", "224", "255", "256", "256", "0", "1" ]
xtensa1
xtensa_constantsynth_2insn
xtensa
MPU
GCC
1,772
317
1
[]
[ "<s>", "const", "char", "*", "AMDGPUTargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "(", "AMDGPUISD", "::", "NodeType", ")", "Opcode", ")", "{", "case", "AMDGPUISD", "::", "FIRST_NUMBER", ":", "break", ";", "NODE_NAME_CASE", "(", "CALL", ")", ";", "NODE_NAME_CASE", "(", "UMUL", ")", ";", "NODE_NAME_CASE", "(", "RET_FLAG", ")", ";", "NODE_NAME_CASE", "(", "BRANCH_COND", ")", ";", "NODE_NAME_CASE", "(", "DWORDADDR", ")", "NODE_NAME_CASE", "(", "FRACT", ")", "NODE_NAME_CASE", "(", "CLAMP", ")", "NODE_NAME_CASE", "(", "COS_HW", ")", "NODE_NAME_CASE", "(", "SIN_HW", ")", "NODE_NAME_CASE", "(", "FMAX_LEGACY", ")", "NODE_NAME_CASE", "(", "FMIN_LEGACY", ")", "NODE_NAME_CASE", "(", "FMAX3", ")", "NODE_NAME_CASE", "(", "SMAX3", ")", "NODE_NAME_CASE", "(", "UMAX3", ")", "NODE_NAME_CASE", "(", "FMIN3", ")", "NODE_NAME_CASE", "(", "SMIN3", ")", "NODE_NAME_CASE", "(", "UMIN3", ")", "NODE_NAME_CASE", "(", "FMED3", ")", "NODE_NAME_CASE", "(", "SMED3", ")", "NODE_NAME_CASE", "(", "UMED3", ")", "NODE_NAME_CASE", "(", "URECIP", ")", "NODE_NAME_CASE", "(", "DIV_SCALE", ")", "NODE_NAME_CASE", "(", "DIV_FMAS", ")", "NODE_NAME_CASE", "(", "DIV_FIXUP", ")", "NODE_NAME_CASE", "(", "TRIG_PREOP", ")", "NODE_NAME_CASE", "(", "RCP", ")", "NODE_NAME_CASE", "(", "RSQ", ")", "NODE_NAME_CASE", "(", "RSQ_LEGACY", ")", "NODE_NAME_CASE", "(", "RSQ_CLAMP", ")", "NODE_NAME_CASE", "(", "LDEXP", ")", "NODE_NAME_CASE", "(", "FP_CLASS", ")", "NODE_NAME_CASE", "(", "DOT4", ")", "NODE_NAME_CASE", "(", "CARRY", ")", "NODE_NAME_CASE", "(", "BORROW", ")", "NODE_NAME_CASE", "(", "BFE_U32", ")", "NODE_NAME_CASE", "(", "BFE_I32", ")", "NODE_NAME_CASE", "(", "BFI", ")", "NODE_NAME_CASE", "(", "BFM", ")", "NODE_NAME_CASE", "(", "FFBH_U32", ")", "NODE_NAME_CASE", "(", "MUL_U24", ")", "NODE_NAME_CASE", "(", "MUL_I24", ")", "NODE_NAME_CASE", "(", "MAD_U24", ")", "NODE_NAME_CASE", "(", "MAD_I24", ")", "NODE_NAME_CASE", "(", "TEXTURE_FETCH", ")", "NODE_NAME_CASE", "(", "EXPORT", ")", "NODE_NAME_CASE", "(", "CONST_ADDRESS", ")", "NODE_NAME_CASE", "(", "REGISTER_LOAD", ")", "NODE_NAME_CASE", "(", "REGISTER_STORE", ")", "NODE_NAME_CASE", "(", "LOAD_INPUT", ")", "NODE_NAME_CASE", "(", "SAMPLE", ")", "NODE_NAME_CASE", "(", "SAMPLEB", ")", "NODE_NAME_CASE", "(", "SAMPLED", ")", "NODE_NAME_CASE", "(", "SAMPLEL", ")", "NODE_NAME_CASE", "(", "CVT_F32_UBYTE0", ")", "NODE_NAME_CASE", "(", "CVT_F32_UBYTE1", ")", "NODE_NAME_CASE", "(", "CVT_F32_UBYTE2", ")", "NODE_NAME_CASE", "(", "CVT_F32_UBYTE3", ")", "NODE_NAME_CASE", "(", "BUILD_VERTICAL_VECTOR", ")", "NODE_NAME_CASE", "(", "CONST_DATA_PTR", ")", "case", "AMDGPUISD", "::", "FIRST_MEM_OPCODE_NUMBER", ":", "break", ";", "NODE_NAME_CASE", "(", "SENDMSG", ")", "NODE_NAME_CASE", "(", "INTERP_MOV", ")", "NODE_NAME_CASE", "(", "INTERP_P1", ")", "NODE_NAME_CASE", "(", "INTERP_P2", ")", "NODE_NAME_CASE", "(", "STORE_MSKOR", ")", "NODE_NAME_CASE", "(", "LOAD_CONSTANT", ")", "NODE_NAME_CASE", "(", "TBUFFER_STORE_FORMAT", ")", "NODE_NAME_CASE", "(", "ATOMIC_CMP_SWAP", ")", "NODE_NAME_CASE", "(", "ATOMIC_INC", ")", "NODE_NAME_CASE", "(", "ATOMIC_DEC", ")", "case", "AMDGPUISD", "::", "LAST_AMDGPU_ISD_NUMBER", ":", "break", ";", "}", "return", "nullptr", ";", "}", "</s>" ]
[ "getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific" ]
[ "AMDGPU", "AMDGPU", "AMDGPUISD::NodeType", "AMDGPUISD::FIRST_NUMBER", "SI", "AMDGPUISD::FIRST_MEM_OPCODE_NUMBER", "AMDGPUISD::LAST_AMDGPU_ISD_NUMBER" ]
AMDGPUISelLowering83
getTargetNodeName
AMDGPU
GPU
LLVM
1,773
328
1
[]
[ "<s>", "void", "mips_finish_declare_object", "(", "FILE", "*", "stream", ",", "tree", "decl", ",", "int", "top_level", ",", "int", "at_end", ")", "{", "const", "char", "*", "name", ";", "name", "=", "XSTR", "(", "XEXP", "(", "DECL_RTL", "(", "decl", ")", ",", "0", ")", ",", "0", ")", ";", "if", "(", "!", "flag_inhibit_size_directive", "&&", "DECL_SIZE", "(", "decl", ")", "!=", "0", "&&", "!", "at_end", "&&", "top_level", "&&", "DECL_INITIAL", "(", "decl", ")", "==", "error_mark_node", "&&", "!", "size_directive_output", ")", "{", "HOST_WIDE_INT", "size", ";", "size_directive_output", "=", "1", ";", "size", "=", "int_size_in_bytes", "(", "TREE_TYPE", "(", "decl", ")", ")", ";", "ASM_OUTPUT_SIZE_DIRECTIVE", "(", "stream", ",", "name", ",", "size", ")", ";", "}", "}", "</s>" ]
[ "Implement", "ASM_FINISH_DECLARE_OBJECT", ".", "This", "is", "generic", "ELF", "stuff", "." ]
[ "mips", "0", "0", "0", "1" ]
mips
mips_finish_declare_object
mips
CPU
GCC
1,774
95
1
[]
[ "<s>", "void", "WebAssemblyInstPrinter", "::", "printRegName", "(", "raw_ostream", "&", "OS", ",", "unsigned", "RegNo", ")", "const", "{", "assert", "(", "RegNo", "!=", "WebAssemblyFunctionInfo", "::", "UnusedReg", ")", ";", "OS", "<<", "\"$\"", "<<", "RegNo", ";", "}", "</s>" ]
[ "Print", "the", "assembler", "register", "name", "." ]
[ "WebAssembly", "WebAssembly", "WebAssembly", "\"$\"" ]
WebAssemblyInstPrinter (2)
printRegName
WebAssembly
Virtual ISA
LLVM
1,775
30
1
[]
[ "<s>", "void", "SystemZXPLINKFrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "const", "SystemZSubtarget", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "SystemZSubtarget", ">", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "getLastNonDebugInstr", "(", ")", ";", "SystemZMachineFunctionInfo", "*", "ZFI", "=", "MF", ".", "getInfo", "<", "SystemZMachineFunctionInfo", ">", "(", ")", ";", "MachineFrameInfo", "&", "MFFrame", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "auto", "*", "ZII", "=", "static_cast", "<", "const", "SystemZInstrInfo", "*", ">", "(", "Subtarget", ".", "getInstrInfo", "(", ")", ")", ";", "auto", "&", "Regs", "=", "Subtarget", ".", "getSpecialRegisters", "<", "SystemZXPLINK64Registers", ">", "(", ")", ";", "assert", "(", "MBBI", "->", "isReturn", "(", ")", "&&", "\"Can only insert epilogue into returning blocks\"", ")", ";", "uint64_t", "StackSize", "=", "MFFrame", ".", "getStackSize", "(", ")", ";", "if", "(", "StackSize", ")", "{", "unsigned", "SPReg", "=", "Regs", ".", "getStackPointerRegister", "(", ")", ";", "if", "(", "ZFI", "->", "getRestoreGPRRegs", "(", ")", ".", "LowGPR", "!=", "SPReg", ")", "{", "DebugLoc", "DL", "=", "MBBI", "->", "getDebugLoc", "(", ")", ";", "emitIncrement", "(", "MBB", ",", "MBBI", ",", "DL", ",", "SPReg", ",", "StackSize", ",", "ZII", ")", ";", "}", "}", "}", "</s>" ]
[ "Insert", "epilog", "code", "into", "the", "function", "." ]
[ "SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ", "\"Can only insert epilogue into returning blocks\"" ]
SystemZFrameLowering20
emitEpilogue
SystemZ
CPU
LLVM
1,776
168
1
[]
[ "<s>", "void", "avr_final_prescan_insn", "(", "rtx_insn", "*", "insn", ",", "rtx", "*", "operand", "ATTRIBUTE_UNUSED", ",", "int", "num_operands", "ATTRIBUTE_UNUSED", ")", "{", "if", "(", "avr_log", ".", "rtx_costs", ")", "{", "rtx", "set", "=", "single_set", "(", "insn", ")", ";", "if", "(", "set", ")", "fprintf", "(", "asm_out_file", ",", "\"/* DEBUG: cost = %d. */\\n\"", ",", "set_src_cost", "(", "SET_SRC", "(", "set", ")", ",", "GET_MODE", "(", "SET_DEST", "(", "set", ")", ")", ",", "optimize_insn_for_speed_p", "(", ")", ")", ")", ";", "else", "fprintf", "(", "asm_out_file", ",", "\"/* DEBUG: pattern-cost = %d. */\\n\"", ",", "rtx_cost", "(", "PATTERN", "(", "insn", ")", ",", "VOIDmode", ",", "INSN", ",", "0", ",", "optimize_insn_for_speed_p", "(", ")", ")", ")", ";", "}", "}", "</s>" ]
[ "Output", "insn", "cost", "for", "next", "insn", "." ]
[ "avr", "\"/* DEBUG: cost = %d. */\\n\"", "\"/* DEBUG: pattern-cost = %d. */\\n\"", "0" ]
avr5
avr_final_prescan_insn
avr
MPU
GCC
1,777
91
1
[]
[ "<s>", "void", "HexagonMCShuffler", "::", "init", "(", "MCInst", "&", "MCB", ",", "MCInst", "const", "*", "AddMI", ",", "bool", "bInsertAtFront", ")", "{", "if", "(", "HexagonMCInstrInfo", "::", "isBundle", "(", "MCB", ")", ")", "{", "if", "(", "bInsertAtFront", "&&", "AddMI", ")", "append", "(", "AddMI", ",", "nullptr", ",", "HexagonMCInstrInfo", "::", "getUnits", "(", "MCII", ",", "STI", ",", "*", "AddMI", ")", ",", "false", ")", ";", "MCInst", "const", "*", "Extender", "=", "nullptr", ";", "for", "(", "auto", "const", "&", "I", ":", "HexagonMCInstrInfo", "::", "bundleInstructions", "(", "MCB", ")", ")", "{", "assert", "(", "!", "HexagonMCInstrInfo", "::", "getDesc", "(", "MCII", ",", "*", "I", ".", "getInst", "(", ")", ")", ".", "isPseudo", "(", ")", ")", ";", "MCInst", "*", "MI", "=", "const_cast", "<", "MCInst", "*", ">", "(", "I", ".", "getInst", "(", ")", ")", ";", "if", "(", "!", "HexagonMCInstrInfo", "::", "isImmext", "(", "*", "MI", ")", ")", "{", "append", "(", "MI", ",", "Extender", ",", "HexagonMCInstrInfo", "::", "getUnits", "(", "MCII", ",", "STI", ",", "*", "MI", ")", ",", "false", ")", ";", "Extender", "=", "nullptr", ";", "}", "else", "Extender", "=", "MI", ";", "}", "if", "(", "!", "bInsertAtFront", "&&", "AddMI", ")", "append", "(", "AddMI", ",", "nullptr", ",", "HexagonMCInstrInfo", "::", "getUnits", "(", "MCII", ",", "STI", ",", "*", "AddMI", ")", ",", "false", ")", ";", "}", "BundleFlags", "=", "MCB", ".", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "}", "</s>" ]
[ "Initialize", "the", "machine", "model", "for", "instruction", "scheduling", "." ]
[ "Hexagon", "Hexagon", "Hexagon", "Hexagon", "Hexagon", "Hexagon", "Hexagon", "Hexagon", "Hexagon", "0" ]
HexagonMCShuffler10
init
Hexagon
DSP
LLVM
1,778
203
1
[]
[ "<s>", "ARM64TTI", "::", "PopcntSupportKind", "ARM64TTI", "::", "getPopcntSupport", "(", "unsigned", "TyWidth", ")", "const", "{", "assert", "(", "isPowerOf2_32", "(", "TyWidth", ")", "&&", "\"Ty width must be power of 2\"", ")", ";", "if", "(", "TyWidth", "==", "32", "||", "TyWidth", "==", "64", ")", "return", "PSK_FastHardware", ";", "return", "PSK_Software", ";", "}", "</s>" ]
[ "Return", "hardware", "support", "for", "population", "count", "." ]
[ "ARM64", "ARM64TTI::PopcntSupportKind", "ARM64TTI::getPopcntSupport", "\"Ty width must be power of 2\"", "32", "64" ]
ARM64TargetTransformInfo
getPopcntSupport
ARM64
CPU
LLVM
1,779
39
1
[]
[ "<s>", "void", "XtensaInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "raw_ostream", "&", "OS", ",", "StringRef", "Annot", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "{", "OS", "<<", "\"XtensaInstPrinter::printInst not yet implemented\\n\"", ";", "}", "</s>" ]
[ "Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "." ]
[ "Xtensa", "Xtensa", "\"XtensaInstPrinter::printInst not yet implemented\\n\"" ]
XtensaInstPrinter1
printInst
Xtensa
MPU
LLVM
1,780
28
1
[]
[ "<s>", "bool", "XtensaFrameLowering", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "MF", ".", "getTarget", "(", ")", ".", "Options", ".", "DisableFramePointerElim", "(", "MF", ")", "||", "MF", ".", "getFrameInfo", "(", ")", ".", "hasVarSizedObjects", "(", ")", ";", "}", "</s>" ]
[ "hasFP", "-", "Return", "true", "if", "the", "specified", "function", "should", "have", "a", "dedicated", "frame", "pointer", "register", "." ]
[ "Xtensa", "Xtensa" ]
XtensaFrameLowering
hasFP
Xtensa
MPU
LLVM
1,781
37
1
[]
[ "<s>", "int", "m32c_memory_move_cost", "(", "enum", "machine_mode", "mode", "ATTRIBUTE_UNUSED", ",", "int", "reg_class", "ATTRIBUTE_UNUSED", ",", "int", "in", "ATTRIBUTE_UNUSED", ")", "{", "return", "COSTS_N_INSNS", "(", "10", ")", ";", "}", "</s>" ]
[ "Implements", "MEMORY_MOVE_COST", "." ]
[ "m32c", "10" ]
m32c2
m32c_memory_move_cost
m32c
MPU
GCC
1,782
24
1
[]
[ "<s>", "unsigned", "LoongArchAsmParser", "::", "checkTargetMatchPredicate", "(", "MCInst", "&", "Inst", ")", "{", "switch", "(", "Inst", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "LoongArch", "::", "CSRXCHG", ":", "{", "unsigned", "Rj", "=", "Inst", ".", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ";", "if", "(", "Rj", "==", "LoongArch", "::", "R0", "||", "Rj", "==", "LoongArch", "::", "R1", ")", "return", "Match_RequiresOpnd2NotR0R1", ";", "return", "Match_Success", ";", "}", "case", "LoongArch", "::", "BSTRINS_W", ":", "case", "LoongArch", "::", "BSTRINS_D", ":", "case", "LoongArch", "::", "BSTRPICK_W", ":", "case", "LoongArch", "::", "BSTRPICK_D", ":", "{", "unsigned", "Opc", "=", "Inst", ".", "getOpcode", "(", ")", ";", "const", "signed", "Msb", "=", "(", "Opc", "==", "LoongArch", "::", "BSTRINS_W", "||", "Opc", "==", "LoongArch", "::", "BSTRINS_D", ")", "?", "Inst", ".", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", ":", "Inst", ".", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", ";", "const", "signed", "Lsb", "=", "(", "Opc", "==", "LoongArch", "::", "BSTRINS_W", "||", "Opc", "==", "LoongArch", "::", "BSTRINS_D", ")", "?", "Inst", ".", "getOperand", "(", "4", ")", ".", "getImm", "(", ")", ":", "Inst", ".", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", ";", "if", "(", "Msb", "<", "Lsb", ")", "return", "Match_RequiresMsbNotLessThanLsb", ";", "return", "Match_Success", ";", "}", "}", "return", "Match_Success", ";", "}", "</s>" ]
[ "checkTargetMatchPredicate", "-", "Validate", "the", "instruction", "match", "against", "any", "complex", "target", "predicates", "not", "expressible", "via", "match", "classes", "." ]
[ "LoongArch", "LoongArch", "LoongArch::CSRXCHG", "2", "LoongArch::R0", "LoongArch::R1", "LoongArch::BSTRINS_W", "LoongArch::BSTRINS_D", "LoongArch::BSTRPICK_W", "LoongArch::BSTRPICK_D", "LoongArch::BSTRINS_W", "LoongArch::BSTRINS_D", "3", "2", "LoongArch::BSTRINS_W", "LoongArch::BSTRINS_D", "4", "3" ]
LoongArchAsmParser1
checkTargetMatchPredicate
LoongArch
CPU
LLVM
1,783
192
1
[]
[ "<s>", "bool", "AMDGPUCodeGenPrepare", "::", "runOnFunction", "(", "Function", "&", "F", ")", "{", "if", "(", "skipFunction", "(", "F", ")", ")", "return", "false", ";", "auto", "*", "TPC", "=", "getAnalysisIfAvailable", "<", "TargetPassConfig", ">", "(", ")", ";", "if", "(", "!", "TPC", ")", "return", "false", ";", "const", "AMDGPUTargetMachine", "&", "TM", "=", "TPC", "->", "getTM", "<", "AMDGPUTargetMachine", ">", "(", ")", ";", "ST", "=", "&", "TM", ".", "getSubtarget", "<", "GCNSubtarget", ">", "(", "F", ")", ";", "AC", "=", "&", "getAnalysis", "<", "AssumptionCacheTracker", ">", "(", ")", ".", "getAssumptionCache", "(", "F", ")", ";", "DA", "=", "&", "getAnalysis", "<", "LegacyDivergenceAnalysis", ">", "(", ")", ";", "auto", "*", "DTWP", "=", "getAnalysisIfAvailable", "<", "DominatorTreeWrapperPass", ">", "(", ")", ";", "DT", "=", "DTWP", "?", "&", "DTWP", "->", "getDomTree", "(", ")", ":", "nullptr", ";", "HasUnsafeFPMath", "=", "hasUnsafeFPMath", "(", "F", ")", ";", "AMDGPU", "::", "SIModeRegisterDefaults", "Mode", "(", "F", ")", ";", "HasFP32Denormals", "=", "Mode", ".", "allFP32Denormals", "(", ")", ";", "bool", "MadeChange", "=", "false", ";", "Function", "::", "iterator", "NextBB", ";", "for", "(", "Function", "::", "iterator", "FI", "=", "F", ".", "begin", "(", ")", ",", "FE", "=", "F", ".", "end", "(", ")", ";", "FI", "!=", "FE", ";", "FI", "=", "NextBB", ")", "{", "BasicBlock", "*", "BB", "=", "&", "*", "FI", ";", "NextBB", "=", "std", "::", "next", "(", "FI", ")", ";", "BasicBlock", "::", "iterator", "Next", ";", "for", "(", "BasicBlock", "::", "iterator", "I", "=", "BB", "->", "begin", "(", ")", ",", "E", "=", "BB", "->", "end", "(", ")", ";", "I", "!=", "E", ";", "I", "=", "Next", ")", "{", "Next", "=", "std", "::", "next", "(", "I", ")", ";", "MadeChange", "|=", "visit", "(", "*", "I", ")", ";", "if", "(", "Next", "!=", "E", ")", "{", "BasicBlock", "*", "NextInstBB", "=", "Next", "->", "getParent", "(", ")", ";", "if", "(", "NextInstBB", "!=", "BB", ")", "{", "BB", "=", "NextInstBB", ";", "E", "=", "BB", "->", "end", "(", ")", ";", "FE", "=", "F", ".", "end", "(", ")", ";", "}", "}", "}", "}", "return", "MadeChange", ";", "}", "</s>" ]
[ "runOnFunction", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "the", "per-function", "processing", "of", "the", "pass", "." ]
[ "AMDGPU", "AMDGPU", "AMDGPU", "AMDGPU", "AMDGPU::SIModeRegisterDefaults" ]
AMDGPUCodeGenPrepare1
runOnFunction
AMDGPU
GPU
LLVM
1,784
299
1
[]
[ "<s>", "static", "rtx", "gen_safe_HIGH64", "(", "rtx", "dest", ",", "HOST_WIDE_INT", "val", ")", "{", "return", "gen_rtx_SET", "(", "VOIDmode", ",", "dest", ",", "GEN_INT", "(", "val", "&", "~", "(", "HOST_WIDE_INT", ")", "0x3ff", ")", ")", ";", "}", "</s>" ]
[ "The", "optimizer", "is", "not", "to", "assume", "anything", "about", "exactly", "which", "bits", "are", "set", "for", "a", "HIGH", ",", "they", "are", "unspecified", ".", "Unfortunately", "this", "leads", "to", "many", "missed", "optimizations", "during", "CSE", ".", "We", "mask", "out", "the", "non-HIGH", "bits", ",", "and", "matches", "a", "plain", "movdi", ",", "to", "alleviate", "this", "problem", "." ]
[ "sparc", "0x3ff" ]
sparc3
gen_safe_HIGH64
sparc
CPU
GCC
1,785
31
1
[]
[ "<s>", "virtual", "const", "Z80Subtarget", "*", "getSubtargetImpl", "(", ")", "const", "{", "return", "&", "Subtarget", ";", "}", "</s>" ]
[ "Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "." ]
[ "Z80", "Z80" ]
Z80TargetMachine (2)
getSubtargetImpl
Z80
MPU
LLVM
1,786
14
1
[]
[ "<s>", "bool", "Cpu0TargetObjectFile", "::", "IsGlobalInSmallSection", "(", "const", "GlobalObject", "*", "GO", ",", "const", "TargetMachine", "&", "TM", ",", "SectionKind", "Kind", ")", "const", "{", "return", "IsGlobalInSmallSectionImpl", "(", "GO", ",", "TM", ")", "&&", "(", "Kind", ".", "isData", "(", ")", "||", "Kind", ".", "isBSS", "(", ")", "||", "Kind", ".", "isCommon", "(", ")", "||", "Kind", ".", "isReadOnly", "(", ")", ")", ";", "}", "</s>" ]
[ "Return", "true", "if", "this", "global", "address", "should", "be", "placed", "into", "small", "data/bss", "section", "." ]
[ "Cpu0", "Cpu0" ]
Cpu0TargetObjectFile
IsGlobalInSmallSection
Cpu0
CPU
LLVM
1,787
55
1
[]
[ "<s>", "Reloc", "::", "Model", "getRelocationModel", "(", ")", "const", "{", "return", "RM", ";", "}", "</s>" ]
[ "Returns", "the", "code", "generation", "relocation", "model", "." ]
[ "Mips" ]
MipsSubtarget (2)
getRelocationModel
Mips
CPU
LLVM
1,788
12
1
[]
[ "<s>", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "addRequired", "<", "MachineDominatorTree", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "MachinePostDominatorTree", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "MachineLoopInfo", ">", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", "</s>" ]
[ "getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "." ]
[ "AMDGPU" ]
AMDILCFGStructurizer10
getAnalysisUsage
AMDGPU
GPU
LLVM
1,789
45
1
[]
[ "<s>", "void", "AVRDAGToDAGISel", "::", "Select", "(", "SDNode", "*", "N", ")", "{", "if", "(", "N", "->", "isMachineOpcode", "(", ")", ")", "{", "DEBUG", "(", "errs", "(", ")", "<<", "\"== \"", ";", "N", "->", "dump", "(", "CurDAG", ")", ";", "errs", "(", ")", "<<", "\"\\n\"", ")", ";", "N", "->", "setNodeId", "(", "-", "1", ")", ";", "return", ";", "}", "if", "(", "trySelect", "(", "N", ")", ")", "return", ";", "SelectCode", "(", "N", ")", ";", "}", "</s>" ]
[ "Main", "hook", "for", "targets", "to", "transform", "nodes", "into", "machine", "nodes", "." ]
[ "AVR", "AVR", "\"== \"", "\"\\n\"", "1" ]
AVRISelDAGToDAG8
Select
AVR
MPU
LLVM
1,790
67
1
[]
[ "<s>", "MCInst", "const", "*", "getDesc", "(", ")", "const", "{", "return", "(", "ID", ")", ";", "}", "</s>" ]
[ "Returns", "the", "target", "instruction", "descriptor", "of", "this", "MachineInstr", "." ]
[ "Hexagon" ]
HexagonShuffler (2)
getDesc
Hexagon
DSP
LLVM
1,791
14
1
[]
[ "<s>", "void", "TriCoreMCInstLower", "::", "Initialize", "(", "Mangler", "*", "M", ",", "MCContext", "*", "C", ")", "{", "Mang", "=", "M", ";", "Ctx", "=", "C", ";", "}", "</s>" ]
[ "This", "method", "must", "be", "called", "before", "any", "actual", "lowering", "is", "done", "." ]
[ "TriCore", "TriCore" ]
TriCoreMCInstLower
Initialize
TriCore
MPU
LLVM
1,792
23
1
[]
[ "<s>", "bool", "X86TargetLowering", "::", "mayBeEmittedAsTailCall", "(", "CallInst", "*", "CI", ")", "const", "{", "auto", "Attr", "=", "CI", "->", "getParent", "(", ")", "->", "getParent", "(", ")", "->", "getFnAttribute", "(", "\"disable-tail-calls\"", ")", ";", "if", "(", "!", "CI", "->", "isTailCall", "(", ")", "||", "Attr", ".", "getValueAsString", "(", ")", "==", "\"true\"", ")", "return", "false", ";", "CallSite", "CS", "(", "CI", ")", ";", "CallingConv", "::", "ID", "CalleeCC", "=", "CS", ".", "getCallingConv", "(", ")", ";", "if", "(", "!", "mayTailCallThisCC", "(", "CalleeCC", ")", ")", "return", "false", ";", "return", "true", ";", "}", "</s>" ]
[ "Return", "true", "if", "the", "target", "may", "be", "able", "emit", "the", "call", "instruction", "as", "a", "tail", "call", "." ]
[ "X86", "X86", "\"disable-tail-calls\"", "\"true\"" ]
X86ISelLowering (2)3
mayBeEmittedAsTailCall
X86
CPU
LLVM
1,793
81
1
[]
[ "<s>", "bool", "fixupNeedsRelaxation", "(", "const", "MCFixup", "&", "Fixup", ",", "uint64_t", "Value", ",", "const", "MCRelaxableFragment", "*", "DF", ",", "const", "MCAsmLayout", "&", "Layout", ")", "const", "override", "{", "return", "false", ";", "}", "</s>" ]
[ "Simple", "predicate", "for", "targets", "where", "!", "Resolved", "implies", "requiring", "relaxation", "." ]
[ "Lanai" ]
LanaiAsmBackend18
fixupNeedsRelaxation
Lanai
CPU
LLVM
1,794
28
1
[]
[ "<s>", "unsigned", "int", "pass_cc_fusion", "::", "execute", "(", "function", "*", ")", "{", "cc_fusion", "(", ")", ".", "execute", "(", ")", ";", "return", "0", ";", "}", "</s>" ]
[ "Main", "entry", "point", "for", "this", "pass", "." ]
[ "aarch64", "0" ]
aarch64-cc-fusion
execute
aarch64
CPU
GCC
1,795
22
1
[]
[ "<s>", "static", "bool", "rs6000_libgcc_floating_mode_supported_p", "(", "scalar_float_mode", "mode", ")", "{", "switch", "(", "mode", ")", "{", "case", "E_SFmode", ":", "case", "E_DFmode", ":", "case", "E_TFmode", ":", "return", "true", ";", "case", "E_KFmode", ":", "return", "TARGET_FLOAT128_TYPE", "&&", "!", "TARGET_IEEEQUAD", ";", "default", ":", "return", "false", ";", "}", "}", "</s>" ]
[ "Target", "hook", "for", "libgcc_floating_mode_supported_p", "." ]
[ "rs6000" ]
rs6000
rs6000_libgcc_floating_mode_supported_p
rs6000
CPU
GCC
1,796
41
1
[]
[ "<s>", "unsigned", "getNumFixupKinds", "(", ")", "const", "override", "{", "return", "0", ";", "}", "</s>" ]
[ "Get", "the", "number", "of", "target", "specific", "fixup", "kinds", "." ]
[ "LoongArch", "0" ]
LoongArchAsmBackend
getNumFixupKinds
LoongArch
CPU
LLVM
1,797
11
1
[]
[ "<s>", "void", "addExpr", "(", "MCInst", "&", "Inst", ",", "const", "MCExpr", "*", "Expr", ")", "const", "{", "if", "(", "Expr", "==", "0", ")", "Inst", ".", "addOperand", "(", "MCOperand", "::", "CreateImm", "(", "0", ")", ")", ";", "else", "if", "(", "const", "MCConstantExpr", "*", "CE", "=", "dyn_cast", "<", "MCConstantExpr", ">", "(", "Expr", ")", ")", "Inst", ".", "addOperand", "(", "MCOperand", "::", "CreateImm", "(", "CE", "->", "getValue", "(", ")", ")", ")", ";", "else", "Inst", ".", "addOperand", "(", "MCOperand", "::", "CreateExpr", "(", "Expr", ")", ")", ";", "}", "</s>" ]
[ "Add", "a", "new", "MCExpr", "operand", "." ]
[ "MBlaze", "0", "0" ]
MBlazeAsmParser1
addExpr
MBlaze
MPU
LLVM
1,798
78
1
[]
[ "<s>", "static", "int", "insn_get_clock", "(", "rtx", "insn", ")", "{", "return", "insn_uid_get_clock", "(", "INSN_UID", "(", "insn", ")", ")", ";", "}", "</s>" ]
[ "Return", "the", "clock", "cycle", "we", "set", "for", "INSN", "." ]
[ "c6x" ]
c6x
insn_get_clock
c6x
VLIW
GCC
1,799
18
1
[]