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>", "unsigned", "Z80InstrInfo", "::", "insertBranch", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "*", "TBB", ",", "MachineBasicBlock", "*", "FBB", ",", "ArrayRef", "<", "MachineOperand", ">", "Cond", ",", "const", "DebugLoc", "&", "DL", ",", "int", "*", "BytesAdded", ")", "const", "{", "assert", "(", "TBB", "&&", "\"InsertBranch must not be told to insert a fallthrough\"", ")", ";", "assert", "(", "Cond", ".", "size", "(", ")", "<=", "1", "&&", "\"Z80 branch conditions have one component!\"", ")", ";", "assert", "(", "!", "BytesAdded", "&&", "\"code size not handled\"", ")", ";", "if", "(", "Cond", ".", "empty", "(", ")", ")", "{", "assert", "(", "!", "FBB", "&&", "\"Unconditional branch with multiple successors!\"", ")", ";", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "Z80", "::", "JQ", ")", ")", ".", "addMBB", "(", "TBB", ")", ";", "return", "1", ";", "}", "unsigned", "Count", "=", "0", ";", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "Z80", "::", "JQCC", ")", ")", ".", "addMBB", "(", "TBB", ")", ".", "addImm", "(", "Cond", "[", "0", "]", ".", "getImm", "(", ")", ")", ";", "++", "Count", ";", "if", "(", "FBB", ")", "{", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "Z80", "::", "JQ", ")", ")", ".", "addMBB", "(", "FBB", ")", ";", "++", "Count", ";", "}", "return", "Count", ";", "}", "</s>" ]
[ "Insert", "branch", "code", "into", "the", "end", "of", "the", "specified", "MachineBasicBlock", "." ]
[ "Z80", "Z80", "\"InsertBranch must not be told to insert a fallthrough\"", "1", "\"Z80 branch conditions have one component!\"", "\"code size not handled\"", "\"Unconditional branch with multiple successors!\"", "Z80::JQ", "1", "0", "Z80::JQCC", "0", "Z80::JQ" ]
Z80InstrInfo2
insertBranch
Z80
MPU
LLVM
32,800
176
1
[]
[ "<s>", "bool", "X86CondBrFolding", "::", "optimize", "(", ")", "{", "bool", "Changed", "=", "false", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"***** X86CondBr Folding on Function: \"", "<<", "MF", ".", "getName", "(", ")", "<<", "\" *****\\n\"", ")", ";", "MBBInfos", ".", "resize", "(", "MF", ".", "getNumBlockIDs", "(", ")", ")", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "MBBInfos", "[", "MBB", ".", "getNumber", "(", ")", "]", "=", "analyzeMBB", "(", "MBB", ")", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "{", "TargetMBBInfo", "*", "MBBInfo", "=", "getMBBInfo", "(", "&", "MBB", ")", ";", "if", "(", "!", "MBBInfo", "||", "!", "MBBInfo", "->", "CmpBrOnly", ")", "continue", ";", "if", "(", "MBB", ".", "pred_size", "(", ")", "!=", "1", ")", "continue", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Work on MBB.\"", "<<", "MBB", ".", "getNumber", "(", ")", "<<", "\" CmpValue: \"", "<<", "MBBInfo", "->", "CmpValue", "<<", "\"\\n\"", ")", ";", "SmallVector", "<", "MachineBasicBlock", "*", ",", "4", ">", "BranchPath", ";", "if", "(", "!", "findPath", "(", "&", "MBB", ",", "BranchPath", ")", ")", "continue", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Found one path (len=\"", "<<", "BranchPath", ".", "size", "(", ")", "<<", "\"):\\n\"", ")", ";", "int", "Index", "=", "1", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Target MBB is: \"", "<<", "MBB", "<<", "\"\\n\"", ")", ";", "for", "(", "auto", "I", "=", "BranchPath", ".", "rbegin", "(", ")", ";", "I", "!=", "BranchPath", ".", "rend", "(", ")", ";", "++", "I", ",", "++", "Index", ")", "{", "MachineBasicBlock", "*", "PMBB", "=", "*", "I", ";", "TargetMBBInfo", "*", "PMBBInfo", "=", "getMBBInfo", "(", "PMBB", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Path MBB (\"", "<<", "Index", "<<", "\" of \"", "<<", "BranchPath", ".", "size", "(", ")", "<<", "\") is \"", "<<", "*", "PMBB", ")", ";", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"CC=\"", "<<", "PMBBInfo", "->", "BranchCode", "<<", "\" Val=\"", "<<", "PMBBInfo", "->", "CmpValue", "<<", "\" CmpBrOnly=\"", "<<", "PMBBInfo", "->", "CmpBrOnly", "<<", "\"\\n\\n\"", ")", ";", "}", "optimizeCondBr", "(", "MBB", ",", "BranchPath", ")", ";", "Changed", "=", "true", ";", "}", "NumFixedCondBrs", "+=", "RemoveList", ".", "size", "(", ")", ";", "for", "(", "auto", "MBBI", ":", "RemoveList", ")", "{", "while", "(", "!", "MBBI", "->", "succ_empty", "(", ")", ")", "MBBI", "->", "removeSuccessor", "(", "MBBI", "->", "succ_end", "(", ")", "-", "1", ")", ";", "MBBI", "->", "eraseFromParent", "(", ")", ";", "}", "return", "Changed", ";", "}", "</s>" ]
[ "Apply", "VPlan-to-VPlan", "optimizations", "to", "Plan", ",", "including", "induction", "recipe", "optimizations", ",", "dead", "recipe", "removal", ",", "replicate", "region", "optimizations", "and", "block", "merging", "." ]
[ "X86", "X86", "\"***** X86CondBr Folding on Function: \"", "\" *****\\n\"", "1", "\"Work on MBB.\"", "\" CmpValue: \"", "\"\\n\"", "4", "\"Found one path (len=\"", "\"):\\n\"", "1", "\"Target MBB is: \"", "\"\\n\"", "\"Path MBB (\"", "\" of \"", "\") is \"", "\"CC=\"", "\" Val=\"", "\" CmpBrOnly=\"", "\"\\n\\n\"", "1" ]
X86CondBrFolding
optimize
X86
CPU
LLVM
32,801
340
1
[]
[ "<s>", "static", "inline", "int", "and_xor_ior_costs", "(", "rtx", "x", ",", "int", "code", ")", "{", "const", "int", "cost_scale", "=", "!", "TARGET_SHMEDIA", "&&", "GET_MODE_SIZE", "(", "GET_MODE", "(", "x", ")", ")", ">", "UNITS_PER_WORD", "?", "2", ":", "1", ";", "if", "(", "!", "CONST_INT_P", "(", "XEXP", "(", "x", ",", "1", ")", ")", ")", "return", "1", "*", "cost_scale", ";", "int", "i", "=", "INTVAL", "(", "XEXP", "(", "x", ",", "1", ")", ")", ";", "if", "(", "TARGET_SHMEDIA", ")", "{", "if", "(", "satisfies_constraint_I10", "(", "XEXP", "(", "x", ",", "1", ")", ")", "||", "satisfies_constraint_J16", "(", "XEXP", "(", "x", ",", "1", ")", ")", ")", "return", "1", ";", "else", "return", "1", "+", "rtx_cost", "(", "XEXP", "(", "x", ",", "1", ")", ",", "AND", ",", "1", ",", "!", "optimize_size", ")", ";", "}", "if", "(", "(", "i", "==", "0xff", "||", "i", "==", "0xffff", ")", "&&", "code", "==", "AND", ")", "return", "1", "*", "cost_scale", ";", "if", "(", "CONST_OK_FOR_K08", "(", "i", ")", ")", "return", "2", "*", "cost_scale", ";", "if", "(", "CONST_OK_FOR_I08", "(", "i", ")", ")", "return", "2", "*", "cost_scale", ";", "return", "3", "*", "cost_scale", ";", "}", "</s>" ]
[ "Return", "the", "cost", "of", "an", "AND/XOR/IOR", "operation", "." ]
[ "sh", "2", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "0xff", "0xffff", "1", "2", "2", "3" ]
sh4
and_xor_ior_costs
sh
CPU
GCC
32,802
167
1
[]
[ "<s>", "MachineBasicBlock", "*", "AVRTargetLowering", "::", "EmitInstrWithCustomInserter", "(", "MachineInstr", "&", "MI", ",", "MachineBasicBlock", "*", "MBB", ")", "const", "{", "int", "Opc", "=", "MI", ".", "getOpcode", "(", ")", ";", "switch", "(", "Opc", ")", "{", "case", "AVR", "::", "Lsl8", ":", "case", "AVR", "::", "Lsl16", ":", "case", "AVR", "::", "Lsr8", ":", "case", "AVR", "::", "Lsr16", ":", "case", "AVR", "::", "Rol8", ":", "case", "AVR", "::", "Rol16", ":", "case", "AVR", "::", "Ror8", ":", "case", "AVR", "::", "Ror16", ":", "case", "AVR", "::", "Asr8", ":", "case", "AVR", "::", "Asr16", ":", "return", "insertShift", "(", "MI", ",", "MBB", ")", ";", "case", "AVR", "::", "MULRdRr", ":", "case", "AVR", "::", "MULSRdRr", ":", "return", "insertMul", "(", "MI", ",", "MBB", ")", ";", "}", "assert", "(", "(", "Opc", "==", "AVR", "::", "Select16", "||", "Opc", "==", "AVR", "::", "Select8", ")", "&&", "\"Unexpected instr type to insert\"", ")", ";", "const", "AVRInstrInfo", "&", "TII", "=", "(", "const", "AVRInstrInfo", "&", ")", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", "->", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ";", "DebugLoc", "dl", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "MachineFunction", "*", "MF", "=", "MBB", "->", "getParent", "(", ")", ";", "const", "BasicBlock", "*", "LLVM_BB", "=", "MBB", "->", "getBasicBlock", "(", ")", ";", "MachineBasicBlock", "*", "trueMBB", "=", "MF", "->", "CreateMachineBasicBlock", "(", "LLVM_BB", ")", ";", "MachineBasicBlock", "*", "falseMBB", "=", "MF", "->", "CreateMachineBasicBlock", "(", "LLVM_BB", ")", ";", "MachineFunction", "::", "iterator", "I", ";", "for", "(", "I", "=", "MF", "->", "begin", "(", ")", ";", "I", "!=", "MF", "->", "end", "(", ")", "&&", "&", "(", "*", "I", ")", "!=", "MBB", ";", "++", "I", ")", ";", "if", "(", "I", "!=", "MF", "->", "end", "(", ")", ")", "++", "I", ";", "MF", "->", "insert", "(", "I", ",", "trueMBB", ")", ";", "MF", "->", "insert", "(", "I", ",", "falseMBB", ")", ";", "trueMBB", "->", "splice", "(", "trueMBB", "->", "begin", "(", ")", ",", "MBB", ",", "std", "::", "next", "(", "MachineBasicBlock", "::", "iterator", "(", "MI", ")", ")", ",", "MBB", "->", "end", "(", ")", ")", ";", "trueMBB", "->", "transferSuccessorsAndUpdatePHIs", "(", "MBB", ")", ";", "AVRCC", "::", "CondCodes", "CC", "=", "(", "AVRCC", "::", "CondCodes", ")", "MI", ".", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", ";", "BuildMI", "(", "MBB", ",", "dl", ",", "TII", ".", "getBrCond", "(", "CC", ")", ")", ".", "addMBB", "(", "trueMBB", ")", ";", "BuildMI", "(", "MBB", ",", "dl", ",", "TII", ".", "get", "(", "AVR", "::", "RJMPk", ")", ")", ".", "addMBB", "(", "falseMBB", ")", ";", "MBB", "->", "addSuccessor", "(", "falseMBB", ")", ";", "MBB", "->", "addSuccessor", "(", "trueMBB", ")", ";", "BuildMI", "(", "falseMBB", ",", "dl", ",", "TII", ".", "get", "(", "AVR", "::", "RJMPk", ")", ")", ".", "addMBB", "(", "trueMBB", ")", ";", "falseMBB", "->", "addSuccessor", "(", "trueMBB", ")", ";", "BuildMI", "(", "*", "trueMBB", ",", "trueMBB", "->", "begin", "(", ")", ",", "dl", ",", "TII", ".", "get", "(", "AVR", "::", "PHI", ")", ",", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ")", ".", "addReg", "(", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "MBB", ")", ".", "addReg", "(", "MI", ".", "getOperand", "(", "2", ")", ".", "getReg", "(", ")", ")", ".", "addMBB", "(", "falseMBB", ")", ";", "MI", ".", "eraseFromParent", "(", ")", ";", "return", "trueMBB", ";", "}", "</s>" ]
[ "This", "method", "should", "be", "implemented", "by", "targets", "that", "mark", "instructions", "with", "the", "'usesCustomInserter", "'", "flag", "." ]
[ "AVR", "AVR", "AVR::Lsl8", "AVR::Lsl16", "AVR::Lsr8", "AVR::Lsr16", "AVR::Rol8", "AVR::Rol16", "AVR::Ror8", "AVR::Ror16", "AVR::Asr8", "AVR::Asr16", "AVR::MULRdRr", "AVR::MULSRdRr", "AVR::Select16", "AVR::Select8", "\"Unexpected instr type to insert\"", "AVR", "AVR", "AVRCC::CondCodes", "AVRCC::CondCodes", "3", "AVR::RJMPk", "AVR::RJMPk", "AVR::PHI", "0", "1", "2" ]
AVRISelLowering10
EmitInstrWithCustomInserter
AVR
MPU
LLVM
32,803
496
1
[]
[ "<s>", "bool", "arc_short_comparison_p", "(", "rtx", "comparison", ",", "int", "offset", ")", "{", "gcc_assert", "(", "ARC_CC_NC", "==", "ARC_CC_HS", ")", ";", "gcc_assert", "(", "ARC_CC_C", "==", "ARC_CC_LO", ")", ";", "switch", "(", "get_arc_condition_code", "(", "comparison", ")", ")", "{", "case", "ARC_CC_EQ", ":", "case", "ARC_CC_NE", ":", "return", "offset", ">=", "-", "512", "&&", "offset", "<=", "506", ";", "case", "ARC_CC_GT", ":", "case", "ARC_CC_LE", ":", "case", "ARC_CC_GE", ":", "case", "ARC_CC_LT", ":", "case", "ARC_CC_HI", ":", "case", "ARC_CC_LS", ":", "case", "ARC_CC_LO", ":", "case", "ARC_CC_HS", ":", "return", "offset", ">=", "-", "64", "&&", "offset", "<=", "58", ";", "default", ":", "return", "false", ";", "}", "}", "</s>" ]
[ "Return", "true", "if", "COMPARISON", "has", "a", "short", "form", "that", "can", "accomodate", "OFFSET", "." ]
[ "arc", "512", "506", "64", "58" ]
arc
arc_short_comparison_p
arc
MPU
GCC
32,804
89
1
[]
[ "<s>", "static", "scalar_int_mode", "aarch64_sve_element_int_mode", "(", "machine_mode", "mode", ")", "{", "poly_uint64", "vector_bits", "=", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_VECTOR_BOOL", "?", "BITS_PER_SVE_VECTOR", ":", "GET_MODE_BITSIZE", "(", "mode", ")", ")", ";", "unsigned", "int", "elt_bits", "=", "vector_element_size", "(", "vector_bits", ",", "GET_MODE_NUNITS", "(", "mode", ")", ")", ";", "return", "int_mode_for_size", "(", "elt_bits", ",", "0", ")", ".", "require", "(", ")", ";", "}", "</s>" ]
[ "Return", "the", "integer", "element", "mode", "associated", "with", "SVE", "mode", "MODE", "." ]
[ "aarch64", "0" ]
aarch64
aarch64_sve_element_int_mode
aarch64
CPU
GCC
32,805
54
1
[]
[ "<s>", "MCFixupKindInfo", "const", "&", "MOSAsmBackend", "::", "getFixupKindInfo", "(", "MCFixupKind", "Kind", ")", "const", "{", "if", "(", "Kind", "<", "FirstTargetFixupKind", ")", "{", "return", "MCAsmBackend", "::", "getFixupKindInfo", "(", "Kind", ")", ";", "}", "return", "MOSFixupKinds", "::", "getFixupKindInfo", "(", "static_cast", "<", "MOS", "::", "Fixups", ">", "(", "Kind", ")", ",", "this", ")", ";", "}", "</s>" ]
[ "Get", "information", "on", "a", "fixup", "kind", "." ]
[ "MOS", "MOS", "MOSFixupKinds::getFixupKindInfo", "MOS::Fixups" ]
MOSAsmBackend
getFixupKindInfo
MOS
MPU
LLVM
32,806
47
1
[]
[ "<s>", "const", "char", "*", "rs6000_output_load_multiple", "(", "rtx", "operands", "[", "3", "]", ")", "{", "int", "i", ",", "j", ";", "int", "words", "=", "XVECLEN", "(", "operands", "[", "0", "]", ",", "0", ")", ";", "rtx", "xop", "[", "10", "]", ";", "if", "(", "XVECLEN", "(", "operands", "[", "0", "]", ",", "0", ")", "==", "1", ")", "return", "\"{l|lwz} %2,0(%1)\"", ";", "for", "(", "i", "=", "0", ";", "i", "<", "words", ";", "i", "++", ")", "if", "(", "refers_to_regno_p", "(", "REGNO", "(", "operands", "[", "2", "]", ")", "+", "i", ",", "REGNO", "(", "operands", "[", "2", "]", ")", "+", "i", "+", "1", ",", "operands", "[", "1", "]", ",", "0", ")", ")", "{", "if", "(", "i", "==", "words", "-", "1", ")", "{", "xop", "[", "0", "]", "=", "GEN_INT", "(", "4", "*", "(", "words", "-", "1", ")", ")", ";", "xop", "[", "1", "]", "=", "operands", "[", "1", "]", ";", "xop", "[", "2", "]", "=", "operands", "[", "2", "]", ";", "output_asm_insn", "(", "\"{lsi|lswi} %2,%1,%0\\n\\t{l|lwz} %1,%0(%1)\"", ",", "xop", ")", ";", "return", "\"\"", ";", "}", "else", "if", "(", "i", "==", "0", ")", "{", "xop", "[", "0", "]", "=", "GEN_INT", "(", "4", "*", "(", "words", "-", "1", ")", ")", ";", "xop", "[", "1", "]", "=", "operands", "[", "1", "]", ";", "xop", "[", "2", "]", "=", "gen_rtx_REG", "(", "SImode", ",", "REGNO", "(", "operands", "[", "2", "]", ")", "+", "1", ")", ";", "output_asm_insn", "(", "\"{cal %1,4(%1)|addi %1,%1,4}\\n\\t{lsi|lswi} %2,%1,%0\\n\\t{l|lwz} %1,-4(%1)\"", ",", "xop", ")", ";", "return", "\"\"", ";", "}", "else", "{", "for", "(", "j", "=", "0", ";", "j", "<", "words", ";", "j", "++", ")", "if", "(", "j", "!=", "i", ")", "{", "xop", "[", "0", "]", "=", "GEN_INT", "(", "j", "*", "4", ")", ";", "xop", "[", "1", "]", "=", "operands", "[", "1", "]", ";", "xop", "[", "2", "]", "=", "gen_rtx_REG", "(", "SImode", ",", "REGNO", "(", "operands", "[", "2", "]", ")", "+", "j", ")", ";", "output_asm_insn", "(", "\"{l|lwz} %2,%0(%1)\"", ",", "xop", ")", ";", "}", "xop", "[", "0", "]", "=", "GEN_INT", "(", "i", "*", "4", ")", ";", "xop", "[", "1", "]", "=", "operands", "[", "1", "]", ";", "output_asm_insn", "(", "\"{l|lwz} %1,%0(%1)\"", ",", "xop", ")", ";", "return", "\"\"", ";", "}", "}", "return", "\"{lsi|lswi} %2,%1,%N0\"", ";", "}", "</s>" ]
[ "Return", "a", "string", "to", "perform", "a", "load_multiple", "operation", ".", "operands", "[", "0", "]", "is", "the", "vector", ".", "operands", "[", "1", "]", "is", "the", "source", "address", ".", "operands", "[", "2", "]", "is", "the", "first", "destination", "register", "." ]
[ "rs6000", "3", "0", "0", "10", "0", "0", "1", "\"{l|lwz} %2,0(%1)\"", "0", "2", "2", "1", "1", "0", "1", "0", "4", "1", "1", "1", "2", "2", "\"{lsi|lswi} %2,%1,%0\\n\\t{l|lwz} %1,%0(%1)\"", "\"\"", "0", "0", "4", "1", "1", "1", "2", "2", "1", "\"{cal %1,4(%1)|addi %1,%1,4}\\n\\t{lsi|lswi} %2,%1,%0\\n\\t{l|lwz} %1,-4(%1)\"", "\"\"", "0", "0", "4", "1", "1", "2", "2", "\"{l|lwz} %2,%0(%1)\"", "0", "4", "1", "1", "\"{l|lwz} %1,%0(%1)\"", "\"\"", "\"{lsi|lswi} %2,%1,%N0\"" ]
rs60003
rs6000_output_load_multiple
rs6000
CPU
GCC
32,807
332
1
[]
[ "<s>", "const", "char", "*", "getPassName", "(", ")", "const", "{", "return", "\"Hexagon NewValueJump\"", ";", "}", "</s>" ]
[ "getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "." ]
[ "Hexagon", "\"Hexagon NewValueJump\"" ]
HexagonNewValueJump13
getPassName
Hexagon
DSP
LLVM
32,808
12
1
[]
[ "<s>", "void", "XNCMRegisterInfo", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "llvm_unreachable", "(", "0", ")", ";", "}", "</s>" ]
[ "This", "method", "is", "called", "during", "prolog/epilog", "code", "insertion", "to", "eliminate", "call", "frame", "setup", "and", "destroy", "pseudo", "instructions", "(", "but", "only", "if", "the", "Target", "is", "using", "them", ")", "." ]
[ "XNCM", "XNCM", "0" ]
XNCMRegisterInfo
eliminateCallFramePseudoInstr
XNCM
CPU
LLVM
32,809
26
1
[]
[ "<s>", "void", "SITargetLowering", "::", "legalizeTargetIndependentNode", "(", "SDNode", "*", "Node", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "SmallVector", "<", "SDValue", ",", "8", ">", "Ops", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "Node", "->", "getNumOperands", "(", ")", ";", "++", "i", ")", "{", "if", "(", "!", "isFrameIndexOp", "(", "Node", "->", "getOperand", "(", "i", ")", ")", ")", "{", "Ops", ".", "push_back", "(", "Node", "->", "getOperand", "(", "i", ")", ")", ";", "continue", ";", "}", "SDLoc", "DL", "(", "Node", ")", ";", "Ops", ".", "push_back", "(", "SDValue", "(", "DAG", ".", "getMachineNode", "(", "AMDGPU", "::", "S_MOV_B32", ",", "DL", ",", "Node", "->", "getOperand", "(", "i", ")", ".", "getValueType", "(", ")", ",", "Node", "->", "getOperand", "(", "i", ")", ")", ",", "0", ")", ")", ";", "}", "DAG", ".", "UpdateNodeOperands", "(", "Node", ",", "Ops", ")", ";", "}", "</s>" ]
[ "Legalize", "target", "independent", "instructions", "(", "e.g", "." ]
[ "AMDGPU", "SI", "8", "0", "AMDGPU::S_MOV_B32", "0" ]
SIISelLowering (2)
legalizeTargetIndependentNode
AMDGPU
GPU
LLVM
32,810
127
1
[]
[ "<s>", "bool", "SIFixupVectorISel", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "MachineRegisterInfo", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "const", "GCNSubtarget", "&", "ST", "=", "MF", ".", "getSubtarget", "<", "GCNSubtarget", ">", "(", ")", ";", "const", "SIInstrInfo", "*", "TII", "=", "ST", ".", "getInstrInfo", "(", ")", ";", "const", "SIRegisterInfo", "*", "TRI", "=", "ST", ".", "getRegisterInfo", "(", ")", ";", "bool", "FuncModified", "=", "false", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "MF", ")", "{", "FuncModified", "|=", "fixupGlobalSaddr", "(", "MBB", ",", "MF", ",", "MRI", ",", "ST", ",", "TII", ",", "TRI", ")", ";", "}", "return", "FuncModified", ";", "}", "</s>" ]
[ "runOnMachineFunction", "-", "Emit", "the", "function", "body", "." ]
[ "AMDGPU", "SI", "SI", "SI" ]
SIFixupVectorISel
runOnMachineFunction
AMDGPU
GPU
LLVM
32,811
106
1
[]
[ "<s>", "const", "X86Subtarget", "*", "X86TargetMachine", "::", "getSubtargetImpl", "(", "const", "Function", "&", "F", ")", "const", "{", "Attribute", "CPUAttr", "=", "F", ".", "getFnAttribute", "(", "\"target-cpu\"", ")", ";", "Attribute", "FSAttr", "=", "F", ".", "getFnAttribute", "(", "\"target-features\"", ")", ";", "StringRef", "CPU", "=", "!", "CPUAttr", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", "?", "CPUAttr", ".", "getValueAsString", "(", ")", ":", "(", "StringRef", ")", "TargetCPU", ";", "StringRef", "FS", "=", "!", "FSAttr", ".", "hasAttribute", "(", "Attribute", "::", "None", ")", "?", "FSAttr", ".", "getValueAsString", "(", ")", ":", "(", "StringRef", ")", "TargetFS", ";", "SmallString", "<", "512", ">", "Key", ";", "Key", ".", "reserve", "(", "CPU", ".", "size", "(", ")", "+", "FS", ".", "size", "(", ")", ")", ";", "Key", "+=", "CPU", ";", "Key", "+=", "FS", ";", "bool", "SoftFloat", "=", "F", ".", "getFnAttribute", "(", "\"use-soft-float\"", ")", ".", "getValueAsString", "(", ")", "==", "\"true\"", ";", "if", "(", "SoftFloat", ")", "Key", "+=", "FS", ".", "empty", "(", ")", "?", "\"+soft-float\"", ":", "\",+soft-float\"", ";", "FS", "=", "Key", ".", "substr", "(", "CPU", ".", "size", "(", ")", ")", ";", "auto", "&", "I", "=", "SubtargetMap", "[", "Key", "]", ";", "if", "(", "!", "I", ")", "{", "resetTargetOptions", "(", "F", ")", ";", "I", "=", "llvm", "::", "make_unique", "<", "X86Subtarget", ">", "(", "TargetTriple", ",", "CPU", ",", "FS", ",", "*", "this", ",", "Options", ".", "StackAlignmentOverride", ")", ";", "GISelAccessor", "*", "GISel", "=", "new", "GISelAccessor", "(", ")", ";", "X86GISelActualAccessor", "*", "GISel", "=", "new", "X86GISelActualAccessor", "(", ")", ";", "GISel", "->", "CallLoweringInfo", ".", "reset", "(", "new", "X86CallLowering", "(", "*", "I", "->", "getTargetLowering", "(", ")", ")", ")", ";", "GISel", "->", "Legalizer", ".", "reset", "(", "new", "X86LegalizerInfo", "(", "*", "I", ",", "*", "this", ")", ")", ";", "auto", "*", "RBI", "=", "new", "X86RegisterBankInfo", "(", "*", "I", "->", "getRegisterInfo", "(", ")", ")", ";", "GISel", "->", "RegBankInfo", ".", "reset", "(", "RBI", ")", ";", "GISel", "->", "InstSelector", ".", "reset", "(", "createX86InstructionSelector", "(", "*", "this", ",", "*", "I", ",", "*", "RBI", ")", ")", ";", "I", "->", "setGISelAccessor", "(", "*", "GISel", ")", ";", "}", "return", "I", ".", "get", "(", ")", ";", "}", "</s>" ]
[ "Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "." ]
[ "X86", "X86", "X86", "\"target-cpu\"", "\"target-features\"", "512", "\"use-soft-float\"", "\"true\"", "\"+soft-float\"", "\",+soft-float\"", "X86", "X86", "X86", "X86", "X86", "X86", "X86" ]
X86TargetMachine18
getSubtargetImpl
X86
CPU
LLVM
32,812
314
1
[]
[ "<s>", "static", "tree", "parse_type", "(", "const", "function_instance", "&", "instance", ",", "const", "char", "*", "&", "format", ")", "{", "int", "ch", "=", "*", "format", "++", ";", "if", "(", "ch", "==", "'_'", ")", "return", "void_type_node", ";", "if", "(", "ch", "==", "'a'", ")", "{", "ch", "=", "*", "format", "++", ";", "if", "(", "ch", "==", "'l'", ")", "return", "build_const_pointer", "(", "instance", ".", "memory_scalar_type", "(", ")", ")", ";", "if", "(", "ch", "==", "'p'", ")", "return", "const_ptr_type_node", ";", "if", "(", "ch", "==", "'s'", ")", "return", "build_pointer_type", "(", "instance", ".", "memory_scalar_type", "(", ")", ")", ";", "gcc_unreachable", "(", ")", ";", "}", "if", "(", "ch", "==", "'b'", ")", "return", "instance", ".", "base_vector_type", "(", ")", ";", "if", "(", "ch", "==", "'d'", ")", "return", "instance", ".", "displacement_vector_type", "(", ")", ";", "if", "(", "ch", "==", "'e'", ")", "{", "if", "(", "startswith", "(", "format", ",", "\"pattern\"", ")", ")", "{", "format", "+=", "7", ";", "return", "acle_svpattern", ";", "}", "if", "(", "startswith", "(", "format", ",", "\"prfop\"", ")", ")", "{", "format", "+=", "5", ";", "return", "acle_svprfop", ";", "}", "gcc_unreachable", "(", ")", ";", "}", "if", "(", "ch", "==", "'s'", ")", "{", "type_suffix_index", "suffix", "=", "parse_element_type", "(", "instance", ",", "format", ")", ";", "return", "scalar_types", "[", "type_suffixes", "[", "suffix", "]", ".", "vector_type", "]", ";", "}", "if", "(", "ch", "==", "'t'", ")", "{", "type_suffix_index", "suffix", "=", "parse_element_type", "(", "instance", ",", "format", ")", ";", "vector_type_index", "vector_type", "=", "type_suffixes", "[", "suffix", "]", ".", "vector_type", ";", "unsigned", "int", "num_vectors", "=", "instance", ".", "vectors_per_tuple", "(", ")", ";", "return", "acle_vector_types", "[", "num_vectors", "-", "1", "]", "[", "vector_type", "]", ";", "}", "if", "(", "ch", "==", "'v'", ")", "{", "type_suffix_index", "suffix", "=", "parse_element_type", "(", "instance", ",", "format", ")", ";", "return", "acle_vector_types", "[", "0", "]", "[", "type_suffixes", "[", "suffix", "]", ".", "vector_type", "]", ";", "}", "gcc_unreachable", "(", ")", ";", "}", "</s>" ]
[ "Read", "and", "return", "a", "type", "from", "FORMAT", "for", "function", "INSTANCE", ".", "Advance", "FORMAT", "beyond", "the", "type", "string", ".", "The", "format", "is", ":", "_", "-", "void", "al", "-", "array", "pointer", "for", "loads", "ap", "-", "array", "pointer", "for", "prefetches", "as", "-", "array", "pointer", "for", "stores", "b", "-", "base", "vector", "type", "(", "from", "a", "_", "<", "m0", ">", "base", "suffix", ")", "d", "-", "displacement", "vector", "type", "(", "from", "a", "_", "<", "m1", ">", "index", "or", "_", "<", "m1", ">", "offset", "suffix", ")", "e", "<", "name", ">", "-", "an", "enum", "with", "the", "given", "name", "s", "<", "elt", ">", "-", "a", "scalar", "type", "with", "the", "given", "element", "suffix", "t", "<", "elt", ">", "-", "a", "vector", "or", "tuple", "type", "with", "given", "element", "suffix", "[", "*", "1", "]", "v", "<", "elt", ">", "-", "a", "vector", "with", "the", "given", "element", "suffix", "where", "<", "elt", ">", "has", "the", "format", "described", "above", "parse_element_type", "[", "*", "1", "]", "the", "vectors_per_tuple", "function", "indicates", "whether", "the", "type", "should", "be", "a", "tuple", ",", "and", "if", "so", ",", "how", "many", "vectors", "it", "should", "contain", "." ]
[ "aarch64", "\"pattern\"", "7", "\"prfop\"", "5", "1", "0" ]
aarch64-sve-builtins-shapes2
parse_type
aarch64
CPU
GCC
32,813
280
1
[]
[ "<s>", "void", "Thumb1InstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "DestReg", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "assert", "(", "(", "RC", "->", "hasSuperClassEq", "(", "&", "ARM", "::", "tGPRRegClass", ")", "||", "(", "TargetRegisterInfo", "::", "isPhysicalRegister", "(", "DestReg", ")", "&&", "isARMLowRegister", "(", "DestReg", ")", ")", ")", "&&", "\"Unknown regclass!\"", ")", ";", "if", "(", "RC", "->", "hasSuperClassEq", "(", "&", "ARM", "::", "tGPRRegClass", ")", "||", "(", "TargetRegisterInfo", "::", "isPhysicalRegister", "(", "DestReg", ")", "&&", "isARMLowRegister", "(", "DestReg", ")", ")", ")", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FI", ")", ",", "MachineMemOperand", "::", "MOLoad", ",", "MFI", ".", "getObjectSize", "(", "FI", ")", ",", "MFI", ".", "getObjectAlignment", "(", "FI", ")", ")", ";", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "ARM", "::", "tLDRspi", ")", ",", "DestReg", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ".", "addMemOperand", "(", "MMO", ")", ".", "add", "(", "predOps", "(", "ARMCC", "::", "AL", ")", ")", ";", "}", "}", "</s>" ]
[ "Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "." ]
[ "ARM", "ARM::tGPRRegClass", "ARM", "\"Unknown regclass!\"", "ARM::tGPRRegClass", "ARM", "ARM::tLDRspi", "0", "ARMCC::AL" ]
Thumb1InstrInfo10
loadRegFromStackSlot
ARM
CPU
LLVM
32,814
213
1
[]
[ "<s>", "void", "MINA32FrameLowering", "::", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "}", "</s>" ]
[ "Insert", "epilog", "code", "into", "the", "function", "." ]
[ "MINA32", "MINA32" ]
MINA32FrameLowering
emitEpilogue
MINA32
CPU
LLVM
32,815
16
1
[]
[ "<s>", "unsigned", "getStackAddress", "(", "uint64_t", "Size", ",", "int64_t", "Offset", ",", "MachinePointerInfo", "&", "MPO", ")", "override", "{", "LLT", "p0", "=", "LLT", "::", "pointer", "(", "0", ",", "64", ")", ";", "LLT", "s64", "=", "LLT", "::", "scalar", "(", "64", ")", ";", "unsigned", "SPReg", "=", "MRI", ".", "createGenericVirtualRegister", "(", "p0", ")", ";", "MIRBuilder", ".", "buildCopy", "(", "SPReg", ",", "AArch64", "::", "SP", ")", ";", "unsigned", "OffsetReg", "=", "MRI", ".", "createGenericVirtualRegister", "(", "s64", ")", ";", "MIRBuilder", ".", "buildConstant", "(", "OffsetReg", ",", "Offset", ")", ";", "unsigned", "AddrReg", "=", "MRI", ".", "createGenericVirtualRegister", "(", "p0", ")", ";", "MIRBuilder", ".", "buildGEP", "(", "AddrReg", ",", "SPReg", ",", "OffsetReg", ")", ";", "MPO", "=", "MachinePointerInfo", "::", "getStack", "(", "MIRBuilder", ".", "getMF", "(", ")", ",", "Offset", ")", ";", "return", "AddrReg", ";", "}", "</s>" ]
[ "Materialize", "a", "VReg", "containing", "the", "address", "of", "the", "specified", "stack-based", "object", "." ]
[ "AArch64", "0", "64", "64", "AArch64::SP" ]
AArch64CallLowering (2)
getStackAddress
AArch64
CPU
LLVM
32,816
117
1
[]
[ "<s>", "bool", "ARMAsmPrinter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "MCP", "=", "MF", ".", "getConstantPool", "(", ")", ";", "Subtarget", "=", "&", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "SetupMachineFunction", "(", "MF", ")", ";", "const", "Function", "&", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "const", "TargetMachine", "&", "TM", "=", "MF", ".", "getTarget", "(", ")", ";", "for", "(", "auto", "*", "GV", ":", "AFI", "->", "getGlobalsPromotedToConstantPool", "(", ")", ")", "PromotedGlobals", ".", "insert", "(", "GV", ")", ";", "unsigned", "OptimizationGoal", ";", "if", "(", "F", ".", "hasOptNone", "(", ")", ")", "OptimizationGoal", "=", "6", ";", "else", "if", "(", "F", ".", "hasMinSize", "(", ")", ")", "OptimizationGoal", "=", "4", ";", "else", "if", "(", "F", ".", "hasOptSize", "(", ")", ")", "OptimizationGoal", "=", "3", ";", "else", "if", "(", "TM", ".", "getOptLevel", "(", ")", "==", "CodeGenOpt", "::", "Aggressive", ")", "OptimizationGoal", "=", "2", ";", "else", "if", "(", "TM", ".", "getOptLevel", "(", ")", ">", "CodeGenOpt", "::", "None", ")", "OptimizationGoal", "=", "1", ";", "else", "OptimizationGoal", "=", "5", ";", "if", "(", "OptimizationGoals", "==", "-", "1", ")", "OptimizationGoals", "=", "OptimizationGoal", ";", "else", "if", "(", "OptimizationGoals", "!=", "(", "int", ")", "OptimizationGoal", ")", "OptimizationGoals", "=", "0", ";", "if", "(", "Subtarget", "->", "isTargetCOFF", "(", ")", ")", "{", "bool", "Internal", "=", "F", ".", "hasInternalLinkage", "(", ")", ";", "COFF", "::", "SymbolStorageClass", "Scl", "=", "Internal", "?", "COFF", "::", "IMAGE_SYM_CLASS_STATIC", ":", "COFF", "::", "IMAGE_SYM_CLASS_EXTERNAL", ";", "int", "Type", "=", "COFF", "::", "IMAGE_SYM_DTYPE_FUNCTION", "<<", "COFF", "::", "SCT_COMPLEX_TYPE_SHIFT", ";", "OutStreamer", "->", "BeginCOFFSymbolDef", "(", "CurrentFnSym", ")", ";", "OutStreamer", "->", "EmitCOFFSymbolStorageClass", "(", "Scl", ")", ";", "OutStreamer", "->", "EmitCOFFSymbolType", "(", "Type", ")", ";", "OutStreamer", "->", "EndCOFFSymbolDef", "(", ")", ";", "}", "emitFunctionBody", "(", ")", ";", "emitXRayTable", "(", ")", ";", "if", "(", "!", "ThumbIndirectPads", ".", "empty", "(", ")", ")", "{", "OutStreamer", "->", "emitAssemblerFlag", "(", "MCAF_Code16", ")", ";", "emitAlignment", "(", "Align", "(", "2", ")", ")", ";", "for", "(", "std", "::", "pair", "<", "unsigned", ",", "MCSymbol", "*", ">", "&", "TIP", ":", "ThumbIndirectPads", ")", "{", "OutStreamer", "->", "emitLabel", "(", "TIP", ".", "second", ")", ";", "EmitToStreamer", "(", "*", "OutStreamer", ",", "MCInstBuilder", "(", "ARM", "::", "tBX", ")", ".", "addReg", "(", "TIP", ".", "first", ")", ".", "addImm", "(", "ARMCC", "::", "AL", ")", ".", "addReg", "(", "0", ")", ")", ";", "}", "ThumbIndirectPads", ".", "clear", "(", ")", ";", "}", "return", "false", ";", "}", "</s>" ]
[ "runOnMachineFunction", "-", "Emit", "the", "function", "body", "." ]
[ "ARM", "ARM", "ARM", "ARM", "6", "4", "3", "2", "1", "5", "1", "0", "2", "ARM::tBX", "ARMCC::AL", "0" ]
ARMAsmPrinter
runOnMachineFunction
ARM
CPU
LLVM
32,817
367
1
[]
[ "<s>", "bool", "useMachineCombiner", "(", ")", "const", "override", "{", "return", "true", ";", "}", "</s>" ]
[ "Return", "true", "when", "a", "target", "supports", "MachineCombiner", "." ]
[ "PowerPC" ]
PPCInstrInfo (2)2
useMachineCombiner
PowerPC
CPU
LLVM
32,818
11
1
[]
[ "<s>", "static", "enum", "mips_symbol_type", "mips_classify_symbolic_expression", "(", "rtx", "x", ",", "enum", "mips_symbol_context", "context", ")", "{", "rtx", "offset", ";", "split_const", "(", "x", ",", "&", "x", ",", "&", "offset", ")", ";", "if", "(", "UNSPEC_ADDRESS_P", "(", "x", ")", ")", "return", "UNSPEC_ADDRESS_TYPE", "(", "x", ")", ";", "return", "mips_classify_symbol", "(", "x", ",", "context", ")", ";", "}", "</s>" ]
[ "Classify", "the", "base", "of", "symbolic", "expression", "X", ",", "given", "that", "X", "appears", "in", "context", "CONTEXT", "." ]
[ "mips" ]
mips
mips_classify_symbolic_expression
mips
CPU
GCC
32,819
49
1
[]
[ "<s>", "const", "SystemZTargetMachine", "&", "getTargetMachine", "(", ")", "const", "{", "return", "static_cast", "<", "const", "SystemZTargetMachine", "&", ">", "(", "TM", ")", ";", "}", "</s>" ]
[ "Return", "the", "target", "machine", "(", "if", "available", ")", "." ]
[ "SystemZ", "SystemZ", "SystemZ" ]
SystemZISelDAGToDAG (2)
getTargetMachine
SystemZ
CPU
LLVM
32,820
20
1
[]
[ "<s>", "unsigned", "GCNSubtarget", "::", "computeOccupancy", "(", "const", "Function", "&", "F", ",", "unsigned", "LDSSize", ",", "unsigned", "NumSGPRs", ",", "unsigned", "NumVGPRs", ")", "const", "{", "unsigned", "Occupancy", "=", "std", "::", "min", "(", "getMaxWavesPerEU", "(", ")", ",", "getOccupancyWithLocalMemSize", "(", "LDSSize", ",", "F", ")", ")", ";", "if", "(", "NumSGPRs", ")", "Occupancy", "=", "std", "::", "min", "(", "Occupancy", ",", "getOccupancyWithNumSGPRs", "(", "NumSGPRs", ")", ")", ";", "if", "(", "NumVGPRs", ")", "Occupancy", "=", "std", "::", "min", "(", "Occupancy", ",", "getOccupancyWithNumVGPRs", "(", "NumVGPRs", ")", ")", ";", "return", "Occupancy", ";", "}", "</s>" ]
[ "Return", "occupancy", "for", "the", "given", "function", "." ]
[ "AMDGPU" ]
AMDGPUSubtarget1
computeOccupancy
AMDGPU
GPU
LLVM
32,821
80
1
[]
[ "<s>", "ScheduleHazardRecognizer", "::", "HazardType", "PPCHazardRecognizer970", "::", "getHazardType", "(", "SUnit", "*", "SU", ")", "{", "const", "SDNode", "*", "Node", "=", "SU", "->", "getNode", "(", ")", "->", "getFlaggedMachineNode", "(", ")", ";", "bool", "isFirst", ",", "isSingle", ",", "isCracked", ",", "isLoad", ",", "isStore", ";", "PPCII", "::", "PPC970_Unit", "InstrType", "=", "GetInstrType", "(", "Node", "->", "getOpcode", "(", ")", ",", "isFirst", ",", "isSingle", ",", "isCracked", ",", "isLoad", ",", "isStore", ")", ";", "if", "(", "InstrType", "==", "PPCII", "::", "PPC970_Pseudo", ")", "return", "NoHazard", ";", "unsigned", "Opcode", "=", "Node", "->", "getMachineOpcode", "(", ")", ";", "if", "(", "NumIssued", "!=", "0", "&&", "(", "isFirst", "||", "isSingle", ")", ")", "return", "Hazard", ";", "if", "(", "isCracked", "&&", "NumIssued", ">", "2", ")", "return", "Hazard", ";", "switch", "(", "InstrType", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown instruction type!\"", ")", ";", "case", "PPCII", "::", "PPC970_FXU", ":", "case", "PPCII", "::", "PPC970_LSU", ":", "case", "PPCII", "::", "PPC970_FPU", ":", "case", "PPCII", "::", "PPC970_VALU", ":", "case", "PPCII", "::", "PPC970_VPERM", ":", "if", "(", "NumIssued", "==", "4", ")", "return", "Hazard", ";", "break", ";", "case", "PPCII", "::", "PPC970_CRU", ":", "if", "(", "NumIssued", ">=", "2", ")", "return", "Hazard", ";", "break", ";", "case", "PPCII", "::", "PPC970_BRU", ":", "break", ";", "}", "if", "(", "HasCTRSet", "&&", "(", "Opcode", "==", "PPC", "::", "BCTRL_Darwin", "||", "Opcode", "==", "PPC", "::", "BCTRL_SVR4", ")", ")", "return", "NoopHazard", ";", "if", "(", "isLoad", "&&", "NumStores", ")", "{", "unsigned", "LoadSize", ";", "switch", "(", "Opcode", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unknown load!\"", ")", ";", "case", "PPC", "::", "LBZ", ":", "case", "PPC", "::", "LBZU", ":", "case", "PPC", "::", "LBZX", ":", "case", "PPC", "::", "LBZ8", ":", "case", "PPC", "::", "LBZU8", ":", "case", "PPC", "::", "LBZX8", ":", "case", "PPC", "::", "LVEBX", ":", "LoadSize", "=", "1", ";", "break", ";", "case", "PPC", "::", "LHA", ":", "case", "PPC", "::", "LHAU", ":", "case", "PPC", "::", "LHAX", ":", "case", "PPC", "::", "LHZ", ":", "case", "PPC", "::", "LHZU", ":", "case", "PPC", "::", "LHZX", ":", "case", "PPC", "::", "LVEHX", ":", "case", "PPC", "::", "LHBRX", ":", "case", "PPC", "::", "LHA8", ":", "case", "PPC", "::", "LHAU8", ":", "case", "PPC", "::", "LHAX8", ":", "case", "PPC", "::", "LHZ8", ":", "case", "PPC", "::", "LHZU8", ":", "case", "PPC", "::", "LHZX8", ":", "LoadSize", "=", "2", ";", "break", ";", "case", "PPC", "::", "LFS", ":", "case", "PPC", "::", "LFSU", ":", "case", "PPC", "::", "LFSX", ":", "case", "PPC", "::", "LWZ", ":", "case", "PPC", "::", "LWZU", ":", "case", "PPC", "::", "LWZX", ":", "case", "PPC", "::", "LWA", ":", "case", "PPC", "::", "LWAX", ":", "case", "PPC", "::", "LVEWX", ":", "case", "PPC", "::", "LWBRX", ":", "case", "PPC", "::", "LWZ8", ":", "case", "PPC", "::", "LWZX8", ":", "LoadSize", "=", "4", ";", "break", ";", "case", "PPC", "::", "LFD", ":", "case", "PPC", "::", "LFDU", ":", "case", "PPC", "::", "LFDX", ":", "case", "PPC", "::", "LD", ":", "case", "PPC", "::", "LDU", ":", "case", "PPC", "::", "LDX", ":", "LoadSize", "=", "8", ";", "break", ";", "case", "PPC", "::", "LVX", ":", "case", "PPC", "::", "LVXL", ":", "LoadSize", "=", "16", ";", "break", ";", "}", "if", "(", "isLoadOfStoredAddress", "(", "LoadSize", ",", "Node", "->", "getOperand", "(", "0", ")", ",", "Node", "->", "getOperand", "(", "1", ")", ")", ")", "return", "NoopHazard", ";", "}", "return", "NoHazard", ";", "}", "</s>" ]
[ "getHazardType", "-", "Return", "the", "hazard", "type", "of", "emitting", "this", "node", "." ]
[ "PowerPC", "PPC", "PPCII::PPC970_Unit", "PPCII::PPC970_Pseudo", "0", "2", "\"Unknown instruction type!\"", "PPCII::PPC970_FXU", "PPCII::PPC970_LSU", "PPCII::PPC970_FPU", "PPCII::PPC970_VALU", "PPCII::PPC970_VPERM", "4", "PPCII::PPC970_CRU", "2", "PPCII::PPC970_BRU", "PPC::BCTRL_Darwin", "PPC::BCTRL_SVR4", "\"Unknown load!\"", "PPC::LBZ", "PPC::LBZU", "PPC::LBZX", "PPC::LBZ8", "PPC::LBZU8", "PPC::LBZX8", "PPC::LVEBX", "1", "PPC::LHA", "PPC::LHAU", "PPC::LHAX", "PPC::LHZ", "PPC::LHZU", "PPC::LHZX", "PPC::LVEHX", "PPC::LHBRX", "PPC::LHA8", "PPC::LHAU8", "PPC::LHAX8", "PPC::LHZ8", "PPC::LHZU8", "PPC::LHZX8", "2", "PPC::LFS", "PPC::LFSU", "PPC::LFSX", "PPC::LWZ", "PPC::LWZU", "PPC::LWZX", "PPC::LWA", "PPC::LWAX", "PPC::LVEWX", "PPC::LWBRX", "PPC::LWZ8", "PPC::LWZX8", "4", "PPC::LFD", "PPC::LFDU", "PPC::LFDX", "PPC::LD", "PPC::LDU", "PPC::LDX", "8", "PPC::LVX", "PPC::LVXL", "16", "0", "1" ]
PPCHazardRecognizers12
getHazardType
PowerPC
CPU
LLVM
32,822
488
1
[]
[ "<s>", "bool", "isLegalNTStore", "(", "Type", "*", "DataType", ",", "Align", "Alignment", ")", "{", "if", "(", "isa", "<", "VectorType", ">", "(", "DataType", ")", ")", "{", "unsigned", "NumElements", "=", "DataType", "->", "getVectorNumElements", "(", ")", ";", "unsigned", "EltSize", "=", "DataType", "->", "getVectorElementType", "(", ")", "->", "getScalarSizeInBits", "(", ")", ";", "return", "NumElements", ">", "1", "&&", "isPowerOf2_64", "(", "NumElements", ")", "&&", "EltSize", ">=", "8", "&&", "EltSize", "<=", "128", "&&", "isPowerOf2_64", "(", "EltSize", ")", ";", "}", "return", "BaseT", "::", "isLegalNTStore", "(", "DataType", ",", "Alignment", ")", ";", "}", "</s>" ]
[ "Return", "true", "if", "the", "target", "supports", "nontemporal", "store", "." ]
[ "AArch64", "1", "8", "128" ]
AArch64TargetTransformInfo26
isLegalNTStore
AArch64
CPU
LLVM
32,823
79
1
[]
[ "<s>", "static", "void", "mips_save_restore_reg", "(", "machine_mode", "mode", ",", "int", "regno", ",", "HOST_WIDE_INT", "offset", ",", "mips_save_restore_fn", "fn", ")", "{", "rtx", "mem", ";", "mem", "=", "gen_frame_mem", "(", "mode", ",", "plus_constant", "(", "Pmode", ",", "stack_pointer_rtx", ",", "offset", ")", ")", ";", "fn", "(", "gen_rtx_REG", "(", "mode", ",", "regno", ")", ",", "mem", ")", ";", "}", "</s>" ]
[ "Use", "FN", "to", "save", "or", "restore", "register", "REGNO", ".", "MODE", "is", "the", "register", "'s", "mode", "and", "OFFSET", "is", "the", "offset", "of", "its", "save", "slot", "from", "the", "current", "stack", "pointer", "." ]
[ "mips" ]
mips
mips_save_restore_reg
mips
CPU
GCC
32,824
49
1
[]
[ "<s>", "void", "ARMDAGToDAGISel", "::", "PreprocessISelDAG", "(", ")", "{", "if", "(", "!", "Subtarget", "->", "hasV6T2Ops", "(", ")", ")", "return", ";", "bool", "isThumb2", "=", "Subtarget", "->", "isThumb", "(", ")", ";", "for", "(", "SDNode", "&", "N", ":", "llvm", "::", "make_early_inc_range", "(", "CurDAG", "->", "allnodes", "(", ")", ")", ")", "{", "if", "(", "N", ".", "getOpcode", "(", ")", "!=", "ISD", "::", "ADD", ")", "continue", ";", "SDValue", "N0", "=", "N", ".", "getOperand", "(", "0", ")", ";", "SDValue", "N1", "=", "N", ".", "getOperand", "(", "1", ")", ";", "unsigned", "And_imm", "=", "0", ";", "if", "(", "!", "isOpcWithIntImmediate", "(", "N1", ".", "getNode", "(", ")", ",", "ISD", "::", "AND", ",", "And_imm", ")", ")", "{", "if", "(", "isOpcWithIntImmediate", "(", "N0", ".", "getNode", "(", ")", ",", "ISD", "::", "AND", ",", "And_imm", ")", ")", "std", "::", "swap", "(", "N0", ",", "N1", ")", ";", "}", "if", "(", "!", "And_imm", ")", "continue", ";", "unsigned", "TZ", "=", "countTrailingZeros", "(", "And_imm", ")", ";", "if", "(", "TZ", "!=", "1", "&&", "TZ", "!=", "2", ")", "continue", ";", "And_imm", ">>=", "TZ", ";", "if", "(", "And_imm", "&", "(", "And_imm", "+", "1", ")", ")", "continue", ";", "SDValue", "Srl", "=", "N1", ".", "getOperand", "(", "0", ")", ";", "unsigned", "Srl_imm", "=", "0", ";", "if", "(", "!", "isOpcWithIntImmediate", "(", "Srl", ".", "getNode", "(", ")", ",", "ISD", "::", "SRL", ",", "Srl_imm", ")", "||", "(", "Srl_imm", "<=", "2", ")", ")", "continue", ";", "SDValue", "CPTmp0", ";", "SDValue", "CPTmp1", ";", "SDValue", "CPTmp2", ";", "if", "(", "isThumb2", ")", "{", "if", "(", "SelectImmShifterOperand", "(", "N0", ",", "CPTmp0", ",", "CPTmp1", ")", ")", "continue", ";", "}", "else", "{", "if", "(", "SelectImmShifterOperand", "(", "N0", ",", "CPTmp0", ",", "CPTmp1", ")", "||", "SelectRegShifterOperand", "(", "N0", ",", "CPTmp0", ",", "CPTmp1", ",", "CPTmp2", ")", ")", "continue", ";", "}", "Srl", "=", "CurDAG", "->", "getNode", "(", "ISD", "::", "SRL", ",", "SDLoc", "(", "Srl", ")", ",", "MVT", "::", "i32", ",", "Srl", ".", "getOperand", "(", "0", ")", ",", "CurDAG", "->", "getConstant", "(", "Srl_imm", "+", "TZ", ",", "SDLoc", "(", "Srl", ")", ",", "MVT", "::", "i32", ")", ")", ";", "N1", "=", "CurDAG", "->", "getNode", "(", "ISD", "::", "AND", ",", "SDLoc", "(", "N1", ")", ",", "MVT", "::", "i32", ",", "Srl", ",", "CurDAG", "->", "getConstant", "(", "And_imm", ",", "SDLoc", "(", "Srl", ")", ",", "MVT", "::", "i32", ")", ")", ";", "N1", "=", "CurDAG", "->", "getNode", "(", "ISD", "::", "SHL", ",", "SDLoc", "(", "N1", ")", ",", "MVT", "::", "i32", ",", "N1", ",", "CurDAG", "->", "getConstant", "(", "TZ", ",", "SDLoc", "(", "Srl", ")", ",", "MVT", "::", "i32", ")", ")", ";", "CurDAG", "->", "UpdateNodeOperands", "(", "&", "N", ",", "N0", ",", "N1", ")", ";", "}", "}", "</s>" ]
[ "PreprocessISelDAG", "-", "This", "hook", "allows", "targets", "to", "hack", "on", "the", "graph", "before", "instruction", "selection", "starts", "." ]
[ "ARM", "ARM", "ISD::ADD", "0", "1", "0", "ISD::AND", "ISD::AND", "1", "2", "1", "0", "0", "ISD::SRL", "2", "ISD::SRL", "MVT::i32", "0", "MVT::i32", "ISD::AND", "MVT::i32", "MVT::i32", "ISD::SHL", "MVT::i32", "MVT::i32" ]
ARMISelDAGToDAG118
PreprocessISelDAG
ARM
CPU
LLVM
32,825
404
1
[]
[ "<s>", "void", "arm_declare_function_name", "(", "FILE", "*", "stream", ",", "const", "char", "*", "name", ",", "tree", "decl", ")", "{", "tree", "target_parts", "=", "DECL_FUNCTION_SPECIFIC_TARGET", "(", "decl", ")", ";", "struct", "cl_target_option", "*", "targ_options", ";", "if", "(", "target_parts", ")", "targ_options", "=", "TREE_TARGET_OPTION", "(", "target_parts", ")", ";", "else", "targ_options", "=", "TREE_TARGET_OPTION", "(", "target_option_current_node", ")", ";", "gcc_assert", "(", "targ_options", ")", ";", "std", "::", "string", "arch_to_print", ";", "if", "(", "targ_options", "->", "x_arm_arch_string", ")", "arch_to_print", "=", "targ_options", "->", "x_arm_arch_string", ";", "if", "(", "arch_to_print", "!=", "arm_last_printed_arch_string", ")", "{", "std", "::", "string", "arch_name", "=", "arch_to_print", ".", "substr", "(", "0", ",", "arch_to_print", ".", "find", "(", "\"+\"", ")", ")", ";", "asm_fprintf", "(", "asm_out_file", ",", "\"\\t.arch %s\\n\"", ",", "arch_name", ".", "c_str", "(", ")", ")", ";", "const", "arch_option", "*", "arch", "=", "arm_parse_arch_option_name", "(", "all_architectures", ",", "\"-march\"", ",", "targ_options", "->", "x_arm_arch_string", ")", ";", "auto_sbitmap", "opt_bits", "(", "isa_num_bits", ")", ";", "gcc_assert", "(", "arch", ")", ";", "if", "(", "arch", "->", "common", ".", "extensions", ")", "{", "for", "(", "const", "struct", "cpu_arch_extension", "*", "opt", "=", "arch", "->", "common", ".", "extensions", ";", "opt", "->", "name", "!=", "NULL", ";", "opt", "++", ")", "{", "if", "(", "!", "opt", "->", "remove", ")", "{", "arm_initialize_isa", "(", "opt_bits", ",", "opt", "->", "isa_bits", ")", ";", "if", "(", "bitmap_subset_p", "(", "opt_bits", ",", "arm_active_target", ".", "isa", ")", "&&", "!", "bitmap_subset_p", "(", "opt_bits", ",", "isa_all_fpubits", ")", ")", "asm_fprintf", "(", "asm_out_file", ",", "\"\\t.arch_extension %s\\n\"", ",", "opt", "->", "name", ")", ";", "}", "}", "}", "arm_last_printed_arch_string", "=", "arch_to_print", ";", "}", "fprintf", "(", "stream", ",", "\"\\t.syntax unified\\n\"", ")", ";", "if", "(", "TARGET_THUMB", ")", "{", "if", "(", "is_called_in_ARM_mode", "(", "decl", ")", "||", "(", "TARGET_THUMB1", "&&", "!", "TARGET_THUMB1_ONLY", "&&", "cfun", "->", "is_thunk", ")", ")", "fprintf", "(", "stream", ",", "\"\\t.code 32\\n\"", ")", ";", "else", "if", "(", "TARGET_THUMB1", ")", "fprintf", "(", "stream", ",", "\"\\t.code\\t16\\n\\t.thumb_func\\n\"", ")", ";", "else", "fprintf", "(", "stream", ",", "\"\\t.thumb\\n\\t.thumb_func\\n\"", ")", ";", "}", "else", "fprintf", "(", "stream", ",", "\"\\t.arm\\n\"", ")", ";", "std", "::", "string", "fpu_to_print", "=", "TARGET_SOFT_FLOAT", "?", "\"softvfp\"", ":", "arm_identify_fpu_from_isa", "(", "arm_active_target", ".", "isa", ")", ";", "if", "(", "fpu_to_print", "!=", "arm_last_printed_arch_string", ")", "{", "asm_fprintf", "(", "asm_out_file", ",", "\"\\t.fpu %s\\n\"", ",", "fpu_to_print", ".", "c_str", "(", ")", ")", ";", "arm_last_printed_fpu_string", "=", "fpu_to_print", ";", "}", "if", "(", "TARGET_POKE_FUNCTION_NAME", ")", "arm_poke_function_name", "(", "stream", ",", "(", "const", "char", "*", ")", "name", ")", ";", "}", "</s>" ]
[ "Implement", "ASM_DECLARE_FUNCTION_NAME", ".", "Output", "the", "ISA", "features", "used", "by", "the", "function", "fndecl", "." ]
[ "arm", "0", "\"+\"", "\"\\t.arch %s\\n\"", "\"-march\"", "\"\\t.arch_extension %s\\n\"", "\"\\t.syntax unified\\n\"", "\"\\t.code 32\\n\"", "\"\\t.code\\t16\\n\\t.thumb_func\\n\"", "\"\\t.thumb\\n\\t.thumb_func\\n\"", "\"\\t.arm\\n\"", "\"softvfp\"", "\"\\t.fpu %s\\n\"" ]
arm7
arm_declare_function_name
arm
CPU
GCC
32,826
348
1
[]
[ "<s>", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "addRequired", "<", "MachineLoopInfo", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "ProfileSummaryInfoWrapperPass", ">", "(", ")", ";", "AU", ".", "addRequired", "<", "LazyMachineBlockFrequencyInfoPass", ">", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", "</s>" ]
[ "getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "." ]
[ "X86" ]
X86FixupBWInsts
getAnalysisUsage
X86
CPU
LLVM
32,827
45
1
[]
[ "<s>", "bool", "R600InstrInfo", "::", "fitsReadPortLimitations", "(", "const", "std", "::", "vector", "<", "MachineInstr", "*", ">", "&", "IG", ",", "const", "DenseMap", "<", "unsigned", ",", "unsigned", ">", "&", "PV", ",", "std", "::", "vector", "<", "BankSwizzle", ">", "&", "ValidSwizzle", ")", "const", "{", "std", "::", "vector", "<", "std", "::", "vector", "<", "std", "::", "pair", "<", "int", ",", "unsigned", ">", ">", ">", "IGSrcs", ";", "ValidSwizzle", ".", "clear", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "IG", ".", "size", "(", ")", ";", "i", "<", "e", ";", "++", "i", ")", "{", "IGSrcs", ".", "push_back", "(", "ExtractSrcs", "(", "IG", "[", "i", "]", ",", "PV", ")", ")", ";", "unsigned", "Op", "=", "getOperandIdx", "(", "IG", "[", "i", "]", "->", "getOpcode", "(", ")", ",", "R600Operands", "::", "BANK_SWIZZLE", ")", ";", "ValidSwizzle", ".", "push_back", "(", "(", "R600InstrInfo", "::", "BankSwizzle", ")", "IG", "[", "i", "]", "->", "getOperand", "(", "Op", ")", ".", "getImm", "(", ")", ")", ";", "}", "bool", "Result", "=", "recursiveFitsFPLimitation", "(", "IGSrcs", ",", "ValidSwizzle", ")", ";", "if", "(", "!", "Result", ")", "return", "false", ";", "return", "true", ";", "}", "</s>" ]
[ "Given", "the", "order", "VEC_012", "<", "VEC_021", "<", "VEC_120", "<", "VEC_102", "<", "VEC_201", "<", "VEC_210", "returns", "true", "and", "the", "first", "(", "in", "lexical", "order", ")", "BankSwizzle", "affectation", "starting", "from", "the", "one", "already", "provided", "in", "the", "Instruction", "Group", "MIs", "that", "fits", "Read", "Port", "limitations", "in", "BS", "if", "available", "." ]
[ "R600", "0", "R600Operands::BANK_SWIZZLE" ]
R600InstrInfo65
fitsReadPortLimitations
R600
GPU
LLVM
32,828
167
1
[]
[ "<s>", "bool", "SITargetLowering", "::", "isOffsetFoldingLegal", "(", "const", "GlobalAddressSDNode", "*", "GA", ")", "const", "{", "return", "GA", "->", "getAddressSpace", "(", ")", "==", "AMDGPUAS", "::", "GLOBAL_ADDRESS", "&&", "!", "shouldEmitGOTReloc", "(", "GA", "->", "getGlobal", "(", ")", ",", "getTargetMachine", "(", ")", ")", ";", "}", "</s>" ]
[ "Return", "true", "if", "folding", "a", "constant", "offset", "with", "the", "given", "GlobalAddress", "is", "legal", "." ]
[ "AMDGPU", "SI", "AMDGPU" ]
SIISelLowering101
isOffsetFoldingLegal
AMDGPU
GPU
LLVM
32,829
38
1
[]
[ "<s>", "static", "bool", "riscv_canonicalize_int_order_test", "(", "enum", "rtx_code", "*", "code", ",", "rtx", "*", "cmp1", ",", "enum", "machine_mode", "mode", ")", "{", "HOST_WIDE_INT", "plus_one", ";", "if", "(", "riscv_int_order_operand_ok_p", "(", "*", "code", ",", "*", "cmp1", ")", ")", "return", "true", ";", "if", "(", "CONST_INT_P", "(", "*", "cmp1", ")", ")", "switch", "(", "*", "code", ")", "{", "case", "LE", ":", "plus_one", "=", "trunc_int_for_mode", "(", "UINTVAL", "(", "*", "cmp1", ")", "+", "1", ",", "mode", ")", ";", "if", "(", "INTVAL", "(", "*", "cmp1", ")", "<", "plus_one", ")", "{", "*", "code", "=", "LT", ";", "*", "cmp1", "=", "force_reg", "(", "mode", ",", "GEN_INT", "(", "plus_one", ")", ")", ";", "return", "true", ";", "}", "break", ";", "case", "LEU", ":", "plus_one", "=", "trunc_int_for_mode", "(", "UINTVAL", "(", "*", "cmp1", ")", "+", "1", ",", "mode", ")", ";", "if", "(", "plus_one", "!=", "0", ")", "{", "*", "code", "=", "LTU", ";", "*", "cmp1", "=", "force_reg", "(", "mode", ",", "GEN_INT", "(", "plus_one", ")", ")", ";", "return", "true", ";", "}", "break", ";", "default", ":", "break", ";", "}", "return", "false", ";", "}", "</s>" ]
[ "Return", "true", "if", "*", "CMP1", "(", "of", "mode", "MODE", ")", "is", "a", "valid", "second", "operand", "for", "integer", "ordering", "test", "*", "CODE", ",", "or", "if", "an", "equivalent", "combination", "can", "be", "formed", "by", "adjusting", "*", "CODE", "and", "*", "CMP1", ".", "When", "returning", "true", ",", "update", "*", "CODE", "and", "*", "CMP1", "with", "the", "chosen", "code", "and", "operand", ",", "otherwise", "leave", "them", "alone", "." ]
[ "riscv", "1", "1", "0" ]
riscv2
riscv_canonicalize_int_order_test
riscv
CPU
GCC
32,830
160
1
[]
[ "<s>", "AArch64TargetMachine", "::", "AArch64TargetMachine", "(", "const", "Target", "&", "T", ",", "StringRef", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Reloc", "::", "Model", "RM", ",", "CodeModel", "::", "Model", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ",", "bool", "LittleEndian", ")", ":", "LLVMTargetMachine", "(", "T", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "RM", ",", "CM", ",", "OL", ")", ",", "Subtarget", "(", "TT", ",", "CPU", ",", "FS", ",", "*", "this", ",", "LittleEndian", ")", "{", "initAsmInfo", "(", ")", ";", "}", "</s>" ]
[ "Create", "an", "AArch64", "architecture", "model", "." ]
[ "AArch64", "AArch64", "AArch64" ]
AArch64TargetMachine3
AArch64TargetMachine
AArch64
CPU
LLVM
32,831
80
1
[]
[ "<s>", "static", "void", "sparc_emit_probe_stack_range", "(", "HOST_WIDE_INT", "first", ",", "HOST_WIDE_INT", "size", ")", "{", "rtx", "g1", "=", "gen_rtx_REG", "(", "Pmode", ",", "1", ")", ";", "if", "(", "size", "<=", "PROBE_INTERVAL", ")", "{", "emit_move_insn", "(", "g1", ",", "GEN_INT", "(", "first", ")", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "g1", ",", "gen_rtx_MINUS", "(", "Pmode", ",", "stack_pointer_rtx", ",", "g1", ")", ")", ")", ";", "emit_stack_probe", "(", "plus_constant", "(", "Pmode", ",", "g1", ",", "-", "size", ")", ")", ";", "}", "else", "if", "(", "size", "<=", "4", "*", "PROBE_INTERVAL", ")", "{", "HOST_WIDE_INT", "i", ";", "emit_move_insn", "(", "g1", ",", "GEN_INT", "(", "first", "+", "PROBE_INTERVAL", ")", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "g1", ",", "gen_rtx_MINUS", "(", "Pmode", ",", "stack_pointer_rtx", ",", "g1", ")", ")", ")", ";", "emit_stack_probe", "(", "g1", ")", ";", "for", "(", "i", "=", "2", "*", "PROBE_INTERVAL", ";", "i", "<", "size", ";", "i", "+=", "PROBE_INTERVAL", ")", "{", "emit_insn", "(", "gen_rtx_SET", "(", "g1", ",", "plus_constant", "(", "Pmode", ",", "g1", ",", "-", "PROBE_INTERVAL", ")", ")", ")", ";", "emit_stack_probe", "(", "g1", ")", ";", "}", "emit_stack_probe", "(", "plus_constant", "(", "Pmode", ",", "g1", ",", "(", "i", "-", "PROBE_INTERVAL", ")", "-", "size", ")", ")", ";", "}", "else", "{", "HOST_WIDE_INT", "rounded_size", ";", "rtx", "g4", "=", "gen_rtx_REG", "(", "Pmode", ",", "4", ")", ";", "emit_move_insn", "(", "g1", ",", "GEN_INT", "(", "first", ")", ")", ";", "rounded_size", "=", "ROUND_DOWN", "(", "size", ",", "PROBE_INTERVAL", ")", ";", "emit_move_insn", "(", "g4", ",", "GEN_INT", "(", "rounded_size", ")", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "g1", ",", "gen_rtx_MINUS", "(", "Pmode", ",", "stack_pointer_rtx", ",", "g1", ")", ")", ")", ";", "emit_insn", "(", "gen_rtx_SET", "(", "g4", ",", "gen_rtx_MINUS", "(", "Pmode", ",", "g1", ",", "g4", ")", ")", ")", ";", "emit_insn", "(", "gen_probe_stack_range", "(", "Pmode", ",", "g1", ",", "g1", ",", "g4", ")", ")", ";", "if", "(", "size", "!=", "rounded_size", ")", "emit_stack_probe", "(", "plus_constant", "(", "Pmode", ",", "g4", ",", "rounded_size", "-", "size", ")", ")", ";", "}", "emit_insn", "(", "gen_blockage", "(", ")", ")", ";", "}", "</s>" ]
[ "Emit", "code", "to", "probe", "a", "range", "of", "stack", "addresses", "from", "FIRST", "to", "FIRST+SIZE", ",", "inclusive", ".", "These", "are", "offsets", "from", "the", "current", "stack", "pointer", ".", "Note", "that", "we", "do", "n't", "use", "the", "REG+REG", "addressing", "mode", "for", "the", "probes", "because", "of", "the", "stack", "bias", "in", "64-bit", "mode", ".", "And", "it", "does", "n't", "really", "buy", "us", "anything", "so", "the", "advantages", "of", "having", "a", "single", "code", "win", "here", "." ]
[ "sparc", "1", "4", "2", "4" ]
sparc
sparc_emit_probe_stack_range
sparc
CPU
GCC
32,832
297
1
[]
[ "<s>", "bool", "nds32_valid_multiple_load_store", "(", "rtx", "op", ",", "bool", "load_p", ")", "{", "int", "count", ";", "int", "first_elt_regno", ";", "rtx", "elt", ";", "count", "=", "XVECLEN", "(", "op", ",", "0", ")", ";", "elt", "=", "XVECEXP", "(", "op", ",", "0", ",", "0", ")", ";", "if", "(", "GET_CODE", "(", "elt", ")", "!=", "SET", "||", "count", "<=", "1", "||", "count", ">", "8", ")", "return", "false", ";", "if", "(", "load_p", ")", "{", "if", "(", "GET_CODE", "(", "SET_DEST", "(", "elt", ")", ")", "!=", "REG", "||", "GET_CODE", "(", "SET_SRC", "(", "elt", ")", ")", "!=", "MEM", ")", "return", "false", ";", "first_elt_regno", "=", "REGNO", "(", "SET_DEST", "(", "elt", ")", ")", ";", "}", "else", "{", "if", "(", "GET_CODE", "(", "SET_SRC", "(", "elt", ")", ")", "!=", "REG", "||", "GET_CODE", "(", "SET_DEST", "(", "elt", ")", ")", "!=", "MEM", ")", "return", "false", ";", "first_elt_regno", "=", "REGNO", "(", "SET_SRC", "(", "elt", ")", ")", ";", "}", "if", "(", "!", "nds32_consecutive_registers_load_store_p", "(", "op", ",", "load_p", ",", "0", ",", "first_elt_regno", ",", "count", ")", ")", "return", "false", ";", "return", "true", ";", "}", "</s>" ]
[ "Function", "to", "check", "whether", "the", "OP", "is", "a", "valid", "load/store", "operation", ".", "This", "is", "a", "helper", "function", "for", "the", "predicates", ":", "'nds32_load_multiple_operation", "'", "and", "'nds32_store_multiple_operation", "'", "in", "predicates.md", "file", ".", "The", "OP", "is", "supposed", "to", "be", "a", "parallel", "rtx", ".", "For", "each", "element", "within", "this", "parallel", "rtx", ":", "(", "set", "(", "reg", ")", "(", "mem", "addr", ")", ")", "is", "the", "form", "for", "load", "operation", ".", "(", "set", "(", "mem", "addr", ")", "(", "reg", ")", ")", "is", "the", "form", "for", "store", "operation", ".", "We", "have", "to", "extract", "reg", "and", "mem", "of", "every", "element", "and", "check", "if", "the", "information", "is", "valid", "for", "multiple", "load/store", "operation", "." ]
[ "nds32", "0", "0", "0", "1", "8", "0" ]
nds32-predicates2
nds32_valid_multiple_load_store
nds32
CPU
GCC
32,833
161
1
[]
[ "<s>", "static", "const", "char", "*", "generate_target_offloadend_file", "(", "const", "char", "*", "target_compiler", ")", "{", "char", "*", "dump_filename", "=", "concat", "(", "dumppfx", ",", "\"_target_offloadend.c\"", ",", "NULL", ")", ";", "const", "char", "*", "src_filename", "=", "save_temps", "?", "dump_filename", ":", "make_temp_file", "(", "\"_target_offloadend.c\"", ")", ";", "const", "char", "*", "obj_filename", "=", "save_temps", "?", "concat", "(", "dumppfx", ",", "\"_target_offloadend.o\"", ",", "NULL", ")", ":", "make_temp_file", "(", "\"_target_offloadend.o\"", ")", ";", "temp_files", "[", "num_temps", "++", "]", "=", "src_filename", ";", "temp_files", "[", "num_temps", "++", "]", "=", "obj_filename", ";", "FILE", "*", "src_file", "=", "fopen", "(", "src_filename", ",", "\"w\"", ")", ";", "if", "(", "!", "src_file", ")", "fatal_error", "(", "input_location", ",", "\"cannot open '%s'\"", ",", "src_filename", ")", ";", "fprintf", "(", "src_file", ",", "\"const void *const __offload_funcs_end[0]\\n\"", "\"__attribute__ ((__used__, visibility (\\\"hidden\\\"),\\n\"", "\"section (\\\".gnu.offload_funcs\\\"))) = { };\\n\\n\"", "\"const void *const __offload_vars_end[0]\\n\"", "\"__attribute__ ((__used__, visibility (\\\"hidden\\\"),\\n\"", "\"section (\\\".gnu.offload_vars\\\"))) = { };\\n\"", ")", ";", "fclose", "(", "src_file", ")", ";", "struct", "obstack", "argv_obstack", ";", "obstack_init", "(", "&", "argv_obstack", ")", ";", "obstack_ptr_grow", "(", "&", "argv_obstack", ",", "target_compiler", ")", ";", "if", "(", "save_temps", ")", "obstack_ptr_grow", "(", "&", "argv_obstack", ",", "\"-save-temps\"", ")", ";", "if", "(", "verbose", ")", "obstack_ptr_grow", "(", "&", "argv_obstack", ",", "\"-v\"", ")", ";", "obstack_ptr_grow", "(", "&", "argv_obstack", ",", "\"-dumpdir\"", ")", ";", "obstack_ptr_grow", "(", "&", "argv_obstack", ",", "\"\"", ")", ";", "obstack_ptr_grow", "(", "&", "argv_obstack", ",", "\"-dumpbase\"", ")", ";", "obstack_ptr_grow", "(", "&", "argv_obstack", ",", "dump_filename", ")", ";", "obstack_ptr_grow", "(", "&", "argv_obstack", ",", "\"-dumpbase-ext\"", ")", ";", "obstack_ptr_grow", "(", "&", "argv_obstack", ",", "\".c\"", ")", ";", "obstack_ptr_grow", "(", "&", "argv_obstack", ",", "\"-c\"", ")", ";", "obstack_ptr_grow", "(", "&", "argv_obstack", ",", "\"-shared\"", ")", ";", "obstack_ptr_grow", "(", "&", "argv_obstack", ",", "\"-fPIC\"", ")", ";", "obstack_ptr_grow", "(", "&", "argv_obstack", ",", "src_filename", ")", ";", "obstack_ptr_grow", "(", "&", "argv_obstack", ",", "\"-o\"", ")", ";", "obstack_ptr_grow", "(", "&", "argv_obstack", ",", "obj_filename", ")", ";", "compile_for_target", "(", "&", "argv_obstack", ")", ";", "return", "obj_filename", ";", "}", "</s>" ]
[ "Generates", "object", "file", "with", "__offload_", "*", "_end", "symbols", "for", "the", "target", "library", "." ]
[ "i386", "\"_target_offloadend.c\"", "\"_target_offloadend.c\"", "\"_target_offloadend.o\"", "\"_target_offloadend.o\"", "\"w\"", "\"cannot open '%s'\"", "\"const void *const __offload_funcs_end[0]\\n\"", "\"__attribute__ ((__used__, visibility (\\\"hidden\\\"),\\n\"", "\"section (\\\".gnu.offload_funcs\\\"))) = { };\\n\\n\"", "\"const void *const __offload_vars_end[0]\\n\"", "\"__attribute__ ((__used__, visibility (\\\"hidden\\\"),\\n\"", "\"section (\\\".gnu.offload_vars\\\"))) = { };\\n\"", "\"-save-temps\"", "\"-v\"", "\"-dumpdir\"", "\"\"", "\"-dumpbase\"", "\"-dumpbase-ext\"", "\".c\"", "\"-c\"", "\"-shared\"", "\"-fPIC\"", "\"-o\"" ]
intelmic-mkoffload
generate_target_offloadend_file
i386
CPU
GCC
32,834
266
1
[]
[ "<s>", "const", "GCNSubtarget", "*", "GCNTargetMachine", "::", "getSubtargetImpl", "(", "const", "Function", "&", "F", ")", "const", "{", "StringRef", "GPU", "=", "getGPUName", "(", "F", ")", ";", "StringRef", "FS", "=", "getFeatureString", "(", "F", ")", ";", "SmallString", "<", "128", ">", "SubtargetKey", "(", "GPU", ")", ";", "SubtargetKey", ".", "append", "(", "FS", ")", ";", "auto", "&", "I", "=", "SubtargetMap", "[", "SubtargetKey", "]", ";", "if", "(", "!", "I", ")", "{", "resetTargetOptions", "(", "F", ")", ";", "I", "=", "std", "::", "make_unique", "<", "GCNSubtarget", ">", "(", "TargetTriple", ",", "GPU", ",", "FS", ",", "*", "this", ")", ";", "}", "I", "->", "setScalarizeGlobalBehavior", "(", "ScalarizeGlobal", ")", ";", "return", "I", ".", "get", "(", ")", ";", "}", "</s>" ]
[ "Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "." ]
[ "AMDGPU", "128" ]
AMDGPUTargetMachine10
getSubtargetImpl
AMDGPU
GPU
LLVM
32,835
101
1
[]
[ "<s>", "bool", "PatmosSinglePathInfo", "::", "isReachable", "(", "const", "MachineFunction", "&", "MF", ")", "{", "return", "MF", ".", "getFunction", "(", ")", "->", "hasFnAttribute", "(", "\"sp-reachable\"", ")", ";", "}", "</s>" ]
[ "Returns", "true", "if", "instruction", "is", "reachable", "from", "entry", "." ]
[ "Patmos", "Patmos", "\"sp-reachable\"" ]
PatmosSinglePathInfo
isReachable
Patmos
VLIW
LLVM
32,836
24
1
[]
[ "<s>", "bool", "X86TargetLowering", "::", "isZExtFree", "(", "const", "Type", "*", "Ty1", ",", "const", "Type", "*", "Ty2", ")", "const", "{", "return", "Ty1", "->", "isIntegerTy", "(", "32", ")", "&&", "Ty2", "->", "isIntegerTy", "(", "64", ")", "&&", "Subtarget", "->", "is64Bit", "(", ")", ";", "}", "</s>" ]
[ "Return", "true", "if", "zero-extending", "the", "specific", "node", "Val", "to", "type", "VT2", "is", "free", "(", "either", "because", "it", "'s", "implicitly", "zero-extended", "such", "as", "ARM", "ldrb", "/", "ldrh", "or", "because", "it", "'s", "folded", "such", "as", "X86", "zero-extending", "loads", ")", "." ]
[ "X86", "X86", "32", "64" ]
X86ISelLowering144
isZExtFree
X86
CPU
LLVM
32,837
39
1
[]
[ "<s>", "bool", "SILowerSGPRSpills", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "const", "GCNSubtarget", "&", "ST", "=", "MF", ".", "getSubtarget", "<", "GCNSubtarget", ">", "(", ")", ";", "TII", "=", "ST", ".", "getInstrInfo", "(", ")", ";", "TRI", "=", "&", "TII", "->", "getRegisterInfo", "(", ")", ";", "VRM", "=", "getAnalysisIfAvailable", "<", "VirtRegMap", ">", "(", ")", ";", "assert", "(", "SaveBlocks", ".", "empty", "(", ")", "&&", "RestoreBlocks", ".", "empty", "(", ")", ")", ";", "calculateSaveRestoreBlocks", "(", "MF", ")", ";", "bool", "HasCSRs", "=", "spillCalleeSavedRegs", "(", "MF", ")", ";", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "if", "(", "!", "MFI", ".", "hasStackObjects", "(", ")", "&&", "!", "HasCSRs", ")", "{", "SaveBlocks", ".", "clear", "(", ")", ";", "RestoreBlocks", ".", "clear", "(", ")", ";", "return", "false", ";", "}", "SIMachineFunctionInfo", "*", "FuncInfo", "=", "MF", ".", "getInfo", "<", "SIMachineFunctionInfo", ">", "(", ")", ";", "bool", "MadeChange", "=", "false", ";", "if", "(", "TRI", "->", "spillSGPRToVGPR", "(", ")", "&&", "(", "HasCSRs", "||", "FuncInfo", "->", "hasSpilledSGPRs", "(", ")", ")", ")", "{", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "MF", ")", "{", "MachineBasicBlock", "::", "iterator", "Next", ";", "for", "(", "auto", "I", "=", "MBB", ".", "begin", "(", ")", ",", "E", "=", "MBB", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "I", "=", "Next", ")", "{", "MachineInstr", "&", "MI", "=", "*", "I", ";", "Next", "=", "std", "::", "next", "(", "I", ")", ";", "if", "(", "!", "TII", "->", "isSGPRSpill", "(", "MI", ")", ")", "continue", ";", "int", "FI", "=", "TII", "->", "getNamedOperand", "(", "MI", ",", "AMDGPU", "::", "OpName", "::", "addr", ")", "->", "getIndex", "(", ")", ";", "assert", "(", "MFI", ".", "getStackID", "(", "FI", ")", "==", "TargetStackID", "::", "SGPRSpill", ")", ";", "if", "(", "FuncInfo", "->", "allocateSGPRSpillToVGPR", "(", "MF", ",", "FI", ")", ")", "{", "bool", "Spilled", "=", "TRI", "->", "eliminateSGPRToVGPRSpillFrameIndex", "(", "MI", ",", "FI", ",", "nullptr", ")", ";", "(", "void", ")", "Spilled", ";", "assert", "(", "Spilled", "&&", "\"failed to spill SGPR to VGPR when allocated\"", ")", ";", "}", "}", "}", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "MF", ")", "{", "for", "(", "auto", "SSpill", ":", "FuncInfo", "->", "getSGPRSpillVGPRs", "(", ")", ")", "MBB", ".", "addLiveIn", "(", "SSpill", ".", "VGPR", ")", ";", "MBB", ".", "sortUniqueLiveIns", "(", ")", ";", "}", "FuncInfo", "->", "removeSGPRToVGPRFrameIndices", "(", "MFI", ")", ";", "MadeChange", "=", "true", ";", "}", "SaveBlocks", ".", "clear", "(", ")", ";", "RestoreBlocks", ".", "clear", "(", ")", ";", "return", "MadeChange", ";", "}", "</s>" ]
[ "runOnMachineFunction", "-", "Emit", "the", "function", "body", "." ]
[ "AMDGPU", "SI", "SI", "SI", "AMDGPU::OpName", "\"failed to spill SGPR to VGPR when allocated\"" ]
SILowerSGPRSpills4
runOnMachineFunction
AMDGPU
GPU
LLVM
32,838
363
1
[]
[ "<s>", "bool", "MipsNaClRewritePass", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "TII", "=", "static_cast", "<", "const", "MipsInstrInfo", "*", ">", "(", "MF", ".", "getTarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "TRI", "=", "MF", ".", "getTarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "bool", "Modified", "=", "false", ";", "for", "(", "MachineFunction", "::", "iterator", "MFI", "=", "MF", ".", "begin", "(", ")", ",", "E", "=", "MF", ".", "end", "(", ")", ";", "MFI", "!=", "E", ";", "++", "MFI", ")", "{", "MachineBasicBlock", "&", "MBB", "=", "*", "MFI", ";", "if", "(", "FlagSfiLoad", ")", "Modified", "|=", "SandboxLoadsInBlock", "(", "MBB", ")", ";", "if", "(", "FlagSfiStore", ")", "Modified", "|=", "SandboxStoresInBlock", "(", "MBB", ")", ";", "if", "(", "FlagSfiBranch", ")", "Modified", "|=", "SandboxBranchesInBlock", "(", "MBB", ")", ";", "if", "(", "FlagSfiStack", ")", "Modified", "|=", "SandboxStackChangesInBlock", "(", "MBB", ")", ";", "}", "if", "(", "FlagSfiBranch", ")", "AlignAllJumpTargets", "(", "MF", ")", ";", "return", "Modified", ";", "}", "</s>" ]
[ "runOnMachineFunction", "-", "Emit", "the", "function", "body", "." ]
[ "Mips", "Mips", "Mips" ]
MipsNaClRewritePass
runOnMachineFunction
Mips
CPU
LLVM
32,839
141
1
[]
[ "<s>", "ScheduleHazardRecognizer", "::", "HazardType", "GCNHazardRecognizer", "::", "getHazardType", "(", "SUnit", "*", "SU", ",", "int", "Stalls", ")", "{", "MachineInstr", "*", "MI", "=", "SU", "->", "getInstr", "(", ")", ";", "if", "(", "MI", "->", "isBundle", "(", ")", ")", "return", "NoHazard", ";", "if", "(", "SIInstrInfo", "::", "isSMRD", "(", "*", "MI", ")", "&&", "checkSMRDHazards", "(", "MI", ")", ">", "0", ")", "return", "NoopHazard", ";", "if", "(", "(", "SIInstrInfo", "::", "isVMEM", "(", "*", "MI", ")", "||", "SIInstrInfo", "::", "isFLAT", "(", "*", "MI", ")", ")", "&&", "checkVMEMHazards", "(", "MI", ")", ">", "0", ")", "return", "NoopHazard", ";", "if", "(", "ST", ".", "hasNSAtoVMEMBug", "(", ")", "&&", "checkNSAtoVMEMHazard", "(", "MI", ")", ">", "0", ")", "return", "NoopHazard", ";", "if", "(", "ST", ".", "hasNoDataDepHazard", "(", ")", ")", "return", "NoHazard", ";", "if", "(", "SIInstrInfo", "::", "isVALU", "(", "*", "MI", ")", "&&", "checkVALUHazards", "(", "MI", ")", ">", "0", ")", "return", "NoopHazard", ";", "if", "(", "SIInstrInfo", "::", "isDPP", "(", "*", "MI", ")", "&&", "checkDPPHazards", "(", "MI", ")", ">", "0", ")", "return", "NoopHazard", ";", "if", "(", "isDivFMas", "(", "MI", "->", "getOpcode", "(", ")", ")", "&&", "checkDivFMasHazards", "(", "MI", ")", ">", "0", ")", "return", "NoopHazard", ";", "if", "(", "isRWLane", "(", "MI", "->", "getOpcode", "(", ")", ")", "&&", "checkRWLaneHazards", "(", "MI", ")", ">", "0", ")", "return", "NoopHazard", ";", "if", "(", "isSGetReg", "(", "MI", "->", "getOpcode", "(", ")", ")", "&&", "checkGetRegHazards", "(", "MI", ")", ">", "0", ")", "return", "NoopHazard", ";", "if", "(", "isSSetReg", "(", "MI", "->", "getOpcode", "(", ")", ")", "&&", "checkSetRegHazards", "(", "MI", ")", ">", "0", ")", "return", "NoopHazard", ";", "if", "(", "isRFE", "(", "MI", "->", "getOpcode", "(", ")", ")", "&&", "checkRFEHazards", "(", "MI", ")", ">", "0", ")", "return", "NoopHazard", ";", "if", "(", "ST", ".", "hasReadM0MovRelInterpHazard", "(", ")", "&&", "(", "TII", ".", "isVINTRP", "(", "*", "MI", ")", "||", "isSMovRel", "(", "MI", "->", "getOpcode", "(", ")", ")", ")", "&&", "checkReadM0Hazards", "(", "MI", ")", ">", "0", ")", "return", "NoopHazard", ";", "if", "(", "ST", ".", "hasReadM0SendMsgHazard", "(", ")", "&&", "isSendMsgTraceDataOrGDS", "(", "TII", ",", "*", "MI", ")", "&&", "checkReadM0Hazards", "(", "MI", ")", ">", "0", ")", "return", "NoopHazard", ";", "if", "(", "MI", "->", "isInlineAsm", "(", ")", "&&", "checkInlineAsmHazards", "(", "MI", ")", ">", "0", ")", "return", "NoopHazard", ";", "if", "(", "checkAnyInstHazards", "(", "MI", ")", ">", "0", ")", "return", "NoopHazard", ";", "return", "NoHazard", ";", "}", "</s>" ]
[ "getHazardType", "-", "Return", "the", "hazard", "type", "of", "emitting", "this", "node", "." ]
[ "AMDGPU", "SI", "0", "SI", "SI", "0", "0", "SI", "0", "SI", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0" ]
GCNHazardRecognizer31
getHazardType
AMDGPU
GPU
LLVM
32,840
357
1
[]
[ "<s>", "const", "char", "*", "Cpu0TargetLowering", "::", "getTargetNodeName", "(", "unsigned", "Opcode", ")", "const", "{", "switch", "(", "Opcode", ")", "{", "case", "Cpu0ISD", "::", "JmpLink", ":", "return", "\"Cpu0ISD::JmpLink\"", ";", "case", "Cpu0ISD", "::", "Hi", ":", "return", "\"Cpu0ISD::Hi\"", ";", "case", "Cpu0ISD", "::", "Lo", ":", "return", "\"Cpu0ISD::Lo\"", ";", "case", "Cpu0ISD", "::", "GPRel", ":", "return", "\"Cpu0ISD::GPRel\"", ";", "case", "Cpu0ISD", "::", "Ret", ":", "return", "\"Cpu0ISD::Ret\"", ";", "case", "Cpu0ISD", "::", "RetValue", ":", "return", "\"Cpu0ISD::RetValue\"", ";", "case", "Cpu0ISD", "::", "DivRem", ":", "return", "\"Cpu0ISD::DivRem\"", ";", "case", "Cpu0ISD", "::", "DivRemU", ":", "return", "\"Cpu0ISD::DivRemU\"", ";", "case", "Cpu0ISD", "::", "Wrapper", ":", "return", "\"Cpu0ISD::Wrapper\"", ";", "default", ":", "return", "NULL", ";", "}", "}", "</s>" ]
[ "getTargetNodeName", "-", "This", "method", "returns", "the", "name", "of", "a", "target", "specific" ]
[ "Cpu0", "Cpu0", "Cpu0ISD::JmpLink", "\"Cpu0ISD::JmpLink\"", "Cpu0ISD::Hi", "\"Cpu0ISD::Hi\"", "Cpu0ISD::Lo", "\"Cpu0ISD::Lo\"", "Cpu0ISD::GPRel", "\"Cpu0ISD::GPRel\"", "Cpu0ISD::Ret", "\"Cpu0ISD::Ret\"", "Cpu0ISD::RetValue", "\"Cpu0ISD::RetValue\"", "Cpu0ISD::DivRem", "\"Cpu0ISD::DivRem\"", "Cpu0ISD::DivRemU", "\"Cpu0ISD::DivRemU\"", "Cpu0ISD::Wrapper", "\"Cpu0ISD::Wrapper\"" ]
Cpu0ISelLowering1
getTargetNodeName
Cpu0
CPU
LLVM
32,841
96
1
[]
[ "<s>", "static", "void", "ia64_file_start", "(", "void", ")", "{", "default_file_start", "(", ")", ";", "emit_safe_across_calls", "(", ")", ";", "}", "</s>" ]
[ "Begin", "the", "assembly", "file", "." ]
[ "ia64" ]
ia64
ia64_file_start
ia64
CPU
GCC
32,842
16
1
[]
[ "<s>", "const", "uint32_t", "*", "MipsRegisterInfo", "::", "getCallPreservedMask", "(", "CallingConv", "::", "ID", ")", "const", "{", "if", "(", "Subtarget", ".", "isSingleFloat", "(", ")", ")", "return", "CSR_SingleFloatOnly_RegMask", ";", "if", "(", "Subtarget", ".", "isABI_N64", "(", ")", ")", "return", "CSR_N64_RegMask", ";", "if", "(", "Subtarget", ".", "isABI_N32", "(", ")", ")", "return", "CSR_N32_RegMask", ";", "if", "(", "Subtarget", ".", "isFP64bit", "(", ")", ")", "return", "CSR_O32_FP64_RegMask", ";", "if", "(", "Subtarget", ".", "isFPXX", "(", ")", ")", "return", "CSR_O32_FPXX_RegMask", ";", "return", "CSR_O32_RegMask", ";", "}", "</s>" ]
[ "Return", "a", "mask", "of", "call-preserved", "registers", "for", "the", "given", "calling", "convention", "on", "the", "current", "function", "." ]
[ "Mips", "Mips" ]
MipsRegisterInfo
getCallPreservedMask
Mips
CPU
LLVM
32,843
72
1
[]
[ "<s>", "static", "bool", "sparc_fixed_condition_code_regs", "(", "unsigned", "int", "*", "p1", ",", "unsigned", "int", "*", "p2", ")", "{", "*", "p1", "=", "SPARC_ICC_REG", ";", "*", "p2", "=", "SPARC_FCC_REG", ";", "return", "true", ";", "}", "</s>" ]
[ "Implement", "TARGET_FIXED_CONDITION_CODE_REGS", "." ]
[ "sparc" ]
sparc
sparc_fixed_condition_code_regs
sparc
CPU
GCC
32,844
29
1
[]
[ "<s>", "static", "bool", "rename_single_chain", "(", "du_head_p", "head", ",", "HARD_REG_SET", "*", "unavailable", ")", "{", "int", "best_new_reg", ";", "int", "n_uses", "=", "0", ";", "struct", "du_chain", "*", "tmp", ";", "int", "reg", "=", "head", "->", "regno", ";", "enum", "reg_class", "super_class", "=", "NO_REGS", ";", "if", "(", "head", "->", "cannot_rename", ")", "return", "false", ";", "if", "(", "fixed_regs", "[", "reg", "]", "||", "global_regs", "[", "reg", "]", "||", "(", "frame_pointer_needed", "&&", "reg", "==", "HARD_FRAME_POINTER_REGNUM", ")", ")", "return", "false", ";", "for", "(", "tmp", "=", "head", "->", "first", ";", "tmp", ";", "tmp", "=", "tmp", "->", "next_use", ")", "{", "if", "(", "DEBUG_INSN_P", "(", "tmp", "->", "insn", ")", ")", "continue", ";", "n_uses", "++", ";", "*", "unavailable", "|=", "~", "reg_class_contents", "[", "tmp", "->", "cl", "]", ";", "super_class", "=", "reg_class_superunion", "[", "(", "int", ")", "super_class", "]", "[", "(", "int", ")", "tmp", "->", "cl", "]", ";", "}", "if", "(", "n_uses", "<", "1", ")", "return", "false", ";", "best_new_reg", "=", "find_rename_reg", "(", "head", ",", "super_class", ",", "unavailable", ",", "reg", ",", "false", ")", ";", "if", "(", "dump_file", ")", "{", "fprintf", "(", "dump_file", ",", "\"Register %s in insn %d\"", ",", "reg_names", "[", "reg", "]", ",", "INSN_UID", "(", "head", "->", "first", "->", "insn", ")", ")", ";", "if", "(", "head", "->", "call_abis", ")", "fprintf", "(", "dump_file", ",", "\" crosses a call\"", ")", ";", "}", "if", "(", "best_new_reg", "==", "reg", ")", "{", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\"; no available better choice\\n\"", ")", ";", "return", "false", ";", "}", "if", "(", "regrename_do_replace", "(", "head", ",", "best_new_reg", ")", ")", "{", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\", renamed as %s\\n\"", ",", "reg_names", "[", "best_new_reg", "]", ")", ";", "df_set_regs_ever_live", "(", "best_new_reg", ",", "true", ")", ";", "}", "else", "{", "if", "(", "dump_file", ")", "fprintf", "(", "dump_file", ",", "\", renaming as %s failed\\n\"", ",", "reg_names", "[", "best_new_reg", "]", ")", ";", "return", "false", ";", "}", "return", "true", ";", "}", "</s>" ]
[ "Rename", "the", "register", "HEAD-", ">", "regno", "in", "all", "the", "insns", "in", "the", "chain", "HEAD", "to", "any", "register", "not", "in", "the", "set", "UNAVAILABLE", ".", "Adapted", "from", "rename_chains", "in", "regrename.c", "." ]
[ "aarch64", "0", "1", "\"Register %s in insn %d\"", "\" crosses a call\"", "\"; no available better choice\\n\"", "\", renamed as %s\\n\"", "\", renaming as %s failed\\n\"" ]
cortex-a57-fma-steering
rename_single_chain
aarch64
CPU
GCC
32,845
277
1
[]
[ "<s>", "bool", "AArch64InstrInfo", "::", "isGPRCopy", "(", "const", "MachineInstr", "&", "MI", ")", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "TargetOpcode", "::", "COPY", ":", "{", "unsigned", "DstReg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "return", "(", "AArch64", "::", "GPR32RegClass", ".", "contains", "(", "DstReg", ")", "||", "AArch64", "::", "GPR64RegClass", ".", "contains", "(", "DstReg", ")", ")", ";", "}", "case", "AArch64", "::", "ORRXrs", ":", "if", "(", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", "==", "AArch64", "::", "XZR", ")", "{", "assert", "(", "MI", ".", "getDesc", "(", ")", ".", "getNumOperands", "(", ")", "==", "4", "&&", "MI", ".", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", "==", "0", "&&", "\"invalid ORRrs operands\"", ")", ";", "return", "true", ";", "}", "break", ";", "case", "AArch64", "::", "ADDXri", ":", "if", "(", "MI", ".", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", "==", "0", ")", "{", "assert", "(", "MI", ".", "getDesc", "(", ")", ".", "getNumOperands", "(", ")", "==", "4", "&&", "MI", ".", "getOperand", "(", "3", ")", ".", "getImm", "(", ")", "==", "0", "&&", "\"invalid ADDXri operands\"", ")", ";", "return", "true", ";", "}", "break", ";", "}", "return", "false", ";", "}", "</s>" ]
[ "Does", "this", "instruction", "rename", "a", "GPR", "without", "modifying", "bits", "?" ]
[ "AArch64", "AArch64", "0", "AArch64::GPR32RegClass", "AArch64::GPR64RegClass", "AArch64::ORRXrs", "1", "AArch64::XZR", "4", "3", "0", "\"invalid ORRrs operands\"", "AArch64::ADDXri", "2", "0", "4", "3", "0", "\"invalid ADDXri operands\"" ]
AArch64InstrInfo (2)1
isGPRCopy
AArch64
CPU
LLVM
32,846
187
1
[]
[ "<s>", "AArch64Subtarget", "::", "AArch64Subtarget", "(", "const", "Triple", "&", "TT", ",", "const", "std", "::", "string", "&", "CPU", ",", "const", "std", "::", "string", "&", "FS", ",", "const", "TargetMachine", "&", "TM", ",", "bool", "LittleEndian", ")", ":", "AArch64GenSubtargetInfo", "(", "TT", ",", "CPU", ",", "FS", ")", ",", "ARMProcFamily", "(", "Others", ")", ",", "HasV8_1aOps", "(", "false", ")", ",", "HasFPARMv8", "(", "false", ")", ",", "HasNEON", "(", "false", ")", ",", "HasCrypto", "(", "false", ")", ",", "HasCRC", "(", "false", ")", ",", "HasPerfMon", "(", "false", ")", ",", "HasZeroCycleRegMove", "(", "false", ")", ",", "HasZeroCycleZeroing", "(", "false", ")", ",", "StrictAlign", "(", "false", ")", ",", "ReserveX18", "(", "false", ")", ",", "IsLittle", "(", "LittleEndian", ")", ",", "CPUString", "(", "CPU", ")", ",", "TargetTriple", "(", "TT", ")", ",", "FrameLowering", "(", ")", ",", "InstrInfo", "(", "initializeSubtargetDependencies", "(", "FS", ")", ")", ",", "TSInfo", "(", ")", ",", "TLInfo", "(", "TM", ",", "*", "this", ")", "{", "}", "</s>" ]
[ "This", "constructor", "initializes", "the", "data", "members", "to", "match", "that", "of", "the", "specified", "triple", "." ]
[ "AArch64", "AArch64", "AArch64", "AArch64" ]
AArch64Subtarget17
AArch64Subtarget
AArch64
CPU
LLVM
32,847
136
1
[]
[ "<s>", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{", "return", "FIXUPBW_DESC", ";", "}", "</s>" ]
[ "getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "." ]
[ "X86" ]
X86FixupBWInsts1
getPassName
X86
CPU
LLVM
32,848
13
1
[]
[ "<s>", "void", "AMDGPUAsmBackend", "::", "applyFixup", "(", "const", "MCFixup", "&", "Fixup", ",", "char", "*", "Data", ",", "unsigned", "DataSize", ",", "uint64_t", "Value", ",", "bool", "IsPCRel", ")", "const", "{", "switch", "(", "(", "unsigned", ")", "Fixup", ".", "getKind", "(", ")", ")", "{", "case", "AMDGPU", "::", "fixup_si_sopp_br", ":", "{", "int64_t", "BrImm", "=", "(", "(", "int64_t", ")", "Value", "-", "4", ")", "/", "4", ";", "if", "(", "!", "isInt", "<", "16", ">", "(", "BrImm", ")", ")", "report_fatal_error", "(", "\"branch size exceeds simm16\"", ")", ";", "uint16_t", "*", "Dst", "=", "(", "uint16_t", "*", ")", "(", "Data", "+", "Fixup", ".", "getOffset", "(", ")", ")", ";", "*", "Dst", "=", "BrImm", ";", "break", ";", "}", "case", "AMDGPU", "::", "fixup_si_rodata", ":", "{", "uint32_t", "*", "Dst", "=", "(", "uint32_t", "*", ")", "(", "Data", "+", "Fixup", ".", "getOffset", "(", ")", ")", ";", "*", "Dst", "=", "Value", "+", "4", ";", "break", ";", "}", "default", ":", "{", "unsigned", "NumBytes", "=", "getFixupKindNumBytes", "(", "Fixup", ".", "getKind", "(", ")", ")", ";", "if", "(", "!", "Value", ")", "return", ";", "MCFixupKindInfo", "Info", "=", "getFixupKindInfo", "(", "Fixup", ".", "getKind", "(", ")", ")", ";", "Value", "<<=", "Info", ".", "TargetOffset", ";", "unsigned", "Offset", "=", "Fixup", ".", "getOffset", "(", ")", ";", "assert", "(", "Offset", "+", "NumBytes", "<=", "DataSize", "&&", "\"Invalid fixup offset!\"", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "NumBytes", ";", "++", "i", ")", "Data", "[", "Offset", "+", "i", "]", "|=", "uint8_t", "(", "(", "Value", ">>", "(", "i", "*", "8", ")", ")", "&", "0xff", ")", ";", "}", "}", "}", "</s>" ]
[ "Apply", "the", "Value", "for", "given", "Fixup", "into", "the", "provided", "data", "fragment", ",", "at", "the", "offset", "specified", "by", "the", "fixup", "and", "following", "the", "fixup", "kind", "as", "appropriate", "." ]
[ "AMDGPU", "AMDGPU", "AMDGPU::fixup_si_sopp_br", "4", "4", "16", "\"branch size exceeds simm16\"", "AMDGPU::fixup_si_rodata", "4", "\"Invalid fixup offset!\"", "0", "8", "0xff" ]
AMDGPUAsmBackend29
applyFixup
AMDGPU
GPU
LLVM
32,849
232
1
[]
[ "<s>", "static", "unsigned", "int", "rs6000_parm_start", "(", "machine_mode", "mode", ",", "const_tree", "type", ",", "unsigned", "int", "nwords", ")", "{", "unsigned", "int", "align", ";", "align", "=", "rs6000_function_arg_boundary", "(", "mode", ",", "type", ")", "/", "PARM_BOUNDARY", "-", "1", ";", "return", "nwords", "+", "(", "-", "(", "rs6000_parm_offset", "(", ")", "+", "nwords", ")", "&", "align", ")", ";", "}", "</s>" ]
[ "For", "a", "function", "parm", "of", "MODE", "and", "TYPE", ",", "return", "the", "starting", "word", "in", "the", "parameter", "area", ".", "NWORDS", "of", "the", "parameter", "area", "are", "already", "used", "." ]
[ "rs6000", "1" ]
rs6000-call
rs6000_parm_start
rs6000
CPU
GCC
32,850
50
1
[]
[ "<s>", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "setPreservesCFG", "(", ")", ";", "AU", ".", "addRequired", "<", "DominatorTreeWrapperPass", ">", "(", ")", ";", "AU", ".", "addPreserved", "<", "DominatorTreeWrapperPass", ">", "(", ")", ";", "}", "</s>" ]
[ "getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "." ]
[ "AArch64" ]
AArch64PromoteConstant (2)
getAnalysisUsage
AArch64
CPU
LLVM
32,851
35
1
[]
[ "<s>", "static", "unsigned", "int", "aarch64_function_arg_alignment", "(", "machine_mode", "mode", ",", "const_tree", "type", ",", "bool", "*", "abi_break", ")", "{", "*", "abi_break", "=", "false", ";", "if", "(", "!", "type", ")", "return", "GET_MODE_ALIGNMENT", "(", "mode", ")", ";", "if", "(", "integer_zerop", "(", "TYPE_SIZE", "(", "type", ")", ")", ")", "return", "0", ";", "gcc_assert", "(", "TYPE_MODE", "(", "type", ")", "==", "mode", ")", ";", "if", "(", "!", "AGGREGATE_TYPE_P", "(", "type", ")", ")", "return", "TYPE_ALIGN", "(", "TYPE_MAIN_VARIANT", "(", "type", ")", ")", ";", "if", "(", "TREE_CODE", "(", "type", ")", "==", "ARRAY_TYPE", ")", "return", "TYPE_ALIGN", "(", "TREE_TYPE", "(", "type", ")", ")", ";", "unsigned", "int", "alignment", "=", "0", ";", "unsigned", "int", "bitfield_alignment", "=", "0", ";", "for", "(", "tree", "field", "=", "TYPE_FIELDS", "(", "type", ")", ";", "field", ";", "field", "=", "DECL_CHAIN", "(", "field", ")", ")", "if", "(", "TREE_CODE", "(", "field", ")", "==", "FIELD_DECL", ")", "{", "alignment", "=", "std", "::", "max", "(", "alignment", ",", "DECL_ALIGN", "(", "field", ")", ")", ";", "if", "(", "DECL_BIT_FIELD_TYPE", "(", "field", ")", ")", "bitfield_alignment", "=", "std", "::", "max", "(", "bitfield_alignment", ",", "TYPE_ALIGN", "(", "DECL_BIT_FIELD_TYPE", "(", "field", ")", ")", ")", ";", "}", "if", "(", "bitfield_alignment", ">", "alignment", ")", "{", "*", "abi_break", "=", "true", ";", "return", "bitfield_alignment", ";", "}", "return", "alignment", ";", "}", "</s>" ]
[ "Given", "MODE", "and", "TYPE", "of", "a", "function", "argument", ",", "return", "the", "alignment", "in", "bits", ".", "The", "idea", "is", "to", "suppress", "any", "stronger", "alignment", "requested", "by", "the", "user", "and", "opt", "for", "the", "natural", "alignment", "(", "specified", "in", "AAPCS64", "\\S", "4.1", ")", ".", "This", "is", "a", "helper", "function", "for", "local", "use", "only", "." ]
[ "aarch64", "0", "0", "0" ]
aarch64
aarch64_function_arg_alignment
aarch64
CPU
GCC
32,852
190
1
[]
[ "<s>", "bool", "AMDGPUPromoteAlloca", "::", "runOnFunction", "(", "Function", "&", "F", ")", "{", "FunctionType", "*", "FTy", "=", "F", ".", "getFunctionType", "(", ")", ";", "LocalMemAvailable", "=", "ST", ".", "getLocalMemorySize", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "FTy", "->", "getNumParams", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "Type", "*", "ParamTy", "=", "FTy", "->", "getParamType", "(", "i", ")", ";", "if", "(", "ParamTy", "->", "isPointerTy", "(", ")", "&&", "ParamTy", "->", "getPointerAddressSpace", "(", ")", "==", "AMDGPUAS", "::", "LOCAL_ADDRESS", ")", "{", "LocalMemAvailable", "=", "0", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Function has local memory argument. Promoting to \"", "\"local memory disabled.\\n\"", ")", ";", "break", ";", "}", "}", "if", "(", "LocalMemAvailable", ">", "0", ")", "{", "for", "(", "Module", "::", "global_iterator", "I", "=", "Mod", "->", "global_begin", "(", ")", ",", "E", "=", "Mod", "->", "global_end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "GlobalVariable", "*", "GV", "=", "I", ";", "PointerType", "*", "GVTy", "=", "GV", "->", "getType", "(", ")", ";", "if", "(", "GVTy", "->", "getAddressSpace", "(", ")", "!=", "AMDGPUAS", "::", "LOCAL_ADDRESS", ")", "continue", ";", "for", "(", "Value", "::", "use_iterator", "U", "=", "GV", "->", "use_begin", "(", ")", ",", "UE", "=", "GV", "->", "use_end", "(", ")", ";", "U", "!=", "UE", ";", "++", "U", ")", "{", "Instruction", "*", "Use", "=", "dyn_cast", "<", "Instruction", ">", "(", "*", "U", ")", ";", "if", "(", "!", "Use", ")", "continue", ";", "if", "(", "Use", "->", "getParent", "(", ")", "->", "getParent", "(", ")", "==", "&", "F", ")", "LocalMemAvailable", "-=", "Mod", "->", "getDataLayout", "(", ")", ".", "getTypeAllocSize", "(", "GVTy", "->", "getElementType", "(", ")", ")", ";", "}", "}", "}", "LocalMemAvailable", "=", "std", "::", "max", "(", "0", ",", "LocalMemAvailable", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "LocalMemAvailable", "<<", "\"bytes free in local memory.\\n\"", ")", ";", "visit", "(", "F", ")", ";", "return", "false", ";", "}", "</s>" ]
[ "runOnFunction", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "do", "the", "per-function", "processing", "of", "the", "pass", "." ]
[ "AMDGPU", "AMDGPU", "0", "AMDGPU", "0", "\"Function has local memory argument. Promoting to \"", "\"local memory disabled.\\n\"", "0", "AMDGPU", "0", "\"bytes free in local memory.\\n\"" ]
AMDGPUPromoteAlloca45
runOnFunction
AMDGPU
GPU
LLVM
32,853
280
1
[]
[ "<s>", "MVT", "getVectorIdxTy", "(", "const", "DataLayout", "&", "DL", ")", "const", "override", "{", "return", "MVT", "::", "getIntegerVT", "(", "32", ")", ";", "}", "</s>" ]
[ "Returns", "the", "type", "to", "be", "used", "for", "the", "index", "operand", "of", ":", "ISD", ":", ":INSERT_VECTOR_ELT", ",", "ISD", ":", ":EXTRACT_VECTOR_ELT", ",", "ISD", ":", ":INSERT_SUBVECTOR", ",", "and", "ISD", ":", ":EXTRACT_SUBVECTOR", "." ]
[ "SPIRV", "MVT::getIntegerVT", "32" ]
SPIRVISelLowering
getVectorIdxTy
SPIRV
Virtual ISA
LLVM
32,854
20
1
[]
[ "<s>", "void", "dump", "(", ")", "{", "dbgs", "(", ")", "<<", "\"X86ISelAddressMode \"", "<<", "this", "<<", "'\\n'", ";", "dbgs", "(", ")", "<<", "\"Base_Reg \"", ";", "if", "(", "Base_Reg", ".", "getNode", "(", ")", ")", "Base_Reg", ".", "getNode", "(", ")", "->", "dump", "(", ")", ";", "else", "dbgs", "(", ")", "<<", "\"nul\\n\"", ";", "if", "(", "BaseType", "==", "FrameIndexBase", ")", "dbgs", "(", ")", "<<", "\" Base.FrameIndex \"", "<<", "Base_FrameIndex", "<<", "'\\n'", ";", "dbgs", "(", ")", "<<", "\" Scale \"", "<<", "Scale", "<<", "'\\n'", "<<", "\"IndexReg \"", ";", "if", "(", "IndexReg", ".", "getNode", "(", ")", ")", "IndexReg", ".", "getNode", "(", ")", "->", "dump", "(", ")", ";", "else", "dbgs", "(", ")", "<<", "\"nul\\n\"", ";", "dbgs", "(", ")", "<<", "\" Disp \"", "<<", "Disp", "<<", "'\\n'", "<<", "\"GV \"", ";", "if", "(", "GV", ")", "GV", "->", "dump", "(", ")", ";", "else", "dbgs", "(", ")", "<<", "\"nul\"", ";", "dbgs", "(", ")", "<<", "\" CP \"", ";", "if", "(", "CP", ")", "CP", "->", "dump", "(", ")", ";", "else", "dbgs", "(", ")", "<<", "\"nul\"", ";", "dbgs", "(", ")", "<<", "'\\n'", "<<", "\"ES \"", ";", "if", "(", "ES", ")", "dbgs", "(", ")", "<<", "ES", ";", "else", "dbgs", "(", ")", "<<", "\"nul\"", ";", "dbgs", "(", ")", "<<", "\" MCSym \"", ";", "if", "(", "MCSym", ")", "dbgs", "(", ")", "<<", "MCSym", ";", "else", "dbgs", "(", ")", "<<", "\"nul\"", ";", "dbgs", "(", ")", "<<", "\" JT\"", "<<", "JT", "<<", "\" Align\"", "<<", "Align", "<<", "'\\n'", ";", "}", "</s>" ]
[ "Dump", "the", "plan", "to", "stderr", "(", "for", "debugging", ")", "." ]
[ "X86", "\"X86ISelAddressMode \"", "\"Base_Reg \"", "\"nul\\n\"", "\" Base.FrameIndex \"", "\" Scale \"", "\"IndexReg \"", "\"nul\\n\"", "\" Disp \"", "\"GV \"", "\"nul\"", "\" CP \"", "\"nul\"", "\"ES \"", "\"nul\"", "\" MCSym \"", "\"nul\"", "\" JT\"", "\" Align\"" ]
X86ISelDAGToDAG122
dump
X86
CPU
LLVM
32,855
214
1
[]
[ "<s>", "virtual", "MVT", "getShiftAmountTy", "(", "EVT", "LHSTy", ")", "const", "{", "return", "MVT", "::", "i32", ";", "}", "</s>" ]
[ "Returns", "the", "type", "for", "the", "shift", "amount", "of", "a", "shift", "opcode", "." ]
[ "rvex", "MVT::i32" ]
rvexISelLowering
getShiftAmountTy
rvex
VLIW
LLVM
32,856
15
1
[]
[ "<s>", "void", "OutgoingValueHandler", "::", "assignValueToReg", "(", "unsigned", "ValVReg", ",", "const", "CCValAssign", "&", "VA", ")", "{", "unsigned", "PhysReg", "=", "VA", ".", "getLocReg", "(", ")", ";", "unsigned", "ExtReg", "=", "extendRegister", "(", "ValVReg", ",", "VA", ")", ";", "MIRBuilder", ".", "buildCopy", "(", "PhysReg", ",", "ExtReg", ")", ";", "MIB", ".", "addUse", "(", "PhysReg", ",", "RegState", "::", "Implicit", ")", ";", "}", "</s>" ]
[ "The", "specified", "value", "has", "been", "assigned", "to", "a", "physical", "register", ",", "handle", "the", "appropriate", "COPY", "(", "either", "to", "or", "from", ")", "and", "mark", "any", "relevant", "uses/defines", "as", "needed", "." ]
[ "Mips" ]
MipsCallLowering1
assignValueToReg
Mips
CPU
LLVM
32,857
54
1
[]
[ "<s>", "void", "FISCAsmPrinter", "::", "EmitInstruction", "(", "const", "MachineInstr", "*", "MI", ")", "{", "MCInst", "TmpInst", ";", "MCInstLowering", ".", "Lower", "(", "MI", ",", "TmpInst", ")", ";", "EmitToStreamer", "(", "*", "OutStreamer", ",", "TmpInst", ")", ";", "}", "</s>" ]
[ "EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "." ]
[ "FISC", "FISC" ]
FISCAsmPrinter
EmitInstruction
FISC
CPU
LLVM
32,858
32
1
[]
[ "<s>", "static", "unsigned", "int", "loongarch_hard_regno_nregs", "(", "unsigned", "int", "regno", ",", "machine_mode", "mode", ")", "{", "if", "(", "FCC_REG_P", "(", "regno", ")", ")", "return", "(", "GET_MODE_SIZE", "(", "mode", ")", "+", "3", ")", "/", "4", ";", "if", "(", "FP_REG_P", "(", "regno", ")", ")", "return", "(", "GET_MODE_SIZE", "(", "mode", ")", "+", "UNITS_PER_FPREG", "-", "1", ")", "/", "UNITS_PER_FPREG", ";", "return", "(", "GET_MODE_SIZE", "(", "mode", ")", "+", "UNITS_PER_WORD", "-", "1", ")", "/", "UNITS_PER_WORD", ";", "}", "</s>" ]
[ "Implement", "TARGET_HARD_REGNO_NREGS", "." ]
[ "loongarch", "3", "4", "1", "1" ]
loongarch
loongarch_hard_regno_nregs
loongarch
CPU
GCC
32,859
68
1
[]
[ "<s>", "static", "bool", "rs6000_debug_secondary_memory_needed", "(", "machine_mode", "mode", ",", "reg_class_t", "from_class", ",", "reg_class_t", "to_class", ")", "{", "bool", "ret", "=", "rs6000_secondary_memory_needed", "(", "mode", ",", "from_class", ",", "to_class", ")", ";", "fprintf", "(", "stderr", ",", "\"rs6000_secondary_memory_needed, return: %s, from_class = %s, \"", "\"to_class = %s, mode = %s\\n\"", ",", "ret", "?", "\"true\"", ":", "\"false\"", ",", "reg_class_names", "[", "from_class", "]", ",", "reg_class_names", "[", "to_class", "]", ",", "GET_MODE_NAME", "(", "mode", ")", ")", ";", "return", "ret", ";", "}", "</s>" ]
[ "Debug", "version", "of", "rs6000_secondary_memory_needed", "." ]
[ "rs6000", "\"rs6000_secondary_memory_needed, return: %s, from_class = %s, \"", "\"to_class = %s, mode = %s\\n\"", "\"true\"", "\"false\"" ]
rs6000
rs6000_debug_secondary_memory_needed
rs6000
CPU
GCC
32,860
59
1
[]
[ "<s>", "SDValue", "PIC16TargetLowering", "::", "LowerFormalArguments", "(", "SDValue", "Chain", ",", "unsigned", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "DebugLoc", "dl", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "{", "unsigned", "NumArgVals", "=", "Ins", ".", "size", "(", ")", ";", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "const", "Function", "*", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "std", "::", "string", "FuncName", "=", "F", "->", "getName", "(", ")", ";", "ResetTmpOffsetMap", "(", ")", ";", "InitReservedFrameCount", "(", "F", ")", ";", "const", "char", "*", "tmpName", "=", "createESName", "(", "PAN", "::", "getArgsLabel", "(", "FuncName", ")", ")", ";", "SDValue", "ES", "=", "DAG", ".", "getTargetExternalSymbol", "(", "tmpName", ",", "MVT", "::", "i8", ")", ";", "SDVTList", "VTs", "=", "DAG", ".", "getVTList", "(", "MVT", "::", "i8", ",", "MVT", "::", "Other", ")", ";", "SDValue", "BS", "=", "DAG", ".", "getConstant", "(", "1", ",", "MVT", "::", "i8", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "NumArgVals", ";", "++", "i", ")", "{", "SDValue", "Offset", "=", "DAG", ".", "getConstant", "(", "i", ",", "MVT", "::", "i8", ")", ";", "SDValue", "PICLoad", "=", "DAG", ".", "getNode", "(", "PIC16ISD", "::", "PIC16LdArg", ",", "dl", ",", "VTs", ",", "Chain", ",", "ES", ",", "BS", ",", "Offset", ")", ";", "Chain", "=", "getChain", "(", "PICLoad", ")", ";", "InVals", ".", "push_back", "(", "PICLoad", ")", ";", "}", "return", "Chain", ";", "}", "</s>" ]
[ "This", "hook", "must", "be", "implemented", "to", "lower", "the", "incoming", "(", "formal", ")", "arguments", ",", "described", "by", "the", "Ins", "array", ",", "into", "the", "specified", "DAG", "." ]
[ "PIC16", "PIC16", "ISD::InputArg", "MVT::i8", "MVT::i8", "MVT::Other", "1", "MVT::i8", "0", "MVT::i8", "PIC16ISD::PIC16LdArg" ]
PIC16ISelLowering3
LowerFormalArguments
PIC16
MPU
LLVM
32,861
220
1
[]
[ "<s>", "static", "unsigned", "findDeadCallerSavedReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "&", "MBBI", ",", "const", "TargetRegisterInfo", "*", "TRI", ",", "bool", "Is64Bit", ")", "{", "const", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "const", "Function", "*", "F", "=", "MF", "->", "getFunction", "(", ")", ";", "if", "(", "!", "F", "||", "MF", "->", "getMMI", "(", ")", ".", "callsEHReturn", "(", ")", ")", "return", "0", ";", "static", "const", "uint16_t", "CallerSavedRegs32Bit", "[", "]", "=", "{", "X86", "::", "EAX", ",", "X86", "::", "EDX", ",", "X86", "::", "ECX", ",", "0", "}", ";", "static", "const", "uint16_t", "CallerSavedRegs64Bit", "[", "]", "=", "{", "X86", "::", "RAX", ",", "X86", "::", "RDX", ",", "X86", "::", "RCX", ",", "X86", "::", "RSI", ",", "X86", "::", "RDI", ",", "X86", "::", "R8", ",", "X86", "::", "R9", ",", "X86", "::", "R10", ",", "X86", "::", "R11", ",", "0", "}", ";", "unsigned", "Opc", "=", "MBBI", "->", "getOpcode", "(", ")", ";", "switch", "(", "Opc", ")", "{", "default", ":", "return", "0", ";", "case", "X86", "::", "RETL", ":", "case", "X86", "::", "RETQ", ":", "case", "X86", "::", "RETIL", ":", "case", "X86", "::", "RETIQ", ":", "case", "X86", "::", "TCRETURNdi", ":", "case", "X86", "::", "TCRETURNri", ":", "case", "X86", "::", "TCRETURNmi", ":", "case", "X86", "::", "TCRETURNdi64", ":", "case", "X86", "::", "TCRETURNri64", ":", "case", "X86", "::", "TCRETURNmi64", ":", "case", "X86", "::", "EH_RETURN", ":", "case", "X86", "::", "EH_RETURN64", ":", "{", "SmallSet", "<", "uint16_t", ",", "8", ">", "Uses", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "MBBI", "->", "getNumOperands", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "MachineOperand", "&", "MO", "=", "MBBI", "->", "getOperand", "(", "i", ")", ";", "if", "(", "!", "MO", ".", "isReg", "(", ")", "||", "MO", ".", "isDef", "(", ")", ")", "continue", ";", "unsigned", "Reg", "=", "MO", ".", "getReg", "(", ")", ";", "if", "(", "!", "Reg", ")", "continue", ";", "for", "(", "MCRegAliasIterator", "AI", "(", "Reg", ",", "TRI", ",", "true", ")", ";", "AI", ".", "isValid", "(", ")", ";", "++", "AI", ")", "Uses", ".", "insert", "(", "*", "AI", ")", ";", "}", "const", "uint16_t", "*", "CS", "=", "Is64Bit", "?", "CallerSavedRegs64Bit", ":", "CallerSavedRegs32Bit", ";", "for", "(", ";", "*", "CS", ";", "++", "CS", ")", "if", "(", "!", "Uses", ".", "count", "(", "*", "CS", ")", ")", "return", "*", "CS", ";", "}", "}", "return", "0", ";", "}", "</s>" ]
[ "findDeadCallerSavedReg", "-", "Return", "a", "caller-saved", "register", "that", "is", "n't", "live", "when", "it", "reaches", "the", "``", "return", "''", "instruction", "." ]
[ "X86", "0", "X86::EAX", "X86::EDX", "X86::ECX", "0", "X86::RAX", "X86::RDX", "X86::RCX", "X86::RSI", "X86::RDI", "X86::R8", "X86::R9", "X86::R10", "X86::R11", "0", "0", "X86::RETL", "X86::RETQ", "X86::RETIL", "X86::RETIQ", "X86::TCRETURNdi", "X86::TCRETURNri", "X86::TCRETURNmi", "X86::TCRETURNdi64", "X86::TCRETURNri64", "X86::TCRETURNmi64", "X86::EH_RETURN", "X86::EH_RETURN64", "8", "0", "0" ]
X86FrameLowering
findDeadCallerSavedReg
X86
CPU
LLVM
32,862
359
1
[]
[ "<s>", "void", "SIMCCodeEmitter", "::", "encodeInstruction", "(", "const", "MCInst", "&", "MI", ",", "raw_ostream", "&", "OS", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{", "verifyInstructionPredicates", "(", "MI", ",", "computeAvailableFeatures", "(", "STI", ".", "getFeatureBits", "(", ")", ")", ")", ";", "uint64_t", "Encoding", "=", "getBinaryCodeForInstr", "(", "MI", ",", "Fixups", ",", "STI", ")", ";", "const", "MCInstrDesc", "&", "Desc", "=", "MCII", ".", "get", "(", "MI", ".", "getOpcode", "(", ")", ")", ";", "unsigned", "bytes", "=", "Desc", ".", "getSize", "(", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "bytes", ";", "i", "++", ")", "{", "OS", ".", "write", "(", "(", "uint8_t", ")", "(", "(", "Encoding", ">>", "(", "8", "*", "i", ")", ")", "&", "0xff", ")", ")", ";", "}", "if", "(", "AMDGPU", "::", "isGFX10Plus", "(", "STI", ")", "&&", "Desc", ".", "TSFlags", "&", "SIInstrFlags", "::", "MIMG", ")", "{", "int", "vaddr0", "=", "AMDGPU", "::", "getNamedOperandIdx", "(", "MI", ".", "getOpcode", "(", ")", ",", "AMDGPU", "::", "OpName", "::", "vaddr0", ")", ";", "int", "srsrc", "=", "AMDGPU", "::", "getNamedOperandIdx", "(", "MI", ".", "getOpcode", "(", ")", ",", "AMDGPU", "::", "OpName", "::", "srsrc", ")", ";", "assert", "(", "vaddr0", ">=", "0", "&&", "srsrc", ">", "vaddr0", ")", ";", "unsigned", "NumExtraAddrs", "=", "srsrc", "-", "vaddr0", "-", "1", ";", "unsigned", "NumPadding", "=", "(", "-", "NumExtraAddrs", ")", "&", "3", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "NumExtraAddrs", ";", "++", "i", ")", "OS", ".", "write", "(", "(", "uint8_t", ")", "getMachineOpValue", "(", "MI", ",", "MI", ".", "getOperand", "(", "vaddr0", "+", "1", "+", "i", ")", ",", "Fixups", ",", "STI", ")", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "<", "NumPadding", ";", "++", "i", ")", "OS", ".", "write", "(", "0", ")", ";", "}", "if", "(", "(", "bytes", ">", "8", "&&", "STI", ".", "getFeatureBits", "(", ")", "[", "AMDGPU", "::", "FeatureVOP3Literal", "]", ")", "||", "(", "bytes", ">", "4", "&&", "!", "STI", ".", "getFeatureBits", "(", ")", "[", "AMDGPU", "::", "FeatureVOP3Literal", "]", ")", ")", "return", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "Desc", ".", "getNumOperands", "(", ")", ";", "i", "<", "e", ";", "++", "i", ")", "{", "if", "(", "!", "AMDGPU", "::", "isSISrcOperand", "(", "Desc", ",", "i", ")", ")", "continue", ";", "const", "MCOperand", "&", "Op", "=", "MI", ".", "getOperand", "(", "i", ")", ";", "if", "(", "getLitEncoding", "(", "Op", ",", "Desc", ".", "OpInfo", "[", "i", "]", ",", "STI", ")", "!=", "255", ")", "continue", ";", "int64_t", "Imm", "=", "0", ";", "if", "(", "Op", ".", "isImm", "(", ")", ")", "Imm", "=", "Op", ".", "getImm", "(", ")", ";", "else", "if", "(", "Op", ".", "isExpr", "(", ")", ")", "{", "if", "(", "const", "auto", "*", "C", "=", "dyn_cast", "<", "MCConstantExpr", ">", "(", "Op", ".", "getExpr", "(", ")", ")", ")", "Imm", "=", "C", "->", "getValue", "(", ")", ";", "}", "else", "if", "(", "!", "Op", ".", "isExpr", "(", ")", ")", "llvm_unreachable", "(", "\"Must be immediate or expr\"", ")", ";", "for", "(", "unsigned", "j", "=", "0", ";", "j", "<", "4", ";", "j", "++", ")", "{", "OS", ".", "write", "(", "(", "uint8_t", ")", "(", "(", "Imm", ">>", "(", "8", "*", "j", ")", ")", "&", "0xff", ")", ")", ";", "}", "break", ";", "}", "}", "</s>" ]
[ "Encode", "the", "given", "Inst", "to", "bytes", "and", "append", "to", "CB", "." ]
[ "AMDGPU", "SI", "0", "8", "0xff", "AMDGPU::isGFX10Plus", "SIInstrFlags::MIMG", "AMDGPU::getNamedOperandIdx", "AMDGPU::OpName", "AMDGPU::getNamedOperandIdx", "AMDGPU::OpName", "0", "1", "3", "0", "1", "0", "0", "8", "AMDGPU::FeatureVOP3Literal", "4", "AMDGPU::FeatureVOP3Literal", "0", "AMDGPU::isSISrcOperand", "255", "0", "\"Must be immediate or expr\"", "0", "4", "8", "0xff" ]
SIMCCodeEmitter16
encodeInstruction
AMDGPU
GPU
LLVM
32,863
493
1
[]
[ "<s>", "void", "Tile64InstrInfo", "::", "copyPhysReg", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "DebugLoc", "DL", ",", "unsigned", "DestReg", ",", "unsigned", "SrcReg", ",", "bool", "KillSrc", ")", "const", "{", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "T64", "::", "MOVE", ")", ",", "DestReg", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "KillSrc", ")", ")", ";", "}", "</s>" ]
[ "}", "Branch", "Analysis", "&", "Modification" ]
[ "Tile64", "T64::MOVE" ]
Tile64InstrInfo
copyPhysReg
Tile64
VLIW
LLVM
32,864
57
1
[]
[ "<s>", "bool", "RISCVAsmBackend", "::", "shouldForceRelocation", "(", "const", "MCAssembler", "&", "Asm", ",", "const", "MCFixup", "&", "Fixup", ",", "const", "MCValue", "&", "Target", ")", "{", "bool", "ShouldForce", "=", "false", ";", "switch", "(", "(", "unsigned", ")", "Fixup", ".", "getKind", "(", ")", ")", "{", "default", ":", "break", ";", "case", "RISCV", "::", "fixup_riscv_pcrel_lo12_i", ":", "case", "RISCV", "::", "fixup_riscv_pcrel_lo12_s", ":", "const", "MCFixup", "*", "T", "=", "cast", "<", "RISCVMCExpr", ">", "(", "Fixup", ".", "getValue", "(", ")", ")", "->", "getPCRelHiFixup", "(", ")", ";", "if", "(", "!", "T", ")", "{", "Asm", ".", "getContext", "(", ")", ".", "reportError", "(", "Fixup", ".", "getLoc", "(", ")", ",", "\"could not find corresponding %pcrel_hi\"", ")", ";", "return", "false", ";", "}", "switch", "(", "(", "unsigned", ")", "T", "->", "getKind", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unexpected fixup kind for pcrel_lo12\"", ")", ";", "break", ";", "case", "RISCV", "::", "fixup_riscv_pcrel_hi20", ":", "ShouldForce", "=", "T", "->", "getValue", "(", ")", "->", "findAssociatedFragment", "(", ")", "!=", "Fixup", ".", "getValue", "(", ")", "->", "findAssociatedFragment", "(", ")", ";", "break", ";", "}", "break", ";", "}", "return", "ShouldForce", "||", "STI", ".", "getFeatureBits", "(", ")", "[", "RISCV", "::", "FeatureRelax", "]", "||", "ForceRelocs", ";", "}", "</s>" ]
[ "Hook", "to", "check", "if", "a", "relocation", "is", "needed", "for", "some", "target", "specific", "reason", "." ]
[ "RISCV", "RISCV", "RISCV::fixup_riscv_pcrel_lo12_i", "RISCV::fixup_riscv_pcrel_lo12_s", "RISCV", "\"could not find corresponding %pcrel_hi\"", "\"Unexpected fixup kind for pcrel_lo12\"", "RISCV::fixup_riscv_pcrel_hi20", "RISCV::FeatureRelax" ]
RISCVAsmBackend
shouldForceRelocation
RISCV
CPU
LLVM
32,865
171
1
[]
[ "<s>", "VE", "::", "Fixups", "VEMCExpr", "::", "getFixupKind", "(", "VEMCExpr", "::", "VariantKind", "Kind", ")", "{", "switch", "(", "Kind", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unhandled VEMCExpr::VariantKind\"", ")", ";", "case", "VK_VE_HI32", ":", "return", "VE", "::", "fixup_ve_hi32", ";", "case", "VK_VE_LO32", ":", "return", "VE", "::", "fixup_ve_lo32", ";", "case", "VK_VE_PC_HI32", ":", "return", "VE", "::", "fixup_ve_pc_hi32", ";", "case", "VK_VE_PC_LO32", ":", "return", "VE", "::", "fixup_ve_pc_lo32", ";", "case", "VK_VE_GOT_HI32", ":", "return", "VE", "::", "fixup_ve_got_hi32", ";", "case", "VK_VE_GOT_LO32", ":", "return", "VE", "::", "fixup_ve_got_lo32", ";", "case", "VK_VE_GOTOFF_HI32", ":", "return", "VE", "::", "fixup_ve_gotoff_hi32", ";", "case", "VK_VE_GOTOFF_LO32", ":", "return", "VE", "::", "fixup_ve_gotoff_lo32", ";", "case", "VK_VE_PLT_HI32", ":", "return", "VE", "::", "fixup_ve_plt_hi32", ";", "case", "VK_VE_PLT_LO32", ":", "return", "VE", "::", "fixup_ve_plt_lo32", ";", "case", "VK_VE_TLS_GD_HI32", ":", "return", "VE", "::", "fixup_ve_tls_gd_hi32", ";", "case", "VK_VE_TLS_GD_LO32", ":", "return", "VE", "::", "fixup_ve_tls_gd_lo32", ";", "}", "}", "</s>" ]
[ "getFixupKind", "-", "Get", "the", "fixup", "kind", "of", "this", "expression", "." ]
[ "VE", "VE::Fixups", "VE", "VE", "\"Unhandled VEMCExpr::VariantKind\"", "VE", "VE::fixup_ve_hi32", "VE", "VE::fixup_ve_lo32", "VE", "VE::fixup_ve_pc_hi32", "VE", "VE::fixup_ve_pc_lo32", "VE", "VE::fixup_ve_got_hi32", "VE", "VE::fixup_ve_got_lo32", "VE", "VE::fixup_ve_gotoff_hi32", "VE", "VE::fixup_ve_gotoff_lo32", "VE", "VE::fixup_ve_plt_hi32", "VE", "VE::fixup_ve_plt_lo32", "VE", "VE::fixup_ve_tls_gd_hi32", "VE", "VE::fixup_ve_tls_gd_lo32" ]
VEMCExpr4
getFixupKind
VE
CPU
LLVM
32,866
123
1
[]
[ "<s>", "void", "HexagonMCELFStreamer", "::", "EmitInstruction", "(", "const", "MCInst", "&", "MCB", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "{", "assert", "(", "MCB", ".", "getOpcode", "(", ")", "==", "Hexagon", "::", "BUNDLE", ")", ";", "assert", "(", "HexagonMCInstrInfo", "::", "bundleSize", "(", "MCB", ")", "<=", "HEXAGON_PACKET_SIZE", ")", ";", "assert", "(", "HexagonMCInstrInfo", "::", "bundleSize", "(", "MCB", ")", ">", "0", ")", ";", "bool", "Extended", "=", "false", ";", "for", "(", "auto", "&", "I", ":", "HexagonMCInstrInfo", "::", "bundleInstructions", "(", "MCB", ")", ")", "{", "MCInst", "*", "MCI", "=", "const_cast", "<", "MCInst", "*", ">", "(", "I", ".", "getInst", "(", ")", ")", ";", "if", "(", "Extended", ")", "{", "if", "(", "HexagonMCInstrInfo", "::", "isDuplex", "(", "*", "MCII", ",", "*", "MCI", ")", ")", "{", "MCInst", "*", "SubInst", "=", "const_cast", "<", "MCInst", "*", ">", "(", "MCI", "->", "getOperand", "(", "1", ")", ".", "getInst", "(", ")", ")", ";", "HexagonMCInstrInfo", "::", "clampExtended", "(", "*", "MCII", ",", "getContext", "(", ")", ",", "*", "SubInst", ")", ";", "}", "else", "{", "HexagonMCInstrInfo", "::", "clampExtended", "(", "*", "MCII", ",", "getContext", "(", ")", ",", "*", "MCI", ")", ";", "}", "Extended", "=", "false", ";", "}", "else", "{", "Extended", "=", "HexagonMCInstrInfo", "::", "isImmext", "(", "*", "MCI", ")", ";", "}", "}", "for", "(", "auto", "const", "&", "I", ":", "HexagonMCInstrInfo", "::", "bundleInstructions", "(", "MCB", ")", ")", "{", "MCInst", "*", "MCI", "=", "const_cast", "<", "MCInst", "*", ">", "(", "I", ".", "getInst", "(", ")", ")", ";", "EmitSymbol", "(", "*", "MCI", ")", ";", "}", "MCObjectStreamer", "::", "EmitInstruction", "(", "MCB", ",", "STI", ")", ";", "}", "</s>" ]
[ "EmitInstruction", "-", "This", "callback", "is", "invoked", "when", "an", "instruction", "is", "emitted", ",", "to", "advance", "the", "hazard", "state", "." ]
[ "Hexagon", "Hexagon", "Hexagon::BUNDLE", "Hexagon", "Hexagon", "0", "Hexagon", "Hexagon", "1", "Hexagon", "Hexagon", "Hexagon", "Hexagon" ]
HexagonMCELFStreamer18
EmitInstruction
Hexagon
DSP
LLVM
32,867
232
1
[]
[ "<s>", "void", "d30v_expand_epilogue", "(", ")", "{", "rtx", "sp", "=", "stack_pointer_rtx", ";", "d30v_stack_t", "*", "info", "=", "d30v_stack_info", "(", ")", ";", "int", "i", ";", "rtx", "mem_di", "=", "NULL_RTX", ";", "rtx", "mem_si", "=", "NULL_RTX", ";", "rtx", "post_inc", ";", "int", "extra_stack", ";", "emit_insn", "(", "gen_blockage", "(", ")", ")", ";", "if", "(", "frame_pointer_needed", ")", "emit_move_insn", "(", "sp", ",", "frame_pointer_rtx", ")", ";", "if", "(", "info", "->", "save_offset", ")", "emit_insn", "(", "gen_addsi3", "(", "sp", ",", "sp", ",", "GEN_INT", "(", "info", "->", "save_offset", ")", ")", ")", ";", "post_inc", "=", "gen_rtx", "(", "POST_INC", ",", "Pmode", ",", "sp", ")", ";", "mem_di", "=", "gen_rtx", "(", "MEM", ",", "DImode", ",", "post_inc", ")", ";", "mem_si", "=", "gen_rtx", "(", "MEM", ",", "SImode", ",", "post_inc", ")", ";", "for", "(", "i", "=", "ACCUM_FIRST", ";", "i", "<=", "ACCUM_LAST", ";", "i", "++", ")", "if", "(", "info", "->", "save_p", "[", "i", "]", ")", "{", "rtx", "acc_tmp", "=", "gen_rtx", "(", "REG", ",", "DImode", ",", "GPR_ATMP_FIRST", ")", ";", "emit_insn", "(", "gen_movdi", "(", "acc_tmp", ",", "mem_di", ")", ")", ";", "emit_insn", "(", "gen_movdi", "(", "gen_rtx", "(", "REG", ",", "DImode", ",", "i", ")", ",", "acc_tmp", ")", ")", ";", "}", "for", "(", "i", "=", "GPR_FIRST", ";", "i", "<=", "GPR_LAST", ";", "i", "+=", "2", ")", "if", "(", "info", "->", "save_p", "[", "i", "]", "==", "2", ")", "emit_insn", "(", "gen_movdi", "(", "gen_rtx", "(", "REG", ",", "DImode", ",", "i", ")", ",", "mem_di", ")", ")", ";", "extra_stack", "=", "0", ";", "for", "(", "i", "=", "GPR_FIRST", ";", "i", "<=", "GPR_LAST", ";", "i", "++", ")", "if", "(", "info", "->", "save_p", "[", "i", "]", "==", "1", ")", "{", "if", "(", "cfun", "->", "machine", "->", "eh_epilogue_sp_ofs", "&&", "i", "==", "GPR_LINK", ")", "extra_stack", "=", "4", ";", "else", "{", "if", "(", "extra_stack", ")", "{", "emit_insn", "(", "gen_addsi3", "(", "sp", ",", "sp", ",", "GEN_INT", "(", "extra_stack", ")", ")", ")", ";", "extra_stack", "=", "0", ";", "}", "emit_insn", "(", "gen_movsi", "(", "gen_rtx", "(", "REG", ",", "SImode", ",", "i", ")", ",", "mem_si", ")", ")", ";", "}", "}", "if", "(", "(", "info", "->", "memrefs_1word", "&", "1", ")", "!=", "0", ")", "extra_stack", "+=", "UNITS_PER_WORD", ";", "extra_stack", "+=", "current_function_pretend_args_size", "+", "info", "->", "varargs_size", ";", "if", "(", "extra_stack", ")", "{", "if", "(", "cfun", "->", "machine", "->", "eh_epilogue_sp_ofs", ")", "emit_insn", "(", "gen_addsi3", "(", "cfun", "->", "machine", "->", "eh_epilogue_sp_ofs", ",", "cfun", "->", "machine", "->", "eh_epilogue_sp_ofs", ",", "GEN_INT", "(", "extra_stack", ")", ")", ")", ";", "else", "emit_insn", "(", "gen_addsi3", "(", "sp", ",", "sp", ",", "GEN_INT", "(", "extra_stack", ")", ")", ")", ";", "}", "if", "(", "cfun", "->", "machine", "->", "eh_epilogue_sp_ofs", ")", "emit_insn", "(", "gen_addsi3", "(", "sp", ",", "sp", ",", "cfun", "->", "machine", "->", "eh_epilogue_sp_ofs", ")", ")", ";", "emit_jump_insn", "(", "gen_rtx_RETURN", "(", "VOIDmode", ")", ")", ";", "}", "</s>" ]
[ "Called", "after", "register", "allocation", "to", "add", "any", "instructions", "needed", "for", "the", "epilogue", ".", "Using", "an", "epilogue", "insn", "is", "favored", "compared", "to", "putting", "all", "of", "the", "instructions", "in", "output_function_prologue", "(", ")", ",", "since", "it", "allows", "the", "scheduler", "to", "intermix", "instructions", "with", "the", "saves", "of", "the", "caller", "saved", "registers", ".", "In", "some", "cases", ",", "it", "might", "be", "necessary", "to", "emit", "a", "barrier", "instruction", "as", "the", "last", "insn", "to", "prevent", "such", "scheduling", "." ]
[ "d30v", "2", "2", "0", "1", "4", "0", "1", "0" ]
d30v
d30v_expand_epilogue
d30v
CPU
GCC
32,868
417
1
[]
[ "<s>", "bool", "X86PassConfig", "::", "addPreISel", "(", ")", "{", "const", "Triple", "&", "TT", "=", "TM", "->", "getTargetTriple", "(", ")", ";", "if", "(", "TT", ".", "isOSWindows", "(", ")", "&&", "TT", ".", "getArch", "(", ")", "==", "Triple", "::", "x86", ")", "addPass", "(", "createX86WinEHStatePass", "(", ")", ")", ";", "return", "true", ";", "}", "</s>" ]
[ "{", "{", "@", "For", "GlobalISel" ]
[ "X86", "X86", "X86" ]
X86TargetMachine10
addPreISel
X86
CPU
LLVM
32,869
47
1
[]
[ "<s>", "void", "Z80oldTargetObjectFile", "::", "Initialize", "(", "MCContext", "&", "Ctx", ",", "const", "TargetMachine", "&", "TM", ")", "{", "TargetLoweringObjectFileELF", "::", "Initialize", "(", "Ctx", ",", "TM", ")", ";", "InitializeELF", "(", "TM", ".", "Options", ".", "UseInitArray", ")", ";", "SmallDataSection", "=", "getContext", "(", ")", ".", "getELFSection", "(", "\".sdata\"", ",", "ELF", "::", "SHT_PROGBITS", ",", "ELF", "::", "SHF_WRITE", "|", "ELF", "::", "SHF_ALLOC", ")", ";", "SmallBSSSection", "=", "getContext", "(", ")", ".", "getELFSection", "(", "\".sbss\"", ",", "ELF", "::", "SHT_NOBITS", ",", "ELF", "::", "SHF_WRITE", "|", "ELF", "::", "SHF_ALLOC", ")", ";", "this", "->", "TM", "=", "&", "static_cast", "<", "const", "Z80oldTargetMachine", "&", ">", "(", "TM", ")", ";", "}", "</s>" ]
[ "This", "method", "must", "be", "called", "before", "any", "actual", "lowering", "is", "done", "." ]
[ "Z80old", "Z80old", "\".sdata\"", "\".sbss\"", "Z80old" ]
Z80oldTargetObjectFile
Initialize
Z80old
MPU
LLVM
32,870
95
1
[]
[ "<s>", "bool", "ARMAsmPrinter", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "AFI", "=", "MF", ".", "getInfo", "<", "ARMFunctionInfo", ">", "(", ")", ";", "MCP", "=", "MF", ".", "getConstantPool", "(", ")", ";", "SetupMachineFunction", "(", "MF", ")", ";", "if", "(", "Subtarget", "->", "isTargetCOFF", "(", ")", ")", "{", "bool", "Internal", "=", "MF", ".", "getFunction", "(", ")", "->", "hasInternalLinkage", "(", ")", ";", "COFF", "::", "SymbolStorageClass", "Scl", "=", "Internal", "?", "COFF", "::", "IMAGE_SYM_CLASS_STATIC", ":", "COFF", "::", "IMAGE_SYM_CLASS_EXTERNAL", ";", "int", "Type", "=", "COFF", "::", "IMAGE_SYM_DTYPE_FUNCTION", "<<", "COFF", "::", "SCT_COMPLEX_TYPE_SHIFT", ";", "OutStreamer", ".", "BeginCOFFSymbolDef", "(", "CurrentFnSym", ")", ";", "OutStreamer", ".", "EmitCOFFSymbolStorageClass", "(", "Scl", ")", ";", "OutStreamer", ".", "EmitCOFFSymbolType", "(", "Type", ")", ";", "OutStreamer", ".", "EndCOFFSymbolDef", "(", ")", ";", "}", "EmitFunctionHeader", "(", ")", ";", "EmitFunctionBody", "(", ")", ";", "if", "(", "!", "ThumbIndirectPads", ".", "empty", "(", ")", ")", "{", "OutStreamer", ".", "EmitAssemblerFlag", "(", "MCAF_Code16", ")", ";", "EmitAlignment", "(", "1", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "ThumbIndirectPads", ".", "size", "(", ")", ";", "i", "<", "e", ";", "i", "++", ")", "{", "OutStreamer", ".", "EmitLabel", "(", "ThumbIndirectPads", "[", "i", "]", ".", "second", ")", ";", "EmitToStreamer", "(", "OutStreamer", ",", "MCInstBuilder", "(", "ARM", "::", "tBX", ")", ".", "addReg", "(", "ThumbIndirectPads", "[", "i", "]", ".", "first", ")", ".", "addImm", "(", "ARMCC", "::", "AL", ")", ".", "addReg", "(", "0", ")", ")", ";", "}", "ThumbIndirectPads", ".", "clear", "(", ")", ";", "}", "return", "false", ";", "}", "</s>" ]
[ "runOnMachineFunction", "-", "Emit", "the", "function", "body", "." ]
[ "ARM", "ARM", "ARM", "1", "0", "ARM::tBX", "ARMCC::AL", "0" ]
ARMAsmPrinter30
runOnMachineFunction
ARM
CPU
LLVM
32,871
221
1
[]
[ "<s>", "static", "X86Operand", "*", "CreateMem", "(", "unsigned", "SegReg", ",", "const", "MCExpr", "*", "Disp", ",", "unsigned", "BaseReg", ",", "unsigned", "IndexReg", ",", "unsigned", "Scale", ",", "SMLoc", "StartLoc", ",", "SMLoc", "EndLoc", ",", "unsigned", "Size", "=", "0", ",", "StringRef", "SymName", "=", "StringRef", "(", ")", ",", "void", "*", "OpDecl", "=", "0", ")", "{", "assert", "(", "(", "SegReg", "||", "BaseReg", "||", "IndexReg", ")", "&&", "\"Invalid memory operand!\"", ")", ";", "assert", "(", "(", "(", "Scale", "==", "1", "||", "Scale", "==", "2", "||", "Scale", "==", "4", "||", "Scale", "==", "8", ")", ")", "&&", "\"Invalid scale!\"", ")", ";", "X86Operand", "*", "Res", "=", "new", "X86Operand", "(", "Memory", ",", "StartLoc", ",", "EndLoc", ")", ";", "Res", "->", "Mem", ".", "SegReg", "=", "SegReg", ";", "Res", "->", "Mem", ".", "Disp", "=", "Disp", ";", "Res", "->", "Mem", ".", "BaseReg", "=", "BaseReg", ";", "Res", "->", "Mem", ".", "IndexReg", "=", "IndexReg", ";", "Res", "->", "Mem", ".", "Scale", "=", "Scale", ";", "Res", "->", "Mem", ".", "Size", "=", "Size", ";", "Res", "->", "SymName", "=", "SymName", ";", "Res", "->", "OpDecl", "=", "OpDecl", ";", "Res", "->", "AddressOf", "=", "false", ";", "return", "Res", ";", "}", "</s>" ]
[ "Create", "a", "generalized", "memory", "operand", "." ]
[ "X86", "X86", "0", "0", "\"Invalid memory operand!\"", "1", "2", "4", "8", "\"Invalid scale!\"", "X86", "X86" ]
X86AsmParser (2)2
CreateMem
X86
CPU
LLVM
32,872
169
1
[]
[ "<s>", "rtx", "aarch64_endian_lane_rtx", "(", "machine_mode", "mode", ",", "unsigned", "int", "n", ")", "{", "return", "gen_int_mode", "(", "ENDIAN_LANE_N", "(", "GET_MODE_NUNITS", "(", "mode", ")", ",", "n", ")", ",", "SImode", ")", ";", "}", "</s>" ]
[ "Peform", "endian", "correction", "on", "lane", "number", "N", ",", "which", "indexes", "a", "vector", "of", "mode", "MODE", ",", "and", "return", "the", "result", "as", "an", "SImode", "rtx", "." ]
[ "aarch64" ]
aarch64
aarch64_endian_lane_rtx
aarch64
CPU
GCC
32,873
28
1
[]
[ "<s>", "bool", "X86InstrInfo", "::", "isCopyInstr", "(", "const", "MachineInstr", "&", "MI", ",", "MachineOperand", "&", "Src", ",", "MachineOperand", "&", "Dest", ")", "const", "{", "if", "(", "MI", ".", "isMoveReg", "(", ")", ")", "{", "Dest", "=", "MI", ".", "getOperand", "(", "0", ")", ";", "Src", "=", "MI", ".", "getOperand", "(", "1", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", "</s>" ]
[ "If", "the", "specific", "machine", "instruction", "is", "a", "instruction", "that", "moves/copies", "value", "from", "one", "register", "to", "another", "register", "return", "destination", "and", "source", "registers", "as", "machine", "operands", "." ]
[ "X86", "X86", "0", "1" ]
X86InstrInfo42
isCopyInstr
X86
CPU
LLVM
32,874
55
1
[]
[ "<s>", "unsigned", "SparcRegisterInfo", "::", "getFrameRegister", "(", "MachineFunction", "&", "MF", ")", "const", "{", "llvm_unreachable", "(", "\"What is the frame register\"", ")", ";", "return", "SP", "::", "G1", ";", "}", "</s>" ]
[ "Debug", "information", "queries", "." ]
[ "Sparc", "Sparc", "\"What is the frame register\"", "SP::G1" ]
SparcRegisterInfo8
getFrameRegister
Sparc
CPU
LLVM
32,875
22
1
[]
[ "<s>", "MCSection", "*", "getExplicitSectionGlobal", "(", "const", "GlobalObject", "*", "GO", ",", "SectionKind", "Kind", ",", "const", "TargetMachine", "&", "TM", ")", "const", "override", "{", "return", "DataSection", ";", "}", "</s>" ]
[ "Targets", "should", "implement", "this", "method", "to", "assign", "a", "section", "to", "globals", "with", "an", "explicit", "section", "specfied", "." ]
[ "TGSI" ]
TGSITargetObjectFile
getExplicitSectionGlobal
TGSI
Virtual ISA
LLVM
32,876
24
1
[]
[ "<s>", "bool", "X86RegisterInfo", "::", "hasReservedCallFrame", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "return", "!", "MF", ".", "getFrameInfo", "(", ")", "->", "hasVarSizedObjects", "(", ")", ";", "}", "</s>" ]
[ "hasReservedCallFrame", "-", "Under", "normal", "circumstances", ",", "when", "a", "frame", "pointer", "is", "not", "required", ",", "we", "reserve", "argument", "space", "for", "call", "sites", "in", "the", "function", "immediately", "on", "entry", "to", "the", "current", "function", "." ]
[ "X86", "X86" ]
X86RegisterInfo31
hasReservedCallFrame
X86
CPU
LLVM
32,877
25
1
[]
[ "<s>", "bool", "HexagonInstrInfo", "::", "isPostIncrement", "(", "const", "MachineInstr", "*", "MI", ")", "const", "{", "return", "getAddrMode", "(", "MI", ")", "==", "HexagonII", "::", "PostInc", ";", "}", "</s>" ]
[ "Return", "true", "for", "post-incremented", "instructions", "." ]
[ "Hexagon", "Hexagon", "HexagonII::PostInc" ]
HexagonInstrInfo (2)
isPostIncrement
Hexagon
DSP
LLVM
32,878
23
1
[]
[ "<s>", "class", "LLVM_LIBRARY_VISIBILITY", "SystemZMCInstLower", "{", "Mangler", "*", "Mang", ";", "MCContext", "&", "Ctx", ";", "SystemZAsmPrinter", "&", "AsmPrinter", ";", "public", ":", "SystemZMCInstLower", "(", "Mangler", "*", "mang", ",", "MCContext", "&", "ctx", ",", "SystemZAsmPrinter", "&", "asmPrinter", ")", ";", "void", "lower", "(", "const", "MachineInstr", "*", "MI", ",", "MCInst", "&", "OutMI", ")", "const", ";", "MCOperand", "lowerOperand", "(", "const", "MachineOperand", "&", "MO", ")", "const", ";", "const", "MCExpr", "*", "getExpr", "(", "const", "MachineOperand", "&", "MO", ",", "MCSymbolRefExpr", "::", "VariantKind", "Kind", ")", "const", ";", "}", "</s>" ]
[ "Implementation", "of", "the", "SCEVPredicate", "interface", "." ]
[ "SystemZ", "SystemZ", "SystemZ", "SystemZ", "SystemZ" ]
SystemZMCInstLower11
getExpr
SystemZ
CPU
LLVM
32,879
75
1
[]
[ "<s>", "SDValue", "XCoreTargetLowering", "::", "LowerOperation", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "case", "ISD", "::", "GlobalAddress", ":", "return", "LowerGlobalAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "GlobalTLSAddress", ":", "return", "LowerGlobalTLSAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "BlockAddress", ":", "return", "LowerBlockAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "ConstantPool", ":", "return", "LowerConstantPool", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "BR_JT", ":", "return", "LowerBR_JT", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "LOAD", ":", "return", "LowerLOAD", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "STORE", ":", "return", "LowerSTORE", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SELECT_CC", ":", "return", "LowerSELECT_CC", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "VAARG", ":", "return", "LowerVAARG", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "VASTART", ":", "return", "LowerVASTART", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "SMUL_LOHI", ":", "return", "LowerSMUL_LOHI", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "UMUL_LOHI", ":", "return", "LowerUMUL_LOHI", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "ADD", ":", "case", "ISD", "::", "SUB", ":", "return", "ExpandADDSUB", "(", "Op", ".", "getNode", "(", ")", ",", "DAG", ")", ";", "case", "ISD", "::", "FRAMEADDR", ":", "return", "LowerFRAMEADDR", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "TRAMPOLINE", ":", "return", "LowerTRAMPOLINE", "(", "Op", ",", "DAG", ")", ";", "default", ":", "llvm_unreachable", "(", "\"unimplemented operand\"", ")", ";", "return", "SDValue", "(", ")", ";", "}", "}", "</s>" ]
[ "LowerOperation", "-", "Provide", "custom", "lowering", "hooks", "for", "some", "operations", "." ]
[ "XCore", "XCore", "ISD::GlobalAddress", "ISD::GlobalTLSAddress", "ISD::BlockAddress", "ISD::ConstantPool", "ISD::BR_JT", "ISD::LOAD", "ISD::STORE", "ISD::SELECT_CC", "ISD::VAARG", "ISD::VASTART", "ISD::SMUL_LOHI", "ISD::UMUL_LOHI", "ISD::ADD", "ISD::SUB", "ISD::FRAMEADDR", "ISD::TRAMPOLINE", "\"unimplemented operand\"" ]
XCoreISelLowering60
LowerOperation
XCore
MPU
LLVM
32,880
241
1
[]
[ "<s>", "unsigned", "AArch64InstrInfo", "::", "isLoadFromStackSlot", "(", "const", "MachineInstr", "*", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "AArch64", "::", "LDRWui", ":", "case", "AArch64", "::", "LDRXui", ":", "case", "AArch64", "::", "LDRBui", ":", "case", "AArch64", "::", "LDRHui", ":", "case", "AArch64", "::", "LDRSui", ":", "case", "AArch64", "::", "LDRDui", ":", "case", "AArch64", "::", "LDRQui", ":", "if", "(", "MI", "->", "getOperand", "(", "0", ")", ".", "getSubReg", "(", ")", "==", "0", "&&", "MI", "->", "getOperand", "(", "1", ")", ".", "isFI", "(", ")", "&&", "MI", "->", "getOperand", "(", "2", ")", ".", "isImm", "(", ")", "&&", "MI", "->", "getOperand", "(", "2", ")", ".", "getImm", "(", ")", "==", "0", ")", "{", "FrameIndex", "=", "MI", "->", "getOperand", "(", "1", ")", ".", "getIndex", "(", ")", ";", "return", "MI", "->", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "}", "break", ";", "}", "return", "0", ";", "}", "</s>" ]
[ "isLoadFromStackSlot", "-", "If", "the", "specified", "machine", "instruction", "is", "a", "direct", "load", "from", "a", "stack", "slot", ",", "return", "the", "virtual", "or", "physical", "register", "number", "of", "the", "destination", "along", "with", "the", "FrameIndex", "of", "the", "loaded", "stack", "slot", "." ]
[ "AArch64", "AArch64", "AArch64::LDRWui", "AArch64::LDRXui", "AArch64::LDRBui", "AArch64::LDRHui", "AArch64::LDRSui", "AArch64::LDRDui", "AArch64::LDRQui", "0", "0", "1", "2", "2", "0", "1", "0", "0" ]
AArch64InstrInfo1
isLoadFromStackSlot
AArch64
CPU
LLVM
32,881
148
1
[]
[ "<s>", "machine_mode", "aarch64_hard_regno_caller_save_mode", "(", "unsigned", "regno", ",", "unsigned", ",", "machine_mode", "mode", ")", "{", "if", "(", "PR_REGNUM_P", "(", "regno", ")", ")", "return", "mode", ";", "if", "(", "known_ge", "(", "GET_MODE_SIZE", "(", "mode", ")", ",", "4", ")", ")", "return", "mode", ";", "else", "return", "SImode", ";", "}", "</s>" ]
[ "Implement", "HARD_REGNO_CALLER_SAVE_MODE", "." ]
[ "aarch64", "4" ]
aarch64
aarch64_hard_regno_caller_save_mode
aarch64
CPU
GCC
32,882
42
1
[]
[ "<s>", "virtual", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "{", "AU", ".", "setPreservesAll", "(", ")", ";", "MachineFunctionPass", "::", "getAnalysisUsage", "(", "AU", ")", ";", "}", "</s>" ]
[ "getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "." ]
[ "X86" ]
SSEDomainFix
getAnalysisUsage
X86
CPU
LLVM
32,883
24
1
[]
[ "<s>", "void", "OR1KFrameLowering", "::", "determineFrameLayout", "(", "MachineFunction", "&", "MF", ")", "const", "{", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "TargetRegisterInfo", "*", "TRI", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "unsigned", "FrameSize", "=", "MFI", "->", "getStackSize", "(", ")", ";", "unsigned", "StackAlign", "=", "TRI", "->", "needsStackRealignment", "(", "MF", ")", "?", "MFI", "->", "getMaxAlignment", "(", ")", ":", "MF", ".", "getSubtarget", "(", ")", ".", "getFrameLowering", "(", ")", "->", "getStackAlignment", "(", ")", ";", "unsigned", "maxCallFrameSize", "=", "MFI", "->", "getMaxCallFrameSize", "(", ")", ";", "if", "(", "MFI", "->", "hasVarSizedObjects", "(", ")", ")", "maxCallFrameSize", "=", "alignTo", "(", "maxCallFrameSize", ",", "StackAlign", ")", ";", "MFI", "->", "setMaxCallFrameSize", "(", "maxCallFrameSize", ")", ";", "if", "(", "!", "(", "hasReservedCallFrame", "(", "MF", ")", "&&", "MFI", "->", "adjustsStack", "(", ")", ")", ")", "FrameSize", "+=", "maxCallFrameSize", ";", "FrameSize", "=", "alignTo", "(", "FrameSize", ",", "StackAlign", ")", ";", "MFI", "->", "setStackSize", "(", "FrameSize", ")", ";", "}", "</s>" ]
[ "Determine", "the", "frame", "layout", "but", "do", "not", "update", "the", "machine", "function", "." ]
[ "OR1K", "OR1K" ]
OR1KFrameLowering1
determineFrameLayout
OR1K
CPU
LLVM
32,884
145
1
[]
[ "<s>", "unsigned", "getReg", "(", ")", "const", "override", "{", "assert", "(", "Kind", "==", "KindReg", "&&", "\"Not a register\"", ")", ";", "return", "Reg", ".", "Num", ";", "}", "</s>" ]
[ "Returns", "the", "register", "associated", "with", "this", "edge", "." ]
[ "SystemZ", "\"Not a register\"" ]
SystemZAsmParser (2)
getReg
SystemZ
CPU
LLVM
32,885
22
1
[]
[ "<s>", "EVT", "ARMTargetLowering", "::", "getSetCCResultType", "(", "const", "DataLayout", "&", "DL", ",", "LLVMContext", "&", ",", "EVT", "VT", ")", "const", "{", "if", "(", "!", "VT", ".", "isVector", "(", ")", ")", "return", "getPointerTy", "(", "DL", ")", ";", "return", "VT", ".", "changeVectorElementTypeToInteger", "(", ")", ";", "}", "</s>" ]
[ "Return", "the", "value", "type", "to", "use", "for", "ISD", ":", ":SETCC", "." ]
[ "ARM", "ARM" ]
ARMISelLowering (2)2
getSetCCResultType
ARM
CPU
LLVM
32,886
41
1
[]
[ "<s>", "static", "rtx", "xtensa_libcall_value", "(", "machine_mode", "mode", ",", "const_rtx", "fun", "ATTRIBUTE_UNUSED", ")", "{", "return", "gen_rtx_REG", "(", "(", "GET_MODE_CLASS", "(", "mode", ")", "==", "MODE_INT", "&&", "GET_MODE_SIZE", "(", "mode", ")", "<", "UNITS_PER_WORD", ")", "?", "SImode", ":", "mode", ",", "GP_RETURN", ")", ";", "}", "</s>" ]
[ "Worker", "function", "for", "TARGET_LIBCALL_VALUE", "." ]
[ "xtensa" ]
xtensa
xtensa_libcall_value
xtensa
MPU
GCC
32,887
39
1
[]
[ "<s>", "static", "bool", "nds32_plus_reg_load_store_p", "(", "rtx_insn", "*", "insn", ")", "{", "rtx", "mem_src", "=", "NULL_RTX", ";", "switch", "(", "get_attr_type", "(", "insn", ")", ")", "{", "case", "TYPE_LOAD", ":", "mem_src", "=", "SET_SRC", "(", "PATTERN", "(", "insn", ")", ")", ";", "break", ";", "case", "TYPE_STORE", ":", "mem_src", "=", "SET_DEST", "(", "PATTERN", "(", "insn", ")", ")", ";", "break", ";", "default", ":", "break", ";", "}", "if", "(", "mem_src", "!=", "NULL_RTX", ")", "{", "if", "(", "(", "GET_CODE", "(", "mem_src", ")", "==", "ZERO_EXTEND", ")", "||", "(", "GET_CODE", "(", "mem_src", ")", "==", "SIGN_EXTEND", ")", ")", "mem_src", "=", "XEXP", "(", "mem_src", ",", "0", ")", ";", "if", "(", "(", "GET_CODE", "(", "XEXP", "(", "mem_src", ",", "0", ")", ")", "==", "PLUS", ")", ")", "mem_src", "=", "XEXP", "(", "mem_src", ",", "0", ")", ";", "else", "return", "false", ";", "if", "(", "GET_CODE", "(", "XEXP", "(", "mem_src", ",", "0", ")", ")", "==", "REG", ")", "return", "true", ";", "}", "return", "false", ";", "}", "</s>" ]
[ "Return", "true", "if", "is", "load", "with", "[", "REG", "+", "REG/CONST_INT", "]", "addressing", "mode", "." ]
[ "nds32", "0", "0", "0", "0" ]
nds32-relax-opt
nds32_plus_reg_load_store_p
nds32
CPU
GCC
32,888
144
1
[]
[ "<s>", "static", "int", "uses_arg_area_p", "(", ")", "{", "register", "tree", "parm", ";", "if", "(", "current_function_decl", "==", "0", "||", "current_function_varargs", "||", "variable_args_p", ")", "return", "1", ";", "for", "(", "parm", "=", "DECL_ARGUMENTS", "(", "current_function_decl", ")", ";", "parm", ";", "parm", "=", "TREE_CHAIN", "(", "parm", ")", ")", "{", "if", "(", "DECL_RTL", "(", "parm", ")", "==", "0", "||", "GET_CODE", "(", "DECL_RTL", "(", "parm", ")", ")", "==", "MEM", ")", "return", "1", ";", "if", "(", "DECL_INCOMING_RTL", "(", "parm", ")", "==", "0", "||", "GET_CODE", "(", "DECL_INCOMING_RTL", "(", "parm", ")", ")", "==", "MEM", ")", "return", "1", ";", "}", "return", "0", ";", "}", "</s>" ]
[ "Determine", "if", "the", "current", "function", "has", "any", "references", "to", "the", "arg", "pointer", ".", "This", "is", "done", "indirectly", "by", "examining", "the", "DECL_ARGUMENTS", "'", "DECL_RTL", ".", "It", "is", "OK", "to", "return", "TRUE", "if", "there", "are", "no", "references", ",", "but", "FALSE", "must", "be", "correct", "." ]
[ "m88k", "0", "1", "0", "1", "0", "1", "0" ]
m88k
uses_arg_area_p
m88k
MPU
GCC
32,889
91
1
[]
[ "<s>", "MachineInstr", "*", "AMDGPUInstrInfo", "::", "convertToThreeAddress", "(", "MachineFunction", "::", "iterator", "&", "MFI", ",", "MachineBasicBlock", "::", "iterator", "&", "MBBI", ",", "LiveVariables", "*", "LV", ")", "const", "{", "return", "nullptr", ";", "}", "</s>" ]
[ "convertToThreeAddress", "-", "This", "method", "must", "be", "implemented", "by", "targets", "that", "set", "the", "M_CONVERTIBLE_TO_3_ADDR", "flag", "." ]
[ "R600" ]
AMDGPUInstrInfo16
convertToThreeAddress
R600
GPU
LLVM
32,890
28
1
[]
[ "<s>", "void", "msp430_expand_helper", "(", "rtx", "*", "operands", ",", "const", "char", "*", "helper_name", ",", "bool", "const_variants", ")", "{", "rtx", "c", ",", "f", ";", "char", "*", "helper_const", "=", "NULL", ";", "int", "arg2", "=", "13", ";", "int", "arg1sz", "=", "1", ";", "machine_mode", "arg0mode", "=", "GET_MODE", "(", "operands", "[", "0", "]", ")", ";", "machine_mode", "arg1mode", "=", "GET_MODE", "(", "operands", "[", "1", "]", ")", ";", "machine_mode", "arg2mode", "=", "GET_MODE", "(", "operands", "[", "2", "]", ")", ";", "int", "have_430x", "=", "msp430x", "?", "1", ":", "0", ";", "if", "(", "CONST_INT_P", "(", "operands", "[", "2", "]", ")", ")", "{", "int", "i", ";", "for", "(", "i", "=", "0", ";", "const_shift_helpers", "[", "i", "]", ".", "name", ";", "i", "++", ")", "{", "if", "(", "const_shift_helpers", "[", "i", "]", ".", "need_430x", "<=", "have_430x", "&&", "strcmp", "(", "helper_name", ",", "const_shift_helpers", "[", "i", "]", ".", "name", ")", "==", "0", "&&", "INTVAL", "(", "operands", "[", "2", "]", ")", "==", "const_shift_helpers", "[", "i", "]", ".", "count", ")", "{", "emit_insn", "(", "const_shift_helpers", "[", "i", "]", ".", "genfunc", "(", "operands", "[", "0", "]", ",", "operands", "[", "1", "]", ")", ")", ";", "return", ";", "}", "}", "}", "if", "(", "arg1mode", "==", "VOIDmode", ")", "arg1mode", "=", "arg0mode", ";", "if", "(", "arg2mode", "==", "VOIDmode", ")", "arg2mode", "=", "arg0mode", ";", "if", "(", "arg1mode", "==", "SImode", ")", "{", "arg2", "=", "14", ";", "arg1sz", "=", "2", ";", "}", "if", "(", "const_variants", "&&", "CONST_INT_P", "(", "operands", "[", "2", "]", ")", "&&", "INTVAL", "(", "operands", "[", "2", "]", ")", ">=", "1", "&&", "INTVAL", "(", "operands", "[", "2", "]", ")", "<=", "15", ")", "{", "int", "len", "=", "strlen", "(", "helper_name", ")", "+", "4", ";", "helper_const", "=", "(", "char", "*", ")", "xmalloc", "(", "len", ")", ";", "snprintf", "(", "helper_const", ",", "len", ",", "\"%s_%d\"", ",", "helper_name", ",", "(", "int", ")", "INTVAL", "(", "operands", "[", "2", "]", ")", ")", ";", "}", "emit_move_insn", "(", "gen_rtx_REG", "(", "arg1mode", ",", "12", ")", ",", "operands", "[", "1", "]", ")", ";", "if", "(", "!", "helper_const", ")", "emit_move_insn", "(", "gen_rtx_REG", "(", "arg2mode", ",", "arg2", ")", ",", "operands", "[", "2", "]", ")", ";", "c", "=", "gen_call_value_internal", "(", "gen_rtx_REG", "(", "arg0mode", ",", "12", ")", ",", "gen_rtx_SYMBOL_REF", "(", "VOIDmode", ",", "helper_const", "?", "helper_const", ":", "helper_name", ")", ",", "GEN_INT", "(", "0", ")", ")", ";", "c", "=", "emit_call_insn", "(", "c", ")", ";", "RTL_CONST_CALL_P", "(", "c", ")", "=", "1", ";", "f", "=", "0", ";", "use_regs", "(", "&", "f", ",", "12", ",", "arg1sz", ")", ";", "if", "(", "!", "helper_const", ")", "use_regs", "(", "&", "f", ",", "arg2", ",", "1", ")", ";", "add_function_usage_to", "(", "c", ",", "f", ")", ";", "emit_move_insn", "(", "operands", "[", "0", "]", ",", "gen_rtx_REG", "(", "arg0mode", ",", "12", ")", ")", ";", "}", "</s>" ]
[ "The", "MSP430", "ABI", "defines", "a", "number", "of", "helper", "functions", "that", "should", "be", "used", "for", ",", "for", "example", ",", "32-bit", "shifts", ".", "This", "function", "is", "called", "to", "emit", "such", "a", "function", ",", "using", "the", "table", "above", "to", "optimize", "some", "cases", "." ]
[ "msp430", "13", "1", "0", "1", "2", "1", "0", "2", "0", "0", "2", "0", "1", "14", "2", "2", "2", "1", "2", "15", "4", "\"%s_%d\"", "2", "12", "1", "2", "12", "0", "1", "0", "12", "1", "0", "12" ]
msp4302
msp430_expand_helper
msp430
MPU
GCC
32,891
419
1
[]
[ "<s>", "void", "addExpr", "(", "MCInst", "&", "Inst", ",", "const", "MCExpr", "*", "Expr", ")", "const", "{", "if", "(", "!", "Expr", ")", "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", "." ]
[ "AArch64", "0" ]
AArch64AsmParser (2)2
addExpr
AArch64
CPU
LLVM
32,892
77
1
[]
[ "<s>", "bool", "RISCVFrameLowering", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetRegisterInfo", "*", "RegInfo", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "auto", "*", "RVFI", "=", "MF", ".", "getInfo", "<", "RISCVMachineFunctionInfo", ">", "(", ")", ";", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "return", "MF", ".", "getTarget", "(", ")", ".", "Options", ".", "DisableFramePointerElim", "(", "MF", ")", "||", "RegInfo", "->", "needsStackRealignment", "(", "MF", ")", "||", "MFI", ".", "hasVarSizedObjects", "(", ")", "||", "MFI", ".", "isFrameAddressTaken", "(", ")", "||", "RVFI", "->", "hasSpillVRs", "(", ")", ";", "}", "</s>" ]
[ "hasFP", "-", "Return", "true", "if", "the", "specified", "function", "should", "have", "a", "dedicated", "frame", "pointer", "register", "." ]
[ "RISCV", "RISCV", "RISCV" ]
RISCVFrameLowering20
hasFP
RISCV
CPU
LLVM
32,893
91
1
[]
[ "<s>", "void", "DataFlowGraph", "::", "reset", "(", ")", "{", "Memory", ".", "clear", "(", ")", ";", "BlockNodes", ".", "clear", "(", ")", ";", "Func", "=", "NodeAddr", "<", "FuncNode", "*", ">", "(", ")", ";", "}", "</s>" ]
[ "Reset", "an", "existing", "scalar", "value", "for", "Def", "and", "a", "given", "Instance", "." ]
[ "Hexagon" ]
RDFGraph11
reset
Hexagon
DSP
LLVM
32,894
30
1
[]
[ "<s>", "static", "bool", "sparc_pass_by_reference", "(", "cumulative_args_t", "cum", "ATTRIBUTE_UNUSED", ",", "machine_mode", "mode", ",", "const_tree", "type", ",", "bool", "named", "ATTRIBUTE_UNUSED", ")", "{", "if", "(", "TARGET_ARCH32", ")", "return", "(", "(", "type", "&&", "(", "AGGREGATE_TYPE_P", "(", "type", ")", "||", "VECTOR_FLOAT_TYPE_P", "(", "type", ")", ")", ")", "||", "mode", "==", "SCmode", "||", "GET_MODE_SIZE", "(", "mode", ")", ">", "8", "||", "(", "type", "&&", "VECTOR_TYPE_P", "(", "type", ")", "&&", "(", "unsigned", "HOST_WIDE_INT", ")", "int_size_in_bytes", "(", "type", ")", ">", "8", ")", ")", ";", "else", "return", "(", "(", "type", "&&", "(", "AGGREGATE_TYPE_P", "(", "type", ")", "||", "VECTOR_TYPE_P", "(", "type", ")", ")", "&&", "(", "unsigned", "HOST_WIDE_INT", ")", "int_size_in_bytes", "(", "type", ")", ">", "16", ")", "||", "GET_MODE_SIZE", "(", "mode", ")", ">", "16", ")", ";", "}", "</s>" ]
[ "Handle", "the", "TARGET_PASS_BY_REFERENCE", "target", "hook", ".", "Specify", "whether", "to", "pass", "the", "argument", "by", "reference", "." ]
[ "sparc", "8", "8", "16", "16" ]
sparc8
sparc_pass_by_reference
sparc
CPU
GCC
32,895
112
1
[]
[ "<s>", "static", "void", "mips16_lay_out_constants", "(", "bool", "split_p", ")", "{", "struct", "mips16_constant_pool", "pool", ";", "rtx_insn", "*", "insn", ",", "*", "barrier", ";", "if", "(", "!", "TARGET_MIPS16_PCREL_LOADS", ")", "return", ";", "if", "(", "split_p", ")", "{", "if", "(", "mips_cfg_in_reorg", "(", ")", ")", "split_all_insns", "(", ")", ";", "else", "split_all_insns_noflow", "(", ")", ";", "}", "barrier", "=", "0", ";", "memset", "(", "&", "pool", ",", "0", ",", "sizeof", "(", "pool", ")", ")", ";", "for", "(", "insn", "=", "get_insns", "(", ")", ";", "insn", ";", "insn", "=", "NEXT_INSN", "(", "insn", ")", ")", "{", "if", "(", "USEFUL_INSN_P", "(", "insn", ")", ")", "mips16_rewrite_pool_refs", "(", "insn", ",", "&", "pool", ")", ";", "pool", ".", "insn_address", "+=", "mips16_insn_length", "(", "insn", ")", ";", "if", "(", "pool", ".", "first", "!=", "NULL", ")", "{", "if", "(", "barrier", "==", "0", "&&", "pool", ".", "insn_address", "+", "4", ">", "pool", ".", "highest_address", ")", "{", "rtx_code_label", "*", "label", ";", "rtx_insn", "*", "jump", ";", "label", "=", "gen_label_rtx", "(", ")", ";", "jump", "=", "emit_jump_insn_before", "(", "gen_jump", "(", "label", ")", ",", "insn", ")", ";", "JUMP_LABEL", "(", "jump", ")", "=", "label", ";", "LABEL_NUSES", "(", "label", ")", "=", "1", ";", "barrier", "=", "emit_barrier_after", "(", "jump", ")", ";", "emit_label_after", "(", "label", ",", "barrier", ")", ";", "pool", ".", "insn_address", "+=", "4", ";", "}", "if", "(", "pool", ".", "insn_address", ">", "pool", ".", "highest_address", ")", "{", "mips16_emit_constants", "(", "pool", ".", "first", ",", "barrier", ")", ";", "pool", ".", "first", "=", "NULL", ";", "barrier", "=", "0", ";", "}", "else", "if", "(", "BARRIER_P", "(", "insn", ")", ")", "barrier", "=", "insn", ";", "}", "}", "mips16_emit_constants", "(", "pool", ".", "first", ",", "get_last_insn", "(", ")", ")", ";", "}", "</s>" ]
[ "Build", "MIPS16", "constant", "pools", "." ]
[ "mips", "0", "0", "0", "4", "1", "4", "0" ]
mips
mips16_lay_out_constants
mips
CPU
GCC
32,896
250
1
[]
[ "<s>", "XCoreTargetMachine", "::", "XCoreTargetMachine", "(", "const", "Target", "&", "T", ",", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Optional", "<", "Reloc", "::", "Model", ">", "RM", ",", "Optional", "<", "CodeModel", "::", "Model", ">", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ",", "bool", "JIT", ")", ":", "LLVMTargetMachine", "(", "T", ",", "\"e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i64:32-f64:32-a:0:32-n32\"", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "getEffectiveRelocModel", "(", "RM", ")", ",", "getEffectiveXCoreCodeModel", "(", "CM", ")", ",", "OL", ")", ",", "TLOF", "(", "std", "::", "make_unique", "<", "XCoreTargetObjectFile", ">", "(", ")", ")", ",", "Subtarget", "(", "TT", ",", "CPU", ",", "FS", ",", "*", "this", ")", "{", "initAsmInfo", "(", ")", ";", "}", "</s>" ]
[ "Create", "an", "ILP32", "architecture", "model", "." ]
[ "XCore", "XCore", "XCore", "\"e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i64:32-f64:32-a:0:32-n32\"", "XCore", "XCore" ]
XCoreTargetMachine35
XCoreTargetMachine
XCore
MPU
LLVM
32,897
106
1
[]
[ "<s>", "void", "BlackfinRegisterInfo", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ")", "const", "{", "MachineBasicBlock", "&", "MBB", "=", "MF", ".", "front", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "begin", "(", ")", ";", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "DebugLoc", "dl", "=", "MBBI", "!=", "MBB", ".", "end", "(", ")", "?", "MBBI", "->", "getDebugLoc", "(", ")", ":", "DebugLoc", "(", ")", ";", "int", "FrameSize", "=", "MFI", "->", "getStackSize", "(", ")", ";", "if", "(", "FrameSize", "%", "4", ")", "{", "FrameSize", "=", "(", "FrameSize", "+", "3", ")", "&", "~", "3", ";", "MFI", "->", "setStackSize", "(", "FrameSize", ")", ";", "}", "if", "(", "!", "hasFP", "(", "MF", ")", ")", "{", "assert", "(", "!", "MFI", "->", "hasCalls", "(", ")", "&&", "\"FP elimination on a non-leaf function is not supported\"", ")", ";", "adjustRegister", "(", "MBB", ",", "MBBI", ",", "dl", ",", "BF", "::", "SP", ",", "BF", "::", "P1", ",", "-", "FrameSize", ")", ";", "return", ";", "}", "if", "(", "FrameSize", "<=", "0x3ffff", ")", "{", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "BF", "::", "LINK", ")", ")", ".", "addImm", "(", "FrameSize", ")", ";", "return", ";", "}", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "BF", "::", "PUSH", ")", ")", ".", "addReg", "(", "BF", "::", "RETS", ",", "RegState", "::", "Kill", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "BF", "::", "PUSH", ")", ")", ".", "addReg", "(", "BF", "::", "FP", ",", "RegState", "::", "Kill", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "BF", "::", "MOVE", ")", ",", "BF", "::", "FP", ")", ".", "addReg", "(", "BF", "::", "SP", ")", ";", "loadConstant", "(", "MBB", ",", "MBBI", ",", "dl", ",", "BF", "::", "P1", ",", "-", "FrameSize", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "BF", "::", "ADDpp", ")", ",", "BF", "::", "SP", ")", ".", "addReg", "(", "BF", "::", "SP", ",", "RegState", "::", "Kill", ")", ".", "addReg", "(", "BF", "::", "P1", ",", "RegState", "::", "Kill", ")", ";", "}", "</s>" ]
[ "emitProlog/emitEpilog", "-", "These", "methods", "insert", "prolog", "and", "epilog", "code", "into", "the", "function", "." ]
[ "Blackfin", "4", "3", "3", "\"FP elimination on a non-leaf function is not supported\"", "BF::SP", "BF::P1", "0x3ffff", "BF::LINK", "BF::PUSH", "BF::RETS", "BF::PUSH", "BF::FP", "BF::MOVE", "BF::FP", "BF::SP", "BF::P1", "BF::ADDpp", "BF::SP", "BF::SP", "BF::P1" ]
BlackfinRegisterInfo1
emitPrologue
Blackfin
DSP
LLVM
32,898
323
1
[]
[ "<s>", "void", "SIFrameLowering", "::", "determineCalleeSaves", "(", "MachineFunction", "&", "MF", ",", "BitVector", "&", "SavedVGPRs", ",", "RegScavenger", "*", "RS", ")", "const", "{", "TargetFrameLowering", "::", "determineCalleeSaves", "(", "MF", ",", "SavedVGPRs", ",", "RS", ")", ";", "SIMachineFunctionInfo", "*", "MFI", "=", "MF", ".", "getInfo", "<", "SIMachineFunctionInfo", ">", "(", ")", ";", "if", "(", "MFI", "->", "isEntryFunction", "(", ")", ")", "return", ";", "MachineFrameInfo", "&", "FrameInfo", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "GCNSubtarget", "&", "ST", "=", "MF", ".", "getSubtarget", "<", "GCNSubtarget", ">", "(", ")", ";", "const", "SIRegisterInfo", "*", "TRI", "=", "ST", ".", "getRegisterInfo", "(", ")", ";", "SavedVGPRs", ".", "clearBitsNotInMask", "(", "TRI", "->", "getAllVGPRRegMask", "(", ")", ")", ";", "const", "bool", "WillHaveFP", "=", "FrameInfo", ".", "hasCalls", "(", ")", "&&", "(", "SavedVGPRs", ".", "any", "(", ")", "||", "!", "allStackObjectsAreDead", "(", "FrameInfo", ")", ")", ";", "for", "(", "auto", "SSpill", ":", "MFI", "->", "getSGPRSpillVGPRs", "(", ")", ")", "SavedVGPRs", ".", "reset", "(", "SSpill", ".", "VGPR", ")", ";", "LivePhysRegs", "LiveRegs", ";", "LiveRegs", ".", "init", "(", "*", "TRI", ")", ";", "if", "(", "WillHaveFP", "||", "hasFP", "(", "MF", ")", ")", "{", "assert", "(", "!", "MFI", "->", "SGPRForFPSaveRestoreCopy", "&&", "!", "MFI", "->", "FramePointerSaveIndex", "&&", "\"Re-reserving spill slot for FP\"", ")", ";", "getVGPRSpillLaneOrTempRegister", "(", "MF", ",", "LiveRegs", ",", "MFI", "->", "SGPRForFPSaveRestoreCopy", ",", "MFI", "->", "FramePointerSaveIndex", ",", "true", ")", ";", "}", "if", "(", "TRI", "->", "hasBasePointer", "(", "MF", ")", ")", "{", "if", "(", "MFI", "->", "SGPRForFPSaveRestoreCopy", ")", "LiveRegs", ".", "addReg", "(", "MFI", "->", "SGPRForFPSaveRestoreCopy", ")", ";", "assert", "(", "!", "MFI", "->", "SGPRForBPSaveRestoreCopy", "&&", "!", "MFI", "->", "BasePointerSaveIndex", "&&", "\"Re-reserving spill slot for BP\"", ")", ";", "getVGPRSpillLaneOrTempRegister", "(", "MF", ",", "LiveRegs", ",", "MFI", "->", "SGPRForBPSaveRestoreCopy", ",", "MFI", "->", "BasePointerSaveIndex", ",", "false", ")", ";", "}", "}", "</s>" ]
[ "This", "method", "determines", "which", "of", "the", "registers", "reported", "by", "TargetRegisterInfo", ":", ":getCalleeSavedRegs", "(", ")", "should", "actually", "get", "saved", "." ]
[ "AMDGPU", "SI", "SI", "SI", "SI", "\"Re-reserving spill slot for FP\"", "\"Re-reserving spill slot for BP\"" ]
SIFrameLowering59
determineCalleeSaves
AMDGPU
GPU
LLVM
32,899
256
1
[]