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>", "const", "MCPhysReg", "*", "SICRegisterInfo", "::", "getCalleeSavedRegs", "(", "const", "MachineFunction", "*", "MF", ")", "const", "{", "return", "CSR_O32_SaveList", ";", "}", "</s>" ]
[ "Code", "Generation", "virtual", "methods", "..." ]
[ "SIC", "SIC" ]
SICRegisterInfo
getCalleeSavedRegs
SIC
CPU
LLVM
4,700
18
1
[]
[ "<s>", "SDValue", "AlphaTargetLowering", "::", "LowerCallResult", "(", "SDValue", "Chain", ",", "SDValue", "InFlag", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "DebugLoc", "dl", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "getTargetMachine", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeCallResult", "(", "Ins", ",", "RetCC_Alpha", ")", ";", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "RVLocs", ".", "size", "(", ")", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "Chain", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "dl", ",", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ",", "InFlag", ")", ".", "getValue", "(", "1", ")", ";", "SDValue", "RetValue", "=", "Chain", ".", "getValue", "(", "0", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "2", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "SExt", ")", "RetValue", "=", "DAG", ".", "getNode", "(", "ISD", "::", "AssertSext", ",", "dl", ",", "VA", ".", "getLocVT", "(", ")", ",", "RetValue", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "else", "if", "(", "VA", ".", "getLocInfo", "(", ")", "==", "CCValAssign", "::", "ZExt", ")", "RetValue", "=", "DAG", ".", "getNode", "(", "ISD", "::", "AssertZext", ",", "dl", ",", "VA", ".", "getLocVT", "(", ")", ",", "RetValue", ",", "DAG", ".", "getValueType", "(", "VA", ".", "getValVT", "(", ")", ")", ")", ";", "if", "(", "VA", ".", "getLocInfo", "(", ")", "!=", "CCValAssign", "::", "Full", ")", "RetValue", "=", "DAG", ".", "getNode", "(", "ISD", "::", "TRUNCATE", ",", "dl", ",", "VA", ".", "getValVT", "(", ")", ",", "RetValue", ")", ";", "InVals", ".", "push_back", "(", "RetValue", ")", ";", "}", "return", "Chain", ";", "}", "</s>" ]
[ "LowerCallResult", "-", "Lower", "the", "result", "values", "of", "an", "ISD", ":", ":CALL", "into", "the", "appropriate", "copies", "out", "of", "appropriate", "physical", "registers", "." ]
[ "Alpha", "Alpha", "ISD::InputArg", "16", "Alpha", "0", "1", "0", "2", "ISD::AssertSext", "ISD::AssertZext", "ISD::TRUNCATE" ]
AlphaISelLowering1
LowerCallResult
Alpha
MPU
LLVM
4,701
293
1
[]
[ "<s>", "void", "ARMBankConflictHazardRecognizer", "::", "AdvanceCycle", "(", ")", "{", "Accesses", ".", "clear", "(", ")", ";", "}", "</s>" ]
[ "AdvanceCycle", "-", "This", "callback", "is", "invoked", "whenever", "the", "next", "top-down", "instruction", "to", "be", "scheduled", "can", "not", "issue", "in", "the", "current", "cycle", ",", "either", "because", "of", "latency", "or", "resource", "conflicts", "." ]
[ "ARM", "ARM" ]
ARMHazardRecognizer19
AdvanceCycle
ARM
CPU
LLVM
4,702
14
1
[]
[ "<s>", "void", "NVPTXTargetStreamer", "::", "emitDwarfFileDirective", "(", "StringRef", "Directive", ")", "{", "DwarfFiles", ".", "emplace_back", "(", "Directive", ")", ";", "}", "</s>" ]
[ "Record", "DWARF", "file", "directives", "for", "later", "output", "." ]
[ "NVPTX", "NVPTX" ]
NVPTXTargetStreamer (2)
emitDwarfFileDirective
NVPTX
GPU
LLVM
4,703
17
1
[]
[ "<s>", "bool", "single_dest_per_chain", "(", "const", "rtx", "&", "t", "ATTRIBUTE_UNUSED", ",", "insn_info_list_t", "*", "v", ",", "void", "*", "arg", "ATTRIBUTE_UNUSED", ")", "{", "for", "(", "int", "i", "=", "v", "->", "length", "(", ")", "-", "1", ";", "i", ">=", "1", ";", "i", "--", ")", "{", "tag_insn_info", "*", "insn_info", "=", "(", "*", "v", ")", "[", "i", "]", ";", "for", "(", "int", "j", "=", "v", "->", "length", "(", ")", "-", "2", ";", "j", ">=", "0", ";", "j", "--", ")", "{", "if", "(", "in_same_chain", "(", "insn_info", "->", "insn", ",", "(", "*", "v", ")", "[", "j", "]", "->", "insn", ",", "REGNO", "(", "insn_info", "->", "dest", ")", ")", ")", "{", "v", "->", "ordered_remove", "(", "j", ")", ";", "i", "=", "v", "->", "length", "(", ")", ";", "break", ";", "}", "}", "}", "return", "true", ";", "}", "</s>" ]
[ "Callback", "function", "to", "traverse", "the", "tag", "map", "and", "drop", "loads", "that", "have", "the", "same", "destination", "and", "and", "in", "the", "same", "chain", "of", "occurrence", ".", "Routine", "always", "returns", "true", "to", "allow", "traversal", "through", "all", "of", "TAG_MAP", "." ]
[ "aarch64", "1", "1", "2", "0" ]
falkor-tag-collision-avoidance
single_dest_per_chain
aarch64
CPU
GCC
4,704
124
1
[]
[ "<s>", "int", "h8300_legitimate_address_p", "(", "enum", "machine_mode", "mode", ",", "rtx", "x", ",", "int", "strict", ")", "{", "if", "(", "h8300_rtx_ok_for_base_p", "(", "x", ",", "strict", ")", ")", "return", "1", ";", "if", "(", "CONSTANT_ADDRESS_P", "(", "x", ")", ")", "return", "1", ";", "if", "(", "TARGET_H8300SX", "&&", "(", "GET_CODE", "(", "x", ")", "==", "PRE_INC", "||", "GET_CODE", "(", "x", ")", "==", "PRE_DEC", "||", "GET_CODE", "(", "x", ")", "==", "POST_INC", "||", "GET_CODE", "(", "x", ")", "==", "POST_DEC", ")", "&&", "h8300_rtx_ok_for_base_p", "(", "XEXP", "(", "x", ",", "0", ")", ",", "strict", ")", ")", "return", "1", ";", "if", "(", "GET_CODE", "(", "x", ")", "==", "PLUS", "&&", "CONSTANT_ADDRESS_P", "(", "XEXP", "(", "x", ",", "1", ")", ")", "&&", "h8300_rtx_ok_for_base_p", "(", "h8300_get_index", "(", "XEXP", "(", "x", ",", "0", ")", ",", "mode", ",", "0", ")", ",", "strict", ")", ")", "return", "1", ";", "return", "0", ";", "}", "</s>" ]
[ "Return", "nozero", "if", "X", "is", "a", "legitimate", "address", ".", "On", "the", "H8/300", ",", "a", "legitimate", "address", "has", "the", "form", "REG", ",", "REG+CONSTANT_ADDRESS", "or", "CONSTANT_ADDRESS", "." ]
[ "h8300", "1", "1", "0", "1", "1", "0", "0", "1", "0" ]
h83003
h8300_legitimate_address_p
h8300
MPU
GCC
4,705
130
1
[]
[ "<s>", "Register", "AVRRegisterInfo", "::", "getFrameRegister", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetFrameLowering", "*", "TFI", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getFrameLowering", "(", ")", ";", "if", "(", "TFI", "->", "hasFP", "(", "MF", ")", ")", "{", "return", "AVR", "::", "R28", ";", "}", "return", "AVR", "::", "SP", ";", "}", "</s>" ]
[ "Debug", "information", "queries", "." ]
[ "AVR", "AVR", "AVR::R28", "AVR::SP" ]
AVRRegisterInfo10
getFrameRegister
AVR
MPU
LLVM
4,706
49
1
[]
[ "<s>", "void", "X86InstrInfo", "::", "loadRegFromStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "Register", "DestReg", ",", "int", "FrameIdx", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "if", "(", "RC", "->", "getID", "(", ")", "==", "X86", "::", "TILERegClassID", ")", "{", "unsigned", "Opc", "=", "X86", "::", "TILELOADD", ";", "MachineRegisterInfo", "&", "RegInfo", "=", "MBB", ".", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "Register", "VirtReg", "=", "RegInfo", ".", "createVirtualRegister", "(", "&", "X86", "::", "GR64_NOSPRegClass", ")", ";", "MachineInstr", "*", "NewMI", "=", "BuildMI", "(", "MBB", ",", "MI", ",", "DebugLoc", "(", ")", ",", "get", "(", "X86", "::", "MOV64ri", ")", ",", "VirtReg", ")", ".", "addImm", "(", "64", ")", ";", "NewMI", "=", "addFrameReference", "(", "BuildMI", "(", "MBB", ",", "MI", ",", "DebugLoc", "(", ")", ",", "get", "(", "Opc", ")", ",", "DestReg", ")", ",", "FrameIdx", ")", ";", "MachineOperand", "&", "MO", "=", "NewMI", "->", "getOperand", "(", "3", ")", ";", "MO", ".", "setReg", "(", "VirtReg", ")", ";", "MO", ".", "setIsKill", "(", "true", ")", ";", "}", "else", "{", "const", "MachineFunction", "&", "MF", "=", "*", "MBB", ".", "getParent", "(", ")", ";", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "unsigned", "Alignment", "=", "std", "::", "max", "<", "uint32_t", ">", "(", "TRI", "->", "getSpillSize", "(", "*", "RC", ")", ",", "16", ")", ";", "bool", "isAligned", "=", "(", "Subtarget", ".", "getFrameLowering", "(", ")", "->", "getStackAlign", "(", ")", ">=", "Alignment", ")", "||", "(", "RI", ".", "canRealignStack", "(", "MF", ")", "&&", "!", "MFI", ".", "isFixedObjectIndex", "(", "FrameIdx", ")", ")", ";", "unsigned", "Opc", "=", "getLoadRegOpcode", "(", "DestReg", ",", "RC", ",", "isAligned", ",", "Subtarget", ")", ";", "addFrameReference", "(", "BuildMI", "(", "MBB", ",", "MI", ",", "DebugLoc", "(", ")", ",", "get", "(", "Opc", ")", ",", "DestReg", ")", ",", "FrameIdx", ")", ";", "}", "}", "</s>" ]
[ "Load", "the", "specified", "register", "of", "the", "given", "register", "class", "from", "the", "specified", "stack", "frame", "index", "." ]
[ "X86", "X86", "X86::TILERegClassID", "X86::TILELOADD", "X86::GR64_NOSPRegClass", "X86::MOV64ri", "64", "3", "16" ]
X86InstrInfo (2)3
loadRegFromStackSlot
X86
CPU
LLVM
4,707
278
1
[]
[ "<s>", "RISCVSubtarget", "&", "RISCVSubtarget", "::", "initializeSubtargetDependencies", "(", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "StringRef", "ABIName", ")", "{", "bool", "Is64Bit", "=", "TT", ".", "isArch64Bit", "(", ")", ";", "std", "::", "string", "CPUName", "=", "CPU", ";", "if", "(", "CPUName", ".", "empty", "(", ")", ")", "CPUName", "=", "Is64Bit", "?", "\"generic-rv64\"", ":", "\"generic-rv32\"", ";", "ParseSubtargetFeatures", "(", "CPUName", ",", "FS", ")", ";", "if", "(", "Is64Bit", ")", "{", "XLenVT", "=", "MVT", "::", "i64", ";", "XLen", "=", "64", ";", "}", "TargetABI", "=", "RISCVABI", "::", "computeTargetABI", "(", "TT", ",", "getFeatureBits", "(", ")", ",", "ABIName", ")", ";", "RISCVFeatures", "::", "validate", "(", "TT", ",", "getFeatureBits", "(", ")", ")", ";", "return", "*", "this", ";", "}", "</s>" ]
[ "initializeSubtargetDependencies", "-", "Initializes", "using", "a", "CPU", ",", "a", "TuneCPU", ",", "and", "feature", "string", "so", "that", "we", "can", "use", "initializer", "lists", "for", "subtarget", "initialization", "." ]
[ "RISCV", "RISCV", "RISCV", "\"generic-rv64\"", "\"generic-rv32\"", "MVT::i64", "64", "RISCVABI::computeTargetABI", "RISCVFeatures::validate" ]
RISCVSubtarget14
initializeSubtargetDependencies
RISCV
CPU
LLVM
4,708
107
1
[]
[ "<s>", "static", "void", "desc_prologue", "(", "int", "body", ",", "unw_word", "rlen", ",", "unsigned", "char", "mask", ",", "unsigned", "char", "grsave", ",", "struct", "unw_state_record", "*", "sr", ")", "{", "int", "i", ";", "if", "(", "!", "(", "sr", "->", "in_body", "||", "sr", "->", "first_region", ")", ")", "finish_prologue", "(", "sr", ")", ";", "sr", "->", "first_region", "=", "0", ";", "if", "(", "sr", "->", "when_target", "<", "sr", "->", "region_start", "+", "sr", "->", "region_len", ")", "{", "sr", "->", "done", "=", "1", ";", "return", ";", "}", "for", "(", "i", "=", "0", ";", "i", "<", "sr", "->", "epilogue_count", ";", "++", "i", ")", "pop", "(", "sr", ")", ";", "sr", "->", "epilogue_count", "=", "0", ";", "sr", "->", "epilogue_start", "=", "UNW_WHEN_NEVER", ";", "if", "(", "!", "body", ")", "push", "(", "sr", ")", ";", "sr", "->", "region_start", "+=", "sr", "->", "region_len", ";", "sr", "->", "region_len", "=", "rlen", ";", "sr", "->", "in_body", "=", "body", ";", "if", "(", "!", "body", ")", "{", "for", "(", "i", "=", "0", ";", "i", "<", "4", ";", "++", "i", ")", "{", "if", "(", "mask", "&", "0x8", ")", "set_reg", "(", "sr", "->", "curr", ".", "reg", "+", "save_order", "[", "i", "]", ",", "UNW_WHERE_GR", ",", "sr", "->", "region_start", "+", "sr", "->", "region_len", "-", "1", ",", "grsave", "++", ")", ";", "mask", "<<=", "1", ";", "}", "sr", "->", "gr_save_loc", "=", "grsave", ";", "sr", "->", "any_spills", "=", "0", ";", "sr", "->", "imask", "=", "0", ";", "sr", "->", "spill_offset", "=", "0x10", ";", "}", "}", "</s>" ]
[ "Region", "header", "descriptors", "." ]
[ "ia64", "0", "1", "0", "0", "0", "4", "0x8", "1", "1", "0", "0", "0x10" ]
unwind-ia64
desc_prologue
ia64
CPU
GCC
4,709
223
1
[]
[ "<s>", "bool", "isLegalMaskedGather", "(", "Type", "*", "Ty", ",", "MaybeAlign", "Alignment", ")", "{", "return", "false", ";", "}", "</s>" ]
[ "Return", "true", "if", "the", "target", "supports", "masked", "gather", "." ]
[ "ARM" ]
ARMTargetTransformInfo35
isLegalMaskedGather
ARM
CPU
LLVM
4,710
15
1
[]
[ "<s>", "SMLoc", "getStartLoc", "(", ")", "const", "override", "{", "return", "StartLoc", ";", "}", "</s>" ]
[ "getStartLoc", "-", "Get", "the", "location", "of", "the", "first", "token", "of", "this", "operand", "." ]
[ "AGC" ]
AGCAsmParser
getStartLoc
AGC
MPU
LLVM
4,711
11
1
[]
[ "<s>", "void", "AMDGPUInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "MI", ",", "unsigned", "SrcReg", ",", "bool", "isKill", ",", "int", "FrameIndex", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "llvm_unreachable", "(", "\"Not Implemented\"", ")", ";", "}", "</s>" ]
[ "Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "." ]
[ "AMDGPU", "AMDGPU", "\"Not Implemented\"" ]
AMDGPUInstrInfo
storeRegToStackSlot
AMDGPU
GPU
LLVM
4,712
41
1
[]
[ "<s>", "static", "bool", "mep_get_intrinsic_insn", "(", "int", "intrinsic", "ATTRIBUTE_UNUSED", ",", "const", "struct", "cgen_insn", "*", "*", "insn_ptr", "ATTRIBUTE_UNUSED", ")", "{", "int", "i", ";", "i", "=", "mep_intrinsic_insn", "[", "intrinsic", "]", ";", "while", "(", "i", ">=", "0", "&&", "!", "CGEN_ENABLE_INSN_P", "(", "i", ")", ")", "i", "=", "mep_intrinsic_chain", "[", "i", "]", ";", "if", "(", "i", ">=", "0", ")", "{", "*", "insn_ptr", "=", "&", "cgen_insns", "[", "i", "]", ";", "return", "true", ";", "}", "return", "false", ";", "}", "</s>" ]
[ "See", "if", "any", "implementation", "of", "INTRINSIC", "is", "available", "to", "the", "current", "function", ".", "If", "so", ",", "store", "the", "most", "general", "implementation", "in", "*", "INSN_PTR", "and", "return", "true", ".", "Return", "false", "otherwise", "." ]
[ "mep", "0", "0" ]
mep
mep_get_intrinsic_insn
mep
CPU
GCC
4,713
70
1
[]
[ "<s>", "bool", "SparcFrameLowering", "::", "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", "." ]
[ "WDC65816" ]
WDC65816FrameLowering
hasReservedCallFrame
WDC65816
MPU
LLVM
4,714
25
1
[]
[ "<s>", "const", "char", "*", "getClearCacheBuiltinName", "(", ")", "const", "{", "return", "0", ";", "}", "</s>" ]
[ "Intel", "processors", "have", "a", "unified", "instruction", "and", "data", "cache", "." ]
[ "X86", "0" ]
X86ISelLowering81
getClearCacheBuiltinName
X86
CPU
LLVM
4,715
12
1
[]
[ "<s>", "bool", "SIMemoryLegalizer", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "bool", "Changed", "=", "false", ";", "const", "SISubtarget", "&", "ST", "=", "MF", ".", "getSubtarget", "<", "SISubtarget", ">", "(", ")", ";", "const", "IsaInfo", "::", "IsaVersion", "IV", "=", "IsaInfo", "::", "getIsaVersion", "(", "ST", ".", "getFeatureBits", "(", ")", ")", ";", "MMI", "=", "&", "MF", ".", "getMMI", "(", ")", ".", "getObjFileInfo", "<", "AMDGPUMachineModuleInfo", ">", "(", ")", ";", "TII", "=", "ST", ".", "getInstrInfo", "(", ")", ";", "Vmcnt0Immediate", "=", "AMDGPU", "::", "encodeWaitcnt", "(", "IV", ",", "0", ",", "getExpcntBitMask", "(", "IV", ")", ",", "getLgkmcntBitMask", "(", "IV", ")", ")", ";", "VmemSIMDCacheInvalidateOpc", "=", "ST", ".", "getGeneration", "(", ")", "<=", "AMDGPUSubtarget", "::", "SOUTHERN_ISLANDS", "?", "AMDGPU", "::", "BUFFER_WBINVL1", ":", "AMDGPU", "::", "BUFFER_WBINVL1_VOL", ";", "for", "(", "auto", "&", "MBB", ":", "MF", ")", "{", "for", "(", "auto", "MI", "=", "MBB", ".", "begin", "(", ")", ";", "MI", "!=", "MBB", ".", "end", "(", ")", ";", "++", "MI", ")", "{", "if", "(", "!", "(", "MI", "->", "getDesc", "(", ")", ".", "TSFlags", "&", "SIInstrFlags", "::", "maybeAtomic", ")", ")", "continue", ";", "if", "(", "const", "auto", "&", "MOI", "=", "SIMemOpInfo", "::", "getLoadInfo", "(", "MI", ")", ")", "Changed", "|=", "expandLoad", "(", "MOI", ".", "getValue", "(", ")", ",", "MI", ")", ";", "else", "if", "(", "const", "auto", "&", "MOI", "=", "SIMemOpInfo", "::", "getStoreInfo", "(", "MI", ")", ")", "Changed", "|=", "expandStore", "(", "MOI", ".", "getValue", "(", ")", ",", "MI", ")", ";", "else", "if", "(", "const", "auto", "&", "MOI", "=", "SIMemOpInfo", "::", "getAtomicFenceInfo", "(", "MI", ")", ")", "Changed", "|=", "expandAtomicFence", "(", "MOI", ".", "getValue", "(", ")", ",", "MI", ")", ";", "else", "if", "(", "const", "auto", "&", "MOI", "=", "SIMemOpInfo", "::", "getAtomicCmpxchgOrRmwInfo", "(", "MI", ")", ")", "Changed", "|=", "expandAtomicCmpxchgOrRmw", "(", "MOI", ".", "getValue", "(", ")", ",", "MI", ")", ";", "}", "}", "Changed", "|=", "removeAtomicPseudoMIs", "(", ")", ";", "return", "Changed", ";", "}", "</s>" ]
[ "runOnMachineFunction", "-", "Emit", "the", "function", "body", "." ]
[ "AMDGPU", "SI", "SI", "SI", "AMDGPU", "AMDGPU::encodeWaitcnt", "0", "SI", "AMDGPU", "AMDGPU::BUFFER_WBINVL1", "AMDGPU::BUFFER_WBINVL1_VOL", "SIInstrFlags::maybeAtomic", "SI", "SI", "SI", "SI" ]
SIMemoryLegalizer22
runOnMachineFunction
AMDGPU
GPU
LLVM
4,716
285
1
[]
[ "<s>", "static", "bool", "ix86_additional_allocno_class_p", "(", "reg_class_t", "cl", ")", "{", "return", "cl", "==", "MOD4_SSE_REGS", ";", "}", "</s>" ]
[ "Return", "true", "if", "register", "class", "CL", "should", "be", "an", "additional", "allocno", "class", "." ]
[ "i386" ]
i3866
ix86_additional_allocno_class_p
i386
CPU
GCC
4,717
14
1
[]
[ "<s>", "int", "GCNTTIImpl", "::", "getIntrinsicInstrCost", "(", "Intrinsic", "::", "ID", "ID", ",", "Type", "*", "RetTy", ",", "ArrayRef", "<", "Type", "*", ">", "Tys", ",", "FastMathFlags", "FMF", ",", "unsigned", "ScalarizationCostPassed", ")", "{", "return", "getIntrinsicInstrCost", "<", "Type", ">", "(", "ID", ",", "RetTy", ",", "Tys", ",", "FMF", ",", "ScalarizationCostPassed", ")", ";", "}", "</s>" ]
[ "Get", "intrinsic", "cost", "based", "on", "arguments", "." ]
[ "AMDGPU", "Intrinsic::ID" ]
AMDGPUTargetTransformInfo10
getIntrinsicInstrCost
AMDGPU
GPU
LLVM
4,718
46
1
[]
[ "<s>", "static", "void", "function_arg_record_value_1", "(", "tree", "type", ",", "HOST_WIDE_INT", "startbitpos", ",", "struct", "function_arg_record_value_parms", "*", "parms", ",", "bool", "packed_p", ")", "{", "tree", "field", ";", "if", "(", "!", "packed_p", ")", "for", "(", "field", "=", "TYPE_FIELDS", "(", "type", ")", ";", "field", ";", "field", "=", "TREE_CHAIN", "(", "field", ")", ")", "{", "if", "(", "TREE_CODE", "(", "field", ")", "==", "FIELD_DECL", "&&", "DECL_PACKED", "(", "field", ")", ")", "{", "packed_p", "=", "true", ";", "break", ";", "}", "}", "for", "(", "field", "=", "TYPE_FIELDS", "(", "type", ")", ";", "field", ";", "field", "=", "TREE_CHAIN", "(", "field", ")", ")", "{", "if", "(", "TREE_CODE", "(", "field", ")", "==", "FIELD_DECL", ")", "{", "HOST_WIDE_INT", "bitpos", "=", "startbitpos", ";", "if", "(", "DECL_SIZE", "(", "field", ")", "!=", "0", ")", "{", "if", "(", "integer_zerop", "(", "DECL_SIZE", "(", "field", ")", ")", ")", "continue", ";", "if", "(", "host_integerp", "(", "bit_position", "(", "field", ")", ",", "1", ")", ")", "bitpos", "+=", "int_bit_position", "(", "field", ")", ";", "}", "if", "(", "TREE_CODE", "(", "TREE_TYPE", "(", "field", ")", ")", "==", "RECORD_TYPE", ")", "function_arg_record_value_1", "(", "TREE_TYPE", "(", "field", ")", ",", "bitpos", ",", "parms", ",", "packed_p", ")", ";", "else", "if", "(", "(", "FLOAT_TYPE_P", "(", "TREE_TYPE", "(", "field", ")", ")", "||", "TREE_CODE", "(", "TREE_TYPE", "(", "field", ")", ")", "==", "VECTOR_TYPE", ")", "&&", "TARGET_FPU", "&&", "parms", "->", "named", "&&", "!", "packed_p", ")", "{", "if", "(", "parms", "->", "intoffset", "!=", "-", "1", ")", "{", "unsigned", "int", "startbit", ",", "endbit", ";", "int", "intslots", ",", "this_slotno", ";", "startbit", "=", "parms", "->", "intoffset", "&", "-", "BITS_PER_WORD", ";", "endbit", "=", "(", "bitpos", "+", "BITS_PER_WORD", "-", "1", ")", "&", "-", "BITS_PER_WORD", ";", "intslots", "=", "(", "endbit", "-", "startbit", ")", "/", "BITS_PER_WORD", ";", "this_slotno", "=", "parms", "->", "slotno", "+", "parms", "->", "intoffset", "/", "BITS_PER_WORD", ";", "if", "(", "intslots", ">", "0", "&&", "intslots", ">", "SPARC_INT_ARG_MAX", "-", "this_slotno", ")", "{", "intslots", "=", "MAX", "(", "0", ",", "SPARC_INT_ARG_MAX", "-", "this_slotno", ")", ";", "parms", "->", "stack", "=", "1", ";", "}", "parms", "->", "nregs", "+=", "intslots", ";", "parms", "->", "intoffset", "=", "-", "1", ";", "}", "if", "(", "TREE_CODE", "(", "TREE_TYPE", "(", "field", ")", ")", "==", "VECTOR_TYPE", "&&", "DECL_MODE", "(", "field", ")", "==", "BLKmode", ")", "parms", "->", "nregs", "+=", "TYPE_VECTOR_SUBPARTS", "(", "TREE_TYPE", "(", "field", ")", ")", ";", "else", "if", "(", "TREE_CODE", "(", "TREE_TYPE", "(", "field", ")", ")", "==", "COMPLEX_TYPE", ")", "parms", "->", "nregs", "+=", "2", ";", "else", "parms", "->", "nregs", "+=", "1", ";", "}", "else", "{", "if", "(", "parms", "->", "intoffset", "==", "-", "1", ")", "parms", "->", "intoffset", "=", "bitpos", ";", "}", "}", "}", "}", "</s>" ]
[ "A", "subroutine", "of", "function_arg_record_value", ".", "Traverse", "the", "structure", "recursively", "and", "determine", "how", "many", "registers", "will", "be", "required", "." ]
[ "sparc", "0", "1", "1", "1", "0", "0", "1", "1", "2", "1", "1" ]
sparc3
function_arg_record_value_1
sparc
CPU
GCC
4,719
393
1
[]
[ "<s>", "void", "X86PassConfig", "::", "addPreEmitPass2", "(", ")", "{", "const", "Triple", "&", "TT", "=", "TM", "->", "getTargetTriple", "(", ")", ";", "const", "MCAsmInfo", "*", "MAI", "=", "TM", "->", "getMCAsmInfo", "(", ")", ";", "addPass", "(", "createX86RetpolineThunksPass", "(", ")", ")", ";", "if", "(", "TT", ".", "isOSWindows", "(", ")", "&&", "TT", ".", "getArch", "(", ")", "==", "Triple", "::", "x86_64", ")", "addPass", "(", "createX86AvoidTrailingCallPass", "(", ")", ")", ";", "if", "(", "!", "TT", ".", "isOSDarwin", "(", ")", "&&", "(", "!", "TT", ".", "isOSWindows", "(", ")", "||", "MAI", "->", "getExceptionHandlingType", "(", ")", "==", "ExceptionHandling", "::", "DwarfCFI", ")", ")", "addPass", "(", "createCFIInstrInserter", "(", ")", ")", ";", "if", "(", "TT", ".", "isOSWindows", "(", ")", ")", "addPass", "(", "createCFGuardLongjmpPass", "(", ")", ")", ";", "}", "</s>" ]
[ "Targets", "may", "add", "passes", "immediately", "before", "machine", "code", "is", "emitted", "in", "this", "callback", "." ]
[ "X86", "X86", "X86", "X86" ]
X86TargetMachine130
addPreEmitPass2
X86
CPU
LLVM
4,720
112
1
[]
[ "<s>", "DecodeStatus", "ARCDisassembler", "::", "getInstruction", "(", "MCInst", "&", "Instr", ",", "uint64_t", "&", "Size", ",", "ArrayRef", "<", "uint8_t", ">", "Bytes", ",", "uint64_t", "Address", ",", "raw_ostream", "&", "vStream", ",", "raw_ostream", "&", "cStream", ")", "const", "{", "MCDisassembler", "::", "DecodeStatus", "Result", ";", "if", "(", "Bytes", ".", "size", "(", ")", "<", "2", ")", "{", "Size", "=", "0", ";", "return", "Fail", ";", "}", "uint8_t", "DecodeByte", "=", "(", "Bytes", "[", "1", "]", "&", "0xF7", ")", ">>", "3", ";", "if", "(", "DecodeByte", "<", "0x08", ")", "{", "if", "(", "Bytes", ".", "size", "(", ")", "<", "4", ")", "{", "Size", "=", "0", ";", "return", "Fail", ";", "}", "if", "(", "Bytes", ".", "size", "(", ")", ">=", "8", ")", "{", "uint64_t", "Insn64", ";", "if", "(", "!", "readInstruction64", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn64", ")", ")", "return", "Fail", ";", "Result", "=", "decodeInstruction", "(", "DecoderTable64", ",", "Instr", ",", "Insn64", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Success", "==", "Result", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Successfully decoded 64-bit instruction.\"", ")", ";", "return", "Result", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Not a 64-bit instruction, falling back to 32-bit.\"", ")", ";", "}", "uint32_t", "Insn32", ";", "if", "(", "!", "readInstruction32", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn32", ")", ")", "{", "return", "Fail", ";", "}", "return", "decodeInstruction", "(", "DecoderTable32", ",", "Instr", ",", "Insn32", ",", "Address", ",", "this", ",", "STI", ")", ";", "}", "else", "{", "if", "(", "Bytes", ".", "size", "(", ")", ">=", "6", ")", "{", "uint64_t", "Insn48", ";", "if", "(", "!", "readInstruction48", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn48", ")", ")", "return", "Fail", ";", "Result", "=", "decodeInstruction", "(", "DecoderTable48", ",", "Instr", ",", "Insn48", ",", "Address", ",", "this", ",", "STI", ")", ";", "if", "(", "Success", "==", "Result", ")", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Successfully decoded 16-bit instruction with limm.\"", ")", ";", "return", "Result", ";", "}", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Not a 16-bit instruction with limm, try without it.\"", ")", ";", "}", "uint32_t", "Insn16", ";", "if", "(", "!", "readInstruction16", "(", "Bytes", ",", "Address", ",", "Size", ",", "Insn16", ")", ")", "return", "Fail", ";", "return", "decodeInstruction", "(", "DecoderTable16", ",", "Instr", ",", "Insn16", ",", "Address", ",", "this", ",", "STI", ")", ";", "}", "}", "</s>" ]
[ "Returns", "the", "disassembly", "of", "a", "single", "instruction", "." ]
[ "ARC", "ARC", "2", "0", "1", "0xF7", "3", "0x08", "4", "0", "8", "\"Successfully decoded 64-bit instruction.\"", "\"Not a 64-bit instruction, falling back to 32-bit.\"", "6", "\"Successfully decoded 16-bit instruction with limm.\"", "\"Not a 16-bit instruction with limm, try without it.\"" ]
ARCDisassembler11
getInstruction
ARC
MPU
LLVM
4,721
331
1
[]
[ "<s>", "bool", "SIInsertWaits", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "bool", "Changes", "=", "false", ";", "TII", "=", "static_cast", "<", "const", "SIInstrInfo", "*", ">", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "TRI", "=", "static_cast", "<", "const", "SIRegisterInfo", "*", ">", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ")", ";", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "WaitedOn", "=", "ZeroCounts", ";", "LastIssued", "=", "ZeroCounts", ";", "LastOpcodeType", "=", "OTHER", ";", "memset", "(", "&", "UsedRegs", ",", "0", ",", "sizeof", "(", "UsedRegs", ")", ")", ";", "memset", "(", "&", "DefinedRegs", ",", "0", ",", "sizeof", "(", "DefinedRegs", ")", ")", ";", "for", "(", "MachineFunction", "::", "iterator", "BI", "=", "MF", ".", "begin", "(", ")", ",", "BE", "=", "MF", ".", "end", "(", ")", ";", "BI", "!=", "BE", ";", "++", "BI", ")", "{", "MachineBasicBlock", "&", "MBB", "=", "*", "BI", ";", "for", "(", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "begin", "(", ")", ",", "E", "=", "MBB", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "if", "(", "I", "->", "getOpcode", "(", ")", "==", "AMDGPU", "::", "S_BARRIER", ")", "Changes", "|=", "insertWait", "(", "MBB", ",", "I", ",", "LastIssued", ")", ";", "else", "Changes", "|=", "insertWait", "(", "MBB", ",", "I", ",", "handleOperands", "(", "*", "I", ")", ")", ";", "pushInstruction", "(", "MBB", ",", "I", ")", ";", "}", "Changes", "|=", "insertWait", "(", "MBB", ",", "MBB", ".", "getFirstTerminator", "(", ")", ",", "LastIssued", ")", ";", "}", "return", "Changes", ";", "}", "</s>" ]
[ "runOnMachineFunction", "-", "Emit", "the", "function", "body", "." ]
[ "R600", "SI", "SI", "SI", "0", "0" ]
SIInsertWaits23
runOnMachineFunction
R600
GPU
LLVM
4,722
234
1
[]
[ "<s>", "static", "void", "ia64_emit_insn_before", "(", "rtx", "insn", ",", "rtx", "before", ")", "{", "emit_insn_before", "(", "insn", ",", "before", ")", ";", "}", "</s>" ]
[ "Like", "emit_insn_before", ",", "but", "skip", "cycle_display", "insns", ".", "This", "makes", "the", "assembly", "output", "a", "bit", "prettier", "." ]
[ "ia64" ]
ia644
ia64_emit_insn_before
ia64
CPU
GCC
4,723
19
1
[]
[ "<s>", "static", "bool", "cris_pass_by_reference", "(", "cumulative_args_t", ",", "const", "function_arg_info", "&", "arg", ")", "{", "return", "(", "targetm", ".", "calls", ".", "must_pass_in_stack", "(", "arg", ")", "||", "CRIS_FUNCTION_ARG_SIZE", "(", "arg", ".", "mode", ",", "arg", ".", "type", ")", ">", "8", ")", ";", "}", "</s>" ]
[ "Return", "true", "if", "TYPE", "must", "be", "passed", "by", "invisible", "reference", ".", "For", "cris", ",", "we", "pass", "<", "=", "8", "bytes", "by", "value", ",", "others", "by", "reference", "." ]
[ "cris", "8" ]
cris
cris_pass_by_reference
cris
MPU
GCC
4,724
38
1
[]
[ "<s>", "rtx_code", "m68k_output_compare_di", "(", "rtx", "op0", ",", "rtx", "op1", ",", "rtx", "sc1", ",", "rtx", "sc2", ",", "rtx_insn", "*", "insn", ",", "rtx_code", "code", ")", "{", "rtx", "ops", "[", "4", "]", ";", "ops", "[", "0", "]", "=", "op0", ";", "ops", "[", "1", "]", "=", "op1", ";", "ops", "[", "2", "]", "=", "sc1", ";", "ops", "[", "3", "]", "=", "sc2", ";", "if", "(", "op1", "==", "const0_rtx", ")", "{", "if", "(", "!", "REG_P", "(", "op0", ")", "||", "ADDRESS_REG_P", "(", "op0", ")", ")", "{", "rtx", "xoperands", "[", "2", "]", ";", "xoperands", "[", "0", "]", "=", "sc2", ";", "xoperands", "[", "1", "]", "=", "op0", ";", "output_move_double", "(", "xoperands", ")", ";", "output_asm_insn", "(", "\"neg%.l %R0\\n\\tnegx%.l %0\"", ",", "xoperands", ")", ";", "return", "swap_condition", "(", "code", ")", ";", "}", "if", "(", "find_reg_note", "(", "insn", ",", "REG_DEAD", ",", "op0", ")", ")", "{", "output_asm_insn", "(", "\"neg%.l %R0\\n\\tnegx%.l %0\"", ",", "ops", ")", ";", "return", "swap_condition", "(", "code", ")", ";", "}", "else", "{", "output_asm_insn", "(", "\"sub%.l %2,%2\\n\\ttst%.l %R0\\n\\tsubx%.l %2,%0\"", ",", "ops", ")", ";", "return", "code", ";", "}", "}", "if", "(", "rtx_equal_p", "(", "sc2", ",", "op0", ")", ")", "{", "output_asm_insn", "(", "\"sub%.l %R1,%R3\\n\\tsubx%.l %1,%3\"", ",", "ops", ")", ";", "return", "code", ";", "}", "else", "{", "output_asm_insn", "(", "\"sub%.l %R0,%R3\\n\\tsubx%.l %0,%3\"", ",", "ops", ")", ";", "return", "swap_condition", "(", "code", ")", ";", "}", "}", "</s>" ]
[ "Emit", "a", "comparison", "between", "OP0", "and", "OP1", ".", "Return", "true", "iff", "the", "comparison", "was", "reversed", ".", "SC1", "is", "an", "SImode", "scratch", "reg", ",", "and", "SC2", "a", "DImode", "scratch", "reg", ",", "as", "needed", ".", "CODE", "is", "the", "code", "of", "the", "comparison", ",", "we", "return", "it", "unchanged", "or", "swapped", ",", "as", "necessary", "." ]
[ "m68k", "4", "0", "1", "2", "3", "2", "0", "1", "\"neg%.l %R0\\n\\tnegx%.l %0\"", "\"neg%.l %R0\\n\\tnegx%.l %0\"", "\"sub%.l %2,%2\\n\\ttst%.l %R0\\n\\tsubx%.l %2,%0\"", "\"sub%.l %R1,%R3\\n\\tsubx%.l %1,%3\"", "\"sub%.l %R0,%R3\\n\\tsubx%.l %0,%3\"" ]
m68k
m68k_output_compare_di
m68k
MPU
GCC
4,725
195
1
[]
[ "<s>", "int", "compare_diff_p", "(", "rtx", "insn", ")", "{", "RTX_CODE", "cond", "=", "compare_condition", "(", "insn", ")", ";", "return", "(", "cond", "==", "GT", "||", "cond", "==", "GTU", "||", "cond", "==", "LE", "||", "cond", "==", "LEU", ")", "?", "cond", ":", "0", ";", "}", "</s>" ]
[ "Returns", "nonzero", "if", "the", "next", "insn", "is", "a", "JUMP_INSN", "with", "a", "condition", "that", "needs", "to", "be", "swapped", "(", "GT", ",", "GTU", ",", "LE", ",", "LEU", ")", "." ]
[ "avr", "0" ]
avr3
compare_diff_p
avr
MPU
GCC
4,726
39
1
[]
[ "<s>", "auto", "begin", "(", ")", "const", "{", "return", "Data", ".", "begin", "(", ")", ";", "}", "</s>" ]
[ "Recipe", "iterator", "methods", "." ]
[ "TVM" ]
TVMStack
begin
TVM
Virtual ISA
LLVM
4,727
14
1
[]
[ "<s>", "SDValue", "VETargetLowering", "::", "LowerOperation", "(", "SDValue", "Op", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "Op", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Should not custom lower this!\"", ")", ";", "case", "ISD", "::", "ATOMIC_FENCE", ":", "return", "lowerATOMIC_FENCE", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "ATOMIC_SWAP", ":", "return", "lowerATOMIC_SWAP", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "BlockAddress", ":", "return", "lowerBlockAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "ConstantPool", ":", "return", "lowerConstantPool", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "DYNAMIC_STACKALLOC", ":", "return", "lowerDYNAMIC_STACKALLOC", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "EH_SJLJ_LONGJMP", ":", "return", "lowerEH_SJLJ_LONGJMP", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "EH_SJLJ_SETJMP", ":", "return", "lowerEH_SJLJ_SETJMP", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "EH_SJLJ_SETUP_DISPATCH", ":", "return", "lowerEH_SJLJ_SETUP_DISPATCH", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "FRAMEADDR", ":", "return", "lowerFRAMEADDR", "(", "Op", ",", "DAG", ",", "*", "this", ",", "Subtarget", ")", ";", "case", "ISD", "::", "GlobalAddress", ":", "return", "lowerGlobalAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "GlobalTLSAddress", ":", "return", "lowerGlobalTLSAddress", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "INTRINSIC_WO_CHAIN", ":", "return", "lowerINTRINSIC_WO_CHAIN", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "JumpTable", ":", "return", "lowerJumpTable", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "LOAD", ":", "return", "lowerLOAD", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "RETURNADDR", ":", "return", "lowerRETURNADDR", "(", "Op", ",", "DAG", ",", "*", "this", ",", "Subtarget", ")", ";", "case", "ISD", "::", "BUILD_VECTOR", ":", "return", "lowerBUILD_VECTOR", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "STORE", ":", "return", "lowerSTORE", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "VASTART", ":", "return", "lowerVASTART", "(", "Op", ",", "DAG", ")", ";", "case", "ISD", "::", "VAARG", ":", "return", "lowerVAARG", "(", "Op", ",", "DAG", ")", ";", "return", "lowerToVVP", "(", "Op", ",", "DAG", ")", ";", "}", "}", "</s>" ]
[ "LowerOperation", "-", "Provide", "custom", "lowering", "hooks", "for", "some", "operations", "." ]
[ "VE", "VE", "\"Should not custom lower this!\"", "ISD::ATOMIC_FENCE", "ISD::ATOMIC_SWAP", "ISD::BlockAddress", "ISD::ConstantPool", "ISD::DYNAMIC_STACKALLOC", "ISD::EH_SJLJ_LONGJMP", "ISD::EH_SJLJ_SETJMP", "ISD::EH_SJLJ_SETUP_DISPATCH", "ISD::FRAMEADDR", "ISD::GlobalAddress", "ISD::GlobalTLSAddress", "ISD::INTRINSIC_WO_CHAIN", "ISD::JumpTable", "ISD::LOAD", "ISD::RETURNADDR", "ISD::BUILD_VECTOR", "VE", "ISD::STORE", "ISD::VASTART", "ISD::VAARG" ]
VEISelLowering2
LowerOperation
VE
CPU
LLVM
4,728
297
1
[]
[ "<s>", "unsigned", "Tile64InstrInfo", "::", "isStoreToStackSlot", "(", "const", "MachineInstr", "*", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "return", "0", ";", "}", "</s>" ]
[ "isStoreToStackSlot", "-", "If", "the", "specified", "machine", "instruction", "is", "a", "direct", "store", "to", "a", "stack", "slot", ",", "return", "the", "virtual", "or", "physical", "register", "number", "of", "the", "source", "reg", "along", "with", "the", "FrameIndex", "of", "the", "loaded", "stack", "slot", "." ]
[ "Tile64", "0" ]
Tile64InstrInfo
isStoreToStackSlot
Tile64
VLIW
LLVM
4,729
20
1
[]
[ "<s>", "static", "rtx", "gen_int_si", "(", "HOST_WIDE_INT", "val", ")", "{", "return", "gen_int_mode", "(", "val", ",", "SImode", ")", ";", "}", "</s>" ]
[ "Returns", "an", "SImode", "integer", "rtx", "with", "value", "VAL", "." ]
[ "tilepro" ]
tilepro
gen_int_si
tilepro
VLIW
GCC
4,730
17
1
[]
[ "<s>", "MachineBasicBlock", "::", "iterator", "MipsFrameLowering", "::", "eliminateCallFramePseudoInstr", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ")", "const", "{", "unsigned", "SP", "=", "STI", ".", "getABI", "(", ")", ".", "GetStackPtr", "(", ")", ";", "if", "(", "!", "hasReservedCallFrame", "(", "MF", ")", ")", "{", "int64_t", "Amount", "=", "I", "->", "getOperand", "(", "0", ")", ".", "getImm", "(", ")", ";", "if", "(", "(", "I", "->", "getOpcode", "(", ")", "==", "Mips", "::", "ADJCALLSTACKDOWN", ")", "||", "(", "I", "->", "getOpcode", "(", ")", "==", "Mips", "::", "ADJCALLSTACKCAPDOWN", ")", ")", "Amount", "=", "-", "Amount", ";", "STI", ".", "getInstrInfo", "(", ")", "->", "adjustStackPtr", "(", "SP", ",", "Amount", ",", "MBB", ",", "I", ")", ";", "}", "return", "MBB", ".", "erase", "(", "I", ")", ";", "}", "</s>" ]
[ "This", "method", "is", "called", "during", "prolog/epilog", "code", "insertion", "to", "eliminate", "call", "frame", "setup", "and", "destroy", "pseudo", "instructions", "(", "but", "only", "if", "the", "Target", "is", "using", "them", ")", "." ]
[ "Mips", "Mips", "0", "Mips::ADJCALLSTACKDOWN", "Mips::ADJCALLSTACKCAPDOWN" ]
MipsFrameLowering22
eliminateCallFramePseudoInstr
Mips
CPU
LLVM
4,731
116
1
[]
[ "<s>", "static", "inline", "bool", "current_function_saves_fp", "(", "void", ")", "{", "return", "current_frame_info", ".", "save_fp", "!=", "0", ";", "}", "</s>" ]
[ "Accessor", "for", "current_frame_info.save_fp", "." ]
[ "visium", "0" ]
visium
current_function_saves_fp
visium
Virtual ISA
GCC
4,732
16
1
[]
[ "<s>", "bool", "ARMSubtarget", "::", "isGVIndirectSymbol", "(", "const", "GlobalValue", "*", "GV", ")", "const", "{", "if", "(", "!", "TM", ".", "shouldAssumeDSOLocal", "(", "*", "GV", "->", "getParent", "(", ")", ",", "GV", ")", ")", "return", "true", ";", "if", "(", "isTargetMachO", "(", ")", "&&", "TM", ".", "isPositionIndependent", "(", ")", "&&", "(", "GV", "->", "isDeclarationForLinker", "(", ")", "||", "GV", "->", "hasCommonLinkage", "(", ")", ")", ")", "return", "true", ";", "return", "false", ";", "}", "</s>" ]
[ "True", "if", "the", "GV", "will", "be", "accessed", "via", "an", "indirect", "symbol", "." ]
[ "ARM", "ARM" ]
ARMSubtarget
isGVIndirectSymbol
ARM
CPU
LLVM
4,733
65
1
[]
[ "<s>", "const", "Z80RegisterInfo", "&", "getRegisterInfo", "(", ")", "const", "{", "return", "RI", ";", "}", "</s>" ]
[ "getRegisterInfo", "-", "TargetInstrInfo", "is", "a", "superset", "of", "MRegister", "info", "." ]
[ "Z80", "Z80" ]
Z80InstrInfo1
getRegisterInfo
Z80
MPU
LLVM
4,734
12
1
[]
[ "<s>", "static", "void", "write_var_marker", "(", "FILE", "*", "file", ",", "bool", "is_defn", ",", "bool", "globalize", ",", "const", "char", "*", "name", ")", "{", "fprintf", "(", "file", ",", "\"\\n// BEGIN%s VAR %s: \"", ",", "globalize", "?", "\" GLOBAL\"", ":", "\"\"", ",", "is_defn", "?", "\"DEF\"", ":", "\"DECL\"", ")", ";", "assemble_name_raw", "(", "file", ",", "name", ")", ";", "fputs", "(", "\"\\n\"", ",", "file", ")", ";", "}", "</s>" ]
[ "Emit", "a", "linker", "marker", "for", "a", "variable", "decl", "or", "defn", "." ]
[ "nvptx", "\"\\n// BEGIN%s VAR %s: \"", "\" GLOBAL\"", "\"\"", "\"DEF\"", "\"DECL\"", "\"\\n\"" ]
nvptx
write_var_marker
nvptx
GPU
GCC
4,735
54
1
[]
[ "<s>", "void", "X86AsmBackend", "::", "applyFixup", "(", "const", "MCAssembler", "&", "Asm", ",", "const", "MCFixup", "&", "Fixup", ",", "const", "MCValue", "&", "Target", ",", "MutableArrayRef", "<", "char", ">", "Data", ",", "uint64_t", "Value", ",", "bool", "IsResolved", ",", "const", "MCSubtargetInfo", "*", "STI", ")", "const", "{", "unsigned", "Kind", "=", "Fixup", ".", "getKind", "(", ")", ";", "if", "(", "Kind", ">=", "FirstLiteralRelocationKind", ")", "return", ";", "unsigned", "Size", "=", "getFixupKindSize", "(", "Kind", ")", ";", "assert", "(", "Fixup", ".", "getOffset", "(", ")", "+", "Size", "<=", "Data", ".", "size", "(", ")", "&&", "\"Invalid fixup offset!\"", ")", ";", "int64_t", "SignedValue", "=", "static_cast", "<", "int64_t", ">", "(", "Value", ")", ";", "if", "(", "(", "Target", ".", "isAbsolute", "(", ")", "||", "IsResolved", ")", "&&", "getFixupKindInfo", "(", "Fixup", ".", "getKind", "(", ")", ")", ".", "Flags", "&", "MCFixupKindInfo", "::", "FKF_IsPCRel", ")", "{", "if", "(", "Size", ">", "0", "&&", "!", "isIntN", "(", "Size", "*", "8", ",", "SignedValue", ")", ")", "Asm", ".", "getContext", "(", ")", ".", "reportError", "(", "Fixup", ".", "getLoc", "(", ")", ",", "\"value of \"", "+", "Twine", "(", "SignedValue", ")", "+", "\" is too large for field of \"", "+", "Twine", "(", "Size", ")", "+", "(", "(", "Size", "==", "1", ")", "?", "\" byte.\"", ":", "\" bytes.\"", ")", ")", ";", "}", "else", "{", "assert", "(", "(", "Size", "==", "0", "||", "isIntN", "(", "Size", "*", "8", "+", "1", ",", "SignedValue", ")", ")", "&&", "\"Value does not fit in the Fixup field\"", ")", ";", "}", "for", "(", "unsigned", "i", "=", "0", ";", "i", "!=", "Size", ";", "++", "i", ")", "Data", "[", "Fixup", ".", "getOffset", "(", ")", "+", "i", "]", "=", "uint8_t", "(", "Value", ">>", "(", "i", "*", "8", ")", ")", ";", "}", "</s>" ]
[ "Apply", "the", "Value", "for", "given", "Fixup", "into", "the", "provided", "data", "fragment", ",", "at", "the", "offset", "specified", "by", "the", "fixup", "and", "following", "the", "fixup", "kind", "as", "appropriate", "." ]
[ "X86", "X86", "\"Invalid fixup offset!\"", "0", "8", "\"value of \"", "\" is too large for field of \"", "1", "\" byte.\"", "\" bytes.\"", "0", "8", "1", "\"Value does not fit in the Fixup field\"", "0", "8" ]
X86AsmBackend (2)1
applyFixup
X86
CPU
LLVM
4,736
242
1
[]
[ "<s>", "virtual", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "{", "}", "</s>" ]
[ "getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "." ]
[ "NVPTX" ]
NVPTXGenericToNVVM14
getAnalysisUsage
NVPTX
GPU
LLVM
4,737
11
1
[]
[ "<s>", "bool", "VERegisterInfo", "::", "isConstantPhysReg", "(", "unsigned", "PhysReg", ")", "const", "{", "return", "false", ";", "}", "</s>" ]
[ "Returns", "true", "if", "PhysReg", "is", "unallocatable", "and", "constant", "throughout", "the", "function", "." ]
[ "VE", "VE" ]
VERegisterInfo1
isConstantPhysReg
VE
CPU
LLVM
4,738
14
1
[]
[ "<s>", "bool", "AArch64MIPeepholeOpt", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "if", "(", "skipFunction", "(", "MF", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "TII", "=", "static_cast", "<", "const", "AArch64InstrInfo", "*", ">", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "MLI", "=", "&", "getAnalysis", "<", "MachineLoopInfo", ">", "(", ")", ";", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "if", "(", "!", "MRI", "->", "isSSA", "(", ")", ")", "return", "false", ";", "bool", "Changed", "=", "false", ";", "SmallSetVector", "<", "MachineInstr", "*", ",", "8", ">", "ToBeRemoved", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "MF", ")", "{", "for", "(", "MachineInstr", "&", "MI", ":", "MBB", ")", "{", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "AArch64", "::", "ANDWrr", ":", "Changed", "=", "visitAND", "<", "uint32_t", ">", "(", "MI", ",", "ToBeRemoved", ")", ";", "break", ";", "case", "AArch64", "::", "ANDXrr", ":", "Changed", "=", "visitAND", "<", "uint64_t", ">", "(", "MI", ",", "ToBeRemoved", ")", ";", "break", ";", "}", "}", "}", "for", "(", "MachineInstr", "*", "MI", ":", "ToBeRemoved", ")", "MI", "->", "eraseFromParent", "(", ")", ";", "return", "Changed", ";", "}", "</s>" ]
[ "runOnMachineFunction", "-", "Emit", "the", "function", "body", "." ]
[ "AArch64", "AArch64", "AArch64", "8", "AArch64::ANDWrr", "AArch64::ANDXrr" ]
AArch64MIPeepholeOpt2
runOnMachineFunction
AArch64
CPU
LLVM
4,739
179
1
[]
[ "<s>", "static", "void", "macho_branch_islands", "(", "void", ")", "{", "char", "tmp_buf", "[", "512", "]", ";", "while", "(", "!", "vec_safe_is_empty", "(", "branch_islands", ")", ")", "{", "branch_island", "*", "bi", "=", "&", "branch_islands", "->", "last", "(", ")", ";", "const", "char", "*", "label", "=", "IDENTIFIER_POINTER", "(", "bi", "->", "label_name", ")", ";", "const", "char", "*", "name", "=", "IDENTIFIER_POINTER", "(", "bi", "->", "function_name", ")", ";", "char", "name_buf", "[", "512", "]", ";", "if", "(", "name", "[", "0", "]", "==", "'*'", "||", "name", "[", "0", "]", "==", "'&'", ")", "strcpy", "(", "name_buf", ",", "name", "+", "1", ")", ";", "else", "{", "name_buf", "[", "0", "]", "=", "'_'", ";", "strcpy", "(", "name_buf", "+", "1", ",", "name", ")", ";", "}", "strcpy", "(", "tmp_buf", ",", "\"\\n\"", ")", ";", "strcat", "(", "tmp_buf", ",", "label", ")", ";", "if", "(", "write_symbols", "==", "DBX_DEBUG", "||", "write_symbols", "==", "XCOFF_DEBUG", ")", "dbxout_stabd", "(", "N_SLINE", ",", "bi", "->", "line_number", ")", ";", "if", "(", "flag_pic", ")", "{", "if", "(", "TARGET_LINK_STACK", ")", "{", "char", "name", "[", "32", "]", ";", "get_ppc476_thunk_name", "(", "name", ")", ";", "strcat", "(", "tmp_buf", ",", "\":\\n\\tmflr r0\\n\\tbl \"", ")", ";", "strcat", "(", "tmp_buf", ",", "name", ")", ";", "strcat", "(", "tmp_buf", ",", "\"\\n\"", ")", ";", "strcat", "(", "tmp_buf", ",", "label", ")", ";", "strcat", "(", "tmp_buf", ",", "\"_pic:\\n\\tmflr r11\\n\"", ")", ";", "}", "else", "{", "strcat", "(", "tmp_buf", ",", "\":\\n\\tmflr r0\\n\\tbcl 20,31,\"", ")", ";", "strcat", "(", "tmp_buf", ",", "label", ")", ";", "strcat", "(", "tmp_buf", ",", "\"_pic\\n\"", ")", ";", "strcat", "(", "tmp_buf", ",", "label", ")", ";", "strcat", "(", "tmp_buf", ",", "\"_pic:\\n\\tmflr r11\\n\"", ")", ";", "}", "strcat", "(", "tmp_buf", ",", "\"\\taddis r11,r11,ha16(\"", ")", ";", "strcat", "(", "tmp_buf", ",", "name_buf", ")", ";", "strcat", "(", "tmp_buf", ",", "\" - \"", ")", ";", "strcat", "(", "tmp_buf", ",", "label", ")", ";", "strcat", "(", "tmp_buf", ",", "\"_pic)\\n\"", ")", ";", "strcat", "(", "tmp_buf", ",", "\"\\tmtlr r0\\n\"", ")", ";", "strcat", "(", "tmp_buf", ",", "\"\\taddi r12,r11,lo16(\"", ")", ";", "strcat", "(", "tmp_buf", ",", "name_buf", ")", ";", "strcat", "(", "tmp_buf", ",", "\" - \"", ")", ";", "strcat", "(", "tmp_buf", ",", "label", ")", ";", "strcat", "(", "tmp_buf", ",", "\"_pic)\\n\"", ")", ";", "strcat", "(", "tmp_buf", ",", "\"\\tmtctr r12\\n\\tbctr\\n\"", ")", ";", "}", "else", "{", "strcat", "(", "tmp_buf", ",", "\":\\nlis r12,hi16(\"", ")", ";", "strcat", "(", "tmp_buf", ",", "name_buf", ")", ";", "strcat", "(", "tmp_buf", ",", "\")\\n\\tori r12,r12,lo16(\"", ")", ";", "strcat", "(", "tmp_buf", ",", "name_buf", ")", ";", "strcat", "(", "tmp_buf", ",", "\")\\n\\tmtctr r12\\n\\tbctr\"", ")", ";", "}", "output_asm_insn", "(", "tmp_buf", ",", "0", ")", ";", "if", "(", "write_symbols", "==", "DBX_DEBUG", "||", "write_symbols", "==", "XCOFF_DEBUG", ")", "dbxout_stabd", "(", "N_SLINE", ",", "bi", "->", "line_number", ")", ";", "branch_islands", "->", "pop", "(", ")", ";", "}", "}", "</s>" ]
[ "Generate", "far-jump", "branch", "islands", "for", "everything", "on", "the", "branch_island_list", ".", "Invoked", "immediately", "after", "the", "last", "instruction", "of", "the", "epilogue", "has", "been", "emitted", ";", "the", "branch-islands", "must", "be", "appended", "to", ",", "and", "contiguous", "with", ",", "the", "function", "body", ".", "Mach-O", "stubs", "are", "generated", "in", "machopic_output_stub", "(", ")", "." ]
[ "rs6000", "512", "512", "0", "0", "1", "0", "1", "\"\\n\"", "32", "\":\\n\\tmflr r0\\n\\tbl \"", "\"\\n\"", "\"_pic:\\n\\tmflr r11\\n\"", "\":\\n\\tmflr r0\\n\\tbcl 20,31,\"", "\"_pic\\n\"", "\"_pic:\\n\\tmflr r11\\n\"", "\"\\taddis r11,r11,ha16(\"", "\" - \"", "\"_pic)\\n\"", "\"\\tmtlr r0\\n\"", "\"\\taddi r12,r11,lo16(\"", "\" - \"", "\"_pic)\\n\"", "\"\\tmtctr r12\\n\\tbctr\\n\"", "\":\\nlis r12,hi16(\"", "\")\\n\\tori r12,r12,lo16(\"", "\")\\n\\tmtctr r12\\n\\tbctr\"", "0" ]
rs60004
macho_branch_islands
rs6000
CPU
GCC
4,740
392
1
[]
[ "<s>", "void", "xtensa_expand_compare_and_swap", "(", "rtx", "target", ",", "rtx", "mem", ",", "rtx", "cmp", ",", "rtx", "new_rtx", ")", "{", "machine_mode", "mode", "=", "GET_MODE", "(", "mem", ")", ";", "struct", "alignment_context", "ac", ";", "rtx", "tmp", ",", "cmpv", ",", "newv", ",", "val", ";", "rtx", "oldval", "=", "gen_reg_rtx", "(", "SImode", ")", ";", "rtx", "res", "=", "gen_reg_rtx", "(", "SImode", ")", ";", "rtx_code_label", "*", "csloop", "=", "gen_label_rtx", "(", ")", ";", "rtx_code_label", "*", "csend", "=", "gen_label_rtx", "(", ")", ";", "init_alignment_context", "(", "&", "ac", ",", "mem", ")", ";", "if", "(", "ac", ".", "shift", "!=", "NULL_RTX", ")", "{", "cmp", "=", "xtensa_expand_mask_and_shift", "(", "cmp", ",", "mode", ",", "ac", ".", "shift", ")", ";", "new_rtx", "=", "xtensa_expand_mask_and_shift", "(", "new_rtx", ",", "mode", ",", "ac", ".", "shift", ")", ";", "}", "val", "=", "force_reg", "(", "SImode", ",", "expand_simple_binop", "(", "SImode", ",", "AND", ",", "ac", ".", "memsi", ",", "ac", ".", "modemaski", ",", "NULL_RTX", ",", "1", ",", "OPTAB_DIRECT", ")", ")", ";", "emit_label", "(", "csloop", ")", ";", "cmpv", "=", "force_reg", "(", "SImode", ",", "expand_simple_binop", "(", "SImode", ",", "IOR", ",", "cmp", ",", "val", ",", "NULL_RTX", ",", "1", ",", "OPTAB_DIRECT", ")", ")", ";", "newv", "=", "force_reg", "(", "SImode", ",", "expand_simple_binop", "(", "SImode", ",", "IOR", ",", "new_rtx", ",", "val", ",", "NULL_RTX", ",", "1", ",", "OPTAB_DIRECT", ")", ")", ";", "emit_insn", "(", "gen_sync_compare_and_swapsi", "(", "res", ",", "ac", ".", "memsi", ",", "cmpv", ",", "newv", ")", ")", ";", "emit_cmp_and_jump_insns", "(", "res", ",", "cmpv", ",", "EQ", ",", "const0_rtx", ",", "SImode", ",", "true", ",", "csend", ")", ";", "emit_move_insn", "(", "oldval", ",", "val", ")", ";", "tmp", "=", "expand_simple_binop", "(", "SImode", ",", "AND", ",", "res", ",", "ac", ".", "modemaski", ",", "val", ",", "1", ",", "OPTAB_DIRECT", ")", ";", "if", "(", "tmp", "!=", "val", ")", "emit_move_insn", "(", "val", ",", "tmp", ")", ";", "emit_cmp_and_jump_insns", "(", "oldval", ",", "val", ",", "NE", ",", "const0_rtx", ",", "SImode", ",", "true", ",", "csloop", ")", ";", "emit_label", "(", "csend", ")", ";", "convert_move", "(", "target", ",", "(", "ac", ".", "shift", "==", "NULL_RTX", "?", "res", ":", "expand_simple_binop", "(", "SImode", ",", "LSHIFTRT", ",", "res", ",", "ac", ".", "shift", ",", "NULL_RTX", ",", "1", ",", "OPTAB_DIRECT", ")", ")", ",", "1", ")", ";", "}", "</s>" ]
[ "Expand", "an", "atomic", "compare", "and", "swap", "operation", "for", "HImode", "and", "QImode", ".", "MEM", "is", "the", "memory", "location", ",", "CMP", "the", "old", "value", "to", "compare", "MEM", "with", "and", "NEW_RTX", "the", "value", "to", "set", "if", "CMP", "==", "MEM", "." ]
[ "xtensa", "1", "1", "1", "1", "1", "1" ]
xtensa
xtensa_expand_compare_and_swap
xtensa
MPU
GCC
4,741
327
1
[]
[ "<s>", "bool", "TMS320C64XIfConversion", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "MF", ")", "{", "NumRemovedBranches", "=", "0", ";", "NumPredicatedBlocks", "=", "0", ";", "NumDuplicatedBlocks", "=", "0", ";", "if", "(", "!", "FastEstimation", ")", "MPI", "=", "&", "getAnalysis", "<", "MachineProfileAnalysis", ">", "(", ")", ";", "MLI", "=", "&", "getAnalysis", "<", "MachineLoopInfo", ">", "(", ")", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Run 'TMS320C64XIfConversion' pass for '\"", "<<", "MF", ".", "getFunction", "(", ")", "->", "getNameStr", "(", ")", "<<", "\"'\\n\"", ")", ";", "double", "conversionPercentLimit", "=", "ConversionLimit", ";", "if", "(", "conversionPercentLimit", "<", "0", "||", "conversionPercentLimit", ">", "1.0", ")", "conversionPercentLimit", "=", "0.25", ";", "unsigned", "maxConversions", "=", "MF", ".", "size", "(", ")", "*", "ConversionLimit", ";", "bool", "continueConversion", "=", "true", ";", "while", "(", "continueConversion", ")", "{", "candidateMap", ".", "clear", "(", ")", ";", "analyzedBlocks", ".", "clear", "(", ")", ";", "analyzeMachineFunction", "(", "MF", ")", ";", "if", "(", "RunOnSuperblocks", ")", "extractFromSuperblocks", "(", ")", ";", "else", "extractFromMachineFunction", "(", ")", ";", "std", "::", "multimap", "<", "unsigned", ",", "IfConvertible", ">", "::", "reverse_iterator", "J", ";", "bool", "conversionDone", "=", "false", ";", "for", "(", "J", "=", "candidateMap", ".", "rbegin", "(", ")", ";", "J", "!=", "candidateMap", ".", "rend", "(", ")", ";", "++", "J", ")", "{", "if", "(", "convertStructure", "(", "J", "->", "second", ")", ")", "{", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Converted:\\n\"", ";", "printCandidate", "(", "J", "->", "second", ")", ")", ";", "conversionDone", "=", "true", ";", "break", ";", "}", "}", "if", "(", "!", "conversionDone", ")", "break", ";", "if", "(", "AggressiveConversion", ")", "continueConversion", "=", "true", ";", "else", "continueConversion", "=", "--", "maxConversions", ">", "0", ";", "}", "NumRemovedBranchesStat", "+=", "NumRemovedBranches", ";", "NumPredicatedBlocksStat", "+=", "NumPredicatedBlocks", ";", "NumDuplicatedBlocksStat", "+=", "NumDuplicatedBlocks", ";", "return", "NumRemovedBranches", "||", "NumDuplicatedBlocks", ";", "}", "</s>" ]
[ "runOnMachineFunction", "-", "Emit", "the", "function", "body", "." ]
[ "TMS320C64X", "TMS320C64X", "0", "0", "0", "\"Run 'TMS320C64XIfConversion' pass for '\"", "\"'\\n\"", "0", "1.0", "0.25", "\"Converted:\\n\"", "0" ]
TMS320C64XIfConversion
runOnMachineFunction
TMS320C64X
VLIW
LLVM
4,742
253
1
[]
[ "<s>", "static", "void", "record_jump", "(", "int", "cycle", ",", "rtx", "cond", ")", "{", "if", "(", "ss", ".", "jump_cycle_index", "==", "0", ")", "ss", ".", "jump_cycle_index", "=", "11", ";", "else", "ss", ".", "jump_cycle_index", "--", ";", "ss", ".", "jump_cycles", "[", "ss", ".", "jump_cycle_index", "]", "=", "cycle", ";", "ss", ".", "jump_cond", "[", "ss", ".", "jump_cycle_index", "]", "=", "cond", ";", "}", "</s>" ]
[ "Add", "a", "new", "entry", "in", "our", "scheduling", "state", "for", "a", "jump", "that", "occurs", "in", "CYCLE", "and", "has", "the", "opposite", "condition", "of", "COND", "." ]
[ "c6x", "0", "11" ]
c6x
record_jump
c6x
VLIW
GCC
4,743
54
1
[]
[ "<s>", "bool", "ARMBaseInstrInfo", "::", "PredicateInstruction", "(", "MachineInstr", "&", "MI", ",", "ArrayRef", "<", "MachineOperand", ">", "Pred", ")", "const", "{", "unsigned", "Opc", "=", "MI", ".", "getOpcode", "(", ")", ";", "if", "(", "isUncondBranchOpcode", "(", "Opc", ")", ")", "{", "MI", ".", "setDesc", "(", "get", "(", "getMatchingCondBranchOpcode", "(", "Opc", ")", ")", ")", ";", "MachineInstrBuilder", "(", "*", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ",", "MI", ")", ".", "addImm", "(", "Pred", "[", "0", "]", ".", "getImm", "(", ")", ")", ".", "addReg", "(", "Pred", "[", "1", "]", ".", "getReg", "(", ")", ")", ";", "return", "true", ";", "}", "int", "PIdx", "=", "MI", ".", "findFirstPredOperandIdx", "(", ")", ";", "if", "(", "PIdx", "!=", "-", "1", ")", "{", "MachineOperand", "&", "PMO", "=", "MI", ".", "getOperand", "(", "PIdx", ")", ";", "PMO", ".", "setImm", "(", "Pred", "[", "0", "]", ".", "getImm", "(", ")", ")", ";", "MI", ".", "getOperand", "(", "PIdx", "+", "1", ")", ".", "setReg", "(", "Pred", "[", "1", "]", ".", "getReg", "(", ")", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", "</s>" ]
[ "Convert", "the", "instruction", "into", "a", "predicated", "instruction", "." ]
[ "ARM", "ARM", "0", "1", "1", "0", "1", "1" ]
ARMBaseInstrInfo (2)2
PredicateInstruction
ARM
CPU
LLVM
4,744
162
1
[]
[ "<s>", "bool", "isValidUnquotedName", "(", "StringRef", "Name", ")", "const", "override", "{", "return", "true", ";", "}", "</s>" ]
[ "Return", "true", "if", "the", "identifier", "Name", "does", "not", "need", "quotes", "to", "be", "syntactically", "correct", "." ]
[ "JVM" ]
JVMMCAsmInfo
isValidUnquotedName
JVM
Virtual ISA
LLVM
4,745
13
1
[]
[ "<s>", "void", "final_prescan_insn", "(", "rtx", "insn", ",", "rtx", "*", "operand", "ATTRIBUTE_UNUSED", ",", "int", "num_operands", "ATTRIBUTE_UNUSED", ")", "{", "int", "uid", "=", "INSN_UID", "(", "insn", ")", ";", "if", "(", "TARGET_INSN_SIZE_DUMP", "||", "TARGET_ALL_DEBUG", ")", "{", "fprintf", "(", "asm_out_file", ",", "\"/*DEBUG: 0x%x\\t\\t%d\\t%d */\\n\"", ",", "INSN_ADDRESSES", "(", "uid", ")", ",", "INSN_ADDRESSES", "(", "uid", ")", "-", "last_insn_address", ",", "rtx_cost", "(", "PATTERN", "(", "insn", ")", ",", "INSN", ")", ")", ";", "}", "last_insn_address", "=", "INSN_ADDRESSES", "(", "uid", ")", ";", "}", "</s>" ]
[ "If", "defined", ",", "a", "C", "statement", "to", "be", "executed", "just", "prior", "to", "the", "output", "of", "assembler", "code", "for", "INSN", ",", "to", "modify", "the", "extracted", "operands", "so", "they", "will", "be", "output", "differently", ".", "Here", "the", "argument", "OPVEC", "is", "the", "vector", "containing", "the", "operands", "extracted", "from", "INSN", ",", "and", "NOPERANDS", "is", "the", "number", "of", "elements", "of", "the", "vector", "which", "contain", "meaningful", "data", "for", "this", "insn", ".", "The", "contents", "of", "this", "vector", "are", "what", "will", "be", "used", "to", "convert", "the", "insn", "template", "into", "assembler", "code", ",", "so", "you", "can", "change", "the", "assembler", "output", "by", "changing", "the", "contents", "of", "the", "vector", ".", "We", "use", "it", "to", "check", "if", "the", "current", "insn", "needs", "a", "nop", "in", "front", "of", "it", "because", "of", "load", "delays", ",", "and", "also", "to", "update", "the", "delay", "slot", "statistics", "." ]
[ "avr", "\"/*DEBUG: 0x%x\\t\\t%d\\t%d */\\n\"" ]
avr3
final_prescan_insn
avr
MPU
GCC
4,746
69
1
[]
[ "<s>", "SDValue", "Z80TargetLowering", "::", "LowerReturn", "(", "SDValue", "Chain", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "IsVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "OutputArg", ">", "&", "Outs", ",", "const", "SmallVectorImpl", "<", "SDValue", ">", "&", "OutVals", ",", "const", "SDLoc", "&", "DL", ",", "SelectionDAG", "&", "DAG", ")", "const", "{", "switch", "(", "CallConv", ")", "{", "case", "CallingConv", "::", "Fast", ":", "case", "CallingConv", "::", "C", ":", "break", ";", "default", ":", "report_fatal_error", "(", "\"Only FastCC and CCC is supported\"", ")", ";", "}", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "CCState", "CCInfo", "(", "CallConv", ",", "IsVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "analyzeOutputArgs", "(", "DAG", ".", "getMachineFunction", "(", ")", ",", "CCInfo", ",", "Outs", ",", "true", ",", "nullptr", ")", ";", "SDValue", "Glue", ";", "SmallVector", "<", "SDValue", ",", "4", ">", "RetOps", "(", "1", ",", "Chain", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RVLocs", ".", "size", "(", ")", ";", "i", "<", "e", ";", "++", "i", ")", "{", "SDValue", "Val", "=", "OutVals", "[", "i", "]", ";", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "Val", "=", "convertValVTToLocVT", "(", "DAG", ",", "Val", ",", "VA", ",", "DL", ")", ";", "if", "(", "VA", ".", "isRegLoc", "(", ")", ")", "{", "Chain", "=", "DAG", ".", "getCopyToReg", "(", "Chain", ",", "DL", ",", "VA", ".", "getLocReg", "(", ")", ",", "Val", ",", "Glue", ")", ";", "Glue", "=", "Chain", ".", "getValue", "(", "1", ")", ";", "RetOps", ".", "push_back", "(", "DAG", ".", "getRegister", "(", "VA", ".", "getLocReg", "(", ")", ",", "VA", ".", "getLocVT", "(", ")", ")", ")", ";", "}", "else", "if", "(", "VA", ".", "isMemLoc", "(", ")", ")", "{", "report_fatal_error", "(", "\"Stack Return is not supported\"", ")", ";", "}", "else", "{", "LLVM_DEBUG", "(", "dbgs", "(", ")", "<<", "\"Trying to return VAType: \"", "<<", "EVT", "(", "VA", ".", "getLocVT", "(", ")", ")", ".", "getEVTString", "(", ")", "<<", "\"\\n\"", ")", ";", "llvm_unreachable", "(", "\"Unsupported Return Value / Location\"", ")", ";", "}", "}", "RetOps", "[", "0", "]", "=", "Chain", ";", "if", "(", "Glue", ".", "getNode", "(", ")", ")", "{", "RetOps", ".", "push_back", "(", "Glue", ")", ";", "}", "return", "DAG", ".", "getNode", "(", "Z80ISD", "::", "RET", ",", "DL", ",", "MVT", "::", "Other", ",", "RetOps", ")", ";", "}", "</s>" ]
[ "This", "hook", "must", "be", "implemented", "to", "lower", "outgoing", "return", "values", ",", "described", "by", "the", "Outs", "array", ",", "into", "the", "specified", "DAG", "." ]
[ "Z80", "Z80", "ISD::OutputArg", "\"Only FastCC and CCC is supported\"", "16", "4", "1", "0", "1", "\"Stack Return is not supported\"", "\"Trying to return VAType: \"", "\"\\n\"", "\"Unsupported Return Value / Location\"", "0", "Z80ISD::RET", "MVT::Other" ]
Z80ISelLowering (3)
LowerReturn
Z80
MPU
LLVM
4,747
341
1
[]
[ "<s>", "bool", "isMem", "(", ")", "const", "override", "{", "return", "false", ";", "}", "</s>" ]
[ "isMem", "-", "Is", "this", "a", "memory", "operand", "?" ]
[ "TL45" ]
TL45AsmParser
isMem
TL45
MPU
LLVM
4,748
11
1
[]
[ "<s>", "void", "bpf_expand_cbranch", "(", "machine_mode", "mode", ",", "rtx", "*", "operands", ")", "{", "if", "(", "bpf_has_jmpext", ")", "return", ";", "enum", "rtx_code", "code", "=", "GET_CODE", "(", "operands", "[", "0", "]", ")", ";", "if", "(", "(", "code", "==", "LT", "||", "code", "==", "LE", "||", "code", "==", "LTU", "||", "code", "==", "LEU", ")", ")", "{", "PUT_CODE", "(", "operands", "[", "0", "]", ",", "reverse_condition", "(", "code", ")", ")", ";", "if", "(", "!", "register_operand", "(", "operands", "[", "2", "]", ",", "mode", ")", ")", "operands", "[", "2", "]", "=", "force_reg", "(", "mode", ",", "operands", "[", "2", "]", ")", ";", "rtx", "tmp", "=", "operands", "[", "1", "]", ";", "operands", "[", "1", "]", "=", "operands", "[", "2", "]", ";", "operands", "[", "2", "]", "=", "tmp", ";", "}", "}", "</s>" ]
[ "Expand", "to", "the", "instructions", "for", "a", "conditional", "branch", ".", "This", "function", "is", "called", "when", "expanding", "the", "'cbranch", "<", "mode", ">", "4", "'", "pattern", "in", "bpf.md", "." ]
[ "bpf", "0", "0", "2", "2", "2", "1", "1", "2", "2" ]
bpf
bpf_expand_cbranch
bpf
Virtual ISA
GCC
4,749
118
1
[]
[ "<s>", "bool", "targetHandlesStackFrameRounding", "(", ")", "const", "override", "{", "return", "true", ";", "}", "</s>" ]
[ "targetHandlesStackFrameRounding", "-", "Returns", "true", "if", "the", "target", "is", "responsible", "for", "rounding", "up", "the", "stack", "frame", "(", "probably", "at", "emitPrologue", "time", ")", "." ]
[ "Sparc" ]
SparcFrameLowering12
targetHandlesStackFrameRounding
Sparc
CPU
LLVM
4,750
11
1
[]
[ "<s>", "static", "bool", "aarch64_process_one_target_attr", "(", "char", "*", "arg_str", ")", "{", "bool", "invert", "=", "false", ";", "size_t", "len", "=", "strlen", "(", "arg_str", ")", ";", "if", "(", "len", "==", "0", ")", "{", "error", "(", "\"malformed %<target()%> pragma or attribute\"", ")", ";", "return", "false", ";", "}", "char", "*", "str_to_check", "=", "(", "char", "*", ")", "alloca", "(", "len", "+", "1", ")", ";", "strcpy", "(", "str_to_check", ",", "arg_str", ")", ";", "while", "(", "*", "str_to_check", "==", "' '", "||", "*", "str_to_check", "==", "'\\t'", ")", "str_to_check", "++", ";", "if", "(", "*", "str_to_check", "==", "'+'", ")", "return", "aarch64_handle_attr_isa_flags", "(", "str_to_check", ")", ";", "if", "(", "len", ">", "3", "&&", "strncmp", "(", "str_to_check", ",", "\"no-\"", ",", "3", ")", "==", "0", ")", "{", "invert", "=", "true", ";", "str_to_check", "+=", "3", ";", "}", "char", "*", "arg", "=", "strchr", "(", "str_to_check", ",", "'='", ")", ";", "if", "(", "arg", ")", "{", "*", "arg", "=", "'\\0'", ";", "arg", "++", ";", "}", "const", "struct", "aarch64_attribute_info", "*", "p_attr", ";", "bool", "found", "=", "false", ";", "for", "(", "p_attr", "=", "aarch64_attributes", ";", "p_attr", "->", "name", ";", "p_attr", "++", ")", "{", "if", "(", "strcmp", "(", "str_to_check", ",", "p_attr", "->", "name", ")", "!=", "0", ")", "continue", ";", "found", "=", "true", ";", "bool", "attr_need_arg_p", "=", "p_attr", "->", "attr_type", "==", "aarch64_attr_custom", "||", "p_attr", "->", "attr_type", "==", "aarch64_attr_enum", ";", "if", "(", "attr_need_arg_p", "^", "(", "arg", "!=", "NULL", ")", ")", "{", "error", "(", "\"pragma or attribute %<target(\\\"%s\\\")%> does not accept an argument\"", ",", "str_to_check", ")", ";", "return", "false", ";", "}", "if", "(", "invert", "&&", "!", "p_attr", "->", "allow_neg", ")", "{", "error", "(", "\"pragma or attribute %<target(\\\"%s\\\")%> does not allow a negated form\"", ",", "str_to_check", ")", ";", "return", "false", ";", "}", "switch", "(", "p_attr", "->", "attr_type", ")", "{", "case", "aarch64_attr_custom", ":", "gcc_assert", "(", "p_attr", "->", "handler", ")", ";", "if", "(", "!", "p_attr", "->", "handler", "(", "arg", ")", ")", "return", "false", ";", "break", ";", "case", "aarch64_attr_bool", ":", "{", "struct", "cl_decoded_option", "decoded", ";", "generate_option", "(", "p_attr", "->", "opt_num", ",", "NULL", ",", "!", "invert", ",", "CL_TARGET", ",", "&", "decoded", ")", ";", "aarch64_handle_option", "(", "&", "global_options", ",", "&", "global_options_set", ",", "&", "decoded", ",", "input_location", ")", ";", "break", ";", "}", "case", "aarch64_attr_mask", ":", "{", "struct", "cl_decoded_option", "decoded", ";", "decoded", ".", "opt_index", "=", "p_attr", "->", "opt_num", ";", "decoded", ".", "value", "=", "!", "invert", ";", "aarch64_handle_option", "(", "&", "global_options", ",", "&", "global_options_set", ",", "&", "decoded", ",", "input_location", ")", ";", "break", ";", "}", "case", "aarch64_attr_enum", ":", "{", "gcc_assert", "(", "arg", ")", ";", "bool", "valid", ";", "int", "value", ";", "valid", "=", "opt_enum_arg_to_value", "(", "p_attr", "->", "opt_num", ",", "arg", ",", "&", "value", ",", "CL_TARGET", ")", ";", "if", "(", "valid", ")", "{", "set_option", "(", "&", "global_options", ",", "NULL", ",", "p_attr", "->", "opt_num", ",", "value", ",", "NULL", ",", "DK_UNSPECIFIED", ",", "input_location", ",", "global_dc", ")", ";", "}", "else", "{", "error", "(", "\"pragma or attribute %<target(\\\"%s=%s\\\")%> is not valid\"", ",", "str_to_check", ",", "arg", ")", ";", "}", "break", ";", "}", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "return", "found", ";", "}", "</s>" ]
[ "Parse", "ARG_STR", "which", "contains", "the", "definition", "of", "one", "target", "attribute", ".", "Show", "appropriate", "errors", "if", "any", "or", "return", "true", "if", "the", "attribute", "is", "valid", ".", "PRAGMA_OR_ATTR", "holds", "the", "string", "to", "use", "in", "error", "messages", "about", "whether", "we", "'re", "processing", "a", "target", "attribute", "or", "pragma", "." ]
[ "aarch64", "0", "\"malformed %<target()%> pragma or attribute\"", "1", "3", "\"no-\"", "3", "0", "3", "0", "\"pragma or attribute %<target(\\\"%s\\\")%> does not accept an argument\"", "\"pragma or attribute %<target(\\\"%s\\\")%> does not allow a negated form\"", "\"pragma or attribute %<target(\\\"%s=%s\\\")%> is not valid\"" ]
aarch645
aarch64_process_one_target_attr
aarch64
CPU
GCC
4,751
442
1
[]
[ "<s>", "void", "load_pic_register", "(", ")", "{", "int", "orig_flag_pic", "=", "flag_pic", ";", "if", "(", "!", "flag_pic", ")", "abort", "(", ")", ";", "if", "(", "get_pc_symbol_name", "[", "0", "]", "==", "0", ")", "{", "int", "align", ";", "ASM_GENERATE_INTERNAL_LABEL", "(", "get_pc_symbol_name", ",", "\"LGETPC\"", ",", "0", ")", ";", "text_section", "(", ")", ";", "align", "=", "floor_log2", "(", "FUNCTION_BOUNDARY", "/", "BITS_PER_UNIT", ")", ";", "if", "(", "align", ">", "0", ")", "ASM_OUTPUT_ALIGN", "(", "asm_out_file", ",", "align", ")", ";", "ASM_OUTPUT_INTERNAL_LABEL", "(", "asm_out_file", ",", "\"LGETPC\"", ",", "0", ")", ";", "fputs", "(", "\"\\tretl\\n\\tadd\\t%o7, %l7, %l7\\n\"", ",", "asm_out_file", ")", ";", "}", "global_offset_table", "=", "gen_rtx_SYMBOL_REF", "(", "Pmode", ",", "\"_GLOBAL_OFFSET_TABLE_\"", ")", ";", "get_pc_symbol", "=", "gen_rtx_SYMBOL_REF", "(", "Pmode", ",", "get_pc_symbol_name", ")", ";", "flag_pic", "=", "0", ";", "emit_insn", "(", "gen_get_pc", "(", "pic_offset_table_rtx", ",", "global_offset_table", ",", "get_pc_symbol", ")", ")", ";", "flag_pic", "=", "orig_flag_pic", ";", "emit_insn", "(", "gen_rtx_USE", "(", "VOIDmode", ",", "pic_offset_table_rtx", ")", ")", ";", "}", "</s>" ]
[ "Emit", "code", "to", "load", "the", "PIC", "register", "." ]
[ "sparc", "0", "0", "\"LGETPC\"", "0", "0", "\"LGETPC\"", "0", "\"\\tretl\\n\\tadd\\t%o7, %l7, %l7\\n\"", "\"_GLOBAL_OFFSET_TABLE_\"", "0" ]
sparc2
load_pic_register
sparc
CPU
GCC
4,752
133
1
[]
[ "<s>", "static", "bool", "cortex_a9_sched_adjust_cost", "(", "rtx_insn", "*", "insn", ",", "int", "dep_type", ",", "rtx_insn", "*", "dep", ",", "int", "*", "cost", ")", "{", "switch", "(", "dep_type", ")", "{", "case", "REG_DEP_ANTI", ":", "*", "cost", "=", "0", ";", "return", "false", ";", "case", "REG_DEP_TRUE", ":", "case", "REG_DEP_OUTPUT", ":", "if", "(", "recog_memoized", "(", "insn", ")", ">=", "0", "&&", "recog_memoized", "(", "dep", ")", ">=", "0", ")", "{", "if", "(", "GET_CODE", "(", "PATTERN", "(", "insn", ")", ")", "==", "SET", ")", "{", "if", "(", "GET_MODE_CLASS", "(", "GET_MODE", "(", "SET_DEST", "(", "PATTERN", "(", "insn", ")", ")", ")", ")", "==", "MODE_FLOAT", "||", "GET_MODE_CLASS", "(", "GET_MODE", "(", "SET_SRC", "(", "PATTERN", "(", "insn", ")", ")", ")", ")", "==", "MODE_FLOAT", ")", "{", "enum", "attr_type", "attr_type_insn", "=", "get_attr_type", "(", "insn", ")", ";", "enum", "attr_type", "attr_type_dep", "=", "get_attr_type", "(", "dep", ")", ";", "if", "(", "REG_P", "(", "SET_DEST", "(", "PATTERN", "(", "insn", ")", ")", ")", "&&", "reg_set_p", "(", "SET_DEST", "(", "PATTERN", "(", "insn", ")", ")", ",", "dep", ")", ")", "{", "if", "(", "(", "attr_type_insn", "==", "TYPE_FMACS", "||", "attr_type_insn", "==", "TYPE_FMACD", ")", "&&", "(", "attr_type_dep", "==", "TYPE_FMACS", "||", "attr_type_dep", "==", "TYPE_FMACD", ")", ")", "{", "if", "(", "dep_type", "==", "REG_DEP_OUTPUT", ")", "*", "cost", "=", "insn_default_latency", "(", "dep", ")", "-", "3", ";", "else", "*", "cost", "=", "insn_default_latency", "(", "dep", ")", ";", "return", "false", ";", "}", "else", "{", "if", "(", "dep_type", "==", "REG_DEP_OUTPUT", ")", "*", "cost", "=", "insn_default_latency", "(", "dep", ")", "+", "1", ";", "else", "*", "cost", "=", "insn_default_latency", "(", "dep", ")", ";", "}", "return", "false", ";", "}", "}", "}", "}", "break", ";", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "return", "true", ";", "}", "</s>" ]
[ "Adjust", "cost", "hook", "for", "Cortex", "A9", "." ]
[ "arm", "0", "0", "0", "3", "1" ]
arm
cortex_a9_sched_adjust_cost
arm
CPU
GCC
4,753
252
1
[]
[ "<s>", "bool", "ARMBaseInstrInfo", "::", "isProfitableToIfCvt", "(", "MachineBasicBlock", "&", "TBB", ",", "unsigned", "TCycles", ",", "unsigned", "TExtra", ",", "MachineBasicBlock", "&", "FBB", ",", "unsigned", "FCycles", ",", "unsigned", "FExtra", ",", "BranchProbability", "Probability", ")", "const", "{", "if", "(", "!", "TCycles", ")", "return", "false", ";", "if", "(", "Subtarget", ".", "isThumb2", "(", ")", "&&", "TBB", ".", "getParent", "(", ")", "->", "getFunction", "(", ")", ".", "hasMinSize", "(", ")", ")", "{", "if", "(", "TBB", ".", "pred_size", "(", ")", "!=", "1", "||", "FBB", ".", "pred_size", "(", ")", "!=", "1", ")", "return", "false", ";", "}", "const", "unsigned", "ScalingUpFactor", "=", "1024", ";", "unsigned", "PredCost", "=", "(", "TCycles", "+", "FCycles", "+", "TExtra", "+", "FExtra", ")", "*", "ScalingUpFactor", ";", "unsigned", "UnpredCost", ";", "if", "(", "!", "Subtarget", ".", "hasBranchPredictor", "(", ")", ")", "{", "unsigned", "NotTakenBranchCost", "=", "1", ";", "unsigned", "TakenBranchCost", "=", "Subtarget", ".", "getMispredictionPenalty", "(", ")", ";", "unsigned", "TUnpredCycles", ",", "FUnpredCycles", ";", "if", "(", "!", "FCycles", ")", "{", "TUnpredCycles", "=", "TCycles", "+", "NotTakenBranchCost", ";", "FUnpredCycles", "=", "TakenBranchCost", ";", "}", "else", "{", "TUnpredCycles", "=", "TCycles", "+", "TakenBranchCost", ";", "FUnpredCycles", "=", "FCycles", "+", "NotTakenBranchCost", ";", "PredCost", "-=", "1", "*", "ScalingUpFactor", ";", "}", "unsigned", "TUnpredCost", "=", "Probability", ".", "scale", "(", "TUnpredCycles", "*", "ScalingUpFactor", ")", ";", "unsigned", "FUnpredCost", "=", "Probability", ".", "getCompl", "(", ")", ".", "scale", "(", "FUnpredCycles", "*", "ScalingUpFactor", ")", ";", "UnpredCost", "=", "TUnpredCost", "+", "FUnpredCost", ";", "if", "(", "Subtarget", ".", "isThumb2", "(", ")", "&&", "TCycles", "+", "FCycles", ">", "4", ")", "{", "PredCost", "+=", "(", "(", "TCycles", "+", "FCycles", "-", "4", ")", "/", "4", ")", "*", "ScalingUpFactor", ";", "}", "}", "else", "{", "unsigned", "TUnpredCost", "=", "Probability", ".", "scale", "(", "TCycles", "*", "ScalingUpFactor", ")", ";", "unsigned", "FUnpredCost", "=", "Probability", ".", "getCompl", "(", ")", ".", "scale", "(", "FCycles", "*", "ScalingUpFactor", ")", ";", "UnpredCost", "=", "TUnpredCost", "+", "FUnpredCost", ";", "UnpredCost", "+=", "1", "*", "ScalingUpFactor", ";", "UnpredCost", "+=", "Subtarget", ".", "getMispredictionPenalty", "(", ")", "*", "ScalingUpFactor", "/", "10", ";", "}", "return", "PredCost", "<=", "UnpredCost", ";", "}", "</s>" ]
[ "Second", "variant", "of", "isProfitableToIfCvt", "." ]
[ "ARM", "ARM", "1", "1", "1024", "1", "1", "4", "4", "4", "1", "10" ]
ARMBaseInstrInfo10
isProfitableToIfCvt
ARM
CPU
LLVM
4,754
302
1
[]
[ "<s>", "bool", "shouldTrackLaneMasks", "(", ")", "const", "override", "{", "return", "true", ";", "}", "</s>" ]
[ "Returns", "true", "if", "lanemasks", "should", "be", "tracked", "." ]
[ "TPC" ]
TPCMachineScheduler
shouldTrackLaneMasks
TPC
Virtual ISA
LLVM
4,755
11
1
[]
[ "<s>", "int", "RISCVTTIImpl", "::", "getIntImmCost", "(", "const", "APInt", "&", "Imm", ",", "Type", "*", "Ty", ",", "TTI", "::", "TargetCostKind", "CostKind", ")", "{", "assert", "(", "Ty", "->", "isIntegerTy", "(", ")", "&&", "\"getIntImmCost can only estimate cost of materialising integers\"", ")", ";", "if", "(", "Imm", "==", "0", ")", "return", "TTI", "::", "TCC_Free", ";", "const", "DataLayout", "&", "DL", "=", "getDataLayout", "(", ")", ";", "return", "RISCVMatInt", "::", "getIntMatCost", "(", "Imm", ",", "DL", ".", "getTypeSizeInBits", "(", "Ty", ")", ",", "getST", "(", ")", "->", "is64Bit", "(", ")", ")", ";", "}", "</s>" ]
[ "Calculate", "the", "cost", "of", "materializing", "a", "64-bit", "value", "." ]
[ "RI5CY", "RISCV", "\"getIntImmCost can only estimate cost of materialising integers\"", "0", "RISCVMatInt::getIntMatCost" ]
RISCVTargetTransformInfo
getIntImmCost
RI5CY
CPU
LLVM
4,756
75
1
[]
[ "<s>", "bool", "toc_relative_expr_p", "(", "const_rtx", "op", ",", "bool", "strict", ",", "const_rtx", "*", "tocrel_base_ret", ",", "const_rtx", "*", "tocrel_offset_ret", ")", "{", "if", "(", "!", "TARGET_TOC", ")", "return", "false", ";", "if", "(", "TARGET_CMODEL", "!=", "CMODEL_SMALL", ")", "{", "if", "(", "strict", "&&", "!", "(", "GET_CODE", "(", "op", ")", "==", "LO_SUM", "&&", "REG_P", "(", "XEXP", "(", "op", ",", "0", ")", ")", "&&", "INT_REG_OK_FOR_BASE_P", "(", "XEXP", "(", "op", ",", "0", ")", ",", "strict", ")", ")", ")", "return", "false", ";", "if", "(", "GET_CODE", "(", "op", ")", "==", "LO_SUM", ")", "op", "=", "XEXP", "(", "op", ",", "1", ")", ";", "}", "const_rtx", "tocrel_base", "=", "op", ";", "const_rtx", "tocrel_offset", "=", "const0_rtx", ";", "if", "(", "GET_CODE", "(", "op", ")", "==", "PLUS", "&&", "add_cint_operand", "(", "XEXP", "(", "op", ",", "1", ")", ",", "GET_MODE", "(", "op", ")", ")", ")", "{", "tocrel_base", "=", "XEXP", "(", "op", ",", "0", ")", ";", "tocrel_offset", "=", "XEXP", "(", "op", ",", "1", ")", ";", "}", "if", "(", "tocrel_base_ret", ")", "*", "tocrel_base_ret", "=", "tocrel_base", ";", "if", "(", "tocrel_offset_ret", ")", "*", "tocrel_offset_ret", "=", "tocrel_offset", ";", "return", "(", "GET_CODE", "(", "tocrel_base", ")", "==", "UNSPEC", "&&", "XINT", "(", "tocrel_base", ",", "1", ")", "==", "UNSPEC_TOCREL", ")", ";", "}", "</s>" ]
[ "Return", "true", "if", "OP", "is", "a", "toc", "pointer", "relative", "address", "(", "the", "output", "of", "create_TOC_reference", ")", ".", "If", "STRICT", ",", "do", "not", "match", "high", "part", "or", "non-split", "-mcmodel=large/medium", "toc", "pointer", "relative", "addresses", "." ]
[ "rs6000", "0", "0", "1", "1", "0", "1", "1" ]
rs60007
toc_relative_expr_p
rs6000
CPU
GCC
4,757
183
1
[]
[ "<s>", "bool", "AArch64CallLowering", "::", "lowerFormalArguments", "(", "MachineIRBuilder", "&", "MIRBuilder", ",", "const", "Function", "&", "F", ",", "ArrayRef", "<", "ArrayRef", "<", "Register", ">>", "VRegs", ")", "const", "{", "MachineFunction", "&", "MF", "=", "MIRBuilder", ".", "getMF", "(", ")", ";", "MachineBasicBlock", "&", "MBB", "=", "MIRBuilder", ".", "getMBB", "(", ")", ";", "MachineRegisterInfo", "&", "MRI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "auto", "&", "DL", "=", "F", ".", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "SmallVector", "<", "ArgInfo", ",", "8", ">", "SplitArgs", ";", "unsigned", "i", "=", "0", ";", "for", "(", "auto", "&", "Arg", ":", "F", ".", "args", "(", ")", ")", "{", "if", "(", "DL", ".", "getTypeStoreSize", "(", "Arg", ".", "getType", "(", ")", ")", "==", "0", ")", "continue", ";", "ArgInfo", "OrigArg", "{", "VRegs", "[", "i", "]", ",", "Arg", ".", "getType", "(", ")", "}", ";", "setArgFlags", "(", "OrigArg", ",", "i", "+", "AttributeList", "::", "FirstArgIndex", ",", "DL", ",", "F", ")", ";", "splitToValueTypes", "(", "OrigArg", ",", "SplitArgs", ",", "DL", ",", "MRI", ",", "F", ".", "getCallingConv", "(", ")", ")", ";", "++", "i", ";", "}", "if", "(", "!", "MBB", ".", "empty", "(", ")", ")", "MIRBuilder", ".", "setInstr", "(", "*", "MBB", ".", "begin", "(", ")", ")", ";", "const", "AArch64TargetLowering", "&", "TLI", "=", "*", "getTLI", "<", "AArch64TargetLowering", ">", "(", ")", ";", "CCAssignFn", "*", "AssignFn", "=", "TLI", ".", "CCAssignFnForCall", "(", "F", ".", "getCallingConv", "(", ")", ",", "false", ")", ";", "FormalArgHandler", "Handler", "(", "MIRBuilder", ",", "MRI", ",", "AssignFn", ")", ";", "if", "(", "!", "handleAssignments", "(", "MIRBuilder", ",", "SplitArgs", ",", "Handler", ")", ")", "return", "false", ";", "AArch64FunctionInfo", "*", "FuncInfo", "=", "MF", ".", "getInfo", "<", "AArch64FunctionInfo", ">", "(", ")", ";", "uint64_t", "StackOffset", "=", "Handler", ".", "StackUsed", ";", "if", "(", "F", ".", "isVarArg", "(", ")", ")", "{", "auto", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ";", "if", "(", "!", "Subtarget", ".", "isTargetDarwin", "(", ")", ")", "{", "return", "false", ";", "}", "StackOffset", "=", "alignTo", "(", "Handler", ".", "StackUsed", ",", "Subtarget", ".", "isTargetILP32", "(", ")", "?", "4", ":", "8", ")", ";", "auto", "&", "MFI", "=", "MIRBuilder", ".", "getMF", "(", ")", ".", "getFrameInfo", "(", ")", ";", "FuncInfo", "->", "setVarArgsStackIndex", "(", "MFI", ".", "CreateFixedObject", "(", "4", ",", "StackOffset", ",", "true", ")", ")", ";", "}", "if", "(", "doesCalleeRestoreStack", "(", "F", ".", "getCallingConv", "(", ")", ",", "MF", ".", "getTarget", "(", ")", ".", "Options", ".", "GuaranteedTailCallOpt", ")", ")", "{", "StackOffset", "=", "alignTo", "(", "StackOffset", ",", "16", ")", ";", "FuncInfo", "->", "setArgumentStackToRestore", "(", "StackOffset", ")", ";", "}", "FuncInfo", "->", "setBytesInStackArgArea", "(", "StackOffset", ")", ";", "auto", "&", "Subtarget", "=", "MF", ".", "getSubtarget", "<", "AArch64Subtarget", ">", "(", ")", ";", "if", "(", "Subtarget", ".", "hasCustomCallingConv", "(", ")", ")", "Subtarget", ".", "getRegisterInfo", "(", ")", "->", "UpdateCustomCalleeSavedRegs", "(", "MF", ")", ";", "handleMustTailForwardedRegisters", "(", "MIRBuilder", ",", "AssignFn", ")", ";", "MIRBuilder", ".", "setMBB", "(", "MBB", ")", ";", "return", "true", ";", "}", "</s>" ]
[ "This", "hook", "must", "be", "implemented", "to", "lower", "the", "incoming", "(", "formal", ")", "arguments", ",", "described", "by", "VRegs", ",", "for", "GlobalISel", "." ]
[ "AArch64", "AArch64", "8", "0", "0", "AArch64", "AArch64", "AArch64", "AArch64", "AArch64", "4", "8", "4", "16", "AArch64" ]
AArch64CallLowering15
lowerFormalArguments
AArch64
CPU
LLVM
4,758
440
1
[]
[ "<s>", "bool", "X86RegisterInfo", "::", "hasReservedSpillSlot", "(", "const", "MachineFunction", "&", "MF", ",", "unsigned", "Reg", ",", "int", "&", "FrameIdx", ")", "const", "{", "llvm_unreachable", "(", "\"Unused function on X86. Otherwise need a test case.\"", ")", ";", "}", "</s>" ]
[ "Return", "true", "if", "target", "has", "reserved", "a", "spill", "slot", "in", "the", "stack", "frame", "of", "the", "given", "function", "for", "the", "specified", "register", "." ]
[ "X86", "X86", "\"Unused function on X86. Otherwise need a test case.\"" ]
X86RegisterInfo (2)
hasReservedSpillSlot
X86
CPU
LLVM
4,759
25
1
[]
[ "<s>", "static", "void", "c6x_file_start", "(", "void", ")", "{", "c6x_flag_var_tracking", "=", "flag_var_tracking", ";", "flag_var_tracking", "=", "0", ";", "done_cfi_sections", "=", "false", ";", "default_file_start", "(", ")", ";", "asm_fprintf", "(", "asm_out_file", ",", "\"\\t.c6xabi_attribute Tag_ABI_array_object_alignment, 0\\n\"", ")", ";", "asm_fprintf", "(", "asm_out_file", ",", "\"\\t.c6xabi_attribute Tag_ABI_array_object_align_expected, 0\\n\"", ")", ";", "asm_fprintf", "(", "asm_out_file", ",", "\"\\t.c6xabi_attribute Tag_ABI_stack_align_needed, 0\\n\"", ")", ";", "asm_fprintf", "(", "asm_out_file", ",", "\"\\t.c6xabi_attribute Tag_ABI_stack_align_preserved, 0\\n\"", ")", ";", "asm_fprintf", "(", "asm_out_file", ",", "\"\\t.c6xabi_attribute Tag_ABI_wchar_t, %d\\n\"", ",", "2", ")", ";", "asm_fprintf", "(", "asm_out_file", ",", "\"\\t.c6xabi_attribute Tag_ABI_conformance, \\\"1.0\\\"\\n\"", ")", ";", "}", "</s>" ]
[ "Begin", "the", "assembly", "file", "." ]
[ "c6x", "0", "\"\\t.c6xabi_attribute Tag_ABI_array_object_alignment, 0\\n\"", "\"\\t.c6xabi_attribute Tag_ABI_array_object_align_expected, 0\\n\"", "\"\\t.c6xabi_attribute Tag_ABI_stack_align_needed, 0\\n\"", "\"\\t.c6xabi_attribute Tag_ABI_stack_align_preserved, 0\\n\"", "\"\\t.c6xabi_attribute Tag_ABI_wchar_t, %d\\n\"", "2", "\"\\t.c6xabi_attribute Tag_ABI_conformance, \\\"1.0\\\"\\n\"" ]
c6x
c6x_file_start
c6x
VLIW
GCC
4,760
68
1
[]
[ "<s>", "bool", "contains", "(", "int32_t", "V", ")", "const", "{", "return", "Min", "<=", "V", "&&", "V", "<=", "Max", "&&", "(", "V", "-", "Offset", ")", "%", "Align", "==", "0", ";", "}", "</s>" ]
[ "contains", "-", "Returns", "true", "if", "this", "trace", "contains", "the", "given", "basic", "block", "." ]
[ "Hexagon", "0" ]
HexagonConstExtenders (2)
contains
Hexagon
DSP
LLVM
4,761
28
1
[]
[ "<s>", "bool", "R600VectorRegMerger", "::", "runOnMachineFunction", "(", "MachineFunction", "&", "Fn", ")", "{", "if", "(", "skipFunction", "(", "Fn", ".", "getFunction", "(", ")", ")", ")", "return", "false", ";", "const", "R600Subtarget", "&", "ST", "=", "Fn", ".", "getSubtarget", "<", "R600Subtarget", ">", "(", ")", ";", "TII", "=", "ST", ".", "getInstrInfo", "(", ")", ";", "MRI", "=", "&", "Fn", ".", "getRegInfo", "(", ")", ";", "for", "(", "MachineFunction", "::", "iterator", "MBB", "=", "Fn", ".", "begin", "(", ")", ",", "MBBe", "=", "Fn", ".", "end", "(", ")", ";", "MBB", "!=", "MBBe", ";", "++", "MBB", ")", "{", "MachineBasicBlock", "*", "MB", "=", "&", "*", "MBB", ";", "PreviousRegSeq", ".", "clear", "(", ")", ";", "PreviousRegSeqByReg", ".", "clear", "(", ")", ";", "PreviousRegSeqByUndefCount", ".", "clear", "(", ")", ";", "for", "(", "MachineBasicBlock", "::", "iterator", "MII", "=", "MB", "->", "begin", "(", ")", ",", "MIIE", "=", "MB", "->", "end", "(", ")", ";", "MII", "!=", "MIIE", ";", "++", "MII", ")", "{", "MachineInstr", "&", "MI", "=", "*", "MII", ";", "if", "(", "MI", ".", "getOpcode", "(", ")", "!=", "AMDGPU", "::", "REG_SEQUENCE", ")", "{", "if", "(", "TII", "->", "get", "(", "MI", ".", "getOpcode", "(", ")", ")", ".", "TSFlags", "&", "R600_InstFlag", "::", "TEX_INST", ")", "{", "unsigned", "Reg", "=", "MI", ".", "getOperand", "(", "1", ")", ".", "getReg", "(", ")", ";", "for", "(", "MachineRegisterInfo", "::", "def_instr_iterator", "It", "=", "MRI", "->", "def_instr_begin", "(", "Reg", ")", ",", "E", "=", "MRI", "->", "def_instr_end", "(", ")", ";", "It", "!=", "E", ";", "++", "It", ")", "{", "RemoveMI", "(", "&", "(", "*", "It", ")", ")", ";", "}", "}", "continue", ";", "}", "RegSeqInfo", "RSI", "(", "*", "MRI", ",", "&", "MI", ")", ";", "unsigned", "Reg", "=", "MI", ".", "getOperand", "(", "0", ")", ".", "getReg", "(", ")", ";", "if", "(", "!", "areAllUsesSwizzeable", "(", "Reg", ")", ")", "continue", ";", "DEBUG", "(", "{", "dbgs", "(", ")", "<<", "\"Trying to optimize \"", ";", "MI", ".", "dump", "(", ")", ";", "}", ")", ";", "RegSeqInfo", "CandidateRSI", ";", "std", "::", "vector", "<", "std", "::", "pair", "<", "unsigned", ",", "unsigned", ">>", "RemapChan", ";", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Using common slots...\\n\"", ";", ")", ";", "if", "(", "tryMergeUsingCommonSlot", "(", "RSI", ",", "CandidateRSI", ",", "RemapChan", ")", ")", "{", "RemoveMI", "(", "CandidateRSI", ".", "Instr", ")", ";", "MII", "=", "RebuildVector", "(", "&", "RSI", ",", "&", "CandidateRSI", ",", "RemapChan", ")", ";", "trackRSI", "(", "RSI", ")", ";", "continue", ";", "}", "DEBUG", "(", "dbgs", "(", ")", "<<", "\"Using free slots...\\n\"", ";", ")", ";", "RemapChan", ".", "clear", "(", ")", ";", "if", "(", "tryMergeUsingFreeSlot", "(", "RSI", ",", "CandidateRSI", ",", "RemapChan", ")", ")", "{", "RemoveMI", "(", "CandidateRSI", ".", "Instr", ")", ";", "MII", "=", "RebuildVector", "(", "&", "RSI", ",", "&", "CandidateRSI", ",", "RemapChan", ")", ";", "trackRSI", "(", "RSI", ")", ";", "continue", ";", "}", "trackRSI", "(", "RSI", ")", ";", "}", "}", "</s>" ]
[ "runOnMachineFunction", "-", "Emit", "the", "function", "body", "." ]
[ "AMDGPU", "R600", "R600", "R600", "AMDGPU::REG_SEQUENCE", "R600_InstFlag::TEX_INST", "1", "SI", "0", "\"Trying to optimize \"", "SI", "\"Using common slots...\\n\"", "SI", "SI", "SI", "SI", "SI", "SI", "SI", "\"Using free slots...\\n\"", "SI", "SI", "SI", "SI", "SI", "SI", "SI", "SI", "SI" ]
R600OptimizeVectorRegisters22
runOnMachineFunction
AMDGPU
GPU
LLVM
4,762
419
1
[]
[ "<s>", "static", "MachineBasicBlock", "*", "split", "(", "MachineBasicBlock", "::", "iterator", "I", ")", "{", "MachineBasicBlock", "*", "MBB", "=", "(", "*", "I", ")", ".", "getParent", "(", ")", ";", "MachineFunction", "*", "MF", "=", "MBB", "->", "getParent", "(", ")", ";", "MachineBasicBlock", "*", "SuccMBB", "=", "MF", "->", "CreateMachineBasicBlock", "(", ")", ";", "auto", "MBBIter", "=", "++", "(", "MBB", "->", "getIterator", "(", ")", ")", ";", "MF", "->", "insert", "(", "MBBIter", ",", "SuccMBB", ")", ";", "SuccMBB", "->", "transferSuccessorsAndUpdatePHIs", "(", "MBB", ")", ";", "MBB", "->", "addSuccessor", "(", "SuccMBB", ")", ";", "SuccMBB", "->", "splice", "(", "SuccMBB", "->", "end", "(", ")", ",", "MBB", ",", "I", ",", "MBB", "->", "end", "(", ")", ")", ";", "return", "SuccMBB", ";", "}", "</s>" ]
[ "Split", "into", "substrings", "around", "the", "occurrences", "of", "a", "separator", "character", "." ]
[ "AMDGPU" ]
AMDGPUMachineCFGStructurizer
split
AMDGPU
GPU
LLVM
4,763
104
1
[]
[ "<s>", "static", "bool", "aarch64_empty_mask_is_expensive", "(", "unsigned", ")", "{", "return", "false", ";", "}", "</s>" ]
[ "Implement", "TARGET_VECTORIZE_EMPTY_MASK_IS_EXPENSIVE", ".", "Assume", "for", "now", "that", "it", "is", "n't", "worth", "branching", "around", "empty", "masked", "ops", "(", "including", "masked", "stores", ")", "." ]
[ "aarch64" ]
aarch64
aarch64_empty_mask_is_expensive
aarch64
CPU
GCC
4,764
11
1
[]
[ "<s>", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "AVR_INSTRUMENT_FUNCTIONS_NAME", ";", "}", "</s>" ]
[ "getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "." ]
[ "AVR", "AVR" ]
AVRInstrumentFunctions
getPassName
AVR
MPU
LLVM
4,765
11
1
[]
[ "<s>", "void", "assignValueToAddress", "(", "unsigned", "ValVReg", ",", "unsigned", "Addr", ",", "uint64_t", "Size", ",", "MachinePointerInfo", "&", "MPO", ",", "CCValAssign", "&", "VA", ")", "override", "{", "assert", "(", "Size", "==", "4", "&&", "\"Unsupported size\"", ")", ";", "auto", "MMO", "=", "MIRBuilder", ".", "getMF", "(", ")", ".", "getMachineMemOperand", "(", "MPO", ",", "MachineMemOperand", "::", "MOLoad", ",", "Size", ",", "0", ")", ";", "MIRBuilder", ".", "buildLoad", "(", "ValVReg", ",", "Addr", ",", "*", "MMO", ")", ";", "}", "</s>" ]
[ "An", "overload", "which", "takes", "an", "ArgInfo", "if", "additional", "information", "about", "the", "arg", "is", "needed", "." ]
[ "ARM", "4", "\"Unsupported size\"", "0" ]
ARMCallLowering12
assignValueToAddress
ARM
CPU
LLVM
4,766
66
1
[]
[ "<s>", "AliasResult", "AMDGPUAAResult", "::", "alias", "(", "const", "MemoryLocation", "&", "LocA", ",", "const", "MemoryLocation", "&", "LocB", ")", "{", "unsigned", "asA", "=", "LocA", ".", "Ptr", "->", "getType", "(", ")", "->", "getPointerAddressSpace", "(", ")", ";", "unsigned", "asB", "=", "LocB", ".", "Ptr", "->", "getType", "(", ")", "->", "getPointerAddressSpace", "(", ")", ";", "AliasResult", "Result", "=", "ASAliasRules", ".", "getAliasResult", "(", "asA", ",", "asB", ")", ";", "if", "(", "Result", "==", "NoAlias", ")", "return", "Result", ";", "return", "AAResultBase", "::", "alias", "(", "LocA", ",", "LocB", ")", ";", "}", "</s>" ]
[ "alias", "-", "If", "one", "of", "the", "pointers", "is", "to", "a", "global", "that", "we", "are", "tracking", ",", "and", "the", "other", "is", "some", "random", "pointer", ",", "we", "know", "there", "can", "not", "be", "an", "alias", ",", "because", "the", "address", "of", "the", "global", "is", "n't", "taken", "." ]
[ "AMDGPU", "AMDGPU" ]
AMDGPUAliasAnalysis12
alias
AMDGPU
GPU
LLVM
4,767
78
1
[]
[ "<s>", "bool", "nds32_valid_multiple_load_store_p", "(", "rtx", "op", ",", "bool", "load_p", ",", "bool", "bim_p", ")", "{", "int", "count", ";", "int", "first_elt_regno", ";", "int", "update_base_elt_idx", ";", "int", "offset", ";", "rtx", "elt", ";", "rtx", "update_base", ";", "if", "(", "bim_p", ")", "{", "count", "=", "XVECLEN", "(", "op", ",", "0", ")", "-", "1", ";", "elt", "=", "XVECEXP", "(", "op", ",", "0", ",", "1", ")", ";", "}", "else", "{", "count", "=", "XVECLEN", "(", "op", ",", "0", ")", ";", "elt", "=", "XVECEXP", "(", "op", ",", "0", ",", "0", ")", ";", "}", "if", "(", "GET_CODE", "(", "elt", ")", "!=", "SET", "||", "count", "<=", "1", "||", "count", ">", "25", ")", "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", ",", "bim_p", "?", "1", ":", "0", ",", "first_elt_regno", ",", "count", ")", ")", "return", "false", ";", "if", "(", "bim_p", ")", "{", "update_base_elt_idx", "=", "0", ";", "update_base", "=", "XVECEXP", "(", "op", ",", "0", ",", "update_base_elt_idx", ")", ";", "if", "(", "!", "REG_P", "(", "SET_DEST", "(", "update_base", ")", ")", ")", "return", "false", ";", "if", "(", "GET_CODE", "(", "SET_SRC", "(", "update_base", ")", ")", "!=", "PLUS", ")", "return", "false", ";", "else", "{", "offset", "=", "count", "*", "UNITS_PER_WORD", ";", "elt", "=", "XEXP", "(", "SET_SRC", "(", "update_base", ")", ",", "1", ")", ";", "if", "(", "GET_CODE", "(", "elt", ")", "!=", "CONST_INT", "||", "(", "INTVAL", "(", "elt", ")", "!=", "offset", ")", ")", "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", "1", "0", "1", "0", "0", "0", "1", "25", "1", "0", "0", "0", "1" ]
nds32-predicates
nds32_valid_multiple_load_store_p
nds32
CPU
GCC
4,768
300
1
[]
[ "<s>", "static", "void", "sh_print_operand_address", "(", "FILE", "*", "stream", ",", "machine_mode", ",", "rtx", "x", ")", "{", "switch", "(", "GET_CODE", "(", "x", ")", ")", "{", "case", "REG", ":", "case", "SUBREG", ":", "fprintf", "(", "stream", ",", "\"@%s\"", ",", "reg_names", "[", "true_regnum", "(", "x", ")", "]", ")", ";", "break", ";", "case", "PLUS", ":", "{", "rtx", "base", "=", "XEXP", "(", "x", ",", "0", ")", ";", "rtx", "index", "=", "XEXP", "(", "x", ",", "1", ")", ";", "switch", "(", "GET_CODE", "(", "index", ")", ")", "{", "case", "CONST_INT", ":", "fprintf", "(", "stream", ",", "\"@(%d,%s)\"", ",", "(", "int", ")", "INTVAL", "(", "index", ")", ",", "reg_names", "[", "true_regnum", "(", "base", ")", "]", ")", ";", "break", ";", "case", "REG", ":", "case", "SUBREG", ":", "{", "int", "base_num", "=", "true_regnum", "(", "base", ")", ";", "int", "index_num", "=", "true_regnum", "(", "index", ")", ";", "fprintf", "(", "stream", ",", "\"@(r0,%s)\"", ",", "reg_names", "[", "MAX", "(", "base_num", ",", "index_num", ")", "]", ")", ";", "break", ";", "}", "default", ":", "gcc_unreachable", "(", ")", ";", "}", "}", "break", ";", "case", "PRE_DEC", ":", "fprintf", "(", "stream", ",", "\"@-%s\"", ",", "reg_names", "[", "true_regnum", "(", "XEXP", "(", "x", ",", "0", ")", ")", "]", ")", ";", "break", ";", "case", "POST_INC", ":", "fprintf", "(", "stream", ",", "\"@%s+\"", ",", "reg_names", "[", "true_regnum", "(", "XEXP", "(", "x", ",", "0", ")", ")", "]", ")", ";", "break", ";", "default", ":", "x", "=", "mark_constant_pool_use", "(", "x", ")", ";", "output_addr_const", "(", "stream", ",", "x", ")", ";", "break", ";", "}", "}", "</s>" ]
[ "Print", "the", "operand", "address", "in", "x", "to", "the", "stream", "." ]
[ "sh", "\"@%s\"", "0", "1", "\"@(%d,%s)\"", "\"@(r0,%s)\"", "\"@-%s\"", "0", "\"@%s+\"", "0" ]
sh5
sh_print_operand_address
sh
CPU
GCC
4,769
228
1
[]
[ "<s>", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"Combine common expressions into functions\"", ";", "}", "</s>" ]
[ "getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "." ]
[ "TVM", "\"Combine common expressions into functions\"" ]
TVMReFunc
getPassName
TVM
Virtual ISA
LLVM
4,770
11
1
[]
[ "<s>", "bool", "X86FrameLowering", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "const", "MachineModuleInfo", "&", "MMI", "=", "MF", ".", "getMMI", "(", ")", ";", "return", "(", "MF", ".", "getTarget", "(", ")", ".", "Options", ".", "DisableFramePointerElim", "(", "MF", ")", "||", "TRI", "->", "needsStackRealignment", "(", "MF", ")", "||", "MFI", ".", "hasVarSizedObjects", "(", ")", "||", "MFI", ".", "isFrameAddressTaken", "(", ")", "||", "MFI", ".", "hasOpaqueSPAdjustment", "(", ")", "||", "MF", ".", "getInfo", "<", "X86MachineFunctionInfo", ">", "(", ")", "->", "getForceFramePointer", "(", ")", "||", "MMI", ".", "callsUnwindInit", "(", ")", "||", "MMI", ".", "hasEHFunclets", "(", ")", "||", "MMI", ".", "callsEHReturn", "(", ")", "||", "MFI", ".", "hasStackMap", "(", ")", "||", "MFI", ".", "hasPatchPoint", "(", ")", "||", "MFI", ".", "hasCopyImplyingStackAdjustment", "(", ")", ")", ";", "}", "</s>" ]
[ "hasFP", "-", "Return", "true", "if", "the", "specified", "function", "should", "have", "a", "dedicated", "frame", "pointer", "register", "." ]
[ "X86", "X86", "X86" ]
X86FrameLowering102
hasFP
X86
CPU
LLVM
4,771
125
1
[]
[ "<s>", "bool", "MandarinAsmPrinter", "::", "PrintAsmOperand", "(", "const", "MachineInstr", "*", "MI", ",", "unsigned", "OpNo", ",", "unsigned", "AsmVariant", ",", "const", "char", "*", "ExtraCode", ",", "raw_ostream", "&", "O", ")", "{", "if", "(", "ExtraCode", "&&", "ExtraCode", "[", "0", "]", ")", "{", "if", "(", "ExtraCode", "[", "1", "]", "!=", "0", ")", "return", "true", ";", "switch", "(", "ExtraCode", "[", "0", "]", ")", "{", "default", ":", "return", "AsmPrinter", "::", "PrintAsmOperand", "(", "MI", ",", "OpNo", ",", "AsmVariant", ",", "ExtraCode", ",", "O", ")", ";", "case", "'r'", ":", "break", ";", "}", "}", "printOperand", "(", "MI", ",", "OpNo", ",", "O", ")", ";", "return", "false", ";", "}", "</s>" ]
[ "PrintAsmOperand", "-", "Print", "out", "an", "operand", "for", "an", "inline", "asm", "expression", "." ]
[ "Mandarin", "0", "1", "0", "0" ]
MandarinAsmPrinter
PrintAsmOperand
Mandarin
CPU
LLVM
4,772
94
1
[]
[ "<s>", "void", "WebAssemblyInstPrinter", "::", "printInst", "(", "const", "MCInst", "*", "MI", ",", "raw_ostream", "&", "OS", ",", "StringRef", "Annot", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "{", "printInstruction", "(", "MI", ",", "OS", ")", ";", "const", "MCInstrDesc", "&", "Desc", "=", "MII", ".", "get", "(", "MI", "->", "getOpcode", "(", ")", ")", ";", "if", "(", "Desc", ".", "isVariadic", "(", ")", ")", "for", "(", "auto", "i", "=", "Desc", ".", "getNumOperands", "(", ")", ",", "e", "=", "MI", "->", "getNumOperands", "(", ")", ";", "i", "<", "e", ";", "++", "i", ")", "{", "if", "(", "i", "!=", "0", "&&", "(", "(", "MI", "->", "getOpcode", "(", ")", "!=", "WebAssembly", "::", "CALL_INDIRECT_VOID", "&&", "MI", "->", "getOpcode", "(", ")", "!=", "WebAssembly", "::", "CALL_INDIRECT_VOID_S", ")", "||", "i", "!=", "Desc", ".", "getNumOperands", "(", ")", ")", ")", "OS", "<<", "\", \"", ";", "printOperand", "(", "MI", ",", "i", ",", "OS", ")", ";", "}", "printAnnotation", "(", "OS", ",", "Annot", ")", ";", "if", "(", "CommentStream", ")", "{", "switch", "(", "MI", "->", "getOpcode", "(", ")", ")", "{", "default", ":", "break", ";", "case", "WebAssembly", "::", "LOOP", ":", "case", "WebAssembly", "::", "LOOP_S", ":", "{", "printAnnotation", "(", "OS", ",", "\"label\"", "+", "utostr", "(", "ControlFlowCounter", ")", "+", "':'", ")", ";", "ControlFlowStack", ".", "push_back", "(", "std", "::", "make_pair", "(", "ControlFlowCounter", "++", ",", "true", ")", ")", ";", "break", ";", "}", "case", "WebAssembly", "::", "BLOCK", ":", "case", "WebAssembly", "::", "BLOCK_S", ":", "ControlFlowStack", ".", "push_back", "(", "std", "::", "make_pair", "(", "ControlFlowCounter", "++", ",", "false", ")", ")", ";", "break", ";", "case", "WebAssembly", "::", "END_LOOP", ":", "case", "WebAssembly", "::", "END_LOOP_S", ":", "if", "(", "!", "ControlFlowStack", ".", "empty", "(", ")", ")", "ControlFlowStack", ".", "pop_back", "(", ")", ";", "break", ";", "case", "WebAssembly", "::", "END_BLOCK", ":", "case", "WebAssembly", "::", "END_BLOCK_S", ":", "if", "(", "!", "ControlFlowStack", ".", "empty", "(", ")", ")", "printAnnotation", "(", "OS", ",", "\"label\"", "+", "utostr", "(", "ControlFlowStack", ".", "pop_back_val", "(", ")", ".", "first", ")", "+", "':'", ")", ";", "break", ";", "}", "unsigned", "NumFixedOperands", "=", "Desc", ".", "NumOperands", ";", "SmallSet", "<", "uint64_t", ",", "8", ">", "Printed", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "MI", "->", "getNumOperands", "(", ")", ";", "i", "<", "e", ";", "++", "i", ")", "{", "if", "(", "!", "(", "i", "<", "NumFixedOperands", "?", "(", "Desc", ".", "OpInfo", "[", "i", "]", ".", "OperandType", "==", "WebAssembly", "::", "OPERAND_BASIC_BLOCK", ")", ":", "(", "Desc", ".", "TSFlags", "&", "WebAssemblyII", "::", "VariableOpImmediateIsLabel", ")", ")", ")", "continue", ";", "uint64_t", "Depth", "=", "MI", "->", "getOperand", "(", "i", ")", ".", "getImm", "(", ")", ";", "if", "(", "!", "Printed", ".", "insert", "(", "Depth", ")", ".", "second", ")", "continue", ";", "const", "auto", "&", "Pair", "=", "ControlFlowStack", ".", "rbegin", "(", ")", "[", "Depth", "]", ";", "printAnnotation", "(", "OS", ",", "utostr", "(", "Depth", ")", "+", "\": \"", "+", "(", "Pair", ".", "second", "?", "\"up\"", ":", "\"down\"", ")", "+", "\" to label\"", "+", "utostr", "(", "Pair", ".", "first", ")", ")", ";", "}", "}", "}", "</s>" ]
[ "Print", "the", "specified", "MCInst", "to", "the", "specified", "raw_ostream", "." ]
[ "WebAssembly", "WebAssembly", "0", "WebAssembly::CALL_INDIRECT_VOID", "WebAssembly::CALL_INDIRECT_VOID_S", "\", \"", "WebAssembly::LOOP", "WebAssembly::LOOP_S", "\"label\"", "WebAssembly::BLOCK", "WebAssembly::BLOCK_S", "WebAssembly::END_LOOP", "WebAssembly::END_LOOP_S", "WebAssembly::END_BLOCK", "WebAssembly::END_BLOCK_S", "\"label\"", "8", "0", "WebAssembly::OPERAND_BASIC_BLOCK", "WebAssemblyII::VariableOpImmediateIsLabel", "\": \"", "\"up\"", "\"down\"", "\" to label\"" ]
WebAssemblyInstPrinter12
printInst
WebAssembly
Virtual ISA
LLVM
4,773
447
1
[]
[ "<s>", "void", "GBZ80FrameLowering", "::", "emitPrologue", "(", "MachineFunction", "&", "MF", ")", "const", "{", "MachineBasicBlock", "&", "MBB", "=", "MF", ".", "front", "(", ")", ";", "MachineBasicBlock", "::", "iterator", "MBBI", "=", "MBB", ".", "begin", "(", ")", ";", "MachineFrameInfo", "*", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "GBZ80MachineFunctionInfo", "*", "GBZ80FI", "=", "MF", ".", "getInfo", "<", "GBZ80MachineFunctionInfo", ">", "(", ")", ";", "const", "GBZ80InstrInfo", "&", "TII", "=", "*", "static_cast", "<", "const", "GBZ80InstrInfo", "*", ">", "(", "MF", ".", "getSubtarget", "(", ")", ".", "getInstrInfo", "(", ")", ")", ";", "DebugLoc", "dl", "=", "MBBI", "!=", "MBB", ".", "end", "(", ")", "?", "MBBI", "->", "getDebugLoc", "(", ")", ":", "DebugLoc", "(", ")", ";", "uint64_t", "StackSize", "=", "MFI", "->", "getStackSize", "(", ")", ";", "uint64_t", "CallFrameSize", "=", "MFI", "->", "getMaxCallFrameSize", "(", ")", ";", "uint64_t", "FrameSize", "=", "GBZ80FI", "->", "getCalleeSavedFrameSize", "(", ")", ";", "uint64_t", "NumBytes", "=", "StackSize", "+", "CallFrameSize", "-", "FrameSize", ";", "while", "(", "MBBI", "!=", "MBB", ".", "end", "(", ")", "&&", "(", "MBBI", "->", "getOpcode", "(", ")", "==", "GBZ80", "::", "PUSH16r", ")", ")", "MBBI", "++", ";", "if", "(", "NumBytes", "||", "GBZ80FI", "->", "isNeedFP", "(", ")", ")", "{", "unsigned", "FP", "=", "TII", ".", "getRegisterInfo", "(", ")", ".", "getFrameRegister", "(", "MF", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "GBZ80", "::", "LD16ri", ")", ",", "FP", ")", ".", "addImm", "(", "-", "NumBytes", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "GBZ80", "::", "ADD16rSP", ")", ",", "FP", ")", ";", "BuildMI", "(", "MBB", ",", "MBBI", ",", "dl", ",", "TII", ".", "get", "(", "GBZ80", "::", "LD16SPr", ")", ")", ".", "addReg", "(", "FP", ")", ";", "}", "}", "</s>" ]
[ "emitProlog/emitEpilog", "-", "These", "methods", "insert", "prolog", "and", "epilog", "code", "into", "the", "function", "." ]
[ "GBZ80", "GB", "GB", "GB", "GB", "GB", "GB", "GB", "GBZ80::PUSH16r", "GB", "GBZ80::LD16ri", "GBZ80::ADD16rSP", "GBZ80::LD16SPr" ]
GBZ80FrameLowering (2)
emitPrologue
GBZ80
MPU
LLVM
4,774
257
1
[]
[ "<s>", "bool", "VEFrameLowering", "::", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "TargetRegisterInfo", "*", "RegInfo", "=", "MF", ".", "getSubtarget", "(", ")", ".", "getRegisterInfo", "(", ")", ";", "const", "MachineFrameInfo", "&", "MFI", "=", "MF", ".", "getFrameInfo", "(", ")", ";", "return", "MF", ".", "getTarget", "(", ")", ".", "Options", ".", "DisableFramePointerElim", "(", "MF", ")", "||", "RegInfo", "->", "hasStackRealignment", "(", "MF", ")", "||", "MFI", ".", "hasVarSizedObjects", "(", ")", "||", "MFI", ".", "isFrameAddressTaken", "(", ")", ";", "}", "</s>" ]
[ "hasFP", "-", "Return", "true", "if", "the", "specified", "function", "should", "have", "a", "dedicated", "frame", "pointer", "register", "." ]
[ "VE", "VE" ]
VEFrameLowering5
hasFP
VE
CPU
LLVM
4,775
72
1
[]
[ "<s>", "ArrayRef", "<", "std", "::", "pair", "<", "unsigned", ",", "const", "char", "*", ">>", "AArch64InstrInfo", "::", "getSerializableBitmaskMachineOperandTargetFlags", "(", ")", "const", "{", "using", "namespace", "AArch64II", ";", "static", "const", "std", "::", "pair", "<", "unsigned", ",", "const", "char", "*", ">", "TargetFlags", "[", "]", "=", "{", "{", "MO_COFFSTUB", ",", "\"aarch64-coffstub\"", "}", ",", "{", "MO_GOT", ",", "\"aarch64-got\"", "}", ",", "{", "MO_NC", ",", "\"aarch64-nc\"", "}", ",", "{", "MO_TLS", ",", "\"aarch64-tls\"", "}", ",", "{", "MO_DLLIMPORT", ",", "\"aarch64-dllimport\"", "}", "}", ";", "return", "makeArrayRef", "(", "TargetFlags", ")", ";", "}", "</s>" ]
[ "Return", "an", "array", "that", "contains", "the", "bitmask", "target", "flag", "values", "and", "their", "names", "." ]
[ "AArch64", "AArch64", "AArch64", "\"aarch64-coffstub\"", "\"aarch64-got\"", "\"aarch64-nc\"", "\"aarch64-tls\"", "\"aarch64-dllimport\"" ]
AArch64InstrInfo115
getSerializableBitmaskMachineOperandTargetFlags
AArch64
CPU
LLVM
4,776
78
1
[]
[ "<s>", "static", "void", "mmix_target_asm_function_prologue", "(", "FILE", "*", ")", "{", "cfun", "->", "machine", "->", "in_prologue", "=", "1", ";", "}", "</s>" ]
[ "Emit", "the", "function", "prologue", ".", "For", "simplicity", "while", "the", "port", "is", "still", "in", "a", "flux", ",", "we", "do", "it", "as", "text", "rather", "than", "the", "now", "preferred", "RTL", "way", ",", "as", "(", "define_insn", "``", "function_prologue", "''", ")", ".", "FIXME", ":", "Translate", "to", "RTL", "and/or", "optimize", "some", "of", "the", "DWARF", "2", "stuff", "." ]
[ "mmix", "1" ]
mmix
mmix_target_asm_function_prologue
mmix
CPU
GCC
4,777
17
1
[]
[ "<s>", "unsigned", "WebAssemblyTTIImpl", "::", "getArithmeticInstrCost", "(", "unsigned", "Opcode", ",", "Type", "*", "Ty", ",", "TTI", "::", "OperandValueKind", "Opd1Info", ",", "TTI", "::", "OperandValueKind", "Opd2Info", ",", "TTI", "::", "OperandValueProperties", "Opd1PropInfo", ",", "TTI", "::", "OperandValueProperties", "Opd2PropInfo", ",", "ArrayRef", "<", "const", "Value", "*", ">", "Args", ")", "{", "unsigned", "Cost", "=", "BasicTTIImplBase", "<", "WebAssemblyTTIImpl", ">", "::", "getArithmeticInstrCost", "(", "Opcode", ",", "Ty", ",", "Opd1Info", ",", "Opd2Info", ",", "Opd1PropInfo", ",", "Opd2PropInfo", ")", ";", "if", "(", "auto", "*", "VTy", "=", "dyn_cast", "<", "VectorType", ">", "(", "Ty", ")", ")", "{", "switch", "(", "Opcode", ")", "{", "case", "Instruction", "::", "LShr", ":", "case", "Instruction", "::", "AShr", ":", "case", "Instruction", "::", "Shl", ":", "if", "(", "Opd2Info", "!=", "TTI", "::", "OK_UniformValue", "&&", "Opd2Info", "!=", "TTI", "::", "OK_UniformConstantValue", ")", "Cost", "=", "VTy", "->", "getNumElements", "(", ")", "*", "(", "TargetTransformInfo", "::", "TCC_Basic", "+", "getArithmeticInstrCost", "(", "Opcode", ",", "VTy", "->", "getElementType", "(", ")", ")", "+", "TargetTransformInfo", "::", "TCC_Basic", ")", ";", "break", ";", "}", "}", "return", "Cost", ";", "}", "</s>" ]
[ "This", "is", "an", "approximation", "of", "reciprocal", "throughput", "of", "a", "math/logic", "op", "." ]
[ "WebAssembly", "WebAssembly", "WebAssembly" ]
WebAssemblyTargetTransformInfo2
getArithmeticInstrCost
WebAssembly
Virtual ISA
LLVM
4,778
150
1
[]
[ "<s>", "void", "BPFInstrInfo", "::", "storeRegToStackSlot", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "unsigned", "SrcReg", ",", "bool", "IsKill", ",", "int", "FI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "const", "TargetRegisterInfo", "*", "TRI", ")", "const", "{", "DebugLoc", "DL", ";", "if", "(", "I", "!=", "MBB", ".", "end", "(", ")", ")", "DL", "=", "I", "->", "getDebugLoc", "(", ")", ";", "if", "(", "RC", "==", "&", "BPF", "::", "GPRRegClass", ")", "BuildMI", "(", "MBB", ",", "I", ",", "DL", ",", "get", "(", "BPF", "::", "STD", ")", ")", ".", "addReg", "(", "SrcReg", ",", "getKillRegState", "(", "IsKill", ")", ")", ".", "addFrameIndex", "(", "FI", ")", ".", "addImm", "(", "0", ")", ";", "else", "llvm_unreachable", "(", "\"Can't store this register to stack slot\"", ")", ";", "}", "</s>" ]
[ "Store", "the", "specified", "register", "of", "the", "given", "register", "class", "to", "the", "specified", "stack", "frame", "index", "." ]
[ "BPF", "BPF", "BPF::GPRRegClass", "BPF::STD", "0", "\"Can't store this register to stack slot\"" ]
BPFInstrInfo
storeRegToStackSlot
BPF
Virtual ISA
LLVM
4,779
108
1
[]
[ "<s>", "static", "struct", "machine_function", "*", "avr_init_machine_status", "(", "void", ")", "{", "return", "ggc_cleared_alloc", "<", "machine_function", ">", "(", ")", ";", "}", "</s>" ]
[ "Function", "to", "set", "up", "the", "backend", "function", "structure", "." ]
[ "avr" ]
avr
avr_init_machine_status
avr
MPU
GCC
4,780
18
1
[]
[ "<s>", "MachineBasicBlock", "*", "WebAssemblyTargetLowering", "::", "EmitInstrWithCustomInserter", "(", "MachineInstr", "&", "MI", ",", "MachineBasicBlock", "*", "BB", ")", "const", "{", "const", "TargetInstrInfo", "&", "TII", "=", "*", "Subtarget", "->", "getInstrInfo", "(", ")", ";", "DebugLoc", "DL", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "switch", "(", "MI", ".", "getOpcode", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "\"Unexpected instr type to insert\"", ")", ";", "case", "WebAssembly", "::", "FP_TO_SINT_I32_F32", ":", "return", "LowerFPToInt", "(", "MI", ",", "DL", ",", "BB", ",", "TII", ",", "false", ",", "false", ",", "false", ",", "WebAssembly", "::", "I32_TRUNC_S_F32", ")", ";", "case", "WebAssembly", "::", "FP_TO_UINT_I32_F32", ":", "return", "LowerFPToInt", "(", "MI", ",", "DL", ",", "BB", ",", "TII", ",", "true", ",", "false", ",", "false", ",", "WebAssembly", "::", "I32_TRUNC_U_F32", ")", ";", "case", "WebAssembly", "::", "FP_TO_SINT_I64_F32", ":", "return", "LowerFPToInt", "(", "MI", ",", "DL", ",", "BB", ",", "TII", ",", "false", ",", "true", ",", "false", ",", "WebAssembly", "::", "I64_TRUNC_S_F32", ")", ";", "case", "WebAssembly", "::", "FP_TO_UINT_I64_F32", ":", "return", "LowerFPToInt", "(", "MI", ",", "DL", ",", "BB", ",", "TII", ",", "true", ",", "true", ",", "false", ",", "WebAssembly", "::", "I64_TRUNC_U_F32", ")", ";", "case", "WebAssembly", "::", "FP_TO_SINT_I32_F64", ":", "return", "LowerFPToInt", "(", "MI", ",", "DL", ",", "BB", ",", "TII", ",", "false", ",", "false", ",", "true", ",", "WebAssembly", "::", "I32_TRUNC_S_F64", ")", ";", "case", "WebAssembly", "::", "FP_TO_UINT_I32_F64", ":", "return", "LowerFPToInt", "(", "MI", ",", "DL", ",", "BB", ",", "TII", ",", "true", ",", "false", ",", "true", ",", "WebAssembly", "::", "I32_TRUNC_U_F64", ")", ";", "case", "WebAssembly", "::", "FP_TO_SINT_I64_F64", ":", "return", "LowerFPToInt", "(", "MI", ",", "DL", ",", "BB", ",", "TII", ",", "false", ",", "true", ",", "true", ",", "WebAssembly", "::", "I64_TRUNC_S_F64", ")", ";", "case", "WebAssembly", "::", "FP_TO_UINT_I64_F64", ":", "return", "LowerFPToInt", "(", "MI", ",", "DL", ",", "BB", ",", "TII", ",", "true", ",", "true", ",", "true", ",", "WebAssembly", "::", "I64_TRUNC_U_F64", ")", ";", "llvm_unreachable", "(", "\"Unexpected instruction to emit with custom inserter\"", ")", ";", "}", "}", "</s>" ]
[ "This", "method", "should", "be", "implemented", "by", "targets", "that", "mark", "instructions", "with", "the", "'usesCustomInserter", "'", "flag", "." ]
[ "WebAssembly", "WebAssembly", "\"Unexpected instr type to insert\"", "WebAssembly::FP_TO_SINT_I32_F32", "WebAssembly::I32_TRUNC_S_F32", "WebAssembly::FP_TO_UINT_I32_F32", "WebAssembly::I32_TRUNC_U_F32", "WebAssembly::FP_TO_SINT_I64_F32", "WebAssembly::I64_TRUNC_S_F32", "WebAssembly::FP_TO_UINT_I64_F32", "WebAssembly::I64_TRUNC_U_F32", "WebAssembly::FP_TO_SINT_I32_F64", "WebAssembly::I32_TRUNC_S_F64", "WebAssembly::FP_TO_UINT_I32_F64", "WebAssembly::I32_TRUNC_U_F64", "WebAssembly::FP_TO_SINT_I64_F64", "WebAssembly::I64_TRUNC_S_F64", "WebAssembly::FP_TO_UINT_I64_F64", "WebAssembly::I64_TRUNC_U_F64", "\"Unexpected instruction to emit with custom inserter\"" ]
WebAssemblyISelLowering (2)1
EmitInstrWithCustomInserter
WebAssembly
Virtual ISA
LLVM
4,781
276
1
[]
[ "<s>", "static", "int", "rank_for_reorder", "(", "const", "void", "*", "x", ",", "const", "void", "*", "y", ")", "{", "rtx", "tmp", "=", "*", "(", "const", "rtx", "*", ")", "y", ";", "rtx", "tmp2", "=", "*", "(", "const", "rtx", "*", ")", "x", ";", "if", "(", "SCHED_GROUP_P", "(", "tmp", ")", "!=", "SCHED_GROUP_P", "(", "tmp2", ")", ")", "return", "SCHED_GROUP_P", "(", "tmp2", ")", "?", "1", ":", "-", "1", ";", "return", "INSN_LUID", "(", "tmp", ")", "-", "INSN_LUID", "(", "tmp2", ")", ";", "}", "</s>" ]
[ "Comparison", "function", "for", "ready", "queue", "sorting", "." ]
[ "sh", "1", "1" ]
sh3
rank_for_reorder
sh
CPU
GCC
4,782
72
1
[]
[ "<s>", "void", "mmix_asm_output_skip", "(", "FILE", "*", "stream", ",", "int", "nbytes", ")", "{", "fprintf", "(", "stream", ",", "\"\\tLOC @+%d\\n\"", ",", "nbytes", ")", ";", "}", "</s>" ]
[ "ASM_OUTPUT_SKIP", "." ]
[ "mmix", "\"\\tLOC @+%d\\n\"" ]
mmix
mmix_asm_output_skip
mmix
CPU
GCC
4,783
21
1
[]
[ "<s>", "bool", "ARMBaseRegisterInfo", "::", "canRealignStack", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "MachineRegisterInfo", "*", "MRI", "=", "&", "MF", ".", "getRegInfo", "(", ")", ";", "const", "ARMFrameLowering", "*", "TFI", "=", "getFrameLowering", "(", "MF", ")", ";", "const", "ARMSubtarget", "&", "STI", "=", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ";", "if", "(", "!", "TargetRegisterInfo", "::", "canRealignStack", "(", "MF", ")", ")", "return", "false", ";", "if", "(", "!", "MRI", "->", "canReserveReg", "(", "getFramePointerReg", "(", "MF", ".", "getSubtarget", "<", "ARMSubtarget", ">", "(", ")", ")", ")", ")", "return", "false", ";", "if", "(", "STI", ".", "isGPRegisterReserved", "(", "BasePtr", "-", "ARM", "::", "R0", ")", ")", "return", "false", ";", "if", "(", "TFI", "->", "hasReservedCallFrame", "(", "MF", ")", ")", "return", "true", ";", "return", "MRI", "->", "canReserveReg", "(", "BasePtr", ")", ";", "}", "</s>" ]
[ "True", "if", "the", "stack", "can", "be", "realigned", "for", "the", "target", "." ]
[ "ARM", "ARM", "ARM", "ARM", "ARM", "ARM", "ARM::R0" ]
ARMBaseRegisterInfo91
canRealignStack
ARM
CPU
LLVM
4,784
121
1
[]
[ "<s>", "static", "poly_uint16", "aarch64_convert_sve_vector_bits", "(", "aarch64_sve_vector_bits_enum", "value", ")", "{", "if", "(", "value", "==", "SVE_SCALABLE", "||", "(", "value", "==", "SVE_128", "&&", "BYTES_BIG_ENDIAN", ")", ")", "return", "poly_uint16", "(", "2", ",", "2", ")", ";", "else", "return", "(", "int", ")", "value", "/", "64", ";", "}", "</s>" ]
[ "Return", "the", "VG", "value", "associated", "with", "-msve-vector-bits=", "value", "VALUE", "." ]
[ "aarch64", "2", "2", "64" ]
aarch64
aarch64_convert_sve_vector_bits
aarch64
CPU
GCC
4,785
40
1
[]
[ "<s>", "bool", "enableOrderedReductions", "(", ")", "const", "{", "return", "true", ";", "}", "</s>" ]
[ "Return", "true", "if", "we", "should", "be", "enabling", "ordered", "reductions", "for", "the", "target", "." ]
[ "AArch64" ]
AArch64TargetTransformInfo
enableOrderedReductions
AArch64
CPU
LLVM
4,786
10
1
[]
[ "<s>", "std", "::", "pair", "<", "unsigned", ",", "const", "TargetRegisterClass", "*", ">", "BPFTargetLowering", "::", "getRegForInlineAsmConstraint", "(", "const", "TargetRegisterInfo", "*", "TRI", ",", "StringRef", "Constraint", ",", "MVT", "VT", ")", "const", "{", "if", "(", "Constraint", ".", "size", "(", ")", "==", "1", ")", "switch", "(", "Constraint", "[", "0", "]", ")", "{", "case", "'r'", ":", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "BPF", "::", "GPRRegClass", ")", ";", "case", "'w'", ":", "if", "(", "HasAlu32", ")", "return", "std", "::", "make_pair", "(", "0U", ",", "&", "BPF", "::", "GPR32RegClass", ")", ";", "break", ";", "default", ":", "break", ";", "}", "return", "TargetLowering", "::", "getRegForInlineAsmConstraint", "(", "TRI", ",", "Constraint", ",", "VT", ")", ";", "}", "</s>" ]
[ "Given", "a", "physical", "register", "constraint", "(", "e.g", "." ]
[ "BPF", "BPF", "1", "0", "0U", "BPF::GPRRegClass", "0U", "BPF::GPR32RegClass" ]
BPFISelLowering1
getRegForInlineAsmConstraint
BPF
Virtual ISA
LLVM
4,787
101
1
[]
[ "<s>", "static", "bool", "vspltis_constant", "(", "rtx", "op", ",", "unsigned", "step", ",", "unsigned", "copies", ")", "{", "machine_mode", "mode", "=", "GET_MODE", "(", "op", ")", ";", "machine_mode", "inner", "=", "GET_MODE_INNER", "(", "mode", ")", ";", "unsigned", "i", ";", "unsigned", "nunits", ";", "unsigned", "bitsize", ";", "unsigned", "mask", ";", "HOST_WIDE_INT", "val", ";", "HOST_WIDE_INT", "splat_val", ";", "HOST_WIDE_INT", "msb_val", ";", "if", "(", "mode", "==", "V2DImode", "||", "mode", "==", "V2DFmode", "||", "mode", "==", "V1TImode", ")", "return", "false", ";", "nunits", "=", "GET_MODE_NUNITS", "(", "mode", ")", ";", "bitsize", "=", "GET_MODE_BITSIZE", "(", "inner", ")", ";", "mask", "=", "GET_MODE_MASK", "(", "inner", ")", ";", "val", "=", "const_vector_elt_as_int", "(", "op", ",", "BYTES_BIG_ENDIAN", "?", "nunits", "-", "1", ":", "0", ")", ";", "splat_val", "=", "val", ";", "msb_val", "=", "val", ">=", "0", "?", "0", ":", "-", "1", ";", "for", "(", "i", "=", "2", ";", "i", "<=", "copies", ";", "i", "*=", "2", ")", "{", "HOST_WIDE_INT", "small_val", ";", "bitsize", "/=", "2", ";", "small_val", "=", "splat_val", ">>", "bitsize", ";", "mask", ">>=", "bitsize", ";", "if", "(", "splat_val", "!=", "(", "(", "HOST_WIDE_INT", ")", "(", "(", "unsigned", "HOST_WIDE_INT", ")", "small_val", "<<", "bitsize", ")", "|", "(", "small_val", "&", "mask", ")", ")", ")", "return", "false", ";", "splat_val", "=", "small_val", ";", "}", "if", "(", "EASY_VECTOR_15", "(", "splat_val", ")", ")", ";", "else", "if", "(", "EASY_VECTOR_15_ADD_SELF", "(", "splat_val", ")", "&&", "(", "splat_val", ">=", "0", "||", "(", "step", "==", "1", "&&", "copies", "==", "1", ")", ")", ")", ";", "else", "if", "(", "EASY_VECTOR_MSB", "(", "splat_val", ",", "inner", ")", ")", ";", "else", "return", "false", ";", "for", "(", "i", "=", "1", ";", "i", "<", "nunits", ";", "++", "i", ")", "{", "HOST_WIDE_INT", "desired_val", ";", "unsigned", "elt", "=", "BYTES_BIG_ENDIAN", "?", "nunits", "-", "1", "-", "i", ":", "i", ";", "if", "(", "(", "i", "&", "(", "step", "-", "1", ")", ")", "==", "0", ")", "desired_val", "=", "val", ";", "else", "desired_val", "=", "msb_val", ";", "if", "(", "desired_val", "!=", "const_vector_elt_as_int", "(", "op", ",", "elt", ")", ")", "return", "false", ";", "}", "return", "true", ";", "}", "</s>" ]
[ "Return", "true", "if", "OP", "can", "be", "synthesized", "with", "a", "particular", "vspltisb", ",", "vspltish", "or", "vspltisw", "instruction", ".", "OP", "is", "a", "CONST_VECTOR", ".", "Which", "instruction", "is", "used", "depends", "on", "STEP", "and", "COPIES", ",", "one", "of", "which", "will", "be", "1", ".", "If", "COPIES", ">", "1", ",", "all", "items", "are", "set", "to", "the", "same", "value", "and", "contain", "COPIES", "replicas", "of", "the", "vsplt", "'s", "operand", ";", "if", "STEP", ">", "1", ",", "one", "in", "STEP", "elements", "is", "set", "to", "the", "vsplt", "'s", "operand", "and", "the", "others", "are", "set", "to", "the", "value", "of", "the", "operand", "'s", "msb", "." ]
[ "powerpcspe", "1", "0", "0", "0", "1", "2", "2", "2", "0", "1", "1", "1", "1", "1", "0" ]
powerpcspe
vspltis_constant
powerpcspe
CPU
GCC
4,788
304
1
[]
[ "<s>", "CCAssignFn", "*", "AMDGPUCallLowering", "::", "CCAssignFnForReturn", "(", "CallingConv", "::", "ID", "CC", ",", "bool", "IsVarArg", ")", "{", "switch", "(", "CC", ")", "{", "case", "CallingConv", "::", "AMDGPU_KERNEL", ":", "case", "CallingConv", "::", "SPIR_KERNEL", ":", "return", "CC_AMDGPU_Kernel", ";", "case", "CallingConv", "::", "AMDGPU_VS", ":", "case", "CallingConv", "::", "AMDGPU_GS", ":", "case", "CallingConv", "::", "AMDGPU_PS", ":", "case", "CallingConv", "::", "AMDGPU_CS", ":", "case", "CallingConv", "::", "AMDGPU_HS", ":", "case", "CallingConv", "::", "AMDGPU_ES", ":", "case", "CallingConv", "::", "AMDGPU_LS", ":", "return", "RetCC_SI_Shader", ";", "case", "CallingConv", "::", "C", ":", "case", "CallingConv", "::", "Fast", ":", "case", "CallingConv", "::", "Cold", ":", "return", "RetCC_AMDGPU_Func", ";", "default", ":", "report_fatal_error", "(", "\"Unsupported calling convention.\"", ")", ";", "}", "}", "</s>" ]
[ "Selects", "the", "correct", "CCAssignFn", "for", "a", "given", "CallingConvention", "value", "." ]
[ "AMDGPU", "AMDGPU", "AMDGPU", "AMDGPU", "AMDGPU", "AMDGPU", "AMDGPU", "AMDGPU", "AMDGPU", "AMDGPU", "AMDGPU", "SI", "AMDGPU", "\"Unsupported calling convention.\"" ]
AMDGPUISelLowering135
CCAssignFnForReturn
AMDGPU
GPU
LLVM
4,789
98
1
[]
[ "<s>", "static", "bool", "riscv_vector_mode_supported_p", "(", "machine_mode", "mode", ")", "{", "if", "(", "TARGET_VECTOR", ")", "return", "riscv_v_ext_vector_mode_p", "(", "mode", ")", ";", "return", "false", ";", "}", "</s>" ]
[ "Implement", "TARGET_VECTOR_MODE_SUPPORTED_P", "." ]
[ "riscv" ]
riscv1
riscv_vector_mode_supported_p
riscv
CPU
GCC
4,790
22
1
[]
[ "<s>", "int", "memory_address_length", "(", "rtx", "addr", ")", "{", "struct", "ix86_address", "parts", ";", "rtx", "base", ",", "index", ",", "disp", ";", "int", "len", ";", "int", "ok", ";", "if", "(", "GET_CODE", "(", "addr", ")", "==", "PRE_DEC", "||", "GET_CODE", "(", "addr", ")", "==", "POST_INC", "||", "GET_CODE", "(", "addr", ")", "==", "PRE_MODIFY", "||", "GET_CODE", "(", "addr", ")", "==", "POST_MODIFY", ")", "return", "0", ";", "ok", "=", "ix86_decompose_address", "(", "addr", ",", "&", "parts", ")", ";", "gcc_assert", "(", "ok", ")", ";", "if", "(", "parts", ".", "base", "&&", "GET_CODE", "(", "parts", ".", "base", ")", "==", "SUBREG", ")", "parts", ".", "base", "=", "SUBREG_REG", "(", "parts", ".", "base", ")", ";", "if", "(", "parts", ".", "index", "&&", "GET_CODE", "(", "parts", ".", "index", ")", "==", "SUBREG", ")", "parts", ".", "index", "=", "SUBREG_REG", "(", "parts", ".", "index", ")", ";", "base", "=", "parts", ".", "base", ";", "index", "=", "parts", ".", "index", ";", "disp", "=", "parts", ".", "disp", ";", "len", "=", "0", ";", "if", "(", "base", "&&", "!", "index", "&&", "!", "disp", ")", "{", "if", "(", "addr", "==", "stack_pointer_rtx", "||", "addr", "==", "arg_pointer_rtx", "||", "addr", "==", "frame_pointer_rtx", "||", "addr", "==", "hard_frame_pointer_rtx", ")", "len", "=", "1", ";", "}", "else", "if", "(", "disp", "&&", "!", "base", "&&", "!", "index", ")", "len", "=", "4", ";", "else", "{", "if", "(", "disp", ")", "{", "if", "(", "GET_CODE", "(", "disp", ")", "==", "CONST_INT", "&&", "CONST_OK_FOR_LETTER_P", "(", "INTVAL", "(", "disp", ")", ",", "'K'", ")", "&&", "base", ")", "len", "=", "1", ";", "else", "len", "=", "4", ";", "}", "else", "if", "(", "base", "==", "hard_frame_pointer_rtx", ")", "len", "=", "1", ";", "if", "(", "index", "||", "base", "==", "stack_pointer_rtx", "||", "base", "==", "arg_pointer_rtx", "||", "base", "==", "frame_pointer_rtx", ")", "len", "+=", "1", ";", "}", "return", "len", ";", "}", "</s>" ]
[ "Calculate", "the", "length", "of", "the", "memory", "address", "in", "the", "instruction", "encoding", ".", "Does", "not", "include", "the", "one-byte", "modrm", ",", "opcode", ",", "or", "prefix", "." ]
[ "i386", "0", "0", "1", "4", "1", "4", "1", "1" ]
i3863
memory_address_length
i386
CPU
GCC
4,791
269
1
[]
[ "<s>", "bool", "RISCVCallLowering", "::", "lowerReturn", "(", "MachineIRBuilder", "&", "MIRBuilder", ",", "const", "Value", "*", "Val", ",", "ArrayRef", "<", "Register", ">", "VRegs", ",", "FunctionLoweringInfo", "&", "FLI", ")", "const", "{", "MachineInstrBuilder", "Ret", "=", "MIRBuilder", ".", "buildInstrNoInsert", "(", "RISCV", "::", "PseudoRET", ")", ";", "if", "(", "Val", "!=", "nullptr", ")", "{", "return", "false", ";", "}", "MIRBuilder", ".", "insertInstr", "(", "Ret", ")", ";", "return", "true", ";", "}", "</s>" ]
[ "This", "hook", "behaves", "as", "the", "extended", "lowerReturn", "function", ",", "but", "for", "targets", "that", "do", "not", "support", "swifterror", "value", "promotion", "." ]
[ "RI5CY", "RISCV", "RISCV::PseudoRET" ]
RISCVCallLowering
lowerReturn
RI5CY
CPU
LLVM
4,792
60
1
[]
[ "<s>", "Optional", "<", "Instruction", "*", ">", "AArch64TTIImpl", "::", "instCombineIntrinsic", "(", "InstCombiner", "&", "IC", ",", "IntrinsicInst", "&", "II", ")", "const", "{", "Intrinsic", "::", "ID", "IID", "=", "II", ".", "getIntrinsicID", "(", ")", ";", "switch", "(", "IID", ")", "{", "default", ":", "break", ";", "case", "Intrinsic", "::", "aarch64_neon_fmaxnm", ":", "case", "Intrinsic", "::", "aarch64_neon_fminnm", ":", "return", "instCombineMaxMinNM", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_convert_from_svbool", ":", "return", "instCombineConvertFromSVBool", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_dup", ":", "return", "instCombineSVEDup", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_dup_x", ":", "return", "instCombineSVEDupX", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_cmpne", ":", "case", "Intrinsic", "::", "aarch64_sve_cmpne_wide", ":", "return", "instCombineSVECmpNE", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_rdffr", ":", "return", "instCombineRDFFR", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_lasta", ":", "case", "Intrinsic", "::", "aarch64_sve_lastb", ":", "return", "instCombineSVELast", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_cntd", ":", "return", "instCombineSVECntElts", "(", "IC", ",", "II", ",", "2", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_cntw", ":", "return", "instCombineSVECntElts", "(", "IC", ",", "II", ",", "4", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_cnth", ":", "return", "instCombineSVECntElts", "(", "IC", ",", "II", ",", "8", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_cntb", ":", "return", "instCombineSVECntElts", "(", "IC", ",", "II", ",", "16", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_ptest_any", ":", "case", "Intrinsic", "::", "aarch64_sve_ptest_first", ":", "case", "Intrinsic", "::", "aarch64_sve_ptest_last", ":", "return", "instCombineSVEPTest", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_mul", ":", "case", "Intrinsic", "::", "aarch64_sve_fmul", ":", "return", "instCombineSVEVectorMul", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_fadd", ":", "return", "instCombineSVEVectorFAdd", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_fsub", ":", "return", "instCombineSVEVectorBinOp", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_tbl", ":", "return", "instCombineSVETBL", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_uunpkhi", ":", "case", "Intrinsic", "::", "aarch64_sve_uunpklo", ":", "case", "Intrinsic", "::", "aarch64_sve_sunpkhi", ":", "case", "Intrinsic", "::", "aarch64_sve_sunpklo", ":", "return", "instCombineSVEUnpack", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_tuple_get", ":", "return", "instCombineSVETupleGet", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_zip1", ":", "case", "Intrinsic", "::", "aarch64_sve_zip2", ":", "return", "instCombineSVEZip", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_ld1_gather_index", ":", "return", "instCombineLD1GatherIndex", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_st1_scatter_index", ":", "return", "instCombineST1ScatterIndex", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_ld1", ":", "return", "instCombineSVELD1", "(", "IC", ",", "II", ",", "DL", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_st1", ":", "return", "instCombineSVEST1", "(", "IC", ",", "II", ",", "DL", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_sdiv", ":", "return", "instCombineSVESDIV", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_sel", ":", "return", "instCombineSVESel", "(", "IC", ",", "II", ")", ";", "case", "Intrinsic", "::", "aarch64_sve_srshl", ":", "return", "instCombineSVESrshl", "(", "IC", ",", "II", ")", ";", "}", "return", "None", ";", "}", "</s>" ]
[ "Targets", "can", "implement", "their", "own", "combinations", "for", "target-specific", "intrinsics", "." ]
[ "AArch64", "AArch64", "Intrinsic::ID", "Intrinsic::aarch64_neon_fmaxnm", "Intrinsic::aarch64_neon_fminnm", "Intrinsic::aarch64_sve_convert_from_svbool", "Intrinsic::aarch64_sve_dup", "Intrinsic::aarch64_sve_dup_x", "Intrinsic::aarch64_sve_cmpne", "Intrinsic::aarch64_sve_cmpne_wide", "Intrinsic::aarch64_sve_rdffr", "Intrinsic::aarch64_sve_lasta", "Intrinsic::aarch64_sve_lastb", "Intrinsic::aarch64_sve_cntd", "2", "Intrinsic::aarch64_sve_cntw", "4", "Intrinsic::aarch64_sve_cnth", "8", "Intrinsic::aarch64_sve_cntb", "16", "Intrinsic::aarch64_sve_ptest_any", "Intrinsic::aarch64_sve_ptest_first", "Intrinsic::aarch64_sve_ptest_last", "Intrinsic::aarch64_sve_mul", "Intrinsic::aarch64_sve_fmul", "Intrinsic::aarch64_sve_fadd", "Intrinsic::aarch64_sve_fsub", "Intrinsic::aarch64_sve_tbl", "Intrinsic::aarch64_sve_uunpkhi", "Intrinsic::aarch64_sve_uunpklo", "Intrinsic::aarch64_sve_sunpkhi", "Intrinsic::aarch64_sve_sunpklo", "Intrinsic::aarch64_sve_tuple_get", "Intrinsic::aarch64_sve_zip1", "Intrinsic::aarch64_sve_zip2", "Intrinsic::aarch64_sve_ld1_gather_index", "Intrinsic::aarch64_sve_st1_scatter_index", "Intrinsic::aarch64_sve_ld1", "Intrinsic::aarch64_sve_st1", "Intrinsic::aarch64_sve_sdiv", "Intrinsic::aarch64_sve_sel", "Intrinsic::aarch64_sve_srshl" ]
AArch64TargetTransformInfo35
instCombineIntrinsic
AArch64
CPU
LLVM
4,793
444
1
[]
[ "<s>", "static", "void", "mips_push_asm_switch_1", "(", "struct", "mips_asm_switch", "*", "asm_switch", ",", "const", "char", "*", "prefix", ",", "const", "char", "*", "suffix", ")", "{", "if", "(", "asm_switch", "->", "nesting_level", "==", "0", ")", "fprintf", "(", "asm_out_file", ",", "\"%s.set\\tno%s%s\"", ",", "prefix", ",", "asm_switch", "->", "name", ",", "suffix", ")", ";", "asm_switch", "->", "nesting_level", "++", ";", "}", "</s>" ]
[ "Start", "a", "new", "block", "with", "the", "given", "asm", "switch", "enabled", ".", "If", "we", "need", "to", "print", "a", "directive", ",", "emit", "PREFIX", "before", "it", "and", "SUFFIX", "after", "it", "." ]
[ "mips", "0", "\"%s.set\\tno%s%s\"" ]
mips
mips_push_asm_switch_1
mips
CPU
GCC
4,794
49
1
[]
[ "<s>", "bool", "R600InstrInfo", "::", "PredicateInstruction", "(", "MachineInstr", "*", "MI", ",", "const", "SmallVectorImpl", "<", "MachineOperand", ">", "&", "Pred", ")", "const", "{", "int", "PIdx", "=", "MI", "->", "findFirstPredOperandIdx", "(", ")", ";", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "AMDGPU", "::", "CF_ALU", ")", "{", "MI", "->", "getOperand", "(", "8", ")", ".", "setImm", "(", "0", ")", ";", "return", "true", ";", "}", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "AMDGPU", "::", "DOT_4", ")", "{", "MI", "->", "getOperand", "(", "getOperandIdx", "(", "*", "MI", ",", "AMDGPU", "::", "OpName", "::", "pred_sel_X", ")", ")", ".", "setReg", "(", "Pred", "[", "2", "]", ".", "getReg", "(", ")", ")", ";", "MI", "->", "getOperand", "(", "getOperandIdx", "(", "*", "MI", ",", "AMDGPU", "::", "OpName", "::", "pred_sel_Y", ")", ")", ".", "setReg", "(", "Pred", "[", "2", "]", ".", "getReg", "(", ")", ")", ";", "MI", "->", "getOperand", "(", "getOperandIdx", "(", "*", "MI", ",", "AMDGPU", "::", "OpName", "::", "pred_sel_Z", ")", ")", ".", "setReg", "(", "Pred", "[", "2", "]", ".", "getReg", "(", ")", ")", ";", "MI", "->", "getOperand", "(", "getOperandIdx", "(", "*", "MI", ",", "AMDGPU", "::", "OpName", "::", "pred_sel_W", ")", ")", ".", "setReg", "(", "Pred", "[", "2", "]", ".", "getReg", "(", ")", ")", ";", "MachineInstrBuilder", "MIB", "(", "*", "MI", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ",", "MI", ")", ";", "MIB", ".", "addReg", "(", "AMDGPU", "::", "PREDICATE_BIT", ",", "RegState", "::", "Implicit", ")", ";", "return", "true", ";", "}", "if", "(", "PIdx", "!=", "-", "1", ")", "{", "MachineOperand", "&", "PMO", "=", "MI", "->", "getOperand", "(", "PIdx", ")", ";", "PMO", ".", "setReg", "(", "Pred", "[", "2", "]", ".", "getReg", "(", ")", ")", ";", "MachineInstrBuilder", "MIB", "(", "*", "MI", "->", "getParent", "(", ")", "->", "getParent", "(", ")", ",", "MI", ")", ";", "MIB", ".", "addReg", "(", "AMDGPU", "::", "PREDICATE_BIT", ",", "RegState", "::", "Implicit", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", "</s>" ]
[ "Convert", "the", "instruction", "into", "a", "predicated", "instruction", "." ]
[ "R600", "8", "0", "2", "2", "2", "2", "1", "2" ]
R600InstrInfo11
PredicateInstruction
R600
GPU
LLVM
4,795
291
1
[]
[ "<s>", "SDValue", "X86TargetLowering", "::", "LowerCallResult", "(", "SDValue", "Chain", ",", "SDValue", "InFlag", ",", "CallingConv", "::", "ID", "CallConv", ",", "bool", "isVarArg", ",", "const", "SmallVectorImpl", "<", "ISD", "::", "InputArg", ">", "&", "Ins", ",", "SDLoc", "dl", ",", "SelectionDAG", "&", "DAG", ",", "SmallVectorImpl", "<", "SDValue", ">", "&", "InVals", ")", "const", "{", "SmallVector", "<", "CCValAssign", ",", "16", ">", "RVLocs", ";", "bool", "Is64Bit", "=", "Subtarget", "->", "is64Bit", "(", ")", ";", "CCState", "CCInfo", "(", "CallConv", ",", "isVarArg", ",", "DAG", ".", "getMachineFunction", "(", ")", ",", "getTargetMachine", "(", ")", ",", "RVLocs", ",", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "CCInfo", ".", "AnalyzeCallResult", "(", "Ins", ",", "RetCC_X86", ")", ";", "for", "(", "unsigned", "i", "=", "0", ",", "e", "=", "RVLocs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "CCValAssign", "&", "VA", "=", "RVLocs", "[", "i", "]", ";", "EVT", "CopyVT", "=", "VA", ".", "getValVT", "(", ")", ";", "if", "(", "(", "CopyVT", "==", "MVT", "::", "f32", "||", "CopyVT", "==", "MVT", "::", "f64", ")", "&&", "(", "(", "Is64Bit", "||", "Ins", "[", "i", "]", ".", "Flags", ".", "isInReg", "(", ")", ")", "&&", "!", "Subtarget", "->", "hasSSE1", "(", ")", ")", ")", "{", "report_fatal_error", "(", "\"SSE register return with SSE disabled\"", ")", ";", "}", "SDValue", "Val", ";", "if", "(", "VA", ".", "getLocReg", "(", ")", "==", "X86", "::", "ST0", "||", "VA", ".", "getLocReg", "(", ")", "==", "X86", "::", "ST1", ")", "{", "if", "(", "isScalarFPTypeInSSEReg", "(", "VA", ".", "getValVT", "(", ")", ")", ")", "CopyVT", "=", "MVT", "::", "f80", ";", "SDValue", "Ops", "[", "]", "=", "{", "Chain", ",", "InFlag", "}", ";", "Chain", "=", "SDValue", "(", "DAG", ".", "getMachineNode", "(", "X86", "::", "FpPOP_RETVAL", ",", "dl", ",", "CopyVT", ",", "MVT", "::", "Other", ",", "MVT", "::", "Glue", ",", "Ops", ")", ",", "1", ")", ";", "Val", "=", "Chain", ".", "getValue", "(", "0", ")", ";", "if", "(", "CopyVT", "!=", "VA", ".", "getValVT", "(", ")", ")", "Val", "=", "DAG", ".", "getNode", "(", "ISD", "::", "FP_ROUND", ",", "dl", ",", "VA", ".", "getValVT", "(", ")", ",", "Val", ",", "DAG", ".", "getIntPtrConstant", "(", "1", ")", ")", ";", "}", "else", "{", "Chain", "=", "DAG", ".", "getCopyFromReg", "(", "Chain", ",", "dl", ",", "VA", ".", "getLocReg", "(", ")", ",", "CopyVT", ",", "InFlag", ")", ".", "getValue", "(", "1", ")", ";", "Val", "=", "Chain", ".", "getValue", "(", "0", ")", ";", "}", "InFlag", "=", "Chain", ".", "getValue", "(", "2", ")", ";", "InVals", ".", "push_back", "(", "Val", ")", ";", "}", "return", "Chain", ";", "}", "</s>" ]
[ "LowerCallResult", "-", "Lower", "the", "result", "values", "of", "an", "ISD", ":", ":CALL", "into", "the", "appropriate", "copies", "out", "of", "appropriate", "physical", "registers", "." ]
[ "X86", "X86", "ISD::InputArg", "16", "X86", "0", "MVT::f32", "MVT::f64", "\"SSE register return with SSE disabled\"", "X86::ST0", "X86::ST1", "MVT::f80", "X86::FpPOP_RETVAL", "MVT::Other", "MVT::Glue", "1", "0", "ISD::FP_ROUND", "1", "1", "0", "2" ]
X86ISelLowering (2)1
LowerCallResult
X86
CPU
LLVM
4,796
377
1
[]
[ "<s>", "void", "ARMELFMCAsmInfo", "::", "setUseIntegratedAssembler", "(", "bool", "Value", ")", "{", "UseIntegratedAssembler", "=", "Value", ";", "if", "(", "!", "UseIntegratedAssembler", ")", "{", "DwarfRegNumForCFI", "=", "true", ";", "}", "}", "</s>" ]
[ "Set", "whether", "assembly", "(", "inline", "or", "otherwise", ")", "should", "be", "parsed", "." ]
[ "ARM", "ARM" ]
ARMMCAsmInfo (2)
setUseIntegratedAssembler
ARM
CPU
LLVM
4,797
25
1
[]
[ "<s>", "void", "MipsTargetObjectFile", "::", "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", "=", "&", "TM", ";", "}", "</s>" ]
[ "This", "method", "must", "be", "called", "before", "any", "actual", "lowering", "is", "done", "." ]
[ "Mips", "Mips", "\".sdata\"", "\".sbss\"" ]
MipsTargetObjectFile16
Initialize
Mips
CPU
LLVM
4,798
87
1
[]
[ "<s>", "void", "GCNHazardRecognizer", "::", "AdvanceCycle", "(", ")", "{", "if", "(", "!", "CurrCycleInstr", ")", "{", "EmittedInstrs", ".", "push_front", "(", "nullptr", ")", ";", "return", ";", "}", "if", "(", "CurrCycleInstr", "->", "isBundle", "(", ")", ")", "{", "processBundle", "(", ")", ";", "return", ";", "}", "unsigned", "NumWaitStates", "=", "TII", ".", "getNumWaitStates", "(", "*", "CurrCycleInstr", ")", ";", "if", "(", "!", "NumWaitStates", ")", "{", "CurrCycleInstr", "=", "nullptr", ";", "return", ";", "}", "EmittedInstrs", ".", "push_front", "(", "CurrCycleInstr", ")", ";", "for", "(", "unsigned", "i", "=", "1", ",", "e", "=", "std", "::", "min", "(", "NumWaitStates", ",", "getMaxLookAhead", "(", ")", ")", ";", "i", "<", "e", ";", "++", "i", ")", "{", "EmittedInstrs", ".", "push_front", "(", "nullptr", ")", ";", "}", "EmittedInstrs", ".", "resize", "(", "getMaxLookAhead", "(", ")", ")", ";", "CurrCycleInstr", "=", "nullptr", ";", "}", "</s>" ]
[ "AdvanceCycle", "-", "This", "callback", "is", "invoked", "whenever", "the", "next", "top-down", "instruction", "to", "be", "scheduled", "can", "not", "issue", "in", "the", "current", "cycle", ",", "either", "because", "of", "latency", "or", "resource", "conflicts", "." ]
[ "AMDGPU", "1" ]
GCNHazardRecognizer (2)
AdvanceCycle
AMDGPU
GPU
LLVM
4,799
120
1
[]