{"Template_token": ["", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "default", ":", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "AMDOpenCLKernenv", "Func": "getKernenvArgName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113774, "Length": 23, "Cover_Rate": 0.323943661971831} {"Template_token": ["", "static", "inline", "Type", "*", "getKernenvArgType", "(", "unsigned", "ID", ",", "LLVMContext", "&", "C", ",", "bool", "is64bit", ")", "{", "if", "(", "ID", "==", "", ")", "return", "Type", "::", "getInt8PtrTy", "(", "C", ",", "", ")", ";"], "ground_truth": ["return", "(", "is64bit", "?", "Type", "::", "getInt64Ty", "(", "C", ")", ":", "Type", "::", "getInt32Ty", "(", "C", ")", ")", ";"], "File": "AMDOpenCLKernenv", "Func": "getKernenvArgType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113775, "Length": 52, "Cover_Rate": 0.9454545454545454} {"Template_token": ["", "static", "inline", "Type", "*", "getKernenvArgType", "(", "unsigned", "ID", ",", "LLVMContext", "&", "C", ",", "bool", "is64bit", ")", "{"], "ground_truth": ["if", "(", "ID", "==", "", ")", "return", "Type", "::", "getInt8PtrTy", "(", "C", ",", "", ")", ";"], "File": "AMDOpenCLKernenv", "Func": "getKernenvArgType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113776, "Length": 33, "Cover_Rate": 0.6} {"Template_token": ["", "return", "", ";"], "ground_truth": ["}"], "File": "AMDOpenCLKernenv", "Func": "getKernenvArgTypeName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113777, "Length": 4, "Cover_Rate": 0.3076923076923077} {"Template_token": ["", "BRIGDwarfStreamer", "::", "BRIGDwarfStreamer", "(", "MCContext", "&", "Context", ",", "MCAsmBackend", "&", "TAB", ",", "RawVectorOstream", "&", "RVOS", ",", "MCCodeEmitter", "*", "Emitter", ")", ":", "MCELFStreamer", "(", "Context", ",", "TAB", ",", "RVOS", ",", "Emitter", ")", ",", "dwarfStream", "(", "&", "RVOS", ")", "{"], "ground_truth": ["}"], "File": "BRIGDwarfStreamer", "Func": "BRIGDwarfStreamer", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113778, "Length": 39, "Cover_Rate": 1.0} {"Template_token": ["", "BRIGDwarfStreamer", "::", "BRIGDwarfStreamer", "(", "MCContext", "&", "Context", ",", "MCAsmBackend", "&", "TAB", ",", "RawVectorOstream", "&", "RVOS", ",", "MCCodeEmitter", "*", "Emitter", ")", ":", "MCELFStreamer", "(", "Context", ",", "TAB", ",", "RVOS", ",", "Emitter", ")", ",", "dwarfStream", "(", "&", "RVOS", ")", "{"], "ground_truth": ["}"], "File": "BRIGDwarfStreamer", "Func": "BRIGDwarfStreamer", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113779, "Length": 39, "Cover_Rate": 1.0} {"Template_token": ["", "inline", "static", "bool", "classof", "(", "const", "MCStreamer", "*", "streamer", ")", "{"], "ground_truth": ["return", "true", ";"], "File": "BRIGDwarfStreamer", "Func": "classof", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113780, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "MCELFStreamer", "::", "Finish", "(", ")", ";", "dwarfStream", "->", "flush", "(", ")", ";", "dwarfStream", "->", "releaseStream", "(", ")", ";"], "ground_truth": ["}"], "File": "BRIGDwarfStreamer", "Func": "Finish", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113783, "Length": 19, "Cover_Rate": 0.7307692307692307} {"Template_token": ["", "void", "BRIGDwarfStreamer", "::", "Finish", "(", ")", "{", "MCELFStreamer", "::", "Finish", "(", ")", ";", "dwarfStream", "->", "flush", "(", ")", ";"], "ground_truth": ["dwarfStream", "->", "releaseStream", "(", ")", ";"], "File": "BRIGDwarfStreamer", "Func": "Finish", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113784, "Length": 25, "Cover_Rate": 0.9615384615384616} {"Template_token": ["", "RawVectorOstream", "*", "BRIGDwarfStreamer", "::", "getDwarfStream", "(", ")", "{", "raw_ostream", "&", "Strm", "=", "getAssembler", "(", ")", ".", "getWriter", "(", ")", ".", "getStream", "(", ")", ";", "assert", "(", "&", "Strm", "==", "static_cast", "<", "raw_ostream", "*", ">", "(", "dwarfStream", ")", "&&", "", ")", ";"], "ground_truth": ["return", "dwarfStream", ";"], "File": "BRIGDwarfStreamer", "Func": "getDwarfStream", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113786, "Length": 44, "Cover_Rate": 0.9777777777777777} {"Template_token": ["", "return", "MCStreamer", "::", "BRIGDwarfStreamer", ";"], "ground_truth": ["}"], "File": "BRIGDwarfStreamer", "Func": "getStreamerKind", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113787, "Length": 6, "Cover_Rate": 0.375} {"Template_token": ["", "return", "MCStreamer", "::", "BRIGDwarfStreamer", ";"], "ground_truth": ["}"], "File": "BRIGDwarfStreamer", "Func": "getStreamerKind", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113788, "Length": 6, "Cover_Rate": 0.375} {"Template_token": ["", "MCSectionELF", "*", "codeSection", "=", "getContext", "(", ")", ".", "getELFSection", "(", "", ",", "ELF", "::", "SHT_NOBITS", ",", "", ")", ";", "MCSectionELF", "*", "directivesSection", "=", "getContext", "(", ")", ".", "getELFSection", "(", "", ",", "ELF", "::", "SHT_NOBITS", ",", "", ")", ";"], "ground_truth": ["SwitchSection", "(", "codeSection", ")", ";"], "File": "BRIGDwarfStreamer", "Func": "InitSections", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113789, "Length": 43, "Cover_Rate": 0.6825396825396826} {"Template_token": ["", "MCSectionELF", "*", "directivesSection", "=", "getContext", "(", ")", ".", "getELFSection", "(", "", ",", "ELF", "::", "SHT_NOBITS", ",", "", ")", ";", "SwitchSection", "(", "codeSection", ")", ";", "SwitchSection", "(", "directivesSection", ")", ";"], "ground_truth": ["SwitchSection", "(", "codeSection", ")", ";"], "File": "BRIGDwarfStreamer", "Func": "InitSections", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113790, "Length": 34, "Cover_Rate": 0.5396825396825397} {"Template_token": ["", "ModulePass", "*", "llvm", "::", "createAlwaysInlinePass", "(", ")", "{"], "ground_truth": ["return", "new", "AlwaysInline", "(", ")", ";"], "File": "HSAILAlwaysInlinePass", "Func": "createHSAILAlwaysInlinePass", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113791, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "ModulePass", "*", "llvm", "::", "createAlwaysInlinePass", "(", ")", "{"], "ground_truth": ["return", "new", "AlwaysInline", "(", ")", ";"], "File": "HSAILAlwaysInlinePass", "Func": "createHSAILAlwaysInlinePass", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113792, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{"], "ground_truth": ["return", "", ";"], "File": "HSAILAlwaysInlinePass", "Func": "getPassName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113793, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "return", "", ";"], "ground_truth": ["}"], "File": "HSAILAlwaysInlinePass", "Func": "getPassName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113794, "Length": 4, "Cover_Rate": 0.3076923076923077} {"Template_token": ["", "AlwaysInline", "(", ")", ":", "ModulePass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "HSAILAlwaysInlinePass", "Func": "HSAILAlwaysInline", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113795, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "AlwaysInline", "(", ")", ":", "ModulePass", "(", "ID", ")", "{"], "ground_truth": ["}"], "File": "HSAILAlwaysInlinePass", "Func": "HSAILAlwaysInline", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113796, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "Function", "*", "NewFunc", "=", "CloneFunction", "(", "F", ",", "VMap", ",", "false", ")", ";", "NewFunc", "->", "setLinkage", "(", "GlobalValue", "::", "InternalLinkage", ")", ";", "F", "->", "getParent", "(", ")", "->", "getFunctionList", "(", ")", ".", "push_back", "(", "NewFunc", ")", ";", "F", "->", "replaceAllUsesWith", "(", "NewFunc", ")", ";", "}", "for", "(", "Module", "::", "iterator", "I", "=", "M", ".", "begin", "(", ")", ",", "E", "=", "M", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{"], "ground_truth": ["Function", "&", "F", "=", "*", "I", ";"], "File": "HSAILAlwaysInlinePass", "Func": "runOnModule", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113797, "Length": 81, "Cover_Rate": 0.36160714285714285} {"Template_token": ["", "static", "bool", "canInitAddressSpace", "(", "unsigned", "AS", ")", "{"], "ground_truth": ["return", "AS", "==", "", "||", "AS", "==", "", ";"], "File": "HSAILAsmPrinter", "Func": "canInitAddressSpace", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113798, "Length": 17, "Cover_Rate": 0.7727272727272727} {"Template_token": ["", "static", "bool", "canInitAddressSpace", "(", "unsigned", "AS", ")", "{", "return", "AS", "==", "", "||", "AS", "==", "", ";"], "ground_truth": ["}"], "File": "HSAILAsmPrinter", "Func": "canInitAddressSpace", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113799, "Length": 18, "Cover_Rate": 0.8181818181818182} {"Template_token": ["", "IsFullProfile", "=", "true", ";", "IsGCN", "=", "false", ";", "HasImages", "=", "false", ";", "for", "(", "const", "Function", "&", "F", ":", "M", ")", "{", "const", "Subtarget", "&", "ST", "=", "TM", ".", "getSubtarget", "<", "Subtarget", ">", "(", "F", ")", ";", "if", "(", "ST", ".", "isGCN", "(", ")", ")", "IsGCN", "=", "true", ";"], "ground_truth": ["if", "(", "ST", ".", "hasImages", "(", ")", ")", "HasImages", "=", "true", ";"], "File": "HSAILAsmPrinter", "Func": "checkModuleSubtargetExtensions", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113800, "Length": 61, "Cover_Rate": 0.6421052631578947} {"Template_token": ["", "IsGCN", "=", "false", ";", "HasImages", "=", "false", ";", "for", "(", "const", "Function", "&", "F", ":", "M", ")", "{", "const", "Subtarget", "&", "ST", "=", "TM", ".", "getSubtarget", "<", "Subtarget", ">", "(", "F", ")", ";", "if", "(", "ST", ".", "isGCN", "(", ")", ")", "IsGCN", "=", "true", ";", "if", "(", "ST", ".", "hasImages", "(", ")", ")", "HasImages", "=", "true", ";", "if", "(", "IsGCN", "&&", "HasImages", ")", "break", ";"], "ground_truth": ["}"], "File": "HSAILAsmPrinter", "Func": "checkModuleSubtargetExtensions", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113801, "Length": 66, "Cover_Rate": 0.6947368421052632} {"Template_token": ["", "void", "AsmPrinter", "::", "computeStackUsage", "(", "const", "MachineFrameInfo", "*", "MFI", ",", "uint64_t", "&", "PrivateSize", ",", "unsigned", "&", "PrivateAlign", ",", "uint64_t", "&", "SpillSize", ",", "unsigned", "&", "SpillAlign", ")", "const", "{", "SpillSize", "=", "", ";", "PrivateSize", "=", "", ";", "PrivateAlign", "=", "", ";", "SpillAlign", "=", "", ";", "for", "(", "int", "I", "=", "MFI", "->", "getObjectIndexBegin", "(", ")", ",", "E", "=", "MFI", "->", "getObjectIndexEnd", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "if", "(", "MFI", "->", "isDeadObjectIndex", "(", "I", ")", ")", "continue", ";", "if", "(", "MFI", "->", "isSpillSlotObjectIndex", "(", "I", ")", ")", "{", "assert", "(", "SpillSize", "==", "", "&&", "", ")", ";", "SpillSize", "=", "MFI", "->", "getObjectSize", "(", "I", ")", ";", "SpillAlign", "=", "MFI", "->", "getObjectAlignment", "(", "I", ")", ";", "}", "else", "{", "assert", "(", "PrivateSize", "==", "", "&&", "", ")", ";"], "ground_truth": ["PrivateSize", "=", "MFI", "->", "getObjectSize", "(", "I", ")", ";"], "File": "HSAILAsmPrinter", "Func": "computeStackUsage", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113802, "Length": 140, "Cover_Rate": 0.9210526315789473} {"Template_token": ["", "bool", "AsmPrinter", "::", "doFinalization", "(", "Module", "&", "M", ")", "{", "EmitEndOfAsmFile", "(", "M", ")", ";"], "ground_truth": ["return", "false", ";"], "File": "HSAILAsmPrinter", "Func": "doFinalization", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113803, "Length": 18, "Cover_Rate": 0.9473684210526315} {"Template_token": ["", "EmitEndOfAsmFile", "(", "M", ")", ";", "return", "false", ";"], "ground_truth": ["}"], "File": "HSAILAsmPrinter", "Func": "doFinalization", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113804, "Length": 9, "Cover_Rate": 0.47368421052631576} {"Template_token": ["", "}", "O", "<<", "(", "IsKernel", "?", "", ":", "", ")", "<<", "'_'", "<<", "getArgTypeName", "(", "EltTy", ",", "IsSExt", ")", "<<", "' '", "<<", "'%'", ";", "if", "(", "MF", ")", "{", "const", "ParamManager", "&", "PM", "=", "MF", "->", "getInfo", "<", "MachineFunctionInfo", ">", "(", ")", "->", "getParamManager", "(", ")", ";", "O", "<<", "PM", ".", "getParamName", "(", "ParamIndex", ")", ";", "}", "else", "{", "StringRef", "Name", "=", "A", ".", "getName", "(", ")", ";", "if", "(", "Name", ".", "empty", "(", ")", ")", "O", "<<", "", "<<", "ParamIndex", ";"], "ground_truth": ["else", "O", "<<", "Name", ";"], "File": "HSAILAsmPrinter", "Func": "emitFunctionArgument", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113805, "Length": 87, "Cover_Rate": 0.4264705882352941} {"Template_token": ["", "}", "}", "if", "(", "ChangeName", ")", "{", "(", "const_cast", "<", "GlobalVariable", "*", ">", "(", "&", "GV", ")", ")", "->", "setName", "(", "str", ")", ";", "}", "O", "<<", "'\\t'", ";", "Type", "*", "InitTy", "=", "Ty", "->", "getElementType", "(", ")", ";", "unsigned", "NElts", "=", "~", "", ";", "Type", "*", "EmitTy", "=", "", "(", "InitTy", ",", "NElts", ",", "DL", ")", ";", "printAlignTypeQualifier", "(", "GV", ",", "DL", ",", "InitTy", ",", "EmitTy", ",", "NElts", ",", "true", ",", "O", ")", ";", "str", "=", "", ";", "O", "<<", "'_'", "<<", "getArgTypeName", "(", "EmitTy", ")", "<<", "", "<<", "GV", ".", "getName", "(", ")", ";", "if", "(", "NElts", "!=", "", ")", "O", "<<", "'['", "<<", "NElts", "<<", "']'", ";", "if", "(", "GV", ".", "hasInitializer", "(", ")", "&&", "canInitAddressSpace", "(", "AS", ")", ")", "{", "O", "<<", "", ";", "printGVInitialValue", "(", "GV", ",", "cast", "<", "Constant", ">", "(", "GV", ".", "getInitializer", "(", ")", ")", ",", "DL", ",", "O", ")", ";", "}", "}", "}", "}", "const", "MachineFrameInfo", "*", "MFI", "=", "MF", "->", "getFrameInfo", "(", ")", ";", "uint64_t", "SpillSize", ",", "PrivateSize", ";", "unsigned", "PrivateAlign", ",", "SpillAlign", ";", "computeStackUsage", "(", "MFI", ",", "PrivateSize", ",", "PrivateAlign", ",", "SpillSize", ",", "SpillAlign", ")", ";", "if", "(", "PrivateSize", "!=", "", ")", "{", "O", "<<", "", "<<", "PrivateAlign", "<<", "", "<<", "PrivateSize", "<<", "", ";", "}", "if", "(", "SpillSize", "!=", "", ")", "{", "O", "<<", "", "<<", "SpillAlign", "<<", "", "<<", "SpillSize", "<<", "", ";", "}", "const", "MachineFunctionInfo", "*", "Info", "=", "MF", "->", "getInfo", "<", "MachineFunctionInfo", ">", "(", ")", ";", "if", "(", "Info", "->", "hasScavengerSpill", "(", ")", ")", "O", "<<", "", ";", "if", "(", "usesGCNAtomicCounter", "(", ")", ")", "O", "<<", "", ";"], "ground_truth": ["OutStreamer", "->", "EmitRawText", "(", "O", ".", "str", "(", ")", ")", ";"], "File": "HSAILAsmPrinter", "Func": "EmitFunctionBodyStart", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113808, "Length": 274, "Cover_Rate": 0.3103057757644394} {"Template_token": ["", "const", "Function", "*", "F", "=", "MF", "->", "getFunction", "(", ")", ";", "if", "(", "isProgramLinkage", "(", "*", "F", ")", ")", "O", "<<", "", ";", "emitFunctionLabel", "(", "*", "F", ",", "O", ",", "false", ")", ";"], "ground_truth": ["O", "<<", "", ";"], "File": "HSAILAsmPrinter", "Func": "EmitFunctionEntryLabel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113809, "Length": 37, "Cover_Rate": 0.5522388059701493} {"Template_token": ["", "if", "(", "isProgramLinkage", "(", "*", "F", ")", ")", "O", "<<", "", ";", "emitFunctionLabel", "(", "*", "F", ",", "O", ",", "false", ")", ";", "O", "<<", "", ";", "OutStreamer", "->", "EmitRawText", "(", "O", ".", "str", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "HSAILAsmPrinter", "Func": "EmitFunctionEntryLabel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113810, "Length": 38, "Cover_Rate": 0.5671641791044776} {"Template_token": ["", "void", "AsmPrinter", "::", "EmitFunctionHeader", "(", ")", "{"], "ground_truth": ["const", "Function", "*", "F", "=", "MF", "->", "getFunction", "(", ")", ";"], "File": "HSAILAsmPrinter", "Func": "EmitFunctionHeader", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113811, "Length": 18, "Cover_Rate": 0.42857142857142855} {"Template_token": ["", "const", "auto", "&", "RetAttrs", "=", "F", ".", "getAttributes", "(", ")", ".", "getRetAttributes", "(", ")", ";", "bool", "IsSExt", "=", "RetAttrs", ".", "hasAttribute", "(", "AttributeSet", "::", "ReturnIndex", ",", "Attribute", "::", "SExt", ")", ";", "bool", "IsZExt", "=", "RetAttrs", ".", "hasAttribute", "(", "AttributeSet", "::", "ReturnIndex", ",", "Attribute", "::", "ZExt", ")", ";", "if", "(", "IsSExt", "||", "IsZExt", ")", "{", "emitFunctionReturn", "(", "Type", "::", "getInt32Ty", "(", "RetTy", "->", "getContext", "(", ")", ")", ",", "RetName", ",", "IsKernel", ",", "IsSExt", ",", "O", ")", ";", "}", "else", "emitFunctionReturn", "(", "RetTy", ",", "RetName", ",", "IsKernel", ",", "IsSExt", ",", "O", ")", ";", "}", "O", "<<", "", ";", "}", "const", "auto", "&", "Attrs", "=", "F", ".", "getAttributes", "(", ")", ";", "unsigned", "NArgs", "=", "F", ".", "arg_size", "(", ")", ";", "if", "(", "NArgs", "==", "", ")", "{", "O", "<<", "')'", ";", "}", "else", "if", "(", "NArgs", "==", "", ")", "{", "bool", "IsSExt", "=", "Attrs", ".", "hasAttribute", "(", "", ",", "Attribute", "::", "SExt", ")", ";", "emitFunctionArgument", "(", "", ",", "*", "F", ".", "arg_begin", "(", ")", ",", "IsKernel", ",", "IsSExt", ",", "O", ")", ";", "O", "<<", "')'", ";", "}", "else", "{", "O", "<<", "", ";"], "ground_truth": ["unsigned", "Index", "=", "", ";"], "File": "HSAILAsmPrinter", "Func": "emitFunctionLabel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113813, "Length": 185, "Cover_Rate": 0.4719387755102041} {"Template_token": ["", "if", "(", "NElts", ">", "", ")", "{", "unsigned", "ABIAlign", "=", "DL", ".", "getABITypeAlignment", "(", "Ty", ")", ";", "if", "(", "ABIAlign", "!=", "DL", ".", "getABITypeAlignment", "(", "EltTy", ")", ")", "O", "<<", "", "<<", "ABIAlign", "<<", "", ";", "}"], "ground_truth": ["O", "<<", "(", "IsKernel", "?", "", ":", "", ")", "<<", "'_'", "<<", "getArgTypeName", "(", "EltTy", ",", "IsSExt", ")", "<<", "' '", "<<", "'%'", "<<", "Name", ";"], "File": "HSAILAsmPrinter", "Func": "emitFunctionReturn", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113814, "Length": 62, "Cover_Rate": 0.4732824427480916} {"Template_token": ["", "void", "AsmPrinter", "::", "emitFunctionReturn", "(", "Type", "*", "Ty", ",", "StringRef", "Name", ",", "bool", "IsKernel", ",", "bool", "IsSExt", ",", "raw_ostream", "&", "O", ")", "const", "{", "const", "DataLayout", "&", "DL", "=", "getDataLayout", "(", ")", ";", "unsigned", "NElts", "=", "~", "", ";", "Type", "*", "EltTy", "=", "", "(", "Ty", ",", "NElts", ",", "DL", ")", ";", "if", "(", "NElts", ">", "", ")", "{", "unsigned", "ABIAlign", "=", "DL", ".", "getABITypeAlignment", "(", "Ty", ")", ";"], "ground_truth": ["if", "(", "ABIAlign", "!=", "DL", ".", "getABITypeAlignment", "(", "EltTy", ")", ")", "O", "<<", "", "<<", "ABIAlign", "<<", "", ";"], "File": "HSAILAsmPrinter", "Func": "emitFunctionReturn", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113815, "Length": 88, "Cover_Rate": 0.6717557251908397} {"Template_token": ["", "MCInstLowering", ".", "lower", "(", "MI", ",", "TmpInst", ")", ";", "EmitToStreamer", "(", "*", "OutStreamer", ",", "TmpInst", ")", ";"], "ground_truth": ["}"], "File": "HSAILAsmPrinter", "Func": "EmitInstruction", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113816, "Length": 18, "Cover_Rate": 0.43902439024390244} {"Template_token": ["", "MCInstLowering", ".", "lower", "(", "MI", ",", "TmpInst", ")", ";", "EmitToStreamer", "(", "*", "OutStreamer", ",", "TmpInst", ")", ";"], "ground_truth": ["}"], "File": "HSAILAsmPrinter", "Func": "EmitInstruction", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113817, "Length": 18, "Cover_Rate": 0.43902439024390244} {"Template_token": ["", "for", "(", "const", "GlobalVariable", "&", "GV", ":", "M", ".", "globals", "(", ")", ")", "{", "unsigned", "AS", "=", "GV", ".", "getType", "(", ")", "->", "getAddressSpace", "(", ")", ";", "if", "(", "AS", "!=", "", "&&", "AS", "!=", "", ")", "EmitGlobalVariable", "(", "&", "GV", ")", ";", "}", "for", "(", "const", "Function", "&", "F", ":", "M", ")", "{", "if", "(", "F", ".", "isIntrinsic", "(", ")", ")", "continue", ";", "if", "(", "F", ".", "isDeclaration", "(", ")", "&&", "isModuleLinkage", "(", "F", ")", ")", "continue", ";", "if", "(", "!", "", "(", "&", "F", ")", "&&", "!", "isInstrinsic", "(", "F", ".", "getName", "(", ")", ")", ")", "{", "Str", ".", "clear", "(", ")", ";", "O", "<<", "", ";"], "ground_truth": ["if", "(", "isProgramLinkage", "(", "F", ")", ")", "O", "<<", "", ";"], "File": "HSAILAsmPrinter", "Func": "EmitStartOfAsmFile", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113818, "Length": 120, "Cover_Rate": 0.42704626334519574} {"Template_token": ["", "case", "Type", "::", "PointerTyID", ":", "{", "const", "PointerType", "*", "PT", "=", "cast", "<", "PointerType", ">", "(", "Ty", ")", ";", "const", "StructType", "*", "ST", "=", "dyn_cast", "<", "StructType", ">", "(", "PT", "->", "getElementType", "(", ")", ")", ";", "if", "(", "ST", "&&", "ST", "->", "isOpaque", "(", ")", ")", "{", "StringRef", "Name", "=", "ST", "->", "getName", "(", ")", ";", "if", "(", "Name", ".", "startswith", "(", "", ")", "||", "Name", ".", "startswith", "(", "", ")", "||", "Name", ".", "startswith", "(", "", ")", "||", "Name", ".", "startswith", "(", "", ")", "||", "Name", ".", "startswith", "(", "", ")", "||", "Name", ".", "startswith", "(", "", ")", ")", "{", "return", "", ";", "}", "else", "if", "(", "Name", ".", "startswith", "(", "", ")", ")", "{", "return", "", ";", "}", "else", "if", "(", "Name", "==", "", "||", "Name", "==", "", ")", "{", "const", "DataLayout", "&", "DL", "=", "getDataLayout", "(", ")", ";", "return", "DL", ".", "getPointerSize", "(", "", ")", "==", "", "?", "", ":", "", ";", "}", "else", "{"], "ground_truth": ["llvm_unreachable", "(", "", ")", ";"], "File": "HSAILAsmPrinter", "Func": "getArgTypeName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113819, "Length": 163, "Cover_Rate": 0.444141689373297} {"Template_token": ["", "}", "else", "if", "(", "const", "GlobalAlias", "*", "GA", "=", "dyn_cast", "<", "GlobalAlias", ">", "(", "GV", ")", ")", "{", "if", "(", "isa", "<", "Function", ">", "(", "GA", "->", "getAliasee", "(", ")", ")", ")", "NameStr", "+=", "'&'", ";", "else", "llvm_unreachable", "(", "", ")", ";", "}", "else", "{", "unsigned", "AS", "=", "GV", "->", "getType", "(", ")", "->", "getAddressSpace", "(", ")", ";", "NameStr", "+=", "getSymbolPrefixForAddressSpace", "(", "AS", ")", ";", "}", "SmallString", "<", "", ">", "Mangled", ";", "SmallString", "<", "", ">", "Sanitized", ";", "getNameWithPrefix", "(", "Mangled", ",", "GV", ")", ";", "NameStr", "+=", "Mangled", ";", "if", "(", "", "(", "Mangled", ",", "Sanitized", ")", ")", "NameStr", "+=", "Sanitized", ";", "else", "NameStr", "+=", "Mangled", ";"], "ground_truth": ["}"], "File": "HSAILAsmPrinter", "Func": "getHSAILMangledName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113820, "Length": 108, "Cover_Rate": 0.75} {"Template_token": ["", "unsigned", "AS", "=", "GV", "->", "getType", "(", ")", "->", "getAddressSpace", "(", ")", ";", "NameStr", "+=", "getSymbolPrefixForAddressSpace", "(", "AS", ")", ";", "}", "SmallString", "<", "", ">", "Mangled", ";", "SmallString", "<", "", ">", "Sanitized", ";", "getNameWithPrefix", "(", "Mangled", ",", "GV", ")", ";", "NameStr", "+=", "Mangled", ";"], "ground_truth": ["if", "(", "", "(", "Mangled", ",", "Sanitized", ")", ")", "NameStr", "+=", "Sanitized", ";"], "File": "HSAILAsmPrinter", "Func": "getHSAILMangledName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113821, "Length": 57, "Cover_Rate": 0.3958333333333333} {"Template_token": ["", "return", "", ";"], "ground_truth": ["}"], "File": "HSAILAsmPrinter", "Func": "getPassName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113822, "Length": 4, "Cover_Rate": 0.3076923076923077} {"Template_token": ["", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "default", ":", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "HSAILAsmPrinter", "Func": "getSegmentName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113823, "Length": 20, "Cover_Rate": 0.37037037037037035} {"Template_token": ["", "assert", "(", "GV", "&&", "", ")", ";"], "ground_truth": ["unsigned", "AS", "=", "GV", "->", "getType", "(", ")", "->", "getAddressSpace", "(", ")", ";"], "File": "HSAILAsmPrinter", "Func": "getSymbolPrefix", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113824, "Length": 20, "Cover_Rate": 0.3389830508474576} {"Template_token": ["", "char", "AsmPrinter", "::", "getSymbolPrefixForAddressSpace", "(", "unsigned", "AS", ")", "{"], "ground_truth": ["return", "(", "AS", "==", "", "||", "AS", "==", "", ")", "?", "'%'", ":", "'&'", ";"], "File": "HSAILAsmPrinter", "Func": "getSymbolPrefixForAddressSpace", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113825, "Length": 24, "Cover_Rate": 0.8275862068965517} {"Template_token": ["", "char", "AsmPrinter", "::", "getSymbolPrefixForAddressSpace", "(", "unsigned", "AS", ")", "{", "return", "(", "AS", "==", "", "||", "AS", "==", "", ")", "?", "'%'", ":", "'&'", ";"], "ground_truth": ["}"], "File": "HSAILAsmPrinter", "Func": "getSymbolPrefixForAddressSpace", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113826, "Length": 25, "Cover_Rate": 0.8620689655172413} {"Template_token": ["", "AsmPrinter", "::", "AsmPrinter", "(", "TargetMachine", "&", "TM", ",", "std", "::", "unique_ptr", "<", "MCStreamer", ">", "Streamer", ")", ":", "AsmPrinter", "(", "TM", ",", "std", "::", "move", "(", "Streamer", ")", ")", "{"], "ground_truth": ["}"], "File": "HSAILAsmPrinter", "Func": "HSAILAsmPrinter", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113827, "Length": 30, "Cover_Rate": 1.0} {"Template_token": ["", "AsmPrinter", "::", "AsmPrinter", "(", "TargetMachine", "&", "TM", ",", "std", "::", "unique_ptr", "<", "MCStreamer", ">", "Streamer", ")", ":", "AsmPrinter", "(", "TM", ",", "std", "::", "move", "(", "Streamer", ")", ")", "{"], "ground_truth": ["}"], "File": "HSAILAsmPrinter", "Func": "HSAILAsmPrinter", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113828, "Length": 30, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "(", "", ")", "", "!=", "getIntrinsicForGCCBuiltin", "(", "", ",", "str", ".", "data", "(", ")", ")", ")", "return", "true", ";"], "ground_truth": ["return", "str", ".", "startswith", "(", "StringRef", "(", "", ")", ")", ";"], "File": "HSAILAsmPrinter", "Func": "isHSAILInstrinsic", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113829, "Length": 32, "Cover_Rate": 0.6956521739130435} {"Template_token": ["", "if", "(", "(", "", ")", "", "!=", "getIntrinsicForGCCBuiltin", "(", "", ",", "str", ".", "data", "(", ")", ")", ")", "return", "true", ";"], "ground_truth": ["return", "str", ".", "startswith", "(", "StringRef", "(", "", ")", ")", ";"], "File": "HSAILAsmPrinter", "Func": "isHSAILInstrinsic", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113830, "Length": 32, "Cover_Rate": 0.6956521739130435} {"Template_token": ["", "static", "bool", "isModuleLinkage", "(", "const", "GlobalValue", "&", "GV", ")", "{", "return", "!", "isProgramLinkage", "(", "GV", ")", ";"], "ground_truth": ["}"], "File": "HSAILAsmPrinter", "Func": "isModuleLinkage", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113832, "Length": 18, "Cover_Rate": 1.0} {"Template_token": ["", "case", "GlobalValue", "::", "WeakAnyLinkage", ":", "case", "GlobalValue", "::", "WeakODRLinkage", ":", "case", "GlobalValue", "::", "AvailableExternallyLinkage", ":", "case", "GlobalValue", "::", "ExternalWeakLinkage", ":", "case", "GlobalValue", "::", "AppendingLinkage", ":", "return", "true", ";", "default", ":"], "ground_truth": ["return", "false", ";"], "File": "HSAILAsmPrinter", "Func": "isProgramLinkage", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113833, "Length": 33, "Cover_Rate": 0.559322033898305} {"Template_token": ["", "void", "LLVMInitializeAsmPrinter", "(", ")", "{", "RegisterAsmPrinter", "<", "AsmPrinter", ">", "Target32", "(", "The_32Target", ")", ";", "RegisterAsmPrinter", "<", "AsmPrinter", ">", "Target64", "(", "The_64Target", ")", ";"], "ground_truth": ["}"], "File": "HSAILAsmPrinter", "Func": "LLVMInitializeHSAILAsmPrinter", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113834, "Length": 24, "Cover_Rate": 1.0} {"Template_token": ["", "RegisterAsmPrinter", "<", "AsmPrinter", ">", "Target64", "(", "The_64Target", ")", ";"], "ground_truth": ["}"], "File": "HSAILAsmPrinter", "Func": "LLVMInitializeHSAILAsmPrinter", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113835, "Length": 10, "Cover_Rate": 0.4166666666666667} {"Template_token": ["", "if", "(", "Alignment", "==", "", ")", "Alignment", "=", "DL", ".", "getPrefTypeAlignment", "(", "InitTy", ")", ";", "else", "{", "unsigned", "NaturalAlign", "=", "IsLocal", "?", "DL", ".", "getPrefTypeAlignment", "(", "EmitTy", ")", ":", "DL", ".", "getABITypeAlignment", "(", "EmitTy", ")", ";", "Alignment", "=", "std", "::", "max", "(", "Alignment", ",", "NaturalAlign", ")", ";", "}"], "ground_truth": ["if", "(", "Alignment", "<", "", "&&", "NElts", "!=", "", ")", "Alignment", "=", "", ";"], "File": "HSAILAsmPrinter", "Func": "printAlignTypeQualifier", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113836, "Length": 62, "Cover_Rate": 0.5} {"Template_token": ["", "void", "AsmPrinter", "::", "printConstantFP", "(", "const", "ConstantFP", "*", "CFP", ",", "raw_ostream", "&", "O", ")", "{", "uint64_t", "Val", "=", "CFP", "->", "getValueAPF", "(", ")", ".", "bitcastToAPInt", "(", ")", ".", "getZExtValue", "(", ")", ";", "if", "(", "CFP", "->", "getType", "(", ")", "->", "isFloatTy", "(", ")", ")", "printFloat", "(", "static_cast", "<", "uint32_t", ">", "(", "Val", ")", ",", "O", ")", ";", "else", "if", "(", "CFP", "->", "getType", "(", ")", "->", "isDoubleTy", "(", ")", ")", "printDouble", "(", "Val", ",", "O", ")", ";"], "ground_truth": ["else", "llvm_unreachable", "(", "", ")", ";"], "File": "HSAILAsmPrinter", "Func": "printConstantFP", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113837, "Length": 83, "Cover_Rate": 0.9880952380952381} {"Template_token": ["", "O", "<<", "format", "(", "", "PRIx64", ",", "Val", ")", ";"], "ground_truth": ["}"], "File": "HSAILAsmPrinter", "Func": "printDouble", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113838, "Length": 11, "Cover_Rate": 0.4583333333333333} {"Template_token": ["", "}", "unsigned", "NElts", "=", "", ";", "Type", "*", "EltTy", "=", "", "(", "CV", "->", "getType", "(", ")", ",", "NElts", ",", "DL", ")", ";", "unsigned", "EltSize", "=", "DL", ".", "getTypeAllocSize", "(", "EltTy", ")", ";", "SmallVector", "<", "AddrInit", ",", "", ">", "AddrInits", ";", "StoreInitializer", "store", "(", "EltTy", ",", "*", "this", ")", ";", "store", ".", "append", "(", "CV", ",", "GV", ".", "getName", "(", ")", ")", ";", "if", "(", "NElts", "!=", "", ")", "O", "<<", "getArgTypeName", "(", "EltTy", ")", "<<", "", ";", "store", ".", "print", "(", "O", ")", ";", "if", "(", "NElts", "!=", "", ")", "O", "<<", "')'", ";", "O", "<<", "';'", ";", "if", "(", "!", "store", ".", "varInitAddresses", "(", ")", ".", "empty", "(", ")", ")", "O", "<<", "'\\n'", ";"], "ground_truth": ["for", "(", "const", "auto", "&", "VarInit", ":", "store", ".", "varInitAddresses", "(", ")", ")", "{"], "File": "HSAILAsmPrinter", "Func": "printGVInitialValue", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113842, "Length": 130, "Cover_Rate": 0.4304635761589404} {"Template_token": ["", "assert", "(", "!", "Val", ".", "getSymB", "(", ")", "&&", "", ")", ";", "O", "<<", "", "<<", "VarName", "<<", "':'", "<<", "BaseOffset", "<<", "':'", "<<", "EltSize", "<<", "':'", ";", "if", "(", "const", "MCSymbolRefExpr", "*", "SymA", "=", "Val", ".", "getSymA", "(", ")", ")", "{", "const", "MCSymbol", "&", "Sym", "=", "SymA", "->", "getSymbol", "(", ")", ";"], "ground_truth": ["O", "<<", "getSymbolPrefix", "(", "Sym", ")", "<<", "Sym", ".", "getName", "(", ")", ";"], "File": "HSAILAsmPrinter", "Func": "printInitVarWithAddressPragma", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113843, "Length": 66, "Cover_Rate": 0.4583333333333333} {"Template_token": ["", "MCValue", "Val", ";", "bool", "Res", "=", "Expr", "->", "evaluateAsRelocatable", "(", "Val", ",", "nullptr", ",", "nullptr", ")", ";", "(", "void", ")", "Res", ";", "assert", "(", "Res", "&&", "", ")", ";", "assert", "(", "!", "Val", ".", "getSymB", "(", ")", "&&", "", ")", ";", "O", "<<", "", "<<", "VarName", "<<", "':'", "<<", "BaseOffset", "<<", "':'", "<<", "EltSize", "<<", "':'", ";", "if", "(", "const", "MCSymbolRefExpr", "*", "SymA", "=", "Val", ".", "getSymA", "(", ")", ")", "{"], "ground_truth": ["const", "MCSymbol", "&", "Sym", "=", "SymA", "->", "getSymbol", "(", ")", ";"], "File": "HSAILAsmPrinter", "Func": "printInitVarWithAddressPragma", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113844, "Length": 82, "Cover_Rate": 0.5694444444444444} {"Template_token": ["", "static", "void", "printSimpleZeroInit", "(", "raw_ostream", "&", "O", ",", "bool", "IsFloat", ",", "bool", "IsDouble", ")", "{"], "ground_truth": ["O", "<<", "'0'", ";"], "File": "HSAILAsmPrinter", "Func": "printSimpleZeroInit", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113845, "Length": 19, "Cover_Rate": 0.5135135135135135} {"Template_token": ["", "SetupMachineFunction", "(", "MF", ")", ";", "SmallString", "<", "", ">", "Name", ";", "getMangledName", "(", "Name", ",", "MF", ".", "getFunction", "(", ")", ")", ";", "CurrentFnSym", "=", "OutContext", ".", "getOrCreateSymbol", "(", "Name", ")", ";", "OutStreamer", "->", "SwitchSection", "(", "getObjFileLowering", "(", ")", ".", "getTextSection", "(", ")", ")", ";"], "ground_truth": ["EmitFunctionBody", "(", ")", ";"], "File": "HSAILAsmPrinter", "Func": "runOnMachineFunction", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113846, "Length": 48, "Cover_Rate": 0.7741935483870968} {"Template_token": ["", "void", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "override", "{"], "ground_truth": ["}"], "File": "HSAILFrameLowering", "Func": "emitEpilogue", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113847, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "void", "emitEpilogue", "(", "MachineFunction", "&", "MF", ",", "MachineBasicBlock", "&", "MBB", ")", "const", "override", "{"], "ground_truth": ["}"], "File": "HSAILFrameLowering", "Func": "emitEpilogue", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113848, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "return", "MF", ".", "getFrameInfo", "(", ")", "->", "getObjectOffset", "(", "FI", ")", ";"], "ground_truth": ["}"], "File": "HSAILFrameLowering", "Func": "getFrameIndexReference", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113849, "Length": 13, "Cover_Rate": 0.40625} {"Template_token": ["", "int", "FrameLowering", "::", "getFrameIndexReference", "(", "const", "MachineFunction", "&", "MF", ",", "int", "FI", ",", "unsigned", "&", "FrameReg", ")", "const", "{", "return", "MF", ".", "getFrameInfo", "(", ")", "->", "getObjectOffset", "(", "FI", ")", ";"], "ground_truth": ["}"], "File": "HSAILFrameLowering", "Func": "getFrameIndexReference", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113850, "Length": 32, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "hasFP", "(", "const", "MachineFunction", "&", "MF", ")", "const", "override", "{"], "ground_truth": ["return", "false", ";"], "File": "HSAILFrameLowering", "Func": "hasFP", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113852, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "explicit", "FrameLowering", "(", "StackDirection", "D", ",", "unsigned", "StackAl", ",", "int", "LAO", ",", "unsigned", "TransAl", "=", "", ")", ":", "TargetFrameLowering", "(", "D", ",", "StackAl", ",", "LAO", ",", "TransAl", ")", "{"], "ground_truth": ["}"], "File": "HSAILFrameLowering", "Func": "HSAILFrameLowering", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113853, "Length": 30, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "FrameLowering", "(", "StackDirection", "D", ",", "unsigned", "StackAl", ",", "int", "LAO", ",", "unsigned", "TransAl", "=", "", ")", ":", "TargetFrameLowering", "(", "D", ",", "StackAl", ",", "LAO", ",", "TransAl", ")", "{"], "ground_truth": ["}"], "File": "HSAILFrameLowering", "Func": "HSAILFrameLowering", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113854, "Length": 30, "Cover_Rate": 1.0} {"Template_token": ["", "unsigned", "SpillAlign", "=", "", ";", "unsigned", "PrivateAlign", "=", "", ";", "for", "(", "int", "I", "=", "MFI", "->", "getObjectIndexBegin", "(", ")", ",", "E", "=", "MFI", "->", "getObjectIndexEnd", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "if", "(", "MFI", "->", "isDeadObjectIndex", "(", "I", ")", ")", "continue", ";", "unsigned", "Size", "=", "MFI", "->", "getObjectSize", "(", "I", ")", ";", "unsigned", "Align", "=", "MFI", "->", "getObjectAlignment", "(", "I", ")", ";", "unsigned", "Offset", "=", "MFI", "->", "getObjectOffset", "(", "I", ")", ";", "assert", "(", "Offset", "==", "", "&&", "", ")", ";", "if", "(", "MFI", "->", "isSpillSlotObjectIndex", "(", "I", ")", ")", "{", "SpillSize", "=", "(", "SpillSize", "+", "Align", "-", "", ")", "/", "Align", "*", "Align", ";", "SpillMap", "[", "I", "]", "=", "SpillSize", ";", "SpillSize", "+=", "Size", ";", "SpillAlign", "=", "std", "::", "max", "(", "SpillAlign", ",", "Align", ")", ";", "}", "else", "{", "PrivateSize", "=", "(", "PrivateSize", "+", "Align", "-", "", ")", "/", "Align", "*", "Align", ";", "PrivateMap", "[", "I", "]", "=", "PrivateSize", ";", "PrivateSize", "+=", "Size", ";", "PrivateAlign", "=", "std", "::", "max", "(", "PrivateAlign", ",", "Align", ")", ";", "}", "MFI", "->", "RemoveStackObject", "(", "I", ")", ";", "}", "int", "PrivateIndex", "=", "-", "", ";", "int", "SpillIndex", "=", "-", "", ";", "if", "(", "PrivateSize", "!=", "", ")", "PrivateIndex", "=", "MFI", "->", "CreateStackObject", "(", "PrivateSize", ",", "PrivateAlign", ",", "false", ")", ";", "if", "(", "SpillSize", "!=", "", ")", "SpillIndex", "=", "MFI", "->", "CreateSpillStackObject", "(", "SpillSize", ",", "SpillAlign", ")", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "MF", ")", "{", "for", "(", "MachineInstr", "&", "MI", ":", "MBB", ")", "{"], "ground_truth": ["unsigned", "Opc", "=", "MI", ".", "getOpcode", "(", ")", ";"], "File": "HSAILFrameLowering", "Func": "processFunctionBeforeFrameFinalized", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113855, "Length": 256, "Cover_Rate": 0.579185520361991} {"Template_token": ["", "unsigned", "PrivateAlign", "=", "", ";", "for", "(", "int", "I", "=", "MFI", "->", "getObjectIndexBegin", "(", ")", ",", "E", "=", "MFI", "->", "getObjectIndexEnd", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "if", "(", "MFI", "->", "isDeadObjectIndex", "(", "I", ")", ")", "continue", ";", "unsigned", "Size", "=", "MFI", "->", "getObjectSize", "(", "I", ")", ";", "unsigned", "Align", "=", "MFI", "->", "getObjectAlignment", "(", "I", ")", ";", "unsigned", "Offset", "=", "MFI", "->", "getObjectOffset", "(", "I", ")", ";", "assert", "(", "Offset", "==", "", "&&", "", ")", ";", "if", "(", "MFI", "->", "isSpillSlotObjectIndex", "(", "I", ")", ")", "{", "SpillSize", "=", "(", "SpillSize", "+", "Align", "-", "", ")", "/", "Align", "*", "Align", ";", "SpillMap", "[", "I", "]", "=", "SpillSize", ";", "SpillSize", "+=", "Size", ";", "SpillAlign", "=", "std", "::", "max", "(", "SpillAlign", ",", "Align", ")", ";", "}", "else", "{", "PrivateSize", "=", "(", "PrivateSize", "+", "Align", "-", "", ")", "/", "Align", "*", "Align", ";", "PrivateMap", "[", "I", "]", "=", "PrivateSize", ";", "PrivateSize", "+=", "Size", ";", "PrivateAlign", "=", "std", "::", "max", "(", "PrivateAlign", ",", "Align", ")", ";", "}", "MFI", "->", "RemoveStackObject", "(", "I", ")", ";", "}", "int", "PrivateIndex", "=", "-", "", ";", "int", "SpillIndex", "=", "-", "", ";", "if", "(", "PrivateSize", "!=", "", ")", "PrivateIndex", "=", "MFI", "->", "CreateStackObject", "(", "PrivateSize", ",", "PrivateAlign", ",", "false", ")", ";", "if", "(", "SpillSize", "!=", "", ")", "SpillIndex", "=", "MFI", "->", "CreateSpillStackObject", "(", "SpillSize", ",", "SpillAlign", ")", ";", "for", "(", "MachineBasicBlock", "&", "MBB", ":", "MF", ")", "{", "for", "(", "MachineInstr", "&", "MI", ":", "MBB", ")", "{", "unsigned", "Opc", "=", "MI", ".", "getOpcode", "(", ")", ";", "int", "AddrIdx", "=", "", "(", "Opc", ",", "", "::", "address", ")", ";", "if", "(", "AddrIdx", "==", "-", "", ")", "{", "continue", ";", "}", "MachineOperand", "&", "Base", "=", "MI", ".", "getOperand", "(", "AddrIdx", ")", ";", "if", "(", "!", "Base", ".", "isFI", "(", ")", ")", "continue", ";", "int", "Index", "=", "Base", ".", "getIndex", "(", ")", ";", "MachineOperand", "&", "Offset", "=", "MI", ".", "getOperand", "(", "AddrIdx", "+", "", ")", ";", "int64_t", "OrigOffset", "=", "Offset", ".", "getImm", "(", ")", ";", "if", "(", "MFI", "->", "isSpillSlotObjectIndex", "(", "Index", ")", ")", "{", "Base", ".", "setIndex", "(", "SpillIndex", ")", ";", "Offset", ".", "setImm", "(", "SpillMap", "[", "Index", "]", "+", "OrigOffset", ")", ";", "}", "else", "{", "Base", ".", "setIndex", "(", "PrivateIndex", ")", ";"], "ground_truth": ["Offset", ".", "setImm", "(", "PrivateMap", "[", "Index", "]", "+", "OrigOffset", ")", ";"], "File": "HSAILFrameLowering", "Func": "processFunctionBeforeFrameFinalized", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113856, "Length": 378, "Cover_Rate": 0.8552036199095022} {"Template_token": ["", "InstPrinter", "::", "InstPrinter", "(", "const", "MCAsmInfo", "&", "MAI", ",", "const", "MCInstrInfo", "&", "MII", ",", "const", "MCRegisterInfo", "&", "MRI", ")", ":", "MCInstPrinter", "(", "MAI", ",", "MII", ",", "MRI", ")", ",", "InArgScope", "(", "false", ")", "{"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "HSAILInstPrinter", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113857, "Length": 35, "Cover_Rate": 1.0} {"Template_token": ["", "InstPrinter", "::", "InstPrinter", "(", "const", "MCAsmInfo", "&", "MAI", ",", "const", "MCInstrInfo", "&", "MII", ",", "const", "MCRegisterInfo", "&", "MRI", ")", ":", "MCInstPrinter", "(", "MAI", ",", "MII", ",", "MRI", ")", ",", "InArgScope", "(", "false", ")", "{"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "HSAILInstPrinter", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113858, "Length": 35, "Cover_Rate": 1.0} {"Template_token": ["", "case", "BRIG_TYPE_U8X4", ":", "case", "BRIG_TYPE_S8X4", ":", "case", "BRIG_TYPE_F16X2", ":", "case", "BRIG_TYPE_S16X2", ":", "case", "BRIG_TYPE_U16X2", ":", "return", "true", ";", "default", ":", "return", "false", ";", "}", "}", "case", "", ":", "{", "switch", "(", "BT", ")", "{", "case", "BRIG_TYPE_U64", ":", "case", "BRIG_TYPE_B64", ":", "case", "BRIG_TYPE_F64", ":", "case", "BRIG_TYPE_S64", ":", "case", "BRIG_TYPE_F16X4", ":", "case", "BRIG_TYPE_F32X2", ":", "case", "BRIG_TYPE_ROIMG", ":", "case", "BRIG_TYPE_RWIMG", ":", "case", "BRIG_TYPE_S16X4", ":", "case", "BRIG_TYPE_S32X2", ":", "case", "BRIG_TYPE_S8X8", ":", "case", "BRIG_TYPE_SAMP", ":", "case", "BRIG_TYPE_SIG32", ":", "case", "BRIG_TYPE_SIG64", ":", "case", "BRIG_TYPE_U16X4", ":", "case", "BRIG_TYPE_U32X2", ":", "case", "BRIG_TYPE_U8X8", ":", "case", "BRIG_TYPE_WOIMG", ":", "return", "true", ";", "default", ":", "return", "false", ";", "}", "}", "case", "", ":", "{", "switch", "(", "BT", ")", "{", "case", "BRIG_TYPE_B1", ":", "case", "BRIG_TYPE_B8", ":", "case", "BRIG_TYPE_S8", ":", "case", "BRIG_TYPE_U8", ":", "return", "true", ";", "default", ":", "return", "false", ";", "}", "}", "case", "", ":", "{", "switch", "(", "BT", ")", "{", "case", "BRIG_TYPE_U16", ":", "case", "BRIG_TYPE_B16", ":", "case", "BRIG_TYPE_S16", ":", "case", "BRIG_TYPE_F16", ":", "return", "true", ";"], "ground_truth": ["default", ":"], "File": "HSAILInstPrinter", "Func": "isNaturalAlignment", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113859, "Length": 155, "Cover_Rate": 0.5984555984555985} {"Template_token": ["", "int64_t", "Offset", "=", "OffsetOp", ".", "getImm", "(", ")", ";", "if", "(", "BaseOp", ".", "isReg", "(", ")", ")", "{", "assert", "(", "BaseOp", ".", "getReg", "(", ")", "==", "", ")", ";", "}", "else", "if", "(", "BaseOp", ".", "isExpr", "(", ")", ")", "{", "O", "<<", "'['", ";", "BaseOp", ".", "getExpr", "(", ")", "->", "print", "(", "O", ",", "&", "MAI", ")", ";", "O", "<<", "']'", ";", "}", "else", "if", "(", "BaseOp", ".", "isImm", "(", ")", ")", "O", "<<", "BaseOp", ".", "getImm", "(", ")", ";", "else", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["if", "(", "AddrReg", "!=", "", "&&", "Offset", "!=", "", ")", "{"], "File": "HSAILInstPrinter", "Func": "printAddrMode3Op", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113860, "Length": 97, "Cover_Rate": 0.3803921568627451} {"Template_token": ["", "void", "InstPrinter", "::", "printArgDeclAlignment", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "unsigned", "Align", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ";", "int", "TypeLengthIdx", "=", "", "(", "MI", "->", "getOpcode", "(", ")", ",", "", "::", "TypeLength", ")", ";", "BrigType", "BT", "=", "static_cast", "<", "BrigType", ">", "(", "MI", "->", "getOperand", "(", "TypeLengthIdx", ")", ".", "getImm", "(", ")", ")", ";"], "ground_truth": ["if", "(", "!", "isNaturalAlignment", "(", "BT", ",", "Align", ")", ")", "O", "<<", "", "<<", "formatDec", "(", "Align", ")", "<<", "", ";"], "File": "HSAILInstPrinter", "Func": "printArgDeclAlignment", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113861, "Length": 89, "Cover_Rate": 0.9468085106382979} {"Template_token": ["", "int", "TypeLengthIdx", "=", "", "(", "MI", "->", "getOpcode", "(", ")", ",", "", "::", "TypeLength", ")", ";", "BrigType", "BT", "=", "static_cast", "<", "BrigType", ">", "(", "MI", "->", "getOperand", "(", "TypeLengthIdx", ")", ".", "getImm", "(", ")", ")", ";"], "ground_truth": ["if", "(", "!", "isNaturalAlignment", "(", "BT", ",", "Align", ")", ")", "O", "<<", "", "<<", "formatDec", "(", "Align", ")", "<<", "", ";"], "File": "HSAILInstPrinter", "Func": "printArgDeclAlignment", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113862, "Length": 57, "Cover_Rate": 0.6063829787234043} {"Template_token": ["", "void", "InstPrinter", "::", "printArraySize", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "int64_t", "Size", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ";", "if", "(", "Size", "!=", "", ")", "O", "<<", "'['", "<<", "Size", "<<", "']'", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printArraySize", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113863, "Length": 47, "Cover_Rate": 1.0} {"Template_token": ["", "int64_t", "Size", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ";", "if", "(", "Size", "!=", "", ")", "O", "<<", "'['", "<<", "Size", "<<", "']'", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printArraySize", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113864, "Length": 29, "Cover_Rate": 0.6170212765957447} {"Template_token": ["", "const", "MCOperand", "&", "Op", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "if", "(", "Op", ".", "isImm", "(", ")", ")", "{", "O", "<<", "(", "Op", ".", "getImm", "(", ")", "?", "'1'", ":", "'0'", ")", ";", "return", ";", "}", "printOperand", "(", "MI", ",", "OpNo", ",", "O", ")", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printB1", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113865, "Length": 48, "Cover_Rate": 0.7272727272727273} {"Template_token": ["", "void", "InstPrinter", "::", "printB64", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "printU64", "(", "MI", ",", "OpNo", ",", "O", ")", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printB64", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113869, "Length": 28, "Cover_Rate": 1.0} {"Template_token": ["", "unsigned", "Align", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ";"], "ground_truth": ["if", "(", "Align", "!=", "", ")", "O", "<<", "", "<<", "formatDec", "(", "Align", ")", "<<", "')'", ";"], "File": "HSAILInstPrinter", "Func": "printBrigAlignment", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113870, "Length": 31, "Cover_Rate": 0.62} {"Template_token": ["", "unsigned", "Align", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ";"], "ground_truth": ["if", "(", "Align", "!=", "", ")", "O", "<<", "", "<<", "formatDec", "(", "Align", ")", "<<", "')'", ";"], "File": "HSAILInstPrinter", "Func": "printBrigAlignment", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113871, "Length": 31, "Cover_Rate": 0.62} {"Template_token": ["", "case", "BRIG_ALLOCATION_PROGRAM", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ALLOCATION_AGENT", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ALLOCATION_AUTOMATIC", ":", "O", "<<", "", ";", "break", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printBrigAllocation", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113872, "Length": 28, "Cover_Rate": 0.4} {"Template_token": ["", "switch", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ")", "{"], "ground_truth": ["case", "BRIG_ALU_FTZ", ":"], "File": "HSAILInstPrinter", "Func": "printBrigAluModifierMask", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113873, "Length": 17, "Cover_Rate": 0.3953488372093023} {"Template_token": ["", "case", "BRIG_ATOMIC_MAX", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ATOMIC_MIN", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ATOMIC_OR", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ATOMIC_ST", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ATOMIC_SUB", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ATOMIC_WRAPDEC", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ATOMIC_WRAPINC", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ATOMIC_XOR", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ATOMIC_WAIT_EQ", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ATOMIC_WAIT_NE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ATOMIC_WAIT_LT", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ATOMIC_WAIT_GTE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ATOMIC_WAITTIMEOUT_EQ", ":", "O", "<<", "", ";"], "ground_truth": ["break", ";"], "File": "HSAILInstPrinter", "Func": "printBrigAtomicOperation", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113874, "Length": 117, "Cover_Rate": 0.5246636771300448} {"Template_token": ["", "O", "<<", "", ";", "break", ";", "case", "BRIG_ATOMIC_ST", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ATOMIC_SUB", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ATOMIC_WRAPDEC", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ATOMIC_WRAPINC", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ATOMIC_XOR", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ATOMIC_WAIT_EQ", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ATOMIC_WAIT_NE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ATOMIC_WAIT_LT", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ATOMIC_WAIT_GTE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_ATOMIC_WAITTIMEOUT_EQ", ":", "O", "<<", "", ";"], "ground_truth": ["break", ";"], "File": "HSAILInstPrinter", "Func": "printBrigAtomicOperation", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113875, "Length": 96, "Cover_Rate": 0.4304932735426009} {"Template_token": ["", "break", ";", "case", "BRIG_COMPARE_LE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_GT", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_GE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_EQU", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_NEU", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_LTU", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_LEU", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_GTU", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_GEU", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_NUM", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_NAN", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_SEQ", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_SNE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_SLT", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_SLE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_SGT", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_SGE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_COMPARE_SGEU", ":", "O", "<<", "", ";", "break", ";"], "ground_truth": ["case", "BRIG_COMPARE_SEQU", ":"], "File": "HSAILInstPrinter", "Func": "printBrigCompareOperation", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113876, "Length": 167, "Cover_Rate": 0.583916083916084} {"Template_token": ["", "break", ";", "case", "BRIG_CONTROL_MAXFLATWORKGROUPSIZE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CONTROL_REQUIREDDIM", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CONTROL_REQUIREDGRIDSIZE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CONTROL_REQUIREDWORKGROUPSIZE", ":", "O", "<<", "", ";", "break", ";"], "ground_truth": ["case", "BRIG_CONTROL_REQUIRENOPARTIALWORKGROUPS", ":"], "File": "HSAILInstPrinter", "Func": "printBrigControlDirective", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113877, "Length": 41, "Cover_Rate": 0.3565217391304348} {"Template_token": ["", "void", "InstPrinter", "::", "printBrigExecutableModifierMask", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "switch", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ")", "{", "case", "BRIG_EXECUTABLE_DEFINITION", ":", "O", "<<", "", ";", "break", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printBrigExecutableModifierMask", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113878, "Length": 42, "Cover_Rate": 0.9767441860465116} {"Template_token": ["", "break", ";", "case", "BRIG_CHANNEL_ORDER_SRGB", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_SRGBX", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_SRGBA", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_SBGRA", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_INTENSITY", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_LUMINANCE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_DEPTH", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_DEPTH_STENCIL", ":", "O", "<<", "", ";", "break", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printBrigImageChannelOrder", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113879, "Length": 75, "Cover_Rate": 0.35046728971962615} {"Template_token": ["", "case", "BRIG_CHANNEL_ORDER_R", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_RX", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_RG", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_RGX", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_RA", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_RGB", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_RGBX", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_RGBA", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_BGRA", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_ARGB", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_ABGR", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_SRGB", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_SRGBX", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_SRGBA", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_SBGRA", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_INTENSITY", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_LUMINANCE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_DEPTH", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_ORDER_DEPTH_STENCIL", ":", "O", "<<", "", ";"], "ground_truth": ["break", ";"], "File": "HSAILInstPrinter", "Func": "printBrigImageChannelOrder", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113880, "Length": 171, "Cover_Rate": 0.7990654205607477} {"Template_token": ["", "case", "BRIG_CHANNEL_TYPE_SNORM_INT16", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_TYPE_UNORM_INT8", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_TYPE_UNORM_INT16", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_TYPE_UNORM_INT24", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_TYPE_UNORM_SHORT_555", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_TYPE_UNORM_SHORT_565", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_TYPE_UNORM_INT_101010", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_CHANNEL_TYPE_SIGNED_INT8", ":"], "ground_truth": ["O", "<<", "", ";"], "File": "HSAILInstPrinter", "Func": "printBrigImageChannelType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113881, "Length": 70, "Cover_Rate": 0.39325842696629215} {"Template_token": ["", "case", "BRIG_GEOMETRY_2D", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_GEOMETRY_3D", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_GEOMETRY_1DA", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_GEOMETRY_2DA", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_GEOMETRY_1DB", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_GEOMETRY_2DDEPTH", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_GEOMETRY_2DADEPTH", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_GEOMETRY_UNKNOWN", ":", "O", "<<", "", ";"], "ground_truth": ["break", ";"], "File": "HSAILInstPrinter", "Func": "printBrigImageGeometry", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113882, "Length": 72, "Cover_Rate": 0.6260869565217392} {"Template_token": ["", "break", ";", "case", "BRIG_IMAGE_QUERY_ARRAY", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_IMAGE_QUERY_CHANNELORDER", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_IMAGE_QUERY_CHANNELTYPE", ":", "O", "<<", "", ";", "break", ";", "}"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printBrigImageQuery", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113883, "Length": 31, "Cover_Rate": 0.3522727272727273} {"Template_token": ["", "void", "InstPrinter", "::", "printBrigLinkage", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "switch", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ")", "{", "case", "BRIG_LINKAGE_NONE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_LINKAGE_PROGRAM", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_LINKAGE_MODULE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_LINKAGE_FUNCTION", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_LINKAGE_ARG", ":", "O", "<<", "", ";", "break", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printBrigLinkage", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113884, "Length": 78, "Cover_Rate": 0.9873417721518988} {"Template_token": ["", "void", "InstPrinter", "::", "printBrigMemoryModifierMask", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "switch", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ")", "{", "case", "BRIG_MEMORY_CONST", ":", "O", "<<", "", ";", "break", ";", "}"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printBrigMemoryModifierMask", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113886, "Length": 43, "Cover_Rate": 1.0} {"Template_token": ["", "break", ";", "case", "BRIG_MEMORY_ORDER_SC_ACQUIRE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_MEMORY_ORDER_SC_RELEASE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_MEMORY_ORDER_SC_ACQUIRE_RELEASE", ":", "O", "<<", "", ";", "break", ";", "}"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printBrigMemoryOrder", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113887, "Length": 31, "Cover_Rate": 0.3924050632911392} {"Template_token": ["", "case", "BRIG_MEMORY_SCOPE_WAVEFRONT", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_MEMORY_SCOPE_WORKGROUP", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_MEMORY_SCOPE_AGENT", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_MEMORY_SCOPE_SYSTEM", ":"], "ground_truth": ["O", "<<", "", ";"], "File": "HSAILInstPrinter", "Func": "printBrigMemoryScope", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113888, "Length": 34, "Cover_Rate": 0.4857142857142857} {"Template_token": ["", "O", "<<", "", ";", "break", ";", "case", "BRIG_PACK_PS", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_PACK_SP", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_PACK_SS", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_PACK_S", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_PACK_P", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_PACK_PPSAT", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_PACK_PSSAT", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_PACK_SPSAT", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_PACK_SSSAT", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_PACK_SSAT", ":", "O", "<<", "", ";"], "ground_truth": ["break", ";"], "File": "HSAILInstPrinter", "Func": "printBrigPack", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113889, "Length": 96, "Cover_Rate": 0.6357615894039735} {"Template_token": ["", "switch", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ")", "{", "case", "BRIG_PROFILE_BASE", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_PROFILE_FULL", ":", "O", "<<", "", ";"], "ground_truth": ["break", ";"], "File": "HSAILInstPrinter", "Func": "printBrigProfile", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113890, "Length": 32, "Cover_Rate": 0.6153846153846154} {"Template_token": ["", "switch", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ")", "{", "case", "BRIG_COORD_UNNORMALIZED", ":", "O", "<<", "", ";", "break", ";"], "ground_truth": ["case", "BRIG_COORD_NORMALIZED", ":"], "File": "HSAILInstPrinter", "Func": "printBrigSamplerCoordNormalization", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113891, "Length": 26, "Cover_Rate": 0.5} {"Template_token": ["", "break", ";", "case", "BRIG_SAMPLER_QUERY_COORD", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_SAMPLER_QUERY_FILTER", ":", "O", "<<", "", ";", "break", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printBrigSamplerQuery", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113892, "Length": 21, "Cover_Rate": 0.3442622950819672} {"Template_token": ["", "void", "InstPrinter", "::", "printBrigSegCvtModifierMask", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "switch", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ")", "{"], "ground_truth": ["case", "BRIG_SEG_CVT_NONULL", ":"], "File": "HSAILInstPrinter", "Func": "printBrigSegCvtModifierMask", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113894, "Length": 35, "Cover_Rate": 0.813953488372093} {"Template_token": ["", "O", "<<", "", ";", "break", ";", "case", "", ":", "O", "<<", "", ";", "break", ";", "case", "", ":", "O", "<<", "", ";", "break", ";", "case", "", ":", "O", "<<", "", ";", "break", ";", "case", "", ":", "O", "<<", "", ";", "break", ";", "case", "", ":", "O", "<<", "", ";", "break", ";", "case", "", ":", "O", "<<", "", ";", "break", ";", "case", "", ":", "{", "const", "MCInstrDesc", "&", "Desc", "=", "MII", ".", "get", "(", "MI", "->", "getOpcode", "(", ")", ")", ";", "if", "(", "Desc", ".", "TSFlags", "&", "", ")", "break", ";", "O", "<<", "", ";", "break", ";", "}", "default", ":", "llvm_unreachable", "(", "", ")", ";", "}", "switch", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ")", "{", "case", "BRIG_SEGMENT_GLOBAL", ":", "O", "<<", "", ";", "break", ";"], "ground_truth": ["case", "BRIG_SEGMENT_READONLY", ":"], "File": "HSAILInstPrinter", "Func": "printBrigSegment", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113895, "Length": 131, "Cover_Rate": 0.5038461538461538} {"Template_token": ["", "break", ";", "case", "BRIG_TYPE_U8X8", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_TYPE_U8X16", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_TYPE_U16X2", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_TYPE_U16X4", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_TYPE_U16X8", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_TYPE_U32X2", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_TYPE_U32X4", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_TYPE_U64X2", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_TYPE_S8X4", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_TYPE_S8X8", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_TYPE_S8X16", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_TYPE_S16X2", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_TYPE_S16X4", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_TYPE_S16X8", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_TYPE_S32X2", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_TYPE_S32X4", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_TYPE_S64X2", ":", "O", "<<", "", ";"], "ground_truth": ["break", ";"], "File": "HSAILInstPrinter", "Func": "printBrigType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113896, "Length": 155, "Cover_Rate": 0.33916849015317285} {"Template_token": ["", "switch", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ")", "{", "case", "BRIG_VARIABLE_DEFINITION", ":"], "ground_truth": ["O", "<<", "", ";"], "File": "HSAILInstPrinter", "Func": "printBrigVariableModifierMask", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113897, "Length": 21, "Cover_Rate": 0.40384615384615385} {"Template_token": ["", "O", "<<", "", ";", "break", ";", "case", "BRIG_WIDTH_262144", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_WIDTH_524288", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_WIDTH_1048576", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_WIDTH_2097152", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_WIDTH_4194304", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_WIDTH_8388608", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_WIDTH_16777216", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_WIDTH_33554432", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_WIDTH_67108864", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_WIDTH_134217728", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_WIDTH_268435456", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_WIDTH_536870912", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_WIDTH_1073741824", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_WIDTH_2147483648", ":", "O", "<<", "", ";", "break", ";", "case", "BRIG_WIDTH_WAVESIZE", ":", "O", "<<", "", ";"], "ground_truth": ["break", ";"], "File": "HSAILInstPrinter", "Func": "printBrigWidthImpl", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113898, "Length": 141, "Cover_Rate": 0.4221556886227545} {"Template_token": ["", "void", "InstPrinter", "::", "printEquiv", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{"], "ground_truth": ["unsigned", "Equiv", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ";"], "File": "HSAILInstPrinter", "Func": "printEquiv", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113899, "Length": 32, "Cover_Rate": 0.64} {"Template_token": ["", "void", "InstPrinter", "::", "printEquiv", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "unsigned", "Equiv", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ";"], "ground_truth": ["if", "(", "Equiv", "!=", "", ")", "O", "<<", "", "<<", "formatDec", "(", "Equiv", ")", "<<", "')'", ";"], "File": "HSAILInstPrinter", "Func": "printEquiv", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113900, "Length": 49, "Cover_Rate": 0.98} {"Template_token": ["", "void", "InstPrinter", "::", "printF16", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printF16", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113902, "Length": 24, "Cover_Rate": 1.0} {"Template_token": ["", "void", "InstPrinter", "::", "printF16X2", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printF16X2", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113903, "Length": 24, "Cover_Rate": 1.0} {"Template_token": ["", "void", "InstPrinter", "::", "printF16X4", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printF16X4", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113904, "Length": 24, "Cover_Rate": 1.0} {"Template_token": ["", "void", "InstPrinter", "::", "printF32", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "const", "MCOperand", "&", "Op", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "if", "(", "Op", ".", "isFPImm", "(", ")", ")", "{"], "ground_truth": ["O", "<<", "format", "(", "", "PRIx32", ",", "FloatToBits", "(", "static_cast", "<", "float", ">", "(", "Op", ".", "getFPImm", "(", ")", ")", ")", ")", ";"], "File": "HSAILInstPrinter", "Func": "printF32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113905, "Length": 62, "Cover_Rate": 0.7294117647058823} {"Template_token": ["", "if", "(", "Op", ".", "isFPImm", "(", ")", ")", "{"], "ground_truth": ["O", "<<", "format", "(", "", "PRIx64", ",", "DoubleToBits", "(", "Op", ".", "getFPImm", "(", ")", ")", ")", ";"], "File": "HSAILInstPrinter", "Func": "printF64", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113906, "Length": 26, "Cover_Rate": 0.3291139240506329} {"Template_token": ["", "void", "InstPrinter", "::", "printFTZ", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "if", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ")", "O", "<<", "", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printFTZ", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113907, "Length": 36, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ")", "O", "<<", "", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printFTZ", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113908, "Length": 18, "Cover_Rate": 0.5} {"Template_token": ["", "InArgScope", "=", "true", ";", "printInstruction", "(", "MI", ",", "OS", ")", ";", "printAnnotation", "(", "OS", ",", "Annot", ")", ";", "return", ";", "}", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "", ")", "{", "InArgScope", "=", "false", ";", "printInstruction", "(", "MI", ",", "OS", ")", ";", "printAnnotation", "(", "OS", ",", "Annot", ")", ";", "return", ";", "}", "if", "(", "InArgScope", ")", "OS", "<<", "'\\t'", ";", "printInstruction", "(", "MI", ",", "OS", ")", ";", "if", "(", "MI", "->", "getOpcode", "(", ")", "==", "", ")", "{", "unsigned", "I", "=", "", ";", "OS", "<<", "'('", ";", "const", "MCOperand", "*", "Op", "=", "&", "MI", "->", "getOperand", "(", "", ")", ";", "while", "(", "!", "Op", "->", "isImm", "(", ")", ")", "{", "printOperand", "(", "MI", ",", "I", "++", ",", "OS", ")", ";", "Op", "=", "&", "MI", "->", "getOperand", "(", "I", ")", ";", "}", "assert", "(", "(", "Op", "->", "isImm", "(", ")", "&&", "Op", "->", "getImm", "(", ")", "==", "", ")", "&&", "", ")", ";", "++", "I", ";", "OS", "<<", "", ";", "unsigned", "N", "=", "MI", "->", "getNumOperands", "(", ")", ";", "while", "(", "I", "<", "N", ")", "{", "printOperand", "(", "MI", ",", "I", "++", ",", "OS", ")", ";", "if", "(", "I", "<", "N", ")", "OS", "<<", "", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printInst", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113909, "Length": 197, "Cover_Rate": 0.788} {"Template_token": ["", "printOperand", "(", "MI", ",", "I", "++", ",", "OS", ")", ";", "Op", "=", "&", "MI", "->", "getOperand", "(", "I", ")", ";", "}", "assert", "(", "(", "Op", "->", "isImm", "(", ")", "&&", "Op", "->", "getImm", "(", ")", "==", "", ")", "&&", "", ")", ";", "++", "I", ";", "OS", "<<", "", ";", "unsigned", "N", "=", "MI", "->", "getNumOperands", "(", ")", ";", "while", "(", "I", "<", "N", ")", "{", "printOperand", "(", "MI", ",", "I", "++", ",", "OS", ")", ";", "if", "(", "I", "<", "N", ")", "OS", "<<", "", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printInst", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113910, "Length": 86, "Cover_Rate": 0.344} {"Template_token": ["", "void", "InstPrinter", "::", "printNoNull", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "if", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ")", "O", "<<", "", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printNoNull", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113912, "Length": 36, "Cover_Rate": 1.0} {"Template_token": ["", "const", "MCExpr", "*", "Exp", "=", "Op", ".", "getExpr", "(", ")", ";", "Exp", "->", "print", "(", "O", ",", "&", "MAI", ")", ";"], "ground_truth": ["}", "else", "if", "(", "Op", ".", "isImm", "(", ")", "||", "Op", ".", "isFPImm", "(", ")", ")", "{"], "File": "HSAILInstPrinter", "Func": "printOperand", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113913, "Length": 38, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "void", "InstPrinter", "::", "printS16X2", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{"], "ground_truth": ["llvm_unreachable", "(", "", ")", ";"], "File": "HSAILInstPrinter", "Func": "printS16X2", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113914, "Length": 23, "Cover_Rate": 0.9583333333333334} {"Template_token": ["", "void", "InstPrinter", "::", "printS16X4", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{"], "ground_truth": ["llvm_unreachable", "(", "", ")", ";"], "File": "HSAILInstPrinter", "Func": "printS16X4", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113916, "Length": 23, "Cover_Rate": 0.9583333333333334} {"Template_token": ["", "void", "InstPrinter", "::", "printS32", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "const", "MCOperand", "&", "Op", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "if", "(", "Op", ".", "isImm", "(", ")", ")", "{"], "ground_truth": ["O", "<<", "format", "(", "", "PRId32", ",", "Op", ".", "getImm", "(", ")", ")", ";"], "File": "HSAILInstPrinter", "Func": "printS32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113917, "Length": 53, "Cover_Rate": 0.803030303030303} {"Template_token": ["", "if", "(", "Op", ".", "isImm", "(", ")", ")", "{"], "ground_truth": ["O", "<<", "format", "(", "", "PRId32", ",", "Op", ".", "getImm", "(", ")", ")", ";"], "File": "HSAILInstPrinter", "Func": "printS32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113918, "Length": 23, "Cover_Rate": 0.3484848484848485} {"Template_token": ["", "void", "InstPrinter", "::", "printS32X2", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{"], "ground_truth": ["llvm_unreachable", "(", "", ")", ";"], "File": "HSAILInstPrinter", "Func": "printS32X2", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113919, "Length": 23, "Cover_Rate": 0.9583333333333334} {"Template_token": ["", "void", "InstPrinter", "::", "printS32X2", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printS32X2", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113920, "Length": 24, "Cover_Rate": 1.0} {"Template_token": ["", "void", "InstPrinter", "::", "printS64", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "const", "MCOperand", "&", "Op", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "if", "(", "Op", ".", "isImm", "(", ")", ")", "{", "O", "<<", "format", "(", "", "PRId64", ",", "Op", ".", "getImm", "(", ")", ")", ";", "return", ";", "}", "printOperand", "(", "MI", ",", "OpNo", ",", "O", ")", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printS64", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113921, "Length": 66, "Cover_Rate": 1.0} {"Template_token": ["", "void", "InstPrinter", "::", "printS8X4", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printS8X4", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113923, "Length": 24, "Cover_Rate": 1.0} {"Template_token": ["", "void", "InstPrinter", "::", "printS8X8", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{"], "ground_truth": ["llvm_unreachable", "(", "", ")", ";"], "File": "HSAILInstPrinter", "Func": "printS8X8", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113925, "Length": 23, "Cover_Rate": 0.9583333333333334} {"Template_token": ["", "if", "(", "Op", ".", "isImm", "(", ")", ")", "{", "union", "Bytes", "{", "uint32_t", "I", ";", "uint16_t", "U16", "[", "", "]", ";", "}", "U", ";", "U", ".", "I", "=", "Op", ".", "getImm", "(", ")", ";", "O", "<<", "format", "(", "", "PRIu16", "", "PRIu16", "", ",", "U", ".", "U16", "[", "", "]", ",", "U", ".", "U16", "[", "", "]", ")", ";", "return", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printU16X2", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113928, "Length": 62, "Cover_Rate": 0.6078431372549019} {"Template_token": ["", "void", "InstPrinter", "::", "printU16X4", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printU16X4", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113929, "Length": 24, "Cover_Rate": 1.0} {"Template_token": ["", "O", "<<", "format", "(", "", "PRIu32", ",", "Op", ".", "getImm", "(", ")", ")", ";", "return", ";", "}"], "ground_truth": ["printOperand", "(", "MI", ",", "OpNo", ",", "O", ")", ";"], "File": "HSAILInstPrinter", "Func": "printU32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113930, "Length": 26, "Cover_Rate": 0.3939393939393939} {"Template_token": ["", "}", "U", ";", "U", ".", "I", "=", "Op", ".", "getImm", "(", ")", ";", "O", "<<", "format", "(", "", "PRIu32", "", "PRIu32", "", ",", "U", ".", "U32", "[", "", "]", ",", "U", ".", "U32", "[", "", "]", ")", ";", "return", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printU32X2", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113931, "Length": 41, "Cover_Rate": 0.4019607843137255} {"Template_token": ["", "const", "MCOperand", "&", "Op", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";", "if", "(", "Op", ".", "isImm", "(", ")", ")", "{", "union", "Bytes", "{", "uint64_t", "I", ";", "uint32_t", "U32", "[", "", "]", ";", "}", "U", ";"], "ground_truth": ["U", ".", "I", "=", "Op", ".", "getImm", "(", ")", ";"], "File": "HSAILInstPrinter", "Func": "printU32X2", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113932, "Length": 46, "Cover_Rate": 0.45098039215686275} {"Template_token": ["", "void", "InstPrinter", "::", "printU64", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "const", "MCOperand", "&", "Op", "=", "MI", "->", "getOperand", "(", "OpNo", ")", ";"], "ground_truth": ["if", "(", "Op", ".", "isImm", "(", ")", ")", "{"], "File": "HSAILInstPrinter", "Func": "printU64", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113933, "Length": 39, "Cover_Rate": 0.5909090909090909} {"Template_token": ["", "O", "<<", "format", "(", "", "PRIu8", "", "PRIu8", "", "PRIu8", "", "PRIu8", "", ",", "U", ".", "Byte", "[", "", "]", ",", "U", ".", "Byte", "[", "", "]", ",", "U", ".", "Byte", "[", "", "]", ",", "U", ".", "Byte", "[", "", "]", ")", ";", "return", ";", "}", "printOperand", "(", "MI", ",", "OpNo", ",", "O", ")", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printU8X4", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113934, "Length": 56, "Cover_Rate": 0.4666666666666667} {"Template_token": ["", "void", "InstPrinter", "::", "printUImmediate", "(", "uint64_t", "Imm", ",", "raw_ostream", "&", "O", ")", "{", "O", "<<", "format", "(", "", "PRIu64", ",", "Imm", ")", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printUImmediate", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113937, "Length": 24, "Cover_Rate": 1.0} {"Template_token": ["", "void", "InstPrinter", "::", "printV2F32", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{"], "ground_truth": ["O", "<<", "'('", ";"], "File": "HSAILInstPrinter", "Func": "printV2F32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113938, "Length": 22, "Cover_Rate": 0.41509433962264153} {"Template_token": ["", "O", "<<", "'('", ";", "printF32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printF32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";"], "ground_truth": ["O", "<<", "')'", ";"], "File": "HSAILInstPrinter", "Func": "printV2F32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113939, "Length": 34, "Cover_Rate": 0.6415094339622641} {"Template_token": ["", "O", "<<", "'('", ";", "printF64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";"], "ground_truth": ["printF64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";"], "File": "HSAILInstPrinter", "Func": "printV2F64", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113940, "Length": 30, "Cover_Rate": 0.5660377358490566} {"Template_token": ["", "O", "<<", "'('", ";", "printU32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printU32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";"], "ground_truth": ["O", "<<", "')'", ";"], "File": "HSAILInstPrinter", "Func": "printV2U32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113941, "Length": 34, "Cover_Rate": 0.6415094339622641} {"Template_token": ["", "O", "<<", "'('", ";", "printU64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";"], "ground_truth": ["O", "<<", "", ";"], "File": "HSAILInstPrinter", "Func": "printV2U64", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113942, "Length": 19, "Cover_Rate": 0.3584905660377358} {"Template_token": ["", "void", "InstPrinter", "::", "printV3F32", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "O", "<<", "'('", ";", "printF32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";"], "ground_truth": ["printF32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";"], "File": "HSAILInstPrinter", "Func": "printV3F32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113943, "Length": 48, "Cover_Rate": 0.7058823529411765} {"Template_token": ["", "O", "<<", "'('", ";", "printF32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printF32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printF32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";"], "ground_truth": ["O", "<<", "')'", ";"], "File": "HSAILInstPrinter", "Func": "printV3F32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113944, "Length": 49, "Cover_Rate": 0.7205882352941176} {"Template_token": ["", "O", "<<", "'('", ";", "printF64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printF64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";"], "ground_truth": ["O", "<<", "", ";"], "File": "HSAILInstPrinter", "Func": "printV3F64", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113945, "Length": 34, "Cover_Rate": 0.5} {"Template_token": ["", "void", "InstPrinter", "::", "printV3F64", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "O", "<<", "'('", ";", "printF64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printF64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";"], "ground_truth": ["O", "<<", "", ";"], "File": "HSAILInstPrinter", "Func": "printV3F64", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113946, "Length": 52, "Cover_Rate": 0.7647058823529411} {"Template_token": ["", "O", "<<", "'('", ";", "printU32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printU32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";"], "ground_truth": ["O", "<<", "", ";"], "File": "HSAILInstPrinter", "Func": "printV3U32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113947, "Length": 34, "Cover_Rate": 0.5} {"Template_token": ["", "printU32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printU32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";"], "ground_truth": ["O", "<<", "", ";"], "File": "HSAILInstPrinter", "Func": "printV3U32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113948, "Length": 30, "Cover_Rate": 0.4411764705882353} {"Template_token": ["", "O", "<<", "", ";", "printU64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printU64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "')'", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printV3U64", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113949, "Length": 35, "Cover_Rate": 0.5147058823529411} {"Template_token": ["", "void", "InstPrinter", "::", "printV3U64", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "O", "<<", "'('", ";"], "ground_truth": ["printU64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";"], "File": "HSAILInstPrinter", "Func": "printV3U64", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113950, "Length": 33, "Cover_Rate": 0.4852941176470588} {"Template_token": ["", "void", "InstPrinter", "::", "printV4", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "if", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ")", "O", "<<", "", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printV4", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113951, "Length": 36, "Cover_Rate": 1.0} {"Template_token": ["", "void", "InstPrinter", "::", "printV4", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "if", "(", "MI", "->", "getOperand", "(", "OpNo", ")", ".", "getImm", "(", ")", ")", "O", "<<", "", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printV4", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113952, "Length": 36, "Cover_Rate": 1.0} {"Template_token": ["", "printF32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printF32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printF32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";"], "ground_truth": ["O", "<<", "", ";"], "File": "HSAILInstPrinter", "Func": "printV4F32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113953, "Length": 45, "Cover_Rate": 0.5421686746987951} {"Template_token": ["", "void", "InstPrinter", "::", "printV4F64", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "O", "<<", "'('", ";", "printF64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printF64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printF64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printF64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "')'", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printV4F64", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113954, "Length": 83, "Cover_Rate": 1.0} {"Template_token": ["", "O", "<<", "", ";", "printF64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printF64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "')'", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printV4F64", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113955, "Length": 35, "Cover_Rate": 0.42168674698795183} {"Template_token": ["", "printU32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printU32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printU32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "')'", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printV4U32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113956, "Length": 46, "Cover_Rate": 0.5542168674698795} {"Template_token": ["", "printU32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";"], "ground_truth": ["printU32", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";"], "File": "HSAILInstPrinter", "Func": "printV4U32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113957, "Length": 26, "Cover_Rate": 0.3132530120481928} {"Template_token": ["", "void", "InstPrinter", "::", "printV4U64", "(", "const", "MCInst", "*", "MI", ",", "unsigned", "OpNo", ",", "raw_ostream", "&", "O", ")", "{", "O", "<<", "'('", ";", "printU64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printU64", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";"], "ground_truth": ["O", "<<", "", ";"], "File": "HSAILInstPrinter", "Func": "printV4U64", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113958, "Length": 52, "Cover_Rate": 0.6265060240963856} {"Template_token": ["", "O", "<<", "'('", ";", "printOperand", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";"], "ground_truth": ["O", "<<", "", ";"], "File": "HSAILInstPrinter", "Func": "printVec2Op", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113959, "Length": 19, "Cover_Rate": 0.3584905660377358} {"Template_token": ["", "O", "<<", "'('", ";", "printOperand", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printOperand", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printOperand", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";"], "ground_truth": ["O", "<<", "')'", ";"], "File": "HSAILInstPrinter", "Func": "printVec3Op", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113960, "Length": 49, "Cover_Rate": 0.7205882352941176} {"Template_token": ["", "printOperand", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printOperand", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "", ";", "printOperand", "(", "MI", ",", "OpNo", "+", "", ",", "O", ")", ";", "O", "<<", "')'", ";"], "ground_truth": ["}"], "File": "HSAILInstPrinter", "Func": "printVec4Op", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113961, "Length": 46, "Cover_Rate": 0.5542168674698795} {"Template_token": ["", "FBB", "=", "", ";", "if", "(", "!", "AllowModify", ")", "{", "TBB", "=", "I", "->", "getOperand", "(", "Src0Idx", ")", ".", "getMBB", "(", ")", ";", "continue", ";", "}", "while", "(", "std", "::", "next", "(", "I", ")", "!=", "MBB", ".", "end", "(", ")", ")", "std", "::", "next", "(", "I", ")", "->", "eraseFromParent", "(", ")", ";", "if", "(", "MBB", ".", "isLayoutSuccessor", "(", "I", "->", "getOperand", "(", "Src0Idx", ")", ".", "getMBB", "(", ")", ")", ")", "{", "TBB", "=", "", ";", "I", "->", "eraseFromParent", "(", ")", ";", "I", "=", "MBB", ".", "end", "(", ")", ";", "UnCondBrIter", "=", "MBB", ".", "end", "(", ")", ";", "continue", ";", "}", "TBB", "=", "I", "->", "getOperand", "(", "Src0Idx", ")", ".", "getMBB", "(", ")", ";", "continue", ";", "}", "if", "(", "Cond", ".", "empty", "(", ")", ")", "{", "int", "Src0Idx", "=", "", "(", "", ",", "", "::", "src0", ")", ";", "int", "Src1Idx", "=", "", "(", "", ",", "", "::", "src1", ")", ";", "FBB", "=", "TBB", ";", "TBB", "=", "I", "->", "getOperand", "(", "Src1Idx", ")", ".", "getMBB", "(", ")", ";", "Cond", ".", "push_back", "(", "I", "->", "getOperand", "(", "Src0Idx", ")", ")", ";", "if", "(", "DisableCondReversion", ")", "{", "Cond", ".", "push_back", "(", "MachineOperand", "::", "CreateImm", "(", "COND_IRREVERSIBLE", ")", ")", ";", "continue", ";", "}", "unsigned", "reg", "=", "I", "->", "getOperand", "(", "Src0Idx", ")", ".", "getReg", "(", ")", ";", "bool", "can_reverse", "=", "false", ";", "bool", "is_def_before_use", "=", "IsDefBeforeUse", "(", "MBB", ",", "reg", ",", "MRI", ",", "can_reverse", ")", ";", "if", "(", "can_reverse", ")", "{", "can_reverse", "=", "!", "IsSpilledAfterDef", "(", "I", ",", "reg", ")", ";", "}", "if", "(", "!", "can_reverse", ")", "{", "Cond", ".", "push_back", "(", "MachineOperand", "::", "CreateImm", "(", "COND_IRREVERSIBLE", ")", ")", ";", "continue", ";", "}", "if", "(", "is_def_before_use", ")", "{", "Cond", ".", "push_back", "(", "MachineOperand", "::", "CreateImm", "(", "COND_REVERSE_POSITIVE", ")", ")", ";", "continue", ";", "}", "if", "(", "!", "MRI", ".", "tracksLiveness", "(", ")", ")", "{", "Cond", ".", "push_back", "(", "MachineOperand", "::", "CreateImm", "(", "COND_IRREVERSIBLE", ")", ")", ";", "continue", ";", "}", "unsigned", "free_reg", "=", "", ";", "if", "(", "!", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "Cond", "[", "", "]", ".", "getReg", "(", ")", ")", ")", "{", "RS", "->", "enterBasicBlock", "(", "&", "MBB", ")", ";", "RS", "->", "forward", "(", "std", "::", "prev", "(", "MBB", ".", "end", "(", ")", ")", ")", ";", "free_reg", "=", "RS", "->", "FindUnusedReg", "(", "&", "", ")", ";", "if", "(", "free_reg", "==", "", ")", "{", "Cond", ".", "push_back", "(", "MachineOperand", "::", "CreateImm", "(", "COND_IRREVERSIBLE", ")", ")", ";"], "ground_truth": ["continue", ";"], "File": "HSAILInstrInfo", "Func": "AnalyzeBranch", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113962, "Length": 391, "Cover_Rate": 0.6236044657097288} {"Template_token": ["", "int", "Src0Idx", "=", "", "(", "", ",", "", "::", "src0", ")", ";", "UnCondBrIter", "=", "I", ";", "Cond", ".", "clear", "(", ")", ";", "FBB", "=", "", ";", "if", "(", "!", "AllowModify", ")", "{", "TBB", "=", "I", "->", "getOperand", "(", "Src0Idx", ")", ".", "getMBB", "(", ")", ";", "continue", ";", "}", "while", "(", "std", "::", "next", "(", "I", ")", "!=", "MBB", ".", "end", "(", ")", ")", "std", "::", "next", "(", "I", ")", "->", "eraseFromParent", "(", ")", ";", "if", "(", "MBB", ".", "isLayoutSuccessor", "(", "I", "->", "getOperand", "(", "Src0Idx", ")", ".", "getMBB", "(", ")", ")", ")", "{", "TBB", "=", "", ";", "I", "->", "eraseFromParent", "(", ")", ";", "I", "=", "MBB", ".", "end", "(", ")", ";", "UnCondBrIter", "=", "MBB", ".", "end", "(", ")", ";", "continue", ";", "}", "TBB", "=", "I", "->", "getOperand", "(", "Src0Idx", ")", ".", "getMBB", "(", ")", ";", "continue", ";", "}", "if", "(", "Cond", ".", "empty", "(", ")", ")", "{", "int", "Src0Idx", "=", "", "(", "", ",", "", "::", "src0", ")", ";", "int", "Src1Idx", "=", "", "(", "", ",", "", "::", "src1", ")", ";", "FBB", "=", "TBB", ";", "TBB", "=", "I", "->", "getOperand", "(", "Src1Idx", ")", ".", "getMBB", "(", ")", ";", "Cond", ".", "push_back", "(", "I", "->", "getOperand", "(", "Src0Idx", ")", ")", ";", "if", "(", "DisableCondReversion", ")", "{", "Cond", ".", "push_back", "(", "MachineOperand", "::", "CreateImm", "(", "COND_IRREVERSIBLE", ")", ")", ";", "continue", ";", "}", "unsigned", "reg", "=", "I", "->", "getOperand", "(", "Src0Idx", ")", ".", "getReg", "(", ")", ";", "bool", "can_reverse", "=", "false", ";", "bool", "is_def_before_use", "=", "IsDefBeforeUse", "(", "MBB", ",", "reg", ",", "MRI", ",", "can_reverse", ")", ";", "if", "(", "can_reverse", ")", "{", "can_reverse", "=", "!", "IsSpilledAfterDef", "(", "I", ",", "reg", ")", ";", "}", "if", "(", "!", "can_reverse", ")", "{", "Cond", ".", "push_back", "(", "MachineOperand", "::", "CreateImm", "(", "COND_IRREVERSIBLE", ")", ")", ";", "continue", ";", "}", "if", "(", "is_def_before_use", ")", "{", "Cond", ".", "push_back", "(", "MachineOperand", "::", "CreateImm", "(", "COND_REVERSE_POSITIVE", ")", ")", ";", "continue", ";", "}", "if", "(", "!", "MRI", ".", "tracksLiveness", "(", ")", ")", "{", "Cond", ".", "push_back", "(", "MachineOperand", "::", "CreateImm", "(", "COND_IRREVERSIBLE", ")", ")", ";", "continue", ";", "}", "unsigned", "free_reg", "=", "", ";", "if", "(", "!", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "Cond", "[", "", "]", ".", "getReg", "(", ")", ")", ")", "{", "RS", "->", "enterBasicBlock", "(", "&", "MBB", ")", ";", "RS", "->", "forward", "(", "std", "::", "prev", "(", "MBB", ".", "end", "(", ")", ")", ")", ";", "free_reg", "=", "RS", "->", "FindUnusedReg", "(", "&", "", ")", ";", "if", "(", "free_reg", "==", "", ")", "{", "Cond", ".", "push_back", "(", "MachineOperand", "::", "CreateImm", "(", "COND_IRREVERSIBLE", ")", ")", ";", "continue", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "AnalyzeBranch", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113963, "Length": 414, "Cover_Rate": 0.6602870813397129} {"Template_token": ["", "MachineBasicBlock", "::", "reverse_iterator", "E", "=", "MBB", "->", "rend", "(", ")", ";", "if", "(", "E", "==", "B", ")", "return", "false", ";", "++", "B", ";", "for", "(", "MachineBasicBlock", "::", "reverse_iterator", "I", "=", "B", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "if", "(", "I", "->", "definesRegister", "(", "reg", ")", ")", "{", "return", "true", ";", "}", "if", "(", "I", "->", "readsRegister", "(", "reg", ")", "&&", "(", "", "(", "&", "*", "I", ")", "||", "I", "->", "mayStore", "(", ")", ")", ")", "{", "canBeSpilled", "=", "true", ";", "return", "true", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "CheckSpillAfterDef", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113964, "Length": 87, "Cover_Rate": 0.6796875} {"Template_token": ["", "MachineBasicBlock", "::", "reverse_iterator", "E", "=", "MBB", "->", "rend", "(", ")", ";", "if", "(", "E", "==", "B", ")", "return", "false", ";", "++", "B", ";", "for", "(", "MachineBasicBlock", "::", "reverse_iterator", "I", "=", "B", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "if", "(", "I", "->", "definesRegister", "(", "reg", ")", ")", "{", "return", "true", ";", "}", "if", "(", "I", "->", "readsRegister", "(", "reg", ")", "&&", "(", "", "(", "&", "*", "I", ")", "||", "I", "->", "mayStore", "(", ")", ")", ")", "{", "canBeSpilled", "=", "true", ";", "return", "true", ";", "}", "}", "return", "false", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "CheckSpillAfterDef", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113965, "Length": 92, "Cover_Rate": 0.71875} {"Template_token": ["", "return", "GenInstrInfo", "::", "expandPostRAPseudo", "(", "MI", ")", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "expandPostRAPseudo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113966, "Length": 9, "Cover_Rate": 0.32142857142857145} {"Template_token": ["", "bool", "InstrInfo", "::", "expandPostRAPseudo", "(", "MachineBasicBlock", "::", "iterator", "MBBI", ")", "const", "{"], "ground_truth": ["MachineInstr", "&", "MI", "=", "*", "MBBI", ";"], "File": "HSAILInstrInfo", "Func": "expandPostRAPseudo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113967, "Length": 19, "Cover_Rate": 0.6785714285714286} {"Template_token": ["", "break", ";", "}", "}", "bool", "need_insert_not", "=", "false", ";", "if", "(", "cond_expr", "&&", "cond_expr", "->", "isCompare", "(", ")", ")", "{", "MachineOperand", "*", "CmpOp", "=", "TII", "->", "getNamedOperand", "(", "*", "cond_expr", ",", "", "::", "op", ")", ";", "BrigType", "CmpType", "=", "static_cast", "<", "BrigType", ">", "(", "TII", "->", "getNamedOperand", "(", "*", "cond_expr", ",", "", "::", "sourceType", ")", "->", "getImm", "(", ")", ")", ";", "BrigCompareOperation", "OrigOp", "=", "static_cast", "<", "BrigCompareOperation", ">", "(", "CmpOp", "->", "getImm", "(", ")", ")", ";", "BrigCompareOperation", "RevOp", "=", "isFPBrigType", "(", "CmpType", ")", "?", "invFPCondOp", "(", "OrigOp", ")", ":", "invIntCondOp", "(", "OrigOp", ")", ";", "if", "(", "OrigOp", "!=", "RevOp", ")", "CmpOp", "->", "setImm", "(", "RevOp", ")", ";", "else", "need_insert_not", "=", "true", ";", "}", "else", "if", "(", "cond_expr", "&&", "cond_expr", "->", "getOpcode", "(", ")", "==", "", ")", "{", "cond_reg", "=", "cond_expr", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";"], "ground_truth": ["cond_expr", "->", "eraseFromParent", "(", ")", ";"], "File": "HSAILInstrInfo", "Func": "GenerateBranchCondReversion", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113968, "Length": 146, "Cover_Rate": 0.4294117647058823} {"Template_token": ["", "return", "(", "get", "(", "Opcode", ")", ".", "TSFlags", "&", "", ")", ">>", "Log2_64", "(", "", ")", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "getBrigOpcode", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113969, "Length": 18, "Cover_Rate": 0.6} {"Template_token": ["", "int64_t", "getNamedModifierOperand", "(", "MachineInstr", "&", "MI", ",", "unsigned", "OpName", ")", "const", "{", "return", "getNamedOperand", "(", "MI", ",", "OpName", ")", "->", "getImm", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "getNamedModifierOperand", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113971, "Length": 25, "Cover_Rate": 1.0} {"Template_token": ["", "const", "MachineOperand", "*", "getNamedOperand", "(", "const", "MachineInstr", "&", "MI", ",", "unsigned", "OpName", ")", "const", "{"], "ground_truth": ["return", "getNamedOperand", "(", "const_cast", "<", "MachineInstr", "&", ">", "(", "MI", ")", ",", "OpName", ")", ";"], "File": "HSAILInstrInfo", "Func": "getNamedOperand", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113972, "Length": 30, "Cover_Rate": 0.967741935483871} {"Template_token": ["", "return", "getNamedOperand", "(", "const_cast", "<", "MachineInstr", "&", ">", "(", "MI", ")", ",", "OpName", ")", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "getNamedOperand", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113973, "Length": 16, "Cover_Rate": 0.5161290322580645} {"Template_token": ["", "if", "(", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "Reg", ")", ")", "return", "MRI", ".", "getRegClass", "(", "Reg", ")", ";"], "ground_truth": ["return", "RI", ".", "getPhysRegClass", "(", "Reg", ")", ";"], "File": "HSAILInstrInfo", "Func": "getOpRegClass", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113974, "Length": 25, "Cover_Rate": 0.30864197530864196} {"Template_token": ["", "const", "MachineOperand", "&", "MO", "=", "MI", ".", "getOperand", "(", "OpNo", ")", ";", "if", "(", "!", "MO", ".", "isReg", "(", ")", ")", "return", "nullptr", ";", "unsigned", "Reg", "=", "MO", ".", "getReg", "(", ")", ";", "if", "(", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "Reg", ")", ")", "return", "MRI", ".", "getRegClass", "(", "Reg", ")", ";"], "ground_truth": ["return", "RI", ".", "getPhysRegClass", "(", "Reg", ")", ";"], "File": "HSAILInstrInfo", "Func": "getOpRegClass", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113975, "Length": 58, "Cover_Rate": 0.7160493827160493} {"Template_token": ["", "return", "RI", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "getRegisterInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113976, "Length": 4, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "RegScavenger", "*", "getRS", "(", ")", "const", "{"], "ground_truth": ["return", "RS", ";"], "File": "HSAILInstrInfo", "Func": "getRS", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113978, "Length": 10, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "InstrInfo", "::", "InstrInfo", "(", "Subtarget", "&", "st", ")", ":", "GenInstrInfo", "(", ")", ",", "RI", "(", "st", ")", "{"], "ground_truth": ["RS", "=", "new", "RegScavenger", "(", ")", ";"], "File": "HSAILInstrInfo", "Func": "HSAILInstrInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113981, "Length": 25, "Cover_Rate": 0.9615384615384616} {"Template_token": ["", "assert", "(", "Cond", "[", "", "]", ".", "isReg", "(", ")", ")", ";", "unsigned", "cond_reg", "=", "Cond", "[", "", "]", ".", "getReg", "(", ")", ";", "switch", "(", "static_cast", "<", "CondReverseFlag", ">", "(", "Cond", "[", "", "]", ".", "getImm", "(", ")", ")", ")", "{", "case", "COND_REVERSE_DEPENDANT", ":", "assert", "(", "Cond", ".", "size", "(", ")", "==", "", "&&", "Cond", "[", "", "]", ".", "isImm", "(", ")", ")", ";", "if", "(", "Cond", "[", "", "]", ".", "getImm", "(", ")", "==", "COND_REVERSE_NEGATIVE", ")", "{", "MachineRegisterInfo", "&", "MRI", "=", "MBB", ".", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "if", "(", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "Cond", "[", "", "]", ".", "getReg", "(", ")", ")", ")", "cond_reg", "=", "MRI", ".", "createVirtualRegister", "(", "MRI", ".", "getRegClass", "(", "Cond", "[", "", "]", ".", "getReg", "(", ")", ")", ")", ";", "else", "cond_reg", "=", "Cond", "[", "", "]", ".", "getImm", "(", ")", ";"], "ground_truth": ["BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "cond_reg", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "Cond", "[", "", "]", ".", "getReg", "(", ")", ")", ".", "addImm", "(", "BRIG_TYPE_B1", ")", ";"], "File": "HSAILInstrInfo", "Func": "InsertBranch", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113983, "Length": 181, "Cover_Rate": 0.44254278728606355} {"Template_token": ["", "assert", "(", "Cond", ".", "size", "(", ")", "==", "", "&&", "Cond", "[", "", "]", ".", "isImm", "(", ")", ")", ";", "if", "(", "Cond", "[", "", "]", ".", "getImm", "(", ")", "==", "COND_REVERSE_NEGATIVE", ")", "{", "MachineRegisterInfo", "&", "MRI", "=", "MBB", ".", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "if", "(", "TargetRegisterInfo", "::", "isVirtualRegister", "(", "Cond", "[", "", "]", ".", "getReg", "(", ")", ")", ")", "cond_reg", "=", "MRI", ".", "createVirtualRegister", "(", "MRI", ".", "getRegClass", "(", "Cond", "[", "", "]", ".", "getReg", "(", ")", ")", ")", ";", "else", "cond_reg", "=", "Cond", "[", "", "]", ".", "getImm", "(", ")", ";", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addReg", "(", "cond_reg", ",", "RegState", "::", "Define", ")", ".", "addReg", "(", "Cond", "[", "", "]", ".", "getReg", "(", ")", ")", ".", "addImm", "(", "BRIG_TYPE_B1", ")", ";", "}", "break", ";", "case", "COND_REVERSE_NEGATIVE", ":", "cond_reg", "=", "GenerateBranchCondReversion", "(", "MBB", ",", "Cond", "[", "", "]", ",", "this", ",", "DL", ")", ";", "break", ";", "case", "COND_REVERSE_POSITIVE", ":", "case", "COND_IRREVERSIBLE", ":", "break", ";", "}", "unsigned", "Count", "=", "", ";", "BuildMI", "(", "&", "MBB", ",", "DL", ",", "get", "(", "", ")", ")", ".", "addImm", "(", "BRIG_WIDTH_1", ")", ".", "addReg", "(", "cond_reg", ")", ".", "addMBB", "(", "TBB", ")", ".", "addImm", "(", "BRIG_TYPE_B1", ")", ";"], "ground_truth": ["++", "Count", ";"], "File": "HSAILInstrInfo", "Func": "InsertBranch", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113984, "Length": 210, "Cover_Rate": 0.5134474327628362} {"Template_token": ["", "case", "BRIG_COMPARE_LE", ":", "return", "BRIG_COMPARE_GT", ";", "case", "BRIG_COMPARE_LT", ":", "return", "BRIG_COMPARE_GE", ";", "case", "BRIG_COMPARE_NE", ":", "return", "BRIG_COMPARE_EQ", ";", "default", ":"], "ground_truth": ["return", "Op", ";"], "File": "HSAILInstrInfo", "Func": "invIntCondOp", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113985, "Length": 23, "Cover_Rate": 0.4107142857142857} {"Template_token": ["", "Q", ".", "pop", "(", ")", ";", "for", "(", "MachineBasicBlock", "::", "succ_iterator", "succ", "=", "cur_mbb", "->", "succ_begin", "(", ")", ",", "succ_end", "=", "cur_mbb", "->", "succ_end", "(", ")", ";", "succ", "!=", "succ_end", ";", "++", "succ", ")", "if", "(", "!", "Visited", ".", "count", "(", "*", "succ", ")", ")", "{", "Visited", ".", "insert", "(", "*", "succ", ")", ";", "bool", "need_process_futher", "=", "true", ";", "for", "(", "MachineBasicBlock", "::", "iterator", "instr", "=", "(", "*", "succ", ")", "->", "begin", "(", ")", ",", "instr_end", "=", "(", "*", "succ", ")", "->", "end", "(", ")", ";", "instr", "!=", "instr_end", ";", "++", "instr", ")", "{", "if", "(", "instr", "->", "readsRegister", "(", "Reg", ")", ")", "{", "if", "(", "instr", "->", "getParent", "(", ")", "==", "&", "MBB", "&&", "(", "instr", "->", "isBranch", "(", ")", "||", "(", "instr", "->", "getOpcode", "(", ")", "==", "", ")", ")", ")", "{", "CanReverse", "=", "false", ";", "}"], "ground_truth": ["return", "false", ";"], "File": "HSAILInstrInfo", "Func": "IsDefBeforeUse", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113988, "Length": 142, "Cover_Rate": 0.5378787878787878} {"Template_token": ["", "case", "BRIG_TYPE_F16", ":", "return", "true", ";", "default", ":"], "ground_truth": ["return", "false", ";"], "File": "HSAILInstrInfo", "Func": "isFPBrigType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113989, "Length": 11, "Cover_Rate": 0.34375} {"Template_token": ["", "static", "bool", "isFPBrigType", "(", "BrigType", "BT", ")", "{", "switch", "(", "BT", ")", "{", "case", "BRIG_TYPE_F32", ":", "case", "BRIG_TYPE_F64", ":"], "ground_truth": ["case", "BRIG_TYPE_F16", ":"], "File": "HSAILInstrInfo", "Func": "isFPBrigType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113990, "Length": 22, "Cover_Rate": 0.6875} {"Template_token": ["", "bool", "isInstAddr", "(", "uint16_t", "Opcode", ")", "const", "{", "return", "get", "(", "Opcode", ")", ".", "TSFlags", "&", "", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "isInstAddr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113991, "Length": 19, "Cover_Rate": 0.9047619047619048} {"Template_token": ["", "bool", "isInstAddr", "(", "uint16_t", "Opcode", ")", "const", "{"], "ground_truth": ["return", "get", "(", "Opcode", ")", ".", "TSFlags", "&", "", ";"], "File": "HSAILInstrInfo", "Func": "isInstAddr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113992, "Length": 18, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "bool", "isInstAtomic", "(", "uint16_t", "Opcode", ")", "const", "{", "return", "get", "(", "Opcode", ")", ".", "TSFlags", "&", "", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "isInstAtomic", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113993, "Length": 19, "Cover_Rate": 0.9047619047619048} {"Template_token": ["", "bool", "isInstAtomic", "(", "uint16_t", "Opcode", ")", "const", "{"], "ground_truth": ["return", "get", "(", "Opcode", ")", ".", "TSFlags", "&", "", ";"], "File": "HSAILInstrInfo", "Func": "isInstAtomic", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113994, "Length": 18, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "bool", "isInstBasic", "(", "uint16_t", "Opcode", ")", "const", "{", "return", "get", "(", "Opcode", ")", ".", "TSFlags", "&", "", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "isInstBasic", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113995, "Length": 19, "Cover_Rate": 0.9047619047619048} {"Template_token": ["", "bool", "isInstBasic", "(", "uint16_t", "Opcode", ")", "const", "{", "return", "get", "(", "Opcode", ")", ".", "TSFlags", "&", "", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "isInstBasic", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113996, "Length": 19, "Cover_Rate": 0.9047619047619048} {"Template_token": ["", "bool", "isInstBr", "(", "uint16_t", "Opcode", ")", "const", "{", "return", "get", "(", "Opcode", ")", ".", "TSFlags", "&", "", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "isInstBr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113997, "Length": 19, "Cover_Rate": 0.9047619047619048} {"Template_token": ["", "bool", "isInstBr", "(", "uint16_t", "Opcode", ")", "const", "{"], "ground_truth": ["return", "get", "(", "Opcode", ")", ".", "TSFlags", "&", "", ";"], "File": "HSAILInstrInfo", "Func": "isInstBr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113998, "Length": 18, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "bool", "isInstCmp", "(", "uint16_t", "Opcode", ")", "const", "{", "return", "get", "(", "Opcode", ")", ".", "TSFlags", "&", "", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "isInstCmp", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 113999, "Length": 19, "Cover_Rate": 0.9047619047619048} {"Template_token": ["", "bool", "isInstCvt", "(", "uint16_t", "Opcode", ")", "const", "{", "return", "get", "(", "Opcode", ")", ".", "TSFlags", "&", "", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "isInstCvt", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114001, "Length": 19, "Cover_Rate": 0.9047619047619048} {"Template_token": ["", "bool", "isInstImage", "(", "uint16_t", "Opcode", ")", "const", "{", "return", "get", "(", "Opcode", ")", ".", "TSFlags", "&", "", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "isInstImage", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114003, "Length": 19, "Cover_Rate": 0.9047619047619048} {"Template_token": ["", "bool", "isInstImage", "(", "uint16_t", "Opcode", ")", "const", "{", "return", "get", "(", "Opcode", ")", ".", "TSFlags", "&", "", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "isInstImage", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114004, "Length": 19, "Cover_Rate": 0.9047619047619048} {"Template_token": ["", "return", "get", "(", "Opcode", ")", ".", "TSFlags", "&", "", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "isInstLane", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114005, "Length": 11, "Cover_Rate": 0.5238095238095238} {"Template_token": ["", "bool", "isInstMem", "(", "uint16_t", "Opcode", ")", "const", "{"], "ground_truth": ["return", "get", "(", "Opcode", ")", ".", "TSFlags", "&", "", ";"], "File": "HSAILInstrInfo", "Func": "isInstMem", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114007, "Length": 18, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "bool", "isInstMod", "(", "uint16_t", "Opcode", ")", "const", "{"], "ground_truth": ["return", "get", "(", "Opcode", ")", ".", "TSFlags", "&", "", ";"], "File": "HSAILInstrInfo", "Func": "isInstMod", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114011, "Length": 18, "Cover_Rate": 0.8571428571428571} {"Template_token": ["", "bool", "isInstSeg", "(", "uint16_t", "Opcode", ")", "const", "{", "return", "get", "(", "Opcode", ")", ".", "TSFlags", "&", "", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "isInstSeg", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114013, "Length": 19, "Cover_Rate": 0.9047619047619048} {"Template_token": ["", "bool", "isInstSegCvt", "(", "uint16_t", "Opcode", ")", "const", "{", "return", "get", "(", "Opcode", ")", ".", "TSFlags", "&", "", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "isInstSegCvt", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114016, "Length": 19, "Cover_Rate": 0.9047619047619048} {"Template_token": ["", "return", "get", "(", "Opcode", ")", ".", "TSFlags", "&", "", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "isInstSourceType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114018, "Length": 11, "Cover_Rate": 0.5238095238095238} {"Template_token": ["", "if", "(", "!", "MCID", ".", "mayLoad", "(", ")", "||", "!", "MI", "->", "hasOneMemOperand", "(", ")", ")", "return", "", ";", "const", "MachineOperand", "*", "Segment", "=", "getNamedOperand", "(", "*", "MI", ",", "", "::", "segment", ")", ";", "if", "(", "!", "Segment", "||", "Segment", "->", "getImm", "(", ")", "!=", "", ")", "return", "", ";"], "ground_truth": ["int", "AddressIdx", "=", "", "(", "MI", "->", "getOpcode", "(", ")", ",", "", "::", "address", ")", ";"], "File": "HSAILInstrInfo", "Func": "isLoadFromStackSlot", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114019, "Length": 66, "Cover_Rate": 0.4125} {"Template_token": ["", "unsigned", "InstrInfo", "::", "isLoadFromStackSlotPostFE", "(", "const", "MachineInstr", "*", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "return", "isLoadFromStackSlot", "(", "MI", ",", "FrameIndex", ")", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "isLoadFromStackSlotPostFE", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114020, "Length": 25, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "InstrInfo", "::", "isSafeToMoveRegClassDefs", "(", "const", "TargetRegisterClass", "*", "RC", ")", "const", "{", "return", "true", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "isSafeToMoveRegClassDefs", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114022, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "static", "bool", "IsSpilledAfterDef", "(", "MachineInstr", "*", "start", ",", "unsigned", "reg", ")", "{", "bool", "canBeSpilled", "=", "false", ";", "if", "(", "!", "CheckSpillAfterDef", "(", "start", ",", "reg", ",", "canBeSpilled", ")", ")", "{", "std", "::", "queue", "<", "MachineBasicBlock", "*", ">", "Q", ";", "SmallPtrSet", "<", "MachineBasicBlock", "*", ",", "", ">", "Visited", ";", "MachineBasicBlock", "*", "MBB", "=", "start", "->", "getParent", "(", ")", ";", "Q", ".", "push", "(", "MBB", ")", ";"], "ground_truth": ["while", "(", "!", "Q", ".", "empty", "(", ")", "&&", "!", "canBeSpilled", ")", "{"], "File": "HSAILInstrInfo", "Func": "IsSpilledAfterDef", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114023, "Length": 78, "Cover_Rate": 0.3305084745762712} {"Template_token": ["", "int", "AddressIdx", "=", "", "(", "MI", "->", "getOpcode", "(", ")", ",", "", "::", "address", ")", ";", "const", "MachineOperand", "&", "Base", "=", "MI", "->", "getOperand", "(", "AddressIdx", "+", "", ")", ";", "if", "(", "Base", ".", "isFI", "(", ")", ")", "{", "FrameIndex", "=", "Base", ".", "getIndex", "(", ")", ";", "return", "MI", "->", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "}", "return", "", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "isStoreToStackSlot", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114024, "Length": 64, "Cover_Rate": 0.4050632911392405} {"Template_token": ["", "unsigned", "InstrInfo", "::", "isStoreToStackSlot", "(", "const", "MachineInstr", "*", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "const", "MCInstrDesc", "&", "MCID", "=", "get", "(", "MI", "->", "getOpcode", "(", ")", ")", ";", "if", "(", "!", "MCID", ".", "mayStore", "(", ")", "||", "!", "MI", "->", "hasOneMemOperand", "(", ")", ")", "return", "", ";", "const", "MachineOperand", "*", "Segment", "=", "getNamedOperand", "(", "*", "MI", ",", "", "::", "segment", ")", ";", "if", "(", "!", "Segment", "||", "Segment", "->", "getImm", "(", ")", "!=", "", ")", "return", "", ";", "int", "AddressIdx", "=", "", "(", "MI", "->", "getOpcode", "(", ")", ",", "", "::", "address", ")", ";", "const", "MachineOperand", "&", "Base", "=", "MI", "->", "getOperand", "(", "AddressIdx", "+", "", ")", ";"], "ground_truth": ["if", "(", "Base", ".", "isFI", "(", ")", ")", "{"], "File": "HSAILInstrInfo", "Func": "isStoreToStackSlot", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114025, "Length": 119, "Cover_Rate": 0.7531645569620253} {"Template_token": ["", "return", "isStoreToStackSlot", "(", "MI", ",", "FrameIndex", ")", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "isStoreToStackSlotPostFE", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114026, "Length": 9, "Cover_Rate": 0.36} {"Template_token": ["", "unsigned", "InstrInfo", "::", "isStoreToStackSlotPostFE", "(", "const", "MachineInstr", "*", "MI", ",", "int", "&", "FrameIndex", ")", "const", "{", "return", "isStoreToStackSlot", "(", "MI", ",", "FrameIndex", ")", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "isStoreToStackSlotPostFE", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114027, "Length": 25, "Cover_Rate": 1.0} {"Template_token": ["", "default", ":", "llvm_unreachable", "(", "", ")", ";", "break", ";", "case", "", ":", "Opc", "=", "", ";", "BT", "=", "BRIG_TYPE_U32", ";", "break", ";", "case", "", ":", "Opc", "=", "", ";", "BT", "=", "BRIG_TYPE_U64", ";", "break", ";", "case", "", ":", "Opc", "=", "", ";", "BT", "=", "BRIG_TYPE_B1", ";", "break", ";", "}", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", ")", "{", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "}", "switch", "(", "RC", "->", "getID", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "break", ";", "case", "", ":", "case", "", ":", "case", "", ":", "{", "MachineMemOperand", "*", "MMO", "=", "MF", ".", "getMachineMemOperand", "(", "MachinePointerInfo", "::", "getFixedStack", "(", "MF", ",", "FrameIndex", ")", ",", "MachineMemOperand", "::", "MOLoad", ",", "MFI", ".", "getObjectSize", "(", "FrameIndex", ")", ",", "MFI", ".", "getObjectAlignment", "(", "FrameIndex", ")", ")", ";", "BuildMI", "(", "MBB", ",", "MI", ",", "DL", ",", "get", "(", "Opc", ")", ")", ".", "addReg", "(", "DestReg", ",", "RegState", "::", "Define", ")", ".", "addFrameIndex", "(", "FrameIndex", ")", ".", "addReg", "(", "", ")", ".", "addImm", "(", "", ")", ".", "addImm", "(", "BT", ")", ".", "addImm", "(", "", ")", ".", "addImm", "(", "MMO", "->", "getAlignment", "(", ")", ")", ".", "addImm", "(", "BRIG_WIDTH_1", ")", ".", "addImm", "(", "", ")", ".", "addMemOperand", "(", "MMO", ")", ";", "break", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "loadRegFromStackSlot", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114028, "Length": 208, "Cover_Rate": 0.6775244299674267} {"Template_token": ["", "unsigned", "int", "InstrInfo", "::", "RemoveBranch", "(", "MachineBasicBlock", "&", "MBB", ")", "const", "{", "MachineBasicBlock", "::", "iterator", "I", "=", "MBB", ".", "end", "(", ")", ";", "unsigned", "Count", "=", "", ";", "while", "(", "I", "!=", "MBB", ".", "begin", "(", ")", ")", "{", "--", "I", ";", "if", "(", "I", "->", "isDebugValue", "(", ")", ")", "continue", ";", "if", "(", "I", "->", "getOpcode", "(", ")", "!=", "", "&&", "I", "->", "getOpcode", "(", ")", "!=", "", ")", "break", ";", "I", "->", "eraseFromParent", "(", ")", ";", "I", "=", "MBB", ".", "end", "(", ")", ";", "++", "Count", ";", "}", "return", "Count", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "RemoveBranch", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114029, "Length": 94, "Cover_Rate": 0.9591836734693877} {"Template_token": ["", "unsigned", "Count", "=", "", ";", "while", "(", "I", "!=", "MBB", ".", "begin", "(", ")", ")", "{", "--", "I", ";", "if", "(", "I", "->", "isDebugValue", "(", ")", ")", "continue", ";", "if", "(", "I", "->", "getOpcode", "(", ")", "!=", "", "&&", "I", "->", "getOpcode", "(", ")", "!=", "", ")", "break", ";", "I", "->", "eraseFromParent", "(", ")", ";", "I", "=", "MBB", ".", "end", "(", ")", ";", "++", "Count", ";", "}"], "ground_truth": ["return", "Count", ";"], "File": "HSAILInstrInfo", "Func": "RemoveBranch", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114030, "Length": 70, "Cover_Rate": 0.7142857142857143} {"Template_token": ["", "for", "(", "SmallVectorImpl", "<", "MachineOperand", ">", "::", "iterator", "I", "=", "Cond", ".", "begin", "(", ")", ",", "E", "=", "Cond", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "++", "I", ";", "if", "(", "static_cast", "<", "CondReverseFlag", ">", "(", "I", "->", "getImm", "(", ")", ")", "==", "COND_IRREVERSIBLE", ")", "return", "true", ";", "}", "for", "(", "SmallVectorImpl", "<", "MachineOperand", ">", "::", "iterator", "I", "=", "Cond", ".", "begin", "(", ")", ",", "E", "=", "Cond", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "++", "I", ";", "assert", "(", "I", "->", "isImm", "(", ")", ")", ";", "CondReverseFlag", "cond_rev_flag", "=", "static_cast", "<", "CondReverseFlag", ">", "(", "I", "->", "getImm", "(", ")", ")", ";", "switch", "(", "cond_rev_flag", ")", "{"], "ground_truth": ["case", "COND_REVERSE_POSITIVE", ":"], "File": "HSAILInstrInfo", "Func": "ReverseBranchCondition", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114031, "Length": 122, "Cover_Rate": 0.5922330097087378} {"Template_token": ["", "I", "!=", "E", ";", "++", "I", ")", "{", "++", "I", ";", "if", "(", "static_cast", "<", "CondReverseFlag", ">", "(", "I", "->", "getImm", "(", ")", ")", "==", "COND_IRREVERSIBLE", ")", "return", "true", ";", "}", "for", "(", "SmallVectorImpl", "<", "MachineOperand", ">", "::", "iterator", "I", "=", "Cond", ".", "begin", "(", ")", ",", "E", "=", "Cond", ".", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "++", "I", ";", "assert", "(", "I", "->", "isImm", "(", ")", ")", ";", "CondReverseFlag", "cond_rev_flag", "=", "static_cast", "<", "CondReverseFlag", ">", "(", "I", "->", "getImm", "(", ")", ")", ";", "switch", "(", "cond_rev_flag", ")", "{", "case", "COND_REVERSE_POSITIVE", ":", "cond_rev_flag", "=", "COND_REVERSE_NEGATIVE", ";", "break", ";", "case", "COND_REVERSE_NEGATIVE", ":", "cond_rev_flag", "=", "COND_REVERSE_POSITIVE", ";"], "ground_truth": ["break", ";"], "File": "HSAILInstrInfo", "Func": "ReverseBranchCondition", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114032, "Length": 113, "Cover_Rate": 0.5485436893203883} {"Template_token": ["", "if", "(", "!", "Node1", "->", "isMachineOpcode", "(", ")", ")", "return", "false", ";"], "ground_truth": ["MachineSDNode", "*", "mnode1", "=", "cast", "<", "MachineSDNode", ">", "(", "Node1", ")", ";"], "File": "HSAILInstrInfo", "Func": "shouldScheduleLoadsNear", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114033, "Length": 24, "Cover_Rate": 0.3037974683544304} {"Template_token": ["", "case", "", ":", "Opc", "=", "", ";", "BT", "=", "BRIG_TYPE_U32", ";", "break", ";", "case", "", ":", "Opc", "=", "", ";", "BT", "=", "BRIG_TYPE_U64", ";", "break", ";", "case", "", ":", "{", "MachineFunctionInfo", "*", "MFI", "=", "MF", ".", "getInfo", "<", "MachineFunctionInfo", ">", "(", ")", ";", "MFI", "->", "setHasSpilledCRs", "(", ")", ";", "Opc", "=", "", ";", "BT", "=", "BRIG_TYPE_B1", ";", "break", ";", "}", "}", "if", "(", "MI", "!=", "MBB", ".", "end", "(", ")", ")", "{", "DL", "=", "MI", "->", "getDebugLoc", "(", ")", ";", "}", "switch", "(", "RC", "->", "getID", "(", ")", ")", "{", "default", ":", "llvm_unreachable", "(", "", ")", ";", "break", ";", "case", "", ":"], "ground_truth": ["case", "", ":"], "File": "HSAILInstrInfo", "Func": "storeRegToStackSlot", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114035, "Length": 105, "Cover_Rate": 0.32608695652173914} {"Template_token": ["", "bool", "InstrInfo", "::", "verifyInstruction", "(", "const", "MachineInstr", "*", "MI", ",", "StringRef", "&", "ErrInfo", ")", "const", "{"], "ground_truth": ["return", "true", ";"], "File": "HSAILInstrInfo", "Func": "verifyInstruction", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114036, "Length": 19, "Cover_Rate": 0.95} {"Template_token": ["", "bool", "InstrInfo", "::", "verifyInstruction", "(", "const", "MachineInstr", "*", "MI", ",", "StringRef", "&", "ErrInfo", ")", "const", "{"], "ground_truth": ["return", "true", ";"], "File": "HSAILInstrInfo", "Func": "verifyInstruction", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114037, "Length": 19, "Cover_Rate": 0.95} {"Template_token": ["", "delete", "RS", ";"], "ground_truth": ["}"], "File": "HSAILInstrInfo", "Func": "~HSAILInstrInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114038, "Length": 4, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "InstrInfo", "::", "~", "InstrInfo", "(", ")", "{"], "ground_truth": ["delete", "RS", ";"], "File": "HSAILInstrInfo", "Func": "~HSAILInstrInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114039, "Length": 10, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "Function", "*", "IntrinsicInfo", "::", "getDeclaration", "(", "Module", "*", "M", ",", "unsigned", "IntrID", ",", "Type", "*", "*", "Tys", ",", "unsigned", "int", "numTys", ")", "const", "{", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["return", "nullptr", ";"], "File": "HSAILIntrinsicInfo", "Func": "getDeclaration", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114040, "Length": 32, "Cover_Rate": 0.9696969696969697} {"Template_token": ["", "std", "::", "string", "IntrinsicInfo", "::", "getName", "(", "unsigned", "int", "IntrID", ",", "Type", "*", "*", "Tys", ",", "unsigned", "int", "numTys", ")", "const", "{"], "ground_truth": ["static", "const", "char", "*", "const", "names", "[", "]", "=", "{"], "File": "HSAILIntrinsicInfo", "Func": "getName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114041, "Length": 32, "Cover_Rate": 0.4155844155844156} {"Template_token": ["", "static", "const", "char", "*", "const", "names", "[", "]", "=", "{", "}", ";", "if", "(", "IntrID", "<", "", ")", "{", "return", "", ";", "}", "assert", "(", "IntrID", "<", "", "&&", "", ")", ";", "std", "::", "string", "Result", "(", "names", "[", "IntrID", "-", "", "]", ")", ";"], "ground_truth": ["return", "Result", ";"], "File": "HSAILIntrinsicInfo", "Func": "getName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114042, "Length": 48, "Cover_Rate": 0.6233766233766234} {"Template_token": ["", "IntrinsicInfo", "::", "IntrinsicInfo", "(", "TargetMachine", "*", "tm", ")", ":", "TargetIntrinsicInfo", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILIntrinsicInfo", "Func": "HSAILIntrinsicInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114043, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "IntrinsicInfo", "::", "IntrinsicInfo", "(", "TargetMachine", "*", "tm", ")", ":", "TargetIntrinsicInfo", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILIntrinsicInfo", "Func": "HSAILIntrinsicInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114044, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "!", "IntrID", ")", "return", "false", ";", "unsigned", "id", "=", "IntrID", "-", "", "+", "", ";"], "ground_truth": ["}"], "File": "HSAILIntrinsicInfo", "Func": "isOverloaded", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114045, "Length": 18, "Cover_Rate": 0.6} {"Template_token": ["", "if", "(", "!", "IntrID", ")", "return", "false", ";", "unsigned", "id", "=", "IntrID", "-", "", "+", "", ";"], "ground_truth": ["}"], "File": "HSAILIntrinsicInfo", "Func": "isOverloaded", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114046, "Length": 18, "Cover_Rate": 0.6} {"Template_token": ["", "return", "getIntrinsicForGCCBuiltin", "(", "", ",", "Name", ")", ";"], "ground_truth": ["}"], "File": "HSAILIntrinsicInfo", "Func": "lookupName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114047, "Length": 9, "Cover_Rate": 0.375} {"Template_token": ["", "unsigned", "IntrinsicInfo", "::", "lookupName", "(", "const", "char", "*", "Name", ",", "unsigned", "Len", ")", "const", "{", "return", "getIntrinsicForGCCBuiltin", "(", "", ",", "Name", ")", ";"], "ground_truth": ["}"], "File": "HSAILIntrinsicInfo", "Func": "lookupName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114048, "Length": 24, "Cover_Rate": 1.0} {"Template_token": ["", "switch", "(", "AS", ")", "{", "default", ":", "return", "false", ";", "case", "", ":", "case", "", ":"], "ground_truth": ["case", "", ":"], "File": "HSAILISelDAGToDAG", "Func": "addrSpaceHasPtr32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114049, "Length": 19, "Cover_Rate": 0.4418604651162791} {"Template_token": ["", "case", "", ":", "case", "", ":", "return", "BRIG_COMPARE_GE", ";", "case", "", ":", "case", "", ":", "return", "BRIG_COMPARE_LT", ";", "case", "", ":", "case", "", ":", "return", "BRIG_COMPARE_LE", ";", "case", "", ":", "case", "", ":", "return", "BRIG_COMPARE_NE", ";", "case", "", ":", "return", "BRIG_COMPARE_NUM", ";", "case", "", ":", "return", "BRIG_COMPARE_NAN", ";", "case", "", ":", "return", "BRIG_COMPARE_EQU", ";", "case", "", ":", "return", "BRIG_COMPARE_GTU", ";", "case", "", ":", "return", "BRIG_COMPARE_GEU", ";", "case", "", ":", "return", "BRIG_COMPARE_LTU", ";", "case", "", ":"], "ground_truth": ["return", "BRIG_COMPARE_LEU", ";"], "File": "HSAILISelDAGToDAG", "Func": "getBrigFPCompare", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114052, "Length": 78, "Cover_Rate": 0.46987951807228917} {"Template_token": ["", "return", "BRIG_COMPARE_EQ", ";", "case", "", ":", "return", "BRIG_COMPARE_GT", ";", "case", "", ":", "return", "BRIG_COMPARE_GE", ";", "case", "", ":", "return", "BRIG_COMPARE_LT", ";", "case", "", ":", "return", "BRIG_COMPARE_LE", ";", "case", "", ":", "Signed", "=", "true", ";", "return", "BRIG_COMPARE_NE", ";", "case", "", ":", "Signed", "=", "true", ";", "return", "BRIG_COMPARE_EQ", ";", "case", "", ":", "Signed", "=", "true", ";", "return", "BRIG_COMPARE_GT", ";", "case", "", ":", "Signed", "=", "true", ";"], "ground_truth": ["return", "BRIG_COMPARE_GE", ";"], "File": "HSAILISelDAGToDAG", "Func": "getBrigIntCompare", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114053, "Length": 67, "Cover_Rate": 0.42948717948717946} {"Template_token": ["", "case", "Monotonic", ":", "return", "BRIG_MEMORY_ORDER_RELAXED", ";", "case", "Acquire", ":", "return", "BRIG_MEMORY_ORDER_SC_ACQUIRE", ";", "case", "Release", ":", "return", "BRIG_MEMORY_ORDER_SC_RELEASE", ";", "case", "AcquireRelease", ":", "case", "SequentiallyConsistent", ":", "return", "BRIG_MEMORY_ORDER_SC_ACQUIRE_RELEASE", ";", "default", ":"], "ground_truth": ["llvm_unreachable", "(", "", ")", ";"], "File": "HSAILISelDAGToDAG", "Func": "getBrigMemoryOrder", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114054, "Length": 34, "Cover_Rate": 0.6938775510204082} {"Template_token": ["", "static", "BrigType", "getBrigTypeFromStoreType", "(", "", "VT", ")", "{", "switch", "(", "VT", ")", "{", "case", "", ":", "return", "BRIG_TYPE_U32", ";", "case", "", ":", "return", "BRIG_TYPE_F32", ";", "case", "", ":", "return", "BRIG_TYPE_U8", ";", "case", "", ":", "return", "BRIG_TYPE_U16", ";", "case", "", ":", "return", "BRIG_TYPE_U64", ";", "case", "", ":", "return", "BRIG_TYPE_F64", ";", "default", ":", "llvm_unreachable", "(", "", ")", ";", "}"], "ground_truth": ["}"], "File": "HSAILISelDAGToDAG", "Func": "getBrigTypeFromStoreType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114055, "Length": 58, "Cover_Rate": 0.8055555555555556} {"Template_token": ["", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":"], "ground_truth": ["return", "", ";"], "File": "HSAILISelDAGToDAG", "Func": "getImageInstr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114056, "Length": 255, "Cover_Rate": 0.4521276595744681} {"Template_token": ["", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";", "case", "", ":", "return", "", ";"], "ground_truth": ["case", "", ":"], "File": "HSAILISelDAGToDAG", "Func": "getImageInstr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114057, "Length": 195, "Cover_Rate": 0.34574468085106386} {"Template_token": ["", "case", "BRIG_TYPE_S32", ":", "return", "", ";", "case", "BRIG_TYPE_F32", ":", "return", "", ";", "case", "BRIG_TYPE_U64", ":", "return", "", ";", "case", "BRIG_TYPE_S64", ":", "return", "", ";", "case", "BRIG_TYPE_F64", ":", "return", "", ";", "case", "BRIG_TYPE_U8", ":", "return", "", ";", "case", "BRIG_TYPE_S8", ":", "return", "", ";", "case", "BRIG_TYPE_U16", ":", "return", "", ";", "case", "BRIG_TYPE_S16", ":", "return", "", ";", "default", ":"], "ground_truth": ["llvm_unreachable", "(", "", ")", ";"], "File": "HSAILISelDAGToDAG", "Func": "getLoadBrigOpcode", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114058, "Length": 61, "Cover_Rate": 0.5980392156862745} {"Template_token": ["", "return", "", ";"], "ground_truth": ["}"], "File": "HSAILISelDAGToDAG", "Func": "getPassName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114059, "Length": 4, "Cover_Rate": 0.3076923076923077} {"Template_token": ["", "const", "char", "*", "getPassName", "(", ")", "const", "override", "{"], "ground_truth": ["return", "", ";"], "File": "HSAILISelDAGToDAG", "Func": "getPassName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114060, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "return", "", ";", "case", "BRIG_TYPE_F64", ":", "return", "", ";", "case", "BRIG_TYPE_U8", ":", "return", "", ";", "case", "BRIG_TYPE_S8", ":", "return", "", ";", "case", "BRIG_TYPE_U16", ":", "return", "", ";", "case", "BRIG_TYPE_S16", ":", "return", "", ";", "default", ":"], "ground_truth": ["llvm_unreachable", "(", "", ")", ";"], "File": "HSAILISelDAGToDAG", "Func": "getRArgLoadBrigOpcode", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114061, "Length": 40, "Cover_Rate": 0.39215686274509803} {"Template_token": ["", "case", "BRIG_TYPE_U32", ":", "return", "", ";", "case", "BRIG_TYPE_F32", ":", "return", "", ";", "case", "BRIG_TYPE_U64", ":", "return", "", ";", "case", "BRIG_TYPE_F64", ":", "return", "", ";"], "ground_truth": ["case", "BRIG_TYPE_U8", ":"], "File": "HSAILISelDAGToDAG", "Func": "getStoreBrigOpcode", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114062, "Length": 27, "Cover_Rate": 0.38571428571428573} {"Template_token": ["", "explicit", "DAGToDAGISel", "(", "TargetMachine", "&", "TM", ")", ":", "SelectionDAGISel", "(", "TM", ")", ",", "Subtarget", "(", "nullptr", ")", "{"], "ground_truth": ["}"], "File": "HSAILISelDAGToDAG", "Func": "HSAILDAGToDAGISel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114063, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "explicit", "DAGToDAGISel", "(", "TargetMachine", "&", "TM", ")", ":", "SelectionDAGISel", "(", "TM", ")", ",", "Subtarget", "(", "nullptr", ")", "{"], "ground_truth": ["}"], "File": "HSAILISelDAGToDAG", "Func": "HSAILDAGToDAGISel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114064, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "DAGToDAGISel", "::", "isKernelFunc", "(", ")", "const", "{", "const", "MachineFunction", "&", "MF", "=", "CurDAG", "->", "getMachineFunction", "(", ")", ";"], "ground_truth": ["return", "", "(", "MF", ".", "getFunction", "(", ")", ")", ";"], "File": "HSAILISelDAGToDAG", "Func": "isKernelFunc", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114065, "Length": 29, "Cover_Rate": 0.90625} {"Template_token": ["", "EVT", "VT", "=", "N0", ".", "getValueType", "(", ")", ";", "if", "(", "VT", ".", "isInteger", "(", ")", "&&", "!", "VT", ".", "isVector", "(", ")", ")", "{", "APInt", "LHSZero", ",", "LHSOne", ";", "APInt", "RHSZero", ",", "RHSOne", ";", "CurDAG", "->", "computeKnownBits", "(", "N0", ",", "LHSZero", ",", "LHSOne", ")", ";", "if", "(", "LHSZero", ".", "getBoolValue", "(", ")", ")", "{"], "ground_truth": ["CurDAG", "->", "computeKnownBits", "(", "N1", ",", "RHSZero", ",", "RHSOne", ")", ";"], "File": "HSAILISelDAGToDAG", "Func": "IsOREquivalentToADD", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114066, "Length": 66, "Cover_Rate": 0.45517241379310347} {"Template_token": ["", "bool", "DAGToDAGISel", "::", "IsOREquivalentToADD", "(", "SDValue", "Op", ")", "const", "{", "assert", "(", "Op", ".", "getOpcode", "(", ")", "==", "", ")", ";", "SDValue", "N0", "=", "Op", "->", "getOperand", "(", "", ")", ";", "SDValue", "N1", "=", "Op", "->", "getOperand", "(", "", ")", ";", "EVT", "VT", "=", "N0", ".", "getValueType", "(", ")", ";", "if", "(", "VT", ".", "isInteger", "(", ")", "&&", "!", "VT", ".", "isVector", "(", ")", ")", "{", "APInt", "LHSZero", ",", "LHSOne", ";", "APInt", "RHSZero", ",", "RHSOne", ";", "CurDAG", "->", "computeKnownBits", "(", "N0", ",", "LHSZero", ",", "LHSOne", ")", ";"], "ground_truth": ["if", "(", "LHSZero", ".", "getBoolValue", "(", ")", ")", "{"], "File": "HSAILISelDAGToDAG", "Func": "IsOREquivalentToADD", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114067, "Length": 96, "Cover_Rate": 0.6620689655172414} {"Template_token": ["", "bool", "DAGToDAGISel", "::", "IsProfitableToFold", "(", "SDValue", "N", ",", "SDNode", "*", "U", ",", "SDNode", "*", "Root", ")", "const", "{"], "ground_truth": ["return", "true", ";"], "File": "HSAILISelDAGToDAG", "Func": "IsProfitableToFold", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114068, "Length": 21, "Cover_Rate": 0.9545454545454546} {"Template_token": ["", "bool", "DAGToDAGISel", "::", "MemOpHasPtr32", "(", "SDNode", "*", "N", ")", "const", "{", "return", "addrSpaceHasPtr32", "(", "cast", "<", "MemSDNode", ">", "(", "N", ")", "->", "getAddressSpace", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "HSAILISelDAGToDAG", "Func": "MemOpHasPtr32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114069, "Length": 28, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "DAGToDAGISel", "::", "MemOpHasPtr32", "(", "SDNode", "*", "N", ")", "const", "{", "return", "addrSpaceHasPtr32", "(", "cast", "<", "MemSDNode", ">", "(", "N", ")", "->", "getAddressSpace", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "HSAILISelDAGToDAG", "Func": "MemOpHasPtr32", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114070, "Length": 28, "Cover_Rate": 1.0} {"Template_token": ["", "Subtarget", "=", "&", "MF", ".", "getSubtarget", "<", "Subtarget", ">", "(", ")", ";", "return", "SelectionDAGISel", "::", "runOnMachineFunction", "(", "MF", ")", ";"], "ground_truth": ["}"], "File": "HSAILISelDAGToDAG", "Func": "runOnMachineFunction", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114071, "Length": 21, "Cover_Rate": 0.7} {"Template_token": ["", "const", "GlobalAddressSDNode", "*", "GSDN", "=", "cast", "<", "GlobalAddressSDNode", ">", "(", "Node", ")", ";", "const", "GlobalValue", "*", "GV", "=", "GSDN", "->", "getGlobal", "(", ")", ";", "EVT", "PtrVT", "=", "Node", "->", "getValueType", "(", "", ")", ";", "unsigned", "AS", "=", "GSDN", "->", "getAddressSpace", "(", ")", ";", "SDLoc", "SL", "(", "Node", ")", ";", "BrigType", "BT", "=", "(", "PtrVT", "==", "", ")", "?", "BRIG_TYPE_U32", ":", "BRIG_TYPE_U64", ";", "unsigned", "Opcode", "=", "(", "PtrVT", "==", "", ")", "?", "", ":", "", ";", "const", "SDValue", "Ops", "[", "]", "=", "{", "CurDAG", "->", "getTargetConstant", "(", "AS", ",", "SL", ",", "", ")", ",", "CurDAG", "->", "getTargetGlobalAddress", "(", "GV", ",", "SL", ",", "PtrVT", ",", "", ")", ",", "CurDAG", "->", "getRegister", "(", "", ",", "NVT", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "GSDN", "->", "getOffset", "(", ")", ",", "SL", ",", "PtrVT", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "BT", ",", "SL", ",", "", ")", "}", ";", "ResNode", "=", "CurDAG", "->", "SelectNodeTo", "(", "Node", ",", "Opcode", ",", "PtrVT", ",", "Ops", ")", ";", "break", ";", "}", "case", "", ":", "ResNode", "=", "SelectINTRINSIC_WO_CHAIN", "(", "Node", ")", ";", "break", ";", "case", "", ":", "ResNode", "=", "SelectINTRINSIC_W_CHAIN", "(", "Node", ")", ";", "break", ";", "case", "", ":", "{", "ResNode", "=", "CurDAG", "->", "SelectNodeTo", "(", "Node", ",", "", ",", "", ",", "", ",", "Node", "->", "getOperand", "(", "", ")", ",", "Node", "->", "getOperand", "(", "", ")", ")", ";", "break", ";", "}", "case", "", ":", "{", "const", "SDValue", "Ops", "[", "]", "=", "{", "Node", "->", "getOperand", "(", "", ")", ",", "Node", "->", "getOperand", "(", "", ")", ",", "Node", "->", "getOperand", "(", "", ")", ",", "Node", "->", "getOperand", "(", "", ")", "}", ";", "ResNode", "=", "CurDAG", "->", "SelectNodeTo", "(", "Node", ",", "", ",", "", ",", "", ",", "Ops", ")", ";", "break", ";", "}", "case", "", ":", "{", "ResNode", "=", "SelectArgLd", "(", "cast", "<", "MemSDNode", ">", "(", "Node", ")", ")", ";", "break", ";", "}", "case", "", ":", "{", "ResNode", "=", "SelectArgSt", "(", "cast", "<", "MemSDNode", ">", "(", "Node", ")", ")", ";", "break", ";"], "ground_truth": ["}"], "File": "HSAILISelDAGToDAG", "Func": "Select", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114072, "Length": 320, "Cover_Rate": 0.4900459418070444} {"Template_token": ["", "SDValue", "Ops", "[", "]", "=", "{", "Node", "->", "getOperand", "(", "", ")", ",", "Node", "->", "getOperand", "(", "", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "BRIG_TYPE_B64", ",", "SL", ",", "", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "BRIG_TYPE_B1", ",", "SL", ",", "", ")", ",", "Node", "->", "getOperand", "(", "", ")", "}", ";", "SelectGPROrImm", "(", "Ops", "[", "", "]", ",", "Ops", "[", "", "]", ")", ";", "return", "CurDAG", "->", "SelectNodeTo", "(", "Node", ",", "", ",", "Node", "->", "getVTList", "(", ")", ",", "Ops", ")", ";"], "ground_truth": ["}"], "File": "HSAILISelDAGToDAG", "Func": "SelectActiveLaneMask", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114073, "Length": 82, "Cover_Rate": 0.780952380952381} {"Template_token": ["", "SDValue", "Ops", "[", "]", "=", "{", "Node", "->", "getOperand", "(", "", ")", ",", "Node", "->", "getOperand", "(", "", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "BRIG_TYPE_B64", ",", "SL", ",", "", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "BRIG_TYPE_B1", ",", "SL", ",", "", ")", ",", "Node", "->", "getOperand", "(", "", ")", "}", ";", "SelectGPROrImm", "(", "Ops", "[", "", "]", ",", "Ops", "[", "", "]", ")", ";", "return", "CurDAG", "->", "SelectNodeTo", "(", "Node", ",", "", ",", "Node", "->", "getVTList", "(", ")", ",", "Ops", ")", ";"], "ground_truth": ["}"], "File": "HSAILISelDAGToDAG", "Func": "SelectActiveLaneMask", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114074, "Length": 82, "Cover_Rate": 0.780952380952381} {"Template_token": ["", "if", "(", "Base", ".", "getNode", "(", ")", "==", "", ")", "Base", "=", "CurDAG", "->", "getRegister", "(", "", ",", "VT", ")", ";", "if", "(", "Reg", ".", "getNode", "(", ")", "==", "", ")", "Reg", "=", "CurDAG", "->", "getRegister", "(", "", ",", "VT", ")", ";"], "ground_truth": ["return", "true", ";"], "File": "HSAILISelDAGToDAG", "Func": "SelectAddr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114075, "Length": 45, "Cover_Rate": 0.3191489361702128} {"Template_token": ["", "switch", "(", "Addr", ".", "getOpcode", "(", ")", ")", "{", "case", "", ":", "{", "int64_t", "new_offset", "=", "cast", "<", "ConstantSDNode", ">", "(", "Addr", ")", "->", "getSExtValue", "(", ")", ";", "if", "(", "Subtarget", "->", "isSmallModel", "(", ")", "&&", "!", "isInt", "<", "", ">", "(", "new_offset", ")", ")", "return", "false", ";", "Offset", "+=", "new_offset", ";", "return", "true", ";", "}", "case", "", ":", "{", "if", "(", "Base", ".", "getNode", "(", ")", "==", "", ")", "{", "Base", "=", "CurDAG", "->", "getTargetFrameIndex", "(", "cast", "<", "FrameIndexSDNode", ">", "(", "Addr", ")", "->", "getIndex", "(", ")", ",", "ValueType", ")", ";", "return", "true", ";", "}", "break", ";", "}", "case", "", ":", "case", "", ":", "case", "", ":", "case", "", ":", "{", "if", "(", "Base", ".", "getNode", "(", ")", "==", "", ")", "{", "Base", "=", "CurDAG", "->", "getTargetGlobalAddress", "(", "cast", "<", "GlobalAddressSDNode", ">", "(", "Addr", ")", "->", "getGlobal", "(", ")", ",", "SDLoc", "(", "Addr", ")", ",", "ValueType", ")", ";", "int64_t", "new_offset", "=", "Offset", "+", "cast", "<", "GlobalAddressSDNode", ">", "(", "Addr", ")", "->", "getOffset", "(", ")", ";", "if", "(", "Subtarget", "->", "isSmallModel", "(", ")", "&&", "!", "isInt", "<", "", ">", "(", "new_offset", ")", ")", "return", "false", ";", "Offset", "+=", "new_offset", ";", "return", "true", ";", "}", "break", ";", "}", "case", "", ":", "{", "if", "(", "Base", ".", "getNode", "(", ")", "==", "", ")", "{", "Base", "=", "Addr", ";", "return", "true", ";", "}", "break", ";", "}", "case", "", ":", "if", "(", "IsOREquivalentToADD", "(", "Addr", ")", ")", "{", "bool", "can_selec_first_op", "=", "SelectAddrCommon", "(", "Addr", ".", "getOperand", "(", "", ")", ",", "Base", ",", "Reg", ",", "Offset", ",", "ValueType", ",", "Depth", "+", "", ")", ";", "if", "(", "can_selec_first_op", "&&", "SelectAddrCommon", "(", "Addr", ".", "getOperand", "(", "", ")", ",", "Base", ",", "Reg", ",", "Offset", ",", "ValueType", ",", "Depth", "+", "", ")", ")", "return", "true", ";", "Base", "=", "backup_base", ";", "Reg", "=", "backup_reg", ";", "Offset", "=", "backup_offset", ";", "}", "break", ";", "case", "", ":", "{", "bool", "can_selec_first_op", "=", "SelectAddrCommon", "(", "Addr", ".", "getOperand", "(", "", ")", ",", "Base", ",", "Reg", ",", "Offset", ",", "ValueType", ",", "Depth", "+", "", ")", ";", "if", "(", "can_selec_first_op", "&&", "SelectAddrCommon", "(", "Addr", ".", "getOperand", "(", "", ")", ",", "Base", ",", "Reg", ",", "Offset", ",", "ValueType", ",", "Depth", "+", "", ")", ")", "return", "true", ";", "Base", "=", "backup_base", ";", "Reg", "=", "backup_reg", ";", "Offset", "=", "backup_offset", ";", "break", ";", "}", "case", "", ":", "{", "if", "(", "SelectAddrCommon", "(", "Addr", ".", "getOperand", "(", "", ")", ",", "Base", ",", "Reg", ",", "Offset", ",", "ValueType", ",", "Depth", "+", "", ")", ")", "{", "return", "true", ";", "}", "Base", "=", "backup_base", ";", "Reg", "=", "backup_reg", ";", "Offset", "=", "backup_offset", ";", "break", ";"], "ground_truth": ["}"], "File": "HSAILISelDAGToDAG", "Func": "SelectAddrCommon", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114076, "Length": 424, "Cover_Rate": 0.8107074569789675} {"Template_token": ["", "SDValue", "Cast", "(", "ASC", ",", "", ")", ";", "unsigned", "DstAS", "=", "ASC", "->", "getDestAddressSpace", "(", ")", ";", "unsigned", "SrcAS", "=", "ASC", "->", "getSrcAddressSpace", "(", ")", ";", "EVT", "DestVT", "=", "ASC", "->", "getValueType", "(", "", ")", ";", "EVT", "SrcVT", "=", "ASC", "->", "getOperand", "(", "", ")", ".", "getValueType", "(", ")", ";", "bool", "Src32", "=", "(", "SrcVT", "==", "", ")", ";", "bool", "Dst32", "=", "(", "DestVT", "==", "", ")", ";", "unsigned", "Opcode", ";", "SDValue", "Segment", ",", "NoNull", ",", "Ptr", ",", "DestType", ",", "SrcType", ";", "SDLoc", "SL", "(", "ASC", ")", ";", "if", "(", "SrcAS", "==", "", ")", "{", "if", "(", "Src32", "&&", "Dst32", ")", "Opcode", "=", "", ";", "else", "if", "(", "Src32", "&&", "!", "Dst32", ")", "llvm_unreachable", "(", "", ")", ";", "else", "if", "(", "!", "Src32", "&&", "Dst32", ")", "Opcode", "=", "", ";", "else", "Opcode", "=", "", ";", "Segment", "=", "CurDAG", "->", "getTargetConstant", "(", "DstAS", ",", "SL", ",", "", ")", ";", "SelectAddrSpaceCastCommon", "(", "*", "ASC", ",", "NoNull", ",", "Ptr", ",", "DestType", ",", "SrcType", ")", ";", "}", "else", "if", "(", "DstAS", "==", "", ")", "{", "if", "(", "Src32", "&&", "Dst32", ")", "Opcode", "=", "", ";", "else", "if", "(", "Src32", "&&", "!", "Dst32", ")", "Opcode", "=", "", ";", "else", "if", "(", "!", "Src32", "&&", "Dst32", ")", "llvm_unreachable", "(", "", ")", ";", "else", "Opcode", "=", "", ";", "Segment", "=", "CurDAG", "->", "getTargetConstant", "(", "SrcAS", ",", "SL", ",", "", ")", ";", "SelectAddrSpaceCastCommon", "(", "*", "ASC", ",", "NoNull", ",", "Ptr", ",", "DestType", ",", "SrcType", ")", ";", "}", "else", "return", "nullptr", ";", "const", "SDValue", "Ops", "[", "]", "=", "{", "Segment", ",", "NoNull", ",", "Ptr", ",", "DestType", ",", "SrcType", "}", ";", "return", "CurDAG", "->", "SelectNodeTo", "(", "ASC", ",", "Opcode", ",", "DestVT", ",", "Ops", ")", ";"], "ground_truth": ["}"], "File": "HSAILISelDAGToDAG", "Func": "SelectAddrSpaceCast", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114077, "Length": 276, "Cover_Rate": 0.8846153846153846} {"Template_token": ["", "SDNode", "*", "DAGToDAGISel", "::", "SelectAddrSpaceCast", "(", "AddrSpaceCastSDNode", "*", "ASC", ")", "const", "{", "SDValue", "Cast", "(", "ASC", ",", "", ")", ";", "unsigned", "DstAS", "=", "ASC", "->", "getDestAddressSpace", "(", ")", ";", "unsigned", "SrcAS", "=", "ASC", "->", "getSrcAddressSpace", "(", ")", ";", "EVT", "DestVT", "=", "ASC", "->", "getValueType", "(", "", ")", ";", "EVT", "SrcVT", "=", "ASC", "->", "getOperand", "(", "", ")", ".", "getValueType", "(", ")", ";", "bool", "Src32", "=", "(", "SrcVT", "==", "", ")", ";", "bool", "Dst32", "=", "(", "DestVT", "==", "", ")", ";", "unsigned", "Opcode", ";", "SDValue", "Segment", ",", "NoNull", ",", "Ptr", ",", "DestType", ",", "SrcType", ";", "SDLoc", "SL", "(", "ASC", ")", ";", "if", "(", "SrcAS", "==", "", ")", "{", "if", "(", "Src32", "&&", "Dst32", ")", "Opcode", "=", "", ";", "else", "if", "(", "Src32", "&&", "!", "Dst32", ")", "llvm_unreachable", "(", "", ")", ";", "else", "if", "(", "!", "Src32", "&&", "Dst32", ")", "Opcode", "=", "", ";", "else", "Opcode", "=", "", ";", "Segment", "=", "CurDAG", "->", "getTargetConstant", "(", "DstAS", ",", "SL", ",", "", ")", ";", "SelectAddrSpaceCastCommon", "(", "*", "ASC", ",", "NoNull", ",", "Ptr", ",", "DestType", ",", "SrcType", ")", ";", "}", "else", "if", "(", "DstAS", "==", "", ")", "{", "if", "(", "Src32", "&&", "Dst32", ")", "Opcode", "=", "", ";", "else", "if", "(", "Src32", "&&", "!", "Dst32", ")", "Opcode", "=", "", ";", "else", "if", "(", "!", "Src32", "&&", "Dst32", ")", "llvm_unreachable", "(", "", ")", ";", "else", "Opcode", "=", "", ";", "Segment", "=", "CurDAG", "->", "getTargetConstant", "(", "SrcAS", ",", "SL", ",", "", ")", ";"], "ground_truth": ["SelectAddrSpaceCastCommon", "(", "*", "ASC", ",", "NoNull", ",", "Ptr", ",", "DestType", ",", "SrcType", ")", ";"], "File": "HSAILISelDAGToDAG", "Func": "SelectAddrSpaceCast", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114078, "Length": 250, "Cover_Rate": 0.8012820512820513} {"Template_token": ["", "void", "DAGToDAGISel", "::", "SelectAddrSpaceCastCommon", "(", "const", "AddrSpaceCastSDNode", "&", "ASC", ",", "SDValue", "&", "NoNull", ",", "SDValue", "&", "Ptr", ",", "SDValue", "&", "DestType", ",", "SDValue", "&", "SrcType", ")", "const", "{", "SDLoc", "SL", "(", "&", "ASC", ")", ";", "SelectGPROrImm", "(", "ASC", ".", "getOperand", "(", "", ")", ",", "Ptr", ")", ";", "NoNull", "=", "CurDAG", "->", "getTargetConstant", "(", "", ",", "SL", ",", "", ")", ";", "BrigType", "DestBT", "=", "getBrigType", "(", "ASC", ".", "getValueType", "(", "", ")", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", ",", "false", ")", ";", "BrigType", "SrcBT", "=", "getBrigType", "(", "Ptr", ".", "getValueType", "(", ")", ".", "getSimpleVT", "(", ")", ".", "SimpleTy", ",", "false", ")", ";", "DestType", "=", "CurDAG", "->", "getTargetConstant", "(", "DestBT", ",", "SL", ",", "", ")", ";", "SrcType", "=", "CurDAG", "->", "getTargetConstant", "(", "SrcBT", ",", "SL", ",", "", ")", ";"], "ground_truth": ["}"], "File": "HSAILISelDAGToDAG", "Func": "SelectAddrSpaceCastCommon", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114079, "Length": 128, "Cover_Rate": 0.9552238805970149} {"Template_token": ["", "SDNode", "*", "DAGToDAGISel", "::", "SelectArgLd", "(", "MemSDNode", "*", "Node", ")", "const", "{", "bool", "IsRetLd", "=", "Node", "->", "getConstantOperandVal", "(", "", ")", ";", "bool", "IsSext", "=", "Node", "->", "getConstantOperandVal", "(", "", ")", ";", "SDValue", "Base", ",", "Reg", ",", "Offset", ";", "if", "(", "!", "SelectAddr", "(", "Node", "->", "getOperand", "(", "", ")", ",", "Base", ",", "Reg", ",", "Offset", ")", ")", "return", "nullptr", ";", "MVT", "MemVT", "=", "Node", "->", "getMemoryVT", "(", ")", ".", "getSimpleVT", "(", ")", ";", "BrigType", "BT", "=", "getBrigType", "(", "MemVT", ".", "SimpleTy", ",", "IsSext", ")", ";", "SDLoc", "SL", "(", "Node", ")", ";"], "ground_truth": ["SDValue", "Ops", "[", "", "]", "=", "{"], "File": "HSAILISelDAGToDAG", "Func": "SelectArgLd", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114080, "Length": 99, "Cover_Rate": 0.3793103448275862} {"Template_token": ["", "SDNode", "*", "DAGToDAGISel", "::", "SelectArgSt", "(", "MemSDNode", "*", "Node", ")", "const", "{", "SDValue", "Base", ",", "Reg", ",", "Offset", ";", "if", "(", "!", "SelectAddr", "(", "Node", "->", "getOperand", "(", "", ")", ",", "Base", ",", "Reg", ",", "Offset", ")", ")", "return", "nullptr", ";", "SDLoc", "SL", "(", "Node", ")", ";", "MVT", "MemVT", "=", "Node", "->", "getMemoryVT", "(", ")", ".", "getSimpleVT", "(", ")", ";", "BrigType", "BT", "=", "getBrigType", "(", "MemVT", ".", "SimpleTy", ",", "false", ")", ";", "SDValue", "Ops", "[", "", "]", "=", "{", "Node", "->", "getOperand", "(", "", ")", ",", "Base", ",", "Reg", ",", "Offset", ",", "CurDAG", "->", "getTargetConstant", "(", "BT", ",", "SL", ",", "", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "Node", "->", "getAddressSpace", "(", ")", ",", "SL", ",", "", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "Node", "->", "getAlignment", "(", ")", ",", "SL", ",", "", ")", ",", "Node", "->", "getOperand", "(", "", ")", ",", "SDValue", "(", ")", "}", ";", "ArrayRef", "<", "SDValue", ">", "OpsArr", "=", "makeArrayRef", "(", "Ops", ")", ";", "if", "(", "Node", "->", "getNumOperands", "(", ")", "==", "", ")", "Ops", "[", "", "]", "=", "Node", "->", "getOperand", "(", "", ")", ";", "else", "OpsArr", "=", "OpsArr", ".", "drop_back", "(", "", ")", ";", "return", "CurDAG", "->", "SelectNodeTo", "(", "Node", ",", "getStoreBrigOpcode", "(", "BT", ")", ",", "Node", "->", "getVTList", "(", ")", ",", "OpsArr", ")", ";"], "ground_truth": ["}"], "File": "HSAILISelDAGToDAG", "Func": "SelectArgSt", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114081, "Length": 210, "Cover_Rate": 0.9722222222222222} {"Template_token": ["", "bool", "DAGToDAGISel", "::", "SelectAtomicAddr", "(", "SDNode", "*", "ParentAtomic", ",", "SDValue", "Addr", ",", "SDValue", "&", "Segment", ",", "SDValue", "&", "Order", ",", "SDValue", "&", "Scope", ",", "SDValue", "&", "Equiv", ",", "SDValue", "&", "Base", ",", "SDValue", "&", "Reg", ",", "SDValue", "&", "Offset", ")", "const", "{", "if", "(", "!", "SelectAddr", "(", "Addr", ",", "Base", ",", "Reg", ",", "Offset", ")", ")", "return", "false", ";", "const", "AtomicSDNode", "*", "Atomic", "=", "cast", "<", "AtomicSDNode", ">", "(", "ParentAtomic", ")", ";", "AtomicOrdering", "SuccOrder", "=", "Atomic", "->", "getSuccessOrdering", "(", ")", ";", "SynchronizationScope", "SyncScope", "=", "Atomic", "->", "getSynchScope", "(", ")", ";", "unsigned", "AS", "=", "Atomic", "->", "getAddressSpace", "(", ")", ";", "SDLoc", "SL", "(", "ParentAtomic", ")", ";", "Segment", "=", "CurDAG", "->", "getTargetConstant", "(", "AS", ",", "SL", ",", "", ")", ";", "Order", "=", "CurDAG", "->", "getTargetConstant", "(", "getBrigMemoryOrder", "(", "SuccOrder", ")", ",", "SL", ",", "", ")", ";", "Scope", "=", "CurDAG", "->", "getTargetConstant", "(", "getBrigMemoryScope", "(", "SyncScope", ",", "AS", ")", ",", "SL", ",", "", ")", ";"], "ground_truth": ["Equiv", "=", "CurDAG", "->", "getTargetConstant", "(", "", ",", "SL", ",", "", ")", ";"], "File": "HSAILISelDAGToDAG", "Func": "SelectAtomicAddr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114082, "Length": 165, "Cover_Rate": 0.9322033898305084} {"Template_token": ["", "Segment", "=", "CurDAG", "->", "getTargetConstant", "(", "AS", ",", "SL", ",", "", ")", ";", "Order", "=", "CurDAG", "->", "getTargetConstant", "(", "getBrigMemoryOrder", "(", "SuccOrder", ")", ",", "SL", ",", "", ")", ";", "Scope", "=", "CurDAG", "->", "getTargetConstant", "(", "getBrigMemoryScope", "(", "SyncScope", ",", "AS", ")", ",", "SL", ",", "", ")", ";"], "ground_truth": ["Equiv", "=", "CurDAG", "->", "getTargetConstant", "(", "", ",", "SL", ",", "", ")", ";"], "File": "HSAILISelDAGToDAG", "Func": "SelectAtomicAddr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114083, "Length": 60, "Cover_Rate": 0.3389830508474576} {"Template_token": ["", "SDLoc", "SL", "(", "In", ")", ";", "Src", "=", "CurDAG", "->", "getTargetConstant", "(", "C", "->", "getAPIntValue", "(", ")", ",", "SL", ",", "C", "->", "getValueType", "(", "", ")", ")", ";", "}", "else", "if", "(", "ConstantFPSDNode", "*", "C", "=", "dyn_cast", "<", "ConstantFPSDNode", ">", "(", "In", ")", ")", "{"], "ground_truth": ["SDLoc", "SL", "(", "In", ")", ";"], "File": "HSAILISelDAGToDAG", "Func": "SelectGPROrImm", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114084, "Length": 51, "Cover_Rate": 0.45535714285714285} {"Template_token": ["", "SDLoc", "SL", "(", "In", ")", ";", "Src", "=", "CurDAG", "->", "getTargetConstantFP", "(", "C", "->", "getValueAPF", "(", ")", ",", "SL", ",", "C", "->", "getValueType", "(", "", ")", ")", ";", "}", "else", "Src", "=", "In", ";"], "ground_truth": ["return", "true", ";"], "File": "HSAILISelDAGToDAG", "Func": "SelectGPROrImm", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114085, "Length": 37, "Cover_Rate": 0.33035714285714285} {"Template_token": ["", "SDNode", "*", "ResNode", ";", "unsigned", "IntNo", "=", "cast", "<", "ConstantSDNode", ">", "(", "Node", "->", "getOperand", "(", "", ")", ")", "->", "getZExtValue", "(", ")", ";", "bool", "hasSampler", "=", "false", ";", "if", "(", "IntNo", "==", "", ")", "{", "SDLoc", "SL", ";", "const", "SDValue", "Ops", "[", "]", "=", "{", "CurDAG", "->", "getTargetConstant", "(", "", ",", "SL", ",", "", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "BRIG_TYPE_ROIMG", ",", "SL", ",", "", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "BRIG_TYPE_S32", ",", "SL", ",", "", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "BRIG_GEOMETRY_1D", ",", "SL", ",", "", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "", ",", "SL", ",", "", ")", ",", "Node", "->", "getOperand", "(", "", ")", ",", "Node", "->", "getOperand", "(", "", ")", ",", "Node", "->", "getOperand", "(", "", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "BRIG_TYPE_F32", ",", "SL", ",", "", ")", ",", "Chain", "}", ";", "return", "CurDAG", "->", "SelectNodeTo", "(", "Node", ",", "", ",", "Node", "->", "getVTList", "(", ")", ",", "Ops", ")", ";", "}", "if", "(", "IntrinsicInfo", "::", "isReadImage", "(", "(", "", ")", "IntNo", ")", ")", "{", "hasSampler", "=", "true", ";"], "ground_truth": ["}", "else", "if", "(", "!", "IntrinsicInfo", "::", "isLoadImage", "(", "(", "", ")", "IntNo", ")", ")", "{"], "File": "HSAILISelDAGToDAG", "Func": "SelectImageIntrinsic", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114086, "Length": 188, "Cover_Rate": 0.3679060665362035} {"Template_token": ["", "case", "", ":", "{", "SDLoc", "SL", "(", "Node", ")", ";", "const", "SDValue", "Ops", "[", "]", "=", "{", "CurDAG", "->", "getTargetConstant", "(", "", ",", "SL", ",", "", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "BRIG_ROUND_FLOAT_DEFAULT", ",", "SL", ",", "", ")", ",", "Node", "->", "getOperand", "(", "", ")", ",", "CurDAG", "->", "getConstantFP", "(", "", ",", "SL", ",", "", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "BRIG_TYPE_F32", ",", "SL", ",", "", ")", "}", ";", "return", "CurDAG", "->", "SelectNodeTo", "(", "Node", ",", "", ",", "", ",", "Ops", ")", ";", "}", "case", "", ":", "{", "SDLoc", "SL", "(", "Node", ")", ";", "const", "SDValue", "Ops", "[", "]", "=", "{", "CurDAG", "->", "getTargetConstant", "(", "", ",", "SL", ",", "", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "BRIG_ROUND_FLOAT_DEFAULT", ",", "SL", ",", "", ")", ",", "Node", "->", "getOperand", "(", "", ")", ",", "CurDAG", "->", "getConstantFP", "(", "BitsToFloat", "(", "", ")", ",", "SL", ",", "", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "BRIG_TYPE_F32", ",", "SL", ",", "", ")", "}", ";", "return", "CurDAG", "->", "SelectNodeTo", "(", "Node", ",", "", ",", "", ",", "Ops", ")", ";", "}", "default", ":", "return", "SelectCode", "(", "Node", ")", ";"], "ground_truth": ["}"], "File": "HSAILISelDAGToDAG", "Func": "SelectINTRINSIC_WO_CHAIN", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114087, "Length": 180, "Cover_Rate": 0.7346938775510204} {"Template_token": ["", "case", "", ":", "{", "SDLoc", "SL", "(", "Node", ")", ";", "const", "SDValue", "Ops", "[", "]", "=", "{", "CurDAG", "->", "getTargetConstant", "(", "", ",", "SL", ",", "", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "BRIG_ROUND_FLOAT_DEFAULT", ",", "SL", ",", "", ")", ",", "Node", "->", "getOperand", "(", "", ")", ",", "CurDAG", "->", "getConstantFP", "(", "BitsToFloat", "(", "", ")", ",", "SL", ",", "", ")", ",", "CurDAG", "->", "getTargetConstant", "(", "BRIG_TYPE_F32", ",", "SL", ",", "", ")", "}", ";", "return", "CurDAG", "->", "SelectNodeTo", "(", "Node", ",", "", ",", "", ",", "Ops", ")", ";", "}", "default", ":", "return", "SelectCode", "(", "Node", ")", ";", "}"], "ground_truth": ["}"], "File": "HSAILISelDAGToDAG", "Func": "SelectINTRINSIC_WO_CHAIN", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114088, "Length": 97, "Cover_Rate": 0.39591836734693875} {"Template_token": ["", "unsigned", "IntNo", "=", "cast", "<", "ConstantSDNode", ">", "(", "Node", "->", "getOperand", "(", "", ")", ")", "->", "getZExtValue", "(", ")", ";"], "ground_truth": ["if", "(", "IntrinsicInfo", "::", "isReadImage", "(", "(", "", ")", "IntNo", ")", "||", "IntrinsicInfo", "::", "isLoadImage", "(", "(", "", ")", "IntNo", ")", ")", "return", "SelectImageIntrinsic", "(", "Node", ")", ";"], "File": "HSAILISelDAGToDAG", "Func": "SelectINTRINSIC_W_CHAIN", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114089, "Length": 48, "Cover_Rate": 0.6857142857142857} {"Template_token": ["", "unsigned", "AS", "=", "Load", "->", "getAddressSpace", "(", ")", ";", "SDLoc", "SL", "(", "ParentLoad", ")", ";", "MVT", "MemVT", "=", "Load", "->", "getMemoryVT", "(", ")", ".", "getSimpleVT", "(", ")", ";", "", "ExtTy", "=", "Load", "->", "getExtensionType", "(", ")", ";", "unsigned", "BrigType", "=", "getBrigType", "(", "MemVT", ".", "SimpleTy", ",", "ExtTy", "==", "", ")", ";", "Segment", "=", "CurDAG", "->", "getTargetConstant", "(", "AS", ",", "SL", ",", "", ")", ";"], "ground_truth": ["Align", "=", "CurDAG", "->", "getTargetConstant", "(", "Load", "->", "getAlignment", "(", ")", ",", "SL", ",", "", ")", ";"], "File": "HSAILISelDAGToDAG", "Func": "SelectLoadAddr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114090, "Length": 81, "Cover_Rate": 0.36160714285714285} {"Template_token": ["", "SDLoc", "SL", "(", "SetCC", ")", ";", "SDValue", "CmpOp", "=", "CurDAG", "->", "getTargetConstant", "(", "BrigCmp", ",", "SL", ",", "", ")", ";", "SDValue", "FTZ", "=", "CurDAG", "->", "getTargetConstant", "(", "VT", "==", "", ",", "SL", ",", "", ")", ";", "SDValue", "DestType", "=", "CurDAG", "->", "getTargetConstant", "(", "BRIG_TYPE_B1", ",", "SL", ",", "", ")", ";", "BrigType", "SrcBT", "=", "getBrigType", "(", "VT", ".", "SimpleTy", ",", "Signed", ")", ";", "SDValue", "SrcType", "=", "CurDAG", "->", "getTargetConstant", "(", "SrcBT", ",", "SL", ",", "", ")", ";"], "ground_truth": ["const", "SDValue", "Ops", "[", "]", "=", "{", "CmpOp", ",", "FTZ", ",", "LHS", ",", "RHS", ",", "DestType", ",", "SrcType", "}", ";"], "File": "HSAILISelDAGToDAG", "Func": "SelectSetCC", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114091, "Length": 96, "Cover_Rate": 0.38866396761133604} {"Template_token": ["", "assert", "(", "!", "Store", "->", "isIndexed", "(", ")", ")", ";", "if", "(", "!", "SelectAddr", "(", "Addr", ",", "Base", ",", "Reg", ",", "Offset", ")", ")", "return", "false", ";", "unsigned", "AS", "=", "Store", "->", "getAddressSpace", "(", ")", ";", "MVT", "MemVT", "=", "Store", "->", "getMemoryVT", "(", ")", ".", "getSimpleVT", "(", ")", ";", "unsigned", "BrigType", "=", "getBrigTypeFromStoreType", "(", "MemVT", ".", "SimpleTy", ")", ";", "SDLoc", "SL", "(", "ParentStore", ")", ";", "Segment", "=", "CurDAG", "->", "getTargetConstant", "(", "AS", ",", "SL", ",", "", ")", ";", "Align", "=", "CurDAG", "->", "getTargetConstant", "(", "Store", "->", "getAlignment", "(", ")", ",", "SL", ",", "", ")", ";", "Type", "=", "CurDAG", "->", "getTargetConstant", "(", "BrigType", ",", "SL", ",", "", ")", ";"], "ground_truth": ["return", "true", ";"], "File": "HSAILISelDAGToDAG", "Func": "SelectStoreAddr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114092, "Length": 111, "Cover_Rate": 0.6568047337278107} {"Template_token": ["", "virtual", "~", "DAGToDAGISel", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILISelDAGToDAG", "Func": "~HSAILDAGToDAGISel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114093, "Length": 7, "Cover_Rate": 1.0} {"Template_token": ["", "virtual", "~", "DAGToDAGISel", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILISelDAGToDAG", "Func": "~HSAILDAGToDAGISel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114094, "Length": 7, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "Fast", ")", "*", "Fast", "=", "true", ";"], "ground_truth": ["return", "true", ";"], "File": "HSAILISelLowering", "Func": "allowsMisalignedMemoryAccesses", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114095, "Length": 12, "Cover_Rate": 0.375} {"Template_token": ["", "const", "SDValue", "Ops", "[", "]", "=", "{", "Chain", ",", "PtrOffs", ",", "DAG", ".", "getTargetConstant", "(", "Width", ",", "SL", ",", "", ")", ",", "DAG", ".", "getTargetConstant", "(", "IsRetArgLoad", ",", "SL", ",", "", ")", ",", "DAG", ".", "getTargetConstant", "(", "isSExt", ",", "SL", ",", "", ")", ",", "InFlag", "}", ";", "ArrayRef", "<", "SDValue", ">", "OpsArr", "=", "makeArrayRef", "(", "Ops", ")", ";", "if", "(", "!", "InFlag", ")", "OpsArr", "=", "OpsArr", ".", "drop_back", "(", "", ")", ";", "EVT", "VT", "=", "(", "MemVT", ".", "getStoreSize", "(", ")", "<", "", ")", "?", "", ":", "ArgVT", ";", "SDVTList", "VTs", "=", "DAG", ".", "getVTList", "(", "VT", ",", "", ",", "", ")", ";", "MachinePointerInfo", "PtrInfo", "(", "UndefValue", "::", "get", "(", "ArgPT", ")", ",", "Offset", ")", ";", "SDValue", "Arg", "=", "DAG", ".", "getMemIntrinsicNode", "(", "", ",", "SL", ",", "VTs", ",", "OpsArr", ",", "MemVT", ",", "PtrInfo", ",", "Align", ",", "false", ",", "true", ",", "false", ",", "MemVT", ".", "getStoreSize", "(", ")", ")", ";", "if", "(", "ArgVT", "==", "", ")", "{", "const", "SDValue", "Ops", "[", "]", "=", "{", "DAG", ".", "getNode", "(", "", ",", "SL", ",", "", ",", "Arg", ")", ",", "Arg", ".", "getValue", "(", "", ")", ",", "Arg", ".", "getValue", "(", "", ")", "}", ";"], "ground_truth": ["return", "DAG", ".", "getMergeValues", "(", "Ops", ",", "SL", ")", ";"], "File": "HSAILISelLowering", "Func": "getArgLoad", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114097, "Length": 202, "Cover_Rate": 0.4190871369294606} {"Template_token": ["", "const", "MachineFunction", "&", "MF", "=", "DAG", ".", "getMachineFunction", "(", ")", ";", "const", "DataLayout", "&", "DL", "=", "MF", ".", "getFunction", "(", ")", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "Type", "*", "EltTy", "=", "Ty", ";", "if", "(", "Ty", "->", "isArrayTy", "(", ")", ")", "EltTy", "=", "Ty", "->", "getArrayElementType", "(", ")", ";", "EltTy", "=", "EltTy", "->", "getScalarType", "(", ")", ";", "MVT", "PtrVT", "=", "getPointerTy", "(", "DL", ",", "AddressSpace", ")", ";", "PointerType", "*", "ArgPT", "=", "PointerType", "::", "get", "(", "EltTy", ",", "AddressSpace", ")", ";", "Offset", "+=", "DL", ".", "getTypeStoreSize", "(", "EltTy", ")", "*", "Index", ";", "EVT", "MemVT", "=", "ArgVT", ";", "if", "(", "ArgVT", "==", "", ")", "{", "MemVT", "=", "", ";", "Value", "=", "DAG", ".", "getNode", "(", "", ",", "SL", ",", "", ",", "Value", ")", ";", "}", "SDValue", "PtrOffs", "=", "DAG", ".", "getNode", "(", "", ",", "SL", ",", "PtrVT", ",", "Ptr", ",", "DAG", ".", "getConstant", "(", "Offset", ",", "SL", ",", "PtrVT", ")", ")", ";", "unsigned", "Align", "=", "getElementAlignment", "(", "DL", ",", "Ty", ",", "Index", ")", ";", "if", "(", "AddressSpace", "==", "", ")", "Align", "=", "DL", ".", "getABITypeAlignment", "(", "EltTy", ")", ";", "SDValue", "Ops", "[", "]", "=", "{", "Chain", ",", "Value", ",", "PtrOffs", ",", "InFlag", "}", ";"], "ground_truth": ["ArrayRef", "<", "SDValue", ">", "OpsArr", "=", "makeArrayRef", "(", "Ops", ")", ";"], "File": "HSAILISelLowering", "Func": "getArgStore", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114098, "Length": 206, "Cover_Rate": 0.6005830903790087} {"Template_token": ["", "Type", "*", "EltTy", "=", "Ty", "->", "getScalarType", "(", ")", ";", "unsigned", "ffs", "=", "", ";", "while", "(", "(", "(", "n", ">>", "ffs", ")", "&", "", ")", "==", "", ")", "ffs", "++", ";", "Alignment", "=", "(", "DL", ".", "getABITypeAlignment", "(", "EltTy", ")", "*", "(", "", "<<", "ffs", ")", ")", "&", "(", "Alignment", "-", "", ")", ";", "}", "else", "{", "if", "(", "OpaqueType", "OT", "=", "GetOpaqueType", "(", "Ty", ")", ")", "{"], "ground_truth": ["if", "(", "IsImage", "(", "OT", ")", "||", "OT", "==", "Sampler", ")", "Alignment", "=", "", ";"], "File": "HSAILISelLowering", "Func": "getElementAlignment", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114099, "Length": 84, "Cover_Rate": 0.56} {"Template_token": ["", "if", "(", "Ty", "->", "isArrayTy", "(", ")", ")", "return", "getElementAlignment", "(", "DL", ",", "Ty", "->", "getArrayElementType", "(", ")", ",", "", ")", ";", "unsigned", "Alignment", "=", "DL", ".", "getABITypeAlignment", "(", "Ty", ")", ";", "if", "(", "n", "&&", "(", "Alignment", ">", "", ")", ")", "{", "Type", "*", "EltTy", "=", "Ty", "->", "getScalarType", "(", ")", ";", "unsigned", "ffs", "=", "", ";", "while", "(", "(", "(", "n", ">>", "ffs", ")", "&", "", ")", "==", "", ")", "ffs", "++", ";", "Alignment", "=", "(", "DL", ".", "getABITypeAlignment", "(", "EltTy", ")", "*", "(", "", "<<", "ffs", ")", ")", "&", "(", "Alignment", "-", "", ")", ";", "}", "else", "{", "if", "(", "OpaqueType", "OT", "=", "GetOpaqueType", "(", "Ty", ")", ")", "{"], "ground_truth": ["if", "(", "IsImage", "(", "OT", ")", "||", "OT", "==", "Sampler", ")", "Alignment", "=", "", ";"], "File": "HSAILISelLowering", "Func": "getElementAlignment", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114100, "Length": 127, "Cover_Rate": 0.8466666666666667} {"Template_token": ["", "return", "MachineJumpTableInfo", "::", "EK_BlockAddress", ";"], "ground_truth": ["}"], "File": "HSAILISelLowering", "Func": "getJumpTableEncoding", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114101, "Length": 6, "Cover_Rate": 0.42857142857142855} {"Template_token": ["", "unsigned", "TargetLowering", "::", "getJumpTableEncoding", "(", ")", "const", "{", "return", "MachineJumpTableInfo", "::", "EK_BlockAddress", ";"], "ground_truth": ["}"], "File": "HSAILISelLowering", "Func": "getJumpTableEncoding", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114102, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "static", "BrigType", "getParamBrigType", "(", "Type", "*", "Ty", ",", "const", "DataLayout", "&", "DL", ",", "bool", "IsSExt", ")", "{", "BrigType", "BT", "=", "", "(", "Ty", ",", "DL", ",", "IsSExt", ")", ";", "if", "(", "BT", "==", "BRIG_TYPE_B1", ")", "{", "assert", "(", "!", "IsSExt", "&&", "", ")", ";"], "ground_truth": ["return", "IsSExt", "?", "BRIG_TYPE_S8", ":", "BRIG_TYPE_U8", ";"], "File": "HSAILISelLowering", "Func": "getParamBrigType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114103, "Length": 51, "Cover_Rate": 0.8793103448275862} {"Template_token": ["", "uint8_t", "TargetLowering", "::", "getRepRegClassCostFor", "(", "MVT", "VT", ")", "const", "{", "return", "", ";"], "ground_truth": ["}"], "File": "HSAILISelLowering", "Func": "getRepRegClassCostFor", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114104, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "uint8_t", "TargetLowering", "::", "getRepRegClassCostFor", "(", "MVT", "VT", ")", "const", "{"], "ground_truth": ["return", "", ";"], "File": "HSAILISelLowering", "Func": "getRepRegClassCostFor", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114105, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "EVT", "TargetLowering", "::", "getSetCCResultType", "(", "const", "DataLayout", "&", "DL", ",", "LLVMContext", "&", "Context", ",", "EVT", "VT", ")", "const", "{"], "ground_truth": ["return", "", ";"], "File": "HSAILISelLowering", "Func": "getSetCCResultType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114106, "Length": 22, "Cover_Rate": 0.88} {"Template_token": ["", "bool", "TargetLowering", "::", "isDesirableToTransformToIntegerOp", "(", "unsigned", "Opc", ",", "EVT", "VT", ")", "const", "{"], "ground_truth": ["return", "(", "Opc", "==", "", "||", "Opc", "==", "", ")", "&&", "(", "VT", ".", "getSimpleVT", "(", ")", "==", "", "||", "VT", ".", "getSimpleVT", "(", ")", "==", "", ")", ";"], "File": "HSAILISelLowering", "Func": "isDesirableToTransformToIntegerOp", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114108, "Length": 42, "Cover_Rate": 0.8235294117647058} {"Template_token": ["", "bool", "TargetLowering", "::", "isDesirableToTransformToIntegerOp", "(", "unsigned", "Opc", ",", "EVT", "VT", ")", "const", "{"], "ground_truth": ["return", "(", "Opc", "==", "", "||", "Opc", "==", "", ")", "&&", "(", "VT", ".", "getSimpleVT", "(", ")", "==", "", "||", "VT", ".", "getSimpleVT", "(", ")", "==", "", ")", ";"], "File": "HSAILISelLowering", "Func": "isDesirableToTransformToIntegerOp", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114109, "Length": 42, "Cover_Rate": 0.8235294117647058} {"Template_token": ["", "bool", "TargetLowering", "::", "isFPImmLegal", "(", "const", "APFloat", "&", "Imm", ",", "EVT", "VT", ")", "const", "{"], "ground_truth": ["return", "(", "VT", "==", "EVT", "(", "", ")", "||", "VT", "==", "EVT", "(", "", ")", ")", ";"], "File": "HSAILISelLowering", "Func": "isFPImmLegal", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114110, "Length": 32, "Cover_Rate": 0.8648648648648649} {"Template_token": ["", "bool", "TargetLowering", "::", "isFPImmLegal", "(", "const", "APFloat", "&", "Imm", ",", "EVT", "VT", ")", "const", "{"], "ground_truth": ["return", "(", "VT", "==", "EVT", "(", "", ")", "||", "VT", "==", "EVT", "(", "", ")", ")", ";"], "File": "HSAILISelLowering", "Func": "isFPImmLegal", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114111, "Length": 32, "Cover_Rate": 0.8648648648648649} {"Template_token": ["", "bool", "TargetLowering", "::", "isOffsetFoldingLegal", "(", "const", "GlobalAddressSDNode", "*", "GA", ")", "const", "{"], "ground_truth": ["return", "true", ";"], "File": "HSAILISelLowering", "Func": "isOffsetFoldingLegal", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114113, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "else", "if", "(", "sType", "->", "isIntegerTy", "(", "", ")", ")", "argVT", "=", "", ";", "bool", "isLoad", "=", "Ins", "!=", "nullptr", ";", "bool", "hasFlag", "=", "InFlag", ".", "getNode", "(", ")", "!=", "nullptr", ";", "SDValue", "ArgValue", ";", "const", "VectorType", "*", "VecTy", "=", "dyn_cast", "<", "VectorType", ">", "(", "type", ")", ";", "const", "ArrayType", "*", "ArrTy", "=", "dyn_cast", "<", "ArrayType", ">", "(", "type", ")", ";", "if", "(", "VecTy", "||", "ArrTy", ")", "{", "unsigned", "num_elem", "=", "VecTy", "?", "VecTy", "->", "getNumElements", "(", ")", ":", "ArrTy", "->", "getNumElements", "(", ")", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "num_elem", ";", "++", "i", ")", "{", "if", "(", "isLoad", ")", "{", "bool", "IsSExt", "=", "(", "*", "Ins", ")", "[", "ArgNo", "]", ".", "Flags", ".", "isSExt", "(", ")", ";", "ArgValue", "=", "getArgLoad", "(", "DAG", ",", "dl", ",", "argVT", ",", "type", ",", "IsSExt", ",", "AS", ",", "Chain", ",", "ParamPtr", ",", "InFlag", ",", "i", ",", "isRetArgLoad", ",", "offset", ")", ";", "}", "else", "{", "ArgValue", "=", "getArgStore", "(", "DAG", ",", "dl", ",", "argVT", ",", "type", ",", "AS", ",", "Chain", ",", "ParamPtr", ",", "(", "*", "OutVals", ")", "[", "ArgNo", "]", ",", "i", ",", "InFlag", ",", "AAInfo", ",", "offset", ")", ";", "}", "if", "(", "ChainLink", ")", "Chain", "=", "ArgValue", ".", "getValue", "(", "isLoad", "?", "", ":", "", ")", ";", "InFlag", "=", "ArgValue", ".", "getValue", "(", "isLoad", "?", "", ":", "", ")", ";", "if", "(", "InVals", ")", "InVals", "->", "push_back", "(", "ArgValue", ")", ";", "ArgNo", "++", ";", "}", "return", "ArgValue", ";", "}", "if", "(", "StructType", "*", "STy", "=", "dyn_cast", "<", "StructType", ">", "(", "type", ")", ")", "{", "const", "StructLayout", "*", "SL", "=", "DL", ".", "getStructLayout", "(", "STy", ")", ";", "unsigned", "num_elem", "=", "STy", "->", "getNumElements", "(", ")", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "num_elem", ";", "++", "i", ")", "{", "ArgValue", "=", "LowerArgument", "(", "Chain", ",", "InFlag", ",", "ChainLink", ",", "Ins", ",", "Outs", ",", "dl", ",", "DAG", ",", "InVals", ",", "ArgNo", ",", "STy", "->", "getElementType", "(", "i", ")", ",", "AS", ",", "ParamName", ",", "ParamPtr", ",", "OutVals", ",", "isRetArgLoad", ",", "AAInfo", ",", "offset", "+", "SL", "->", "getElementOffset", "(", "i", ")", ")", ";", "if", "(", "ChainLink", ")", "Chain", "=", "ArgValue", ".", "getValue", "(", "isLoad", "?", "", ":", "", ")", ";", "if", "(", "hasFlag", ")", "InFlag", "=", "ArgValue", ".", "getValue", "(", "isLoad", "?", "", ":", "", ")", ";", "}", "return", "ArgValue", ";", "}", "if", "(", "isLoad", ")", "{", "bool", "IsSExt", "=", "(", "*", "Ins", ")", "[", "ArgNo", "]", ".", "Flags", ".", "isSExt", "(", ")", ";", "ArgValue", "=", "getArgLoad", "(", "DAG", ",", "dl", ",", "argVT", ",", "type", ",", "IsSExt", ",", "AS", ",", "Chain", ",", "ParamPtr", ",", "InFlag", ",", "", ",", "isRetArgLoad", ",", "offset", ")", ";", "}", "else", "{", "ArgValue", "=", "getArgStore", "(", "DAG", ",", "dl", ",", "argVT", ",", "type", ",", "AS", ",", "Chain", ",", "ParamPtr", ",", "(", "*", "OutVals", ")", "[", "ArgNo", "]", ",", "", ",", "InFlag", ",", "AAInfo", ",", "offset", ")", ";", "}", "if", "(", "InVals", ")", "InVals", "->", "push_back", "(", "ArgValue", ")", ";"], "ground_truth": ["ArgNo", "++", ";"], "File": "HSAILISelLowering", "Func": "LowerArgument", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114114, "Length": 484, "Cover_Rate": 0.71071953010279} {"Template_token": ["", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "num_elem", ";", "++", "i", ")", "{", "if", "(", "isLoad", ")", "{", "bool", "IsSExt", "=", "(", "*", "Ins", ")", "[", "ArgNo", "]", ".", "Flags", ".", "isSExt", "(", ")", ";", "ArgValue", "=", "getArgLoad", "(", "DAG", ",", "dl", ",", "argVT", ",", "type", ",", "IsSExt", ",", "AS", ",", "Chain", ",", "ParamPtr", ",", "InFlag", ",", "i", ",", "isRetArgLoad", ",", "offset", ")", ";", "}", "else", "{", "ArgValue", "=", "getArgStore", "(", "DAG", ",", "dl", ",", "argVT", ",", "type", ",", "AS", ",", "Chain", ",", "ParamPtr", ",", "(", "*", "OutVals", ")", "[", "ArgNo", "]", ",", "i", ",", "InFlag", ",", "AAInfo", ",", "offset", ")", ";", "}", "if", "(", "ChainLink", ")", "Chain", "=", "ArgValue", ".", "getValue", "(", "isLoad", "?", "", ":", "", ")", ";", "InFlag", "=", "ArgValue", ".", "getValue", "(", "isLoad", "?", "", ":", "", ")", ";", "if", "(", "InVals", ")", "InVals", "->", "push_back", "(", "ArgValue", ")", ";", "ArgNo", "++", ";", "}", "return", "ArgValue", ";", "}", "if", "(", "StructType", "*", "STy", "=", "dyn_cast", "<", "StructType", ">", "(", "type", ")", ")", "{", "const", "StructLayout", "*", "SL", "=", "DL", ".", "getStructLayout", "(", "STy", ")", ";", "unsigned", "num_elem", "=", "STy", "->", "getNumElements", "(", ")", ";", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "num_elem", ";", "++", "i", ")", "{", "ArgValue", "=", "LowerArgument", "(", "Chain", ",", "InFlag", ",", "ChainLink", ",", "Ins", ",", "Outs", ",", "dl", ",", "DAG", ",", "InVals", ",", "ArgNo", ",", "STy", "->", "getElementType", "(", "i", ")", ",", "AS", ",", "ParamName", ",", "ParamPtr", ",", "OutVals", ",", "isRetArgLoad", ",", "AAInfo", ",", "offset", "+", "SL", "->", "getElementOffset", "(", "i", ")", ")", ";", "if", "(", "ChainLink", ")", "Chain", "=", "ArgValue", ".", "getValue", "(", "isLoad", "?", "", ":", "", ")", ";", "if", "(", "hasFlag", ")", "InFlag", "=", "ArgValue", ".", "getValue", "(", "isLoad", "?", "", ":", "", ")", ";", "}"], "ground_truth": ["return", "ArgValue", ";"], "File": "HSAILISelLowering", "Func": "LowerArgument", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114115, "Length": 294, "Cover_Rate": 0.43171806167400884} {"Template_token": ["", "FuncName", "=", "GV", "->", "getName", "(", ")", ".", "data", "(", ")", ";", "}", "else", "llvm_unreachable", "(", "", ")", ";", "assert", "(", "funcType", "!=", "nullptr", ")", ";", "SmallVector", "<", "SDValue", ",", "", ">", "Ops", ";", "SmallVector", "<", "SDValue", ",", "", ">", "VarOps", ";", "SDVTList", "VTs", "=", "DAG", ".", "getVTList", "(", "", ",", "", ")", ";", "Type", "*", "retType", "=", "funcType", "->", "getReturnType", "(", ")", ";", "SDValue", "RetValue", ";", "if", "(", "!", "retType", "->", "isVoidTy", "(", ")", ")", "{", "MVT", "PtrVT", "=", "getPointerTy", "(", "DL", ",", "", ")", ";", "RetValue", "=", "DAG", ".", "getTargetExternalSymbol", "(", "PM", ".", "getParamName", "(", "PM", ".", "addCallRetParam", "(", "retType", ",", "PM", ".", "mangleArg", "(", "&", "Mang", ",", "FuncName", ",", "DL", ")", ")", ")", ",", "PtrVT", ")", ";", "unsigned", "NElts", ";", "Type", "*", "EmitTy", "=", "", "(", "retType", ",", "NElts", ",", "DL", ")", ";", "BrigType", "BT", "=", "getParamBrigType", "(", "EmitTy", ",", "DL", ",", "CLI", ".", "RetSExt", ")", ";", "unsigned", "Align", "=", "", "(", "retType", ",", "DL", ",", "false", ")", ";", "const", "SDValue", "ArgDeclOps", "[", "]", "=", "{", "RetValue", ",", "DAG", ".", "getTargetConstant", "(", "BT", ",", "dl", ",", "", ")", ",", "DAG", ".", "getTargetConstant", "(", "NElts", ",", "dl", ",", "PtrVT", ")", ",", "DAG", ".", "getTargetConstant", "(", "Align", ",", "dl", ",", "", ")", ",", "Chain", ",", "InFlag", "}", ";", "SDNode", "*", "ArgDeclNode", "=", "DAG", ".", "getMachineNode", "(", "", ",", "dl", ",", "VTs", ",", "ArgDeclOps", ")", ";", "SDValue", "ArgDecl", "(", "ArgDeclNode", ",", "", ")", ";", "Chain", "=", "SDValue", "(", "ArgDeclNode", ",", "", ")", ";", "InFlag", "=", "Chain", ".", "getValue", "(", "", ")", ";", "VarOps", ".", "push_back", "(", "RetValue", ")", ";", "}", "VarOps", ".", "push_back", "(", "DAG", ".", "getTargetConstant", "(", "", ",", "dl", ",", "", ")", ")", ";", "unsigned", "FirstArg", "=", "VarOps", ".", "size", "(", ")", ";", "unsigned", "int", "j", "=", "", ",", "k", "=", "", ";", "Function", "::", "const_arg_iterator", "ai", ";", "Function", "::", "const_arg_iterator", "ae", ";", "if", "(", "calleeFunc", ")", "{", "ai", "=", "calleeFunc", "->", "arg_begin", "(", ")", ";", "ae", "=", "calleeFunc", "->", "arg_end", "(", ")", ";", "}", "MVT", "ArgPtrVT", "=", "getPointerTy", "(", "DL", ",", "", ")", ";", "MDBuilder", "MDB", "(", "*", "DAG", ".", "getContext", "(", ")", ")", ";", "for", "(", "FunctionType", "::", "param_iterator", "pb", "=", "funcType", "->", "param_begin", "(", ")", ",", "pe", "=", "funcType", "->", "param_end", "(", ")", ";", "pb", "!=", "pe", ";", "++", "pb", ",", "++", "ai", ",", "++", "k", ")", "{", "Type", "*", "type", "=", "*", "pb", ";", "std", "::", "string", "ParamName", ";", "if", "(", "calleeFunc", "&&", "ai", "!=", "ae", ")", "{", "ParamName", "=", "PM", ".", "mangleArg", "(", "&", "Mang", ",", "ai", "->", "getName", "(", ")", ",", "DL", ")", ";", "}", "if", "(", "ParamName", ".", "empty", "(", ")", ")", "{"], "ground_truth": ["ParamName", "=", "", ";"], "File": "HSAILISelLowering", "Func": "LowerCall", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114116, "Length": 436, "Cover_Rate": 0.33746130030959753} {"Template_token": ["", "MachineFunctionInfo", "*", "FuncInfo", "=", "MF", ".", "getInfo", "<", "MachineFunctionInfo", ">", "(", ")", ";", "ParamManager", "&", "PM", "=", "FuncInfo", "->", "getParamManager", "(", ")", ";", "unsigned", "AS", "=", "", "(", "MF", ".", "getFunction", "(", ")", ")", "?", "", ":", "", ";", "const", "DataLayout", "&", "DL", "=", "MF", ".", "getFunction", "(", ")", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "MVT", "PtrTy", "=", "getPointerTy", "(", "DL", ",", "AS", ")", ";", "Mangler", "Mang", ";", "Function", "::", "const_arg_iterator", "AI", "=", "MF", ".", "getFunction", "(", ")", "->", "arg_begin", "(", ")", ";", "Function", "::", "const_arg_iterator", "AE", "=", "MF", ".", "getFunction", "(", ")", "->", "arg_end", "(", ")", ";", "for", "(", "unsigned", "ArgNo", "=", "", ";", "AI", "!=", "AE", ";", "++", "AI", ")", "{", "unsigned", "Param", "=", "PM", ".", "addArgumentParam", "(", "AS", ",", "*", "AI", ",", "ParamManager", "::", "mangleArg", "(", "&", "Mang", ",", "AI", "->", "getName", "(", ")", ",", "DL", ")", ")", ";", "const", "char", "*", "ParamName", "=", "PM", ".", "getParamName", "(", "Param", ")", ";", "std", "::", "string", "md", "=", "(", "AI", "->", "getName", "(", ")", "+", "", "+", "ParamName", "+", "", ")", ".", "str", "(", ")", ";", "FuncInfo", "->", "addMetadata", "(", "", "+", "md", ",", "true", ")", ";", "SDValue", "ParamPtr", "=", "DAG", ".", "getTargetExternalSymbol", "(", "ParamName", ",", "PtrTy", ")", ";", "LowerArgument", "(", "Chain", ",", "SDValue", "(", ")", ",", "false", ",", "&", "Ins", ",", "nullptr", ",", "dl", ",", "DAG", ",", "&", "InVals", ",", "ArgNo", ",", "AI", "->", "getType", "(", ")", ",", "AS", ",", "ParamName", ",", "ParamPtr", ",", "nullptr", ")", ";", "}"], "ground_truth": ["return", "Chain", ";"], "File": "HSAILISelLowering", "Func": "LowerFormalArguments", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114117, "Length": 246, "Cover_Rate": 0.8065573770491803} {"Template_token": ["", "const", "char", "*", "ParamName", "=", "PM", ".", "getParamName", "(", "Param", ")", ";", "std", "::", "string", "md", "=", "(", "AI", "->", "getName", "(", ")", "+", "", "+", "ParamName", "+", "", ")", ".", "str", "(", ")", ";", "FuncInfo", "->", "addMetadata", "(", "", "+", "md", ",", "true", ")", ";", "SDValue", "ParamPtr", "=", "DAG", ".", "getTargetExternalSymbol", "(", "ParamName", ",", "PtrTy", ")", ";", "LowerArgument", "(", "Chain", ",", "SDValue", "(", ")", ",", "false", ",", "&", "Ins", ",", "nullptr", ",", "dl", ",", "DAG", ",", "&", "InVals", ",", "ArgNo", ",", "AI", "->", "getType", "(", ")", ",", "AS", ",", "ParamName", ",", "ParamPtr", ",", "nullptr", ")", ";", "}", "return", "Chain", ";"], "ground_truth": ["}"], "File": "HSAILISelLowering", "Func": "LowerFormalArguments", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114118, "Length": 102, "Cover_Rate": 0.3344262295081967} {"Template_token": ["", "ParamManager", "&", "PM", "=", "FuncInfo", "->", "getParamManager", "(", ")", ";", "const", "Function", "*", "F", "=", "MF", ".", "getFunction", "(", ")", ";", "const", "FunctionType", "*", "funcType", "=", "F", "->", "getFunctionType", "(", ")", ";", "SmallVector", "<", "SDValue", ",", "", ">", "RetOps", ";", "RetOps", ".", "push_back", "(", "Chain", ")", ";", "const", "DataLayout", "&", "DL", "=", "F", "->", "getParent", "(", ")", "->", "getDataLayout", "(", ")", ";", "Type", "*", "type", "=", "funcType", "->", "getReturnType", "(", ")", ";", "if", "(", "!", "type", "->", "isVoidTy", "(", ")", ")", "{", "Mangler", "Mang", ";", "const", "char", "*", "SymName", "=", "PM", ".", "getParamName", "(", "PM", ".", "addReturnParam", "(", "type", ",", "PM", ".", "mangleArg", "(", "&", "Mang", ",", "F", "->", "getName", "(", ")", ",", "DL", ")", ")", ")", ";", "MVT", "ArgPtrVT", "=", "getPointerTy", "(", "DL", ",", "", ")", ";", "SDValue", "RetVariable", "=", "DAG", ".", "getTargetExternalSymbol", "(", "SymName", ",", "ArgPtrVT", ")", ";", "AAMDNodes", "MD", ";", "unsigned", "ArgNo", "=", "", ";", "LowerArgument", "(", "Chain", ",", "SDValue", "(", ")", ",", "false", ",", "nullptr", ",", "&", "Outs", ",", "dl", ",", "DAG", ",", "&", "RetOps", ",", "ArgNo", ",", "type", ",", "", ",", "nullptr", ",", "RetVariable", ",", "&", "OutVals", ",", "false", ",", "MD", ")", ";", "Chain", "=", "DAG", ".", "getNode", "(", "", ",", "dl", ",", "", ",", "RetOps", ")", ";", "}"], "ground_truth": ["return", "DAG", ".", "getNode", "(", "", ",", "dl", ",", "", ",", "Chain", ")", ";"], "File": "HSAILISelLowering", "Func": "LowerReturn", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114119, "Length": 218, "Cover_Rate": 0.734006734006734} {"Template_token": ["", "SelectionDAG", "&", "DAG", "=", "DCI", ".", "DAG", ";", "SDLoc", "dl", "=", "SDLoc", "(", "N", ")", ";", "EVT", "VT", "=", "N", "->", "getValueType", "(", "", ")", ";", "if", "(", "SHR", "&&", "(", "Opr0", "==", "Opr1", ")", "&&", "(", "Opr0", ".", "getOpcode", "(", ")", "==", "", ")", ")", "{", "if", "(", "ConstantSDNode", "*", "AndMask", "=", "dyn_cast", "<", "ConstantSDNode", ">", "(", "Opr0", ".", "getOperand", "(", "", ")", ")", ")", "{", "uint64_t", "and_mask", "=", "AndMask", "->", "getZExtValue", "(", ")", ";", "uint64_t", "shr_val", "=", "SHR", "->", "getZExtValue", "(", ")", "&", "", ";", "if", "(", "IID", "==", "", ")", "shr_val", "=", "(", "shr_val", "&", "", ")", "<<", "", ";", "and_mask", "=", "(", "(", "and_mask", ">>", "shr_val", ")", "|", "(", "and_mask", "<<", "(", "", "-", "shr_val", ")", ")", ")", "&", "", ";", "Opr0", "=", "Opr0", "->", "getOperand", "(", "", ")", ";", "return", "DAG", ".", "getNode", "(", "", ",", "SDLoc", "(", "Opr1", ")", ",", "Opr1", ".", "getValueType", "(", ")", ",", "DAG", ".", "getNode", "(", "", ",", "dl", ",", "VT", ",", "DAG", ".", "getConstant", "(", "IID", ",", "dl", ",", "", ")", ",", "Opr0", ",", "Opr0", ",", "Opr2", ")", ",", "DAG", ".", "getConstant", "(", "and_mask", ",", "dl", ",", "", ")", ")", ";", "}", "}"], "ground_truth": ["if", "(", "SHR", "&&", "(", "IID", "==", "", ")", ")", "{"], "File": "HSAILISelLowering", "Func": "PerformBitalignCombine", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114120, "Length": 205, "Cover_Rate": 0.5540540540540541} {"Template_token": ["", "if", "(", "IID", "==", "", ")", "shr_val", "=", "(", "shr_val", "&", "", ")", "<<", "", ";", "and_mask", "=", "(", "(", "and_mask", ">>", "shr_val", ")", "|", "(", "and_mask", "<<", "(", "", "-", "shr_val", ")", ")", ")", "&", "", ";", "Opr0", "=", "Opr0", "->", "getOperand", "(", "", ")", ";", "return", "DAG", ".", "getNode", "(", "", ",", "SDLoc", "(", "Opr1", ")", ",", "Opr1", ".", "getValueType", "(", ")", ",", "DAG", ".", "getNode", "(", "", ",", "dl", ",", "VT", ",", "DAG", ".", "getConstant", "(", "IID", ",", "dl", ",", "", ")", ",", "Opr0", ",", "Opr0", ",", "Opr2", ")", ",", "DAG", ".", "getConstant", "(", "and_mask", ",", "dl", ",", "", ")", ")", ";", "}", "}", "if", "(", "SHR", "&&", "(", "IID", "==", "", ")", ")", "{", "uint64_t", "shr_val", "=", "SHR", "->", "getZExtValue", "(", ")", "&", "", ";", "if", "(", "(", "shr_val", "&", "", ")", "==", "", ")", "return", "DAG", ".", "getNode", "(", "", ",", "dl", ",", "VT", ",", "DAG", ".", "getConstant", "(", "", ",", "dl", ",", "", ")", ",", "Opr0", ",", "Opr1", ",", "DAG", ".", "getConstant", "(", "shr_val", ">>", "", ",", "dl", ",", "", ")", ")", ";", "}", "return", "SDValue", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILISelLowering", "Func": "PerformBitalignCombine", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114121, "Length": 186, "Cover_Rate": 0.5027027027027027} {"Template_token": ["", "SDValue", "TargetLowering", "::", "PerformDAGCombine", "(", "SDNode", "*", "N", ",", "DAGCombinerInfo", "&", "DCI", ")", "const", "{", "switch", "(", "N", "->", "getOpcode", "(", ")", ")", "{", "case", "", ":", "return", "PerformIntrinsic_Wo_ChainCombine", "(", "N", ",", "DCI", ")", ";", "default", ":", "break", ";"], "ground_truth": ["}"], "File": "HSAILISelLowering", "Func": "PerformDAGCombine", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114122, "Length": 40, "Cover_Rate": 0.8333333333333334} {"Template_token": ["", "unsigned", "IID", "=", "cast", "<", "ConstantSDNode", ">", "(", "N", "->", "getOperand", "(", "", ")", ")", "->", "getZExtValue", "(", ")", ";"], "ground_truth": ["switch", "(", "IID", ")", "{"], "File": "HSAILISelLowering", "Func": "PerformIntrinsic_Wo_ChainCombine", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114123, "Length": 25, "Cover_Rate": 0.3125} {"Template_token": ["", "TargetLowering", "::", "~", "TargetLowering", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILISelLowering", "Func": "~HSAILTargetLowering", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114124, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "TargetLowering", "::", "~", "TargetLowering", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILISelLowering", "Func": "~HSAILTargetLowering", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114125, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "Kernel", "(", ")", "{", "curSize", "=", "", ";", "curRSize", "=", "", ";", "curHWSize", "=", "", ";", "curHWRSize", "=", "", ";", "mKernel", "=", "false", ";", "sgv", "=", "nullptr", ";", "EnqueuesKernel", "=", "false", ";", "KernelIndex", "=", "-", "", ";"], "ground_truth": ["}"], "File": "HSAILKernel", "Func": "HSAILKernel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114126, "Length": 38, "Cover_Rate": 1.0} {"Template_token": ["", "Kernel", "(", ")", "{", "curSize", "=", "", ";", "curRSize", "=", "", ";"], "ground_truth": ["curHWSize", "=", "", ";"], "File": "HSAILKernel", "Func": "HSAILKernel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114127, "Length": 16, "Cover_Rate": 0.42105263157894735} {"Template_token": ["", "mHasRWR", "=", "false", ";"], "ground_truth": ["}"], "File": "HSAILKernel", "Func": "_HSAILkernelArgRec", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114128, "Length": 5, "Cover_Rate": 0.38461538461538464} {"Template_token": ["", "mArgRegs", ".", "push_back", "(", "arg", ")", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "addArgReg", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114130, "Length": 8, "Cover_Rate": 0.5333333333333333} {"Template_token": ["", "void", "addArgReg", "(", "unsigned", "arg", ")", "{"], "ground_truth": ["mArgRegs", ".", "push_back", "(", "arg", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "addArgReg", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114131, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "mErrors", ".", "insert", "(", "msg", ")", ";", "}", "else", "if", "(", "val", "==", "ALWAYS", ")", "{", "mErrors", ".", "insert", "(", "msg", ")", ";", "}"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "addErrorMsg", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114134, "Length": 25, "Cover_Rate": 0.4032258064516129} {"Template_token": ["", "if", "(", "kernelOnly", ")", "{"], "ground_truth": ["mMetadataKernel", ".", "push_back", "(", "md", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "addMetadata", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114137, "Length": 12, "Cover_Rate": 0.3157894736842105} {"Template_token": ["", "mOperands", ".", "resize", "(", "(", "unsigned", ")", "(", "idx", "+", "", ")", ")", ";", "mOperands", "[", "(", "unsigned", ")", "idx", "]", "=", "size", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "addOperand", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114138, "Length": 25, "Cover_Rate": 0.6756756756756757} {"Template_token": ["", "mOperands", ".", "resize", "(", "(", "unsigned", ")", "(", "idx", "+", "", ")", ")", ";"], "ground_truth": ["mOperands", "[", "(", "unsigned", ")", "idx", "]", "=", "size", ";"], "File": "HSAILMachineFunctionInfo", "Func": "addOperand", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114139, "Length": 24, "Cover_Rate": 0.6486486486486487} {"Template_token": ["", "void", "add_read_ptr", "(", "const", "Value", "*", "ptr", ")", "{"], "ground_truth": ["mReadPtr", ".", "insert", "(", "ptr", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "add_read_ptr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114141, "Length": 16, "Cover_Rate": 0.9411764705882353} {"Template_token": ["", "error_iterator", "errors_begin", "(", ")", "{"], "ground_truth": ["return", "mErrors", ".", "begin", "(", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "errors_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114144, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "bool", "errors_empty", "(", ")", "{"], "ground_truth": ["return", "mErrors", ".", "empty", "(", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "errors_empty", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114147, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "return", "mErrors", ".", "end", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "errors_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114148, "Length": 8, "Cover_Rate": 0.6153846153846154} {"Template_token": ["", "return", "iterator_range", "<", "func_iterator", ">", "(", "func_begin", "(", ")", ",", "func_end", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "funcs", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114150, "Length": 16, "Cover_Rate": 0.64} {"Template_token": ["", "func_iterator", "func_begin", "(", ")", "{", "return", "mFuncs", ".", "begin", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "func_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114153, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "return", "mFuncs", ".", "empty", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "func_empty", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114154, "Length": 8, "Cover_Rate": 0.6153846153846154} {"Template_token": ["", "bool", "func_empty", "(", ")", "{"], "ground_truth": ["return", "mFuncs", ".", "empty", "(", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "func_empty", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114155, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "func_iterator", "func_end", "(", ")", "{"], "ground_truth": ["return", "mFuncs", ".", "end", "(", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "func_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114156, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "func_md_iterator", "func_md_begin", "(", ")", "{"], "ground_truth": ["return", "mMetadataFunc", ".", "begin", "(", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "func_md_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114158, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "func_md_iterator", "func_md_begin", "(", ")", "{", "return", "mMetadataFunc", ".", "begin", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "func_md_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114159, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "return", "mMetadataFunc", ".", "end", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "func_md_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114161, "Length": 8, "Cover_Rate": 0.6153846153846154} {"Template_token": ["", "return", "mFuncs", ".", "size", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "func_size", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114162, "Length": 8, "Cover_Rate": 0.6153846153846154} {"Template_token": ["", "size_t", "func_size", "(", ")", "{"], "ground_truth": ["return", "mFuncs", ".", "size", "(", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "func_size", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114163, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "unsigned", "getArgReg", "(", "unsigned", "arg", ")", "{", "return", "(", "arg", "<", "mArgRegs", ".", "size", "(", ")", ")", "?", "mArgRegs", "[", "arg", "]", ":", "arg", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "getArgReg", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114164, "Length": 26, "Cover_Rate": 1.0} {"Template_token": ["", "return", "(", "arg", "<", "mArgRegs", ".", "size", "(", ")", ")", "?", "mArgRegs", "[", "arg", "]", ":", "arg", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "getArgReg", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114165, "Length": 19, "Cover_Rate": 0.7307692307692307} {"Template_token": ["", "++", "begin", ")", "{", "if", "(", "!", "strcmp", "(", "begin", "->", "name", ".", "data", "(", ")", ",", "arg", ".", "c_str", "(", ")", ")", ")", "{", "return", "&", "(", "*", "begin", ")", ";", "}", "}"], "ground_truth": ["return", "nullptr", ";"], "File": "HSAILMachineFunctionInfo", "Func": "getConstPtr", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114166, "Length": 37, "Cover_Rate": 0.3523809523809524} {"Template_token": ["", "if", "(", "mGroupMemSize", "==", "-", "", ")", "{", "const", "DataLayout", "&", "DL", "=", "mMF", "->", "getDataLayout", "(", ")", ";", "mGroupMemSize", "=", "", ";", "SmallPtrSet", "<", "const", "GlobalVariable", "*", ",", "", ">", "thisFuncGrpVarsSet", ";", "for", "(", "MachineFunction", "::", "const_iterator", "I", "=", "mMF", "->", "begin", "(", ")", ",", "E", "=", "mMF", "->", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "for", "(", "MachineBasicBlock", "::", "const_iterator", "II", "=", "I", "->", "begin", "(", ")", ",", "IE", "=", "I", "->", "end", "(", ")", ";", "II", "!=", "IE", ";", "++", "II", ")", "{", "const", "MachineInstr", "*", "LastMI", "=", "II", ";", "for", "(", "unsigned", "int", "opNum", "=", "", ";", "opNum", "<", "LastMI", "->", "getNumOperands", "(", ")", ";", "opNum", "++", ")", "{", "const", "MachineOperand", "&", "MO", "=", "LastMI", "->", "getOperand", "(", "opNum", ")", ";", "if", "(", "MO", ".", "getType", "(", ")", "==", "MachineOperand", "::", "MO_GlobalAddress", ")", "{", "if", "(", "const", "GlobalVariable", "*", "GV", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "MO", ".", "getGlobal", "(", ")", ")", ")", "{"], "ground_truth": ["if", "(", "GV", "->", "getType", "(", ")", "->", "getAddressSpace", "(", ")", "==", "", ")", "{"], "File": "HSAILMachineFunctionInfo", "Func": "getGroupSize", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114167, "Length": 178, "Cover_Rate": 0.7295081967213115} {"Template_token": ["", "Kernel", "*", "MachineFunctionInfo", "::", "getKernel", "(", ")", "{"], "ground_truth": ["return", "mKernel", ";"], "File": "HSAILMachineFunctionInfo", "Func": "getKernel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114168, "Length": 11, "Cover_Rate": 0.9166666666666666} {"Template_token": ["", "size_t", "PrintfInfo", "::", "getNumOperands", "(", ")", "{"], "ground_truth": ["return", "mOperands", ".", "size", "(", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "getNumOperands", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114170, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "uint32_t", "PrintfInfo", "::", "getOperandID", "(", "uint32_t", "idx", ")", "{", "return", "mOperands", "[", "idx", "]", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "getOperandID", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114171, "Length": 16, "Cover_Rate": 1.0} {"Template_token": ["", "return", "ParamManager", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "getParamManager", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114173, "Length": 4, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "return", "ParamManager", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "getParamManager", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114174, "Length": 4, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "return", "mPrintfID", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "getPrintfID", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114175, "Length": 4, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "const", "MachineOperand", "&", "MO", "=", "LastMI", "->", "getOperand", "(", "opNum", ")", ";", "if", "(", "MO", ".", "getType", "(", ")", "==", "MachineOperand", "::", "MO_GlobalAddress", ")", "{", "if", "(", "const", "GlobalVariable", "*", "GV", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "MO", ".", "getGlobal", "(", ")", ")", ")", "{", "if", "(", "GV", "->", "getType", "(", ")", "->", "getAddressSpace", "(", ")", "==", "", ")", "{", "if", "(", "thisFuncPvtVarsSet", ".", "insert", "(", "GV", ")", ".", "second", ")", "{", "mPrivateMemSize", "+=", "DL", ".", "getTypeAllocSize", "(", "GV", "->", "getType", "(", ")", "->", "getElementType", "(", ")", ")", ";", "}", "}", "}", "}", "}", "}", "}", "mPrivateMemSize", "=", "(", "(", "mPrivateMemSize", "+", "", ")", "&", "~", "", ")", ";", "}"], "ground_truth": ["return", "(", "uint32_t", ")", "mPrivateMemSize", ";"], "File": "HSAILMachineFunctionInfo", "Func": "getPrivateSize", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114176, "Length": 116, "Cover_Rate": 0.47540983606557374} {"Template_token": ["", "return", "RegisterPartitioning", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "getRegisterPartitioning", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114178, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "if", "(", "mScratchSize", "==", "-", "", ")", "{", "mScratchSize", "=", "", ";", "Function", "::", "const_arg_iterator", "I", "=", "mMF", "->", "getFunction", "(", ")", "->", "arg_begin", "(", ")", ";", "Function", "::", "const_arg_iterator", "Ie", "=", "mMF", "->", "getFunction", "(", ")", "->", "arg_end", "(", ")", ";"], "ground_truth": ["while", "(", "I", "!=", "Ie", ")", "{"], "File": "HSAILMachineFunctionInfo", "Func": "getScratchSize", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114179, "Length": 49, "Cover_Rate": 0.47572815533980584} {"Template_token": ["", "const", "TargetMachine", "*", "TM", "=", "reinterpret_cast", "<", "const", "TargetMachine", "*", ">", "(", "&", "mMF", "->", "getTarget", "(", ")", ")", ";", "bool", "addStackSize", "=", "TM", "->", "getOptLevel", "(", ")", "==", "CodeGenOpt", "::", "None", ";", "Function", "::", "const_arg_iterator", "I", "=", "mMF", "->", "getFunction", "(", ")", "->", "arg_begin", "(", ")", ";", "Function", "::", "const_arg_iterator", "Ie", "=", "mMF", "->", "getFunction", "(", ")", "->", "arg_end", "(", ")", ";"], "ground_truth": ["while", "(", "I", "!=", "Ie", ")", "{"], "File": "HSAILMachineFunctionInfo", "Func": "getStackSize", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114180, "Length": 70, "Cover_Rate": 0.33175355450236965} {"Template_token": ["", "return", "HasScavengerSpill", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "hasScavengerSpill", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114182, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "bool", "hasSpilledCRs", "(", ")", "const", "{"], "ground_truth": ["return", "HasSpilledCRs", ";"], "File": "HSAILMachineFunctionInfo", "Func": "hasSpilledCRs", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114184, "Length": 9, "Cover_Rate": 0.9} {"Template_token": ["", "ModuleInfo", "*", "AMI", "=", "&", "(", "mmi", ".", "getObjFileInfo", "<", "ModuleInfo", ">", "(", ")", ")", ";", "AMI", "->", "processModule", "(", "mmi", ".", "getModule", "(", ")", ",", "TM", ")", ";", "for", "(", "Module", "::", "const_iterator", "I", "=", "F", "->", "getParent", "(", ")", "->", "begin", "(", ")", ",", "E", "=", "F", "->", "getParent", "(", ")", "->", "end", "(", ")", ";", "I", "!=", "E", ";", "++", "I", ")", "{", "AMI", "->", "getOrCreateFunctionID", "(", "I", "->", "getName", "(", ")", ")", ";", "}", "mSTM", "=", "TM", "->", "getSubtargetImpl", "(", ")", ";", "mKernel", "=", "AMI", "->", "getKernel", "(", "F", "->", "getName", "(", ")", ")", ";", "mScratchSize", "=", "-", "", ";", "mPrivateMemSize", "=", "-", "", ";", "mGroupMemSize", "=", "-", "", ";", "mArgSize", "=", "-", "", ";", "mStackSize", "=", "-", "", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "HSAILMachineFunctionInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114185, "Length": 125, "Cover_Rate": 0.6097560975609756} {"Template_token": ["", "const", "ConstantExpr", "*", "nameField", "=", "dyn_cast", "<", "ConstantExpr", ">", "(", "CA", "->", "getOperand", "(", "start", ")", ")", ";", "if", "(", "!", "nameField", ")", "continue", ";", "const", "GlobalVariable", "*", "nameGV", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "nameField", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "nameGV", "||", "!", "nameGV", "->", "hasInitializer", "(", ")", ")", "continue", ";", "const", "ConstantDataSequential", "*", "nameArray", "=", "dyn_cast", "<", "ConstantDataSequential", ">", "(", "nameGV", "->", "getInitializer", "(", ")", ")", ";", "if", "(", "!", "nameArray", ")", "continue", ";", "std", "::", "string", "nameStr", "=", "nameArray", "->", "getAsString", "(", ")", ";"], "ground_truth": ["if", "(", "!", "nameStr", ".", "compare", "(", "", ",", "nameStr", ".", "length", "(", ")", "-", "", ",", "argName", ")", ")", "return", "true", ";"], "File": "HSAILMachineFunctionInfo", "Func": "isConstantArgument", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114186, "Length": 115, "Cover_Rate": 0.4356060606060606} {"Template_token": ["", "bool", "MachineFunctionInfo", "::", "isKernel", "(", ")", "const", "{", "return", "mKernel", "!=", "nullptr", "&&", "mKernel", "->", "mKernel", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "isKernel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114188, "Length": 18, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "!", "mSTM", "->", "supportMetadata30", "(", ")", ")", "return", "false", ";", "std", "::", "string", "signedNames", "=", "", ";", "std", "::", "string", "argName", "=", "ptr", "->", "getName", "(", ")", ";", "if", "(", "!", "mMF", ")", "return", "false", ";", "signedNames", "+=", "mMF", "->", "getFunction", "(", ")", "->", "getName", "(", ")", ";", "const", "GlobalVariable", "*", "GV", "=", "mMF", "->", "getFunction", "(", ")", "->", "getParent", "(", ")", "->", "getGlobalVariable", "(", "signedNames", ")", ";", "if", "(", "!", "GV", "||", "!", "GV", "->", "hasInitializer", "(", ")", ")", "return", "false", ";", "const", "ConstantArray", "*", "CA", "=", "dyn_cast", "<", "ConstantArray", ">", "(", "GV", "->", "getInitializer", "(", ")", ")", ";", "if", "(", "!", "CA", ")", "return", "false", ";", "for", "(", "uint32_t", "start", "=", "", ",", "stop", "=", "CA", "->", "getNumOperands", "(", ")", ";", "start", "<", "stop", ";", "++", "start", ")", "{", "const", "ConstantExpr", "*", "nameField", "=", "dyn_cast", "<", "ConstantExpr", ">", "(", "CA", "->", "getOperand", "(", "start", ")", ")", ";", "if", "(", "!", "nameField", ")", "continue", ";", "const", "GlobalVariable", "*", "nameGV", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "nameField", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "nameGV", "||", "!", "nameGV", "->", "hasInitializer", "(", ")", ")", "continue", ";", "const", "ConstantDataSequential", "*", "nameArray", "=", "dyn_cast", "<", "ConstantDataSequential", ">", "(", "nameGV", "->", "getInitializer", "(", ")", ")", ";", "if", "(", "!", "nameArray", ")", "continue", ";", "std", "::", "string", "nameStr", "=", "nameArray", "->", "getAsString", "(", ")", ";", "if", "(", "!", "nameStr", ".", "compare", "(", "", ",", "nameStr", ".", "length", "(", ")", "-", "", ",", "argName", ")", ")", "return", "true", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "isRestrictPointer", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114189, "Length": 249, "Cover_Rate": 0.9431818181818182} {"Template_token": ["", "bool", "MachineFunctionInfo", "::", "isRestrictPointer", "(", "const", "Value", "*", "ptr", ")", "{", "if", "(", "!", "mSTM", "->", "supportMetadata30", "(", ")", ")", "return", "false", ";", "std", "::", "string", "signedNames", "=", "", ";", "std", "::", "string", "argName", "=", "ptr", "->", "getName", "(", ")", ";", "if", "(", "!", "mMF", ")", "return", "false", ";", "signedNames", "+=", "mMF", "->", "getFunction", "(", ")", "->", "getName", "(", ")", ";", "const", "GlobalVariable", "*", "GV", "=", "mMF", "->", "getFunction", "(", ")", "->", "getParent", "(", ")", "->", "getGlobalVariable", "(", "signedNames", ")", ";"], "ground_truth": ["if", "(", "!", "GV", "||", "!", "GV", "->", "hasInitializer", "(", ")", ")", "return", "false", ";"], "File": "HSAILMachineFunctionInfo", "Func": "isRestrictPointer", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114190, "Length": 96, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "const", "GlobalVariable", "*", "nameGV", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "nameField", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "nameGV", "||", "!", "nameGV", "->", "hasInitializer", "(", ")", ")", "continue", ";", "const", "ConstantDataSequential", "*", "nameArray", "=", "dyn_cast", "<", "ConstantDataSequential", ">", "(", "nameGV", "->", "getInitializer", "(", ")", ")", ";", "if", "(", "!", "nameArray", ")", "continue", ";", "std", "::", "string", "nameStr", "=", "nameArray", "->", "getAsString", "(", ")", ";"], "ground_truth": ["if", "(", "!", "nameStr", ".", "compare", "(", "", ",", "nameStr", ".", "length", "(", ")", "-", "", ",", "argName", ")", ")", "return", "true", ";"], "File": "HSAILMachineFunctionInfo", "Func": "isSignedIntType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114191, "Length": 90, "Cover_Rate": 0.3409090909090909} {"Template_token": ["", "const", "GlobalVariable", "*", "GV", "=", "mMF", "->", "getFunction", "(", ")", "->", "getParent", "(", ")", "->", "getGlobalVariable", "(", "signedNames", ")", ";", "if", "(", "!", "GV", "||", "!", "GV", "->", "hasInitializer", "(", ")", ")", "return", "false", ";", "const", "ConstantArray", "*", "CA", "=", "dyn_cast", "<", "ConstantArray", ">", "(", "GV", "->", "getInitializer", "(", ")", ")", ";", "if", "(", "!", "CA", ")", "return", "false", ";", "for", "(", "uint32_t", "start", "=", "", ",", "stop", "=", "CA", "->", "getNumOperands", "(", ")", ";", "start", "<", "stop", ";", "++", "start", ")", "{", "const", "ConstantExpr", "*", "nameField", "=", "dyn_cast", "<", "ConstantExpr", ">", "(", "CA", "->", "getOperand", "(", "start", ")", ")", ";", "if", "(", "!", "nameField", ")", "continue", ";", "const", "GlobalVariable", "*", "nameGV", "=", "dyn_cast", "<", "GlobalVariable", ">", "(", "nameField", "->", "getOperand", "(", "", ")", ")", ";", "if", "(", "!", "nameGV", "||", "!", "nameGV", "->", "hasInitializer", "(", ")", ")", "continue", ";", "const", "ConstantDataSequential", "*", "nameArray", "=", "dyn_cast", "<", "ConstantDataSequential", ">", "(", "nameGV", "->", "getInitializer", "(", ")", ")", ";", "if", "(", "!", "nameArray", ")", "continue", ";", "std", "::", "string", "nameStr", "=", "nameArray", "->", "getAsString", "(", ")", ";", "if", "(", "!", "nameStr", ".", "compare", "(", "", ",", "nameStr", ".", "length", "(", ")", "-", "", ",", "argName", ")", ")", "return", "true", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "isVolatilePointer", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114192, "Length": 199, "Cover_Rate": 0.7537878787878788} {"Template_token": ["", "kernel_md_iterator", "kernel_md_begin", "(", ")", "{", "return", "mMetadataKernel", ".", "begin", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "kernel_md_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114194, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "kernel_md_iterator", "kernel_md_end", "(", ")", "{"], "ground_truth": ["return", "mMetadataKernel", ".", "end", "(", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "kernel_md_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114195, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "kernel_md_iterator", "kernel_md_end", "(", ")", "{", "return", "mMetadataKernel", ".", "end", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "kernel_md_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114196, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "return", "mReadPtr", ".", "count", "(", "ptr", ")", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "read_ptr_count", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114197, "Length": 9, "Cover_Rate": 0.5} {"Template_token": ["", "bool", "read_size", "(", ")", "{", "return", "mReadPtr", ".", "size", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "read_size", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114199, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "read_size", "(", ")", "{", "return", "mReadPtr", ".", "size", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "read_size", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114200, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "sampler_iterator", "sampler_begin", "(", ")", "{", "return", "mSamplerMap", ".", "begin", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "sampler_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114202, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "sema_iterator", "sema_begin", "(", ")", "{"], "ground_truth": ["return", "mSemaphore", ".", "begin", "(", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "sema_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114205, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "sema_iterator", "sema_end", "(", ")", "{"], "ground_truth": ["return", "mSemaphore", ".", "end", "(", ")", ";"], "File": "HSAILMachineFunctionInfo", "Func": "sema_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114210, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "return", "mSemaphore", ".", "size", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "sema_size", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114213, "Length": 8, "Cover_Rate": 0.6153846153846154} {"Template_token": ["", "void", "setHasScavengerSpill", "(", "bool", "Spill", "=", "true", ")", "{", "HasScavengerSpill", "=", "Spill", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "setHasScavengerSpill", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114215, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "void", "setHasScavengerSpill", "(", "bool", "Spill", "=", "true", ")", "{"], "ground_truth": ["HasScavengerSpill", "=", "Spill", ";"], "File": "HSAILMachineFunctionInfo", "Func": "setHasScavengerSpill", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114216, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "HasSpilledCRs", "=", "Spill", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "setHasSpilledCRs", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114217, "Length": 5, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "HasSpilledCRs", "=", "Spill", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "setHasSpilledCRs", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114218, "Length": 5, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "mPrintfID", "=", "id", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "setPrintfID", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114220, "Length": 5, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "void", "setUsesLocal", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "setUsesLocal", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114223, "Length": 6, "Cover_Rate": 1.0} {"Template_token": ["", "void", "setUsesLocal", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "setUsesLocal", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114224, "Length": 6, "Cover_Rate": 1.0} {"Template_token": ["", "void", "setUsesRegion", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "setUsesRegion", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114225, "Length": 6, "Cover_Rate": 1.0} {"Template_token": ["", "void", "setUsesRegion", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "setUsesRegion", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114226, "Length": 6, "Cover_Rate": 1.0} {"Template_token": ["", "mRawUAV", ".", "insert", "(", "id", ")", ";"], "ground_truth": ["}"], "File": "HSAILMachineFunctionInfo", "Func": "uav_insert", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114228, "Length": 8, "Cover_Rate": 0.5333333333333333} {"Template_token": ["", "if", "(", "curConst", ")", "{", "return", "curConst", "->", "usesHardware", ";"], "ground_truth": ["}", "else", "{"], "File": "HSAILMachineFunctionInfo", "Func": "usesHWConstant", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114229, "Length": 13, "Cover_Rate": 0.30952380952380953} {"Template_token": ["", "MCSection", "*", "MCAsmInfo", "::", "getNonexecutableStackSection", "(", "MCContext", "&", "Ctx", ")", "const", "{"], "ground_truth": ["return", "nullptr", ";"], "File": "HSAILMCAsmInfo", "Func": "getNonexecutableStackSection", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114230, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "SupportsQuotedNames", "=", "false", ";", "HasDotTypeDotSizeDirective", "=", "false", ";", "HasSingleParameterDotFile", "=", "false", ";", "SupportsDebugInformation", "=", "false", ";", "PointerSize", "=", "TT", ".", "getArch", "(", ")", "==", "Triple", "::", "hsail64", "?", "", ":", "", ";", "ExceptionsType", "=", "ExceptionHandling", "::", "None", ";"], "ground_truth": ["CommentString", "=", "", ";"], "File": "HSAILMCAsmInfo", "Func": "HSAILMCAsmInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114232, "Length": 42, "Cover_Rate": 0.5185185185185185} {"Template_token": ["", "return", "isValidChar", "(", "C", ")", "&&", "C", "!=", "'.'", "&&", "!", "(", "C", ">=", "'0'", "&&", "C", "<=", "'9'", ")", ";"], "ground_truth": ["}"], "File": "HSAILMCAsmInfo", "Func": "isValidFirstChar", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114235, "Length": 22, "Cover_Rate": 0.7333333333333333} {"Template_token": ["", "static", "bool", "isValidFirstChar", "(", "char", "C", ")", "{", "return", "isValidChar", "(", "C", ")", "&&", "C", "!=", "'.'", "&&", "!", "(", "C", ">=", "'0'", "&&", "C", "<=", "'9'", ")", ";"], "ground_truth": ["}"], "File": "HSAILMCAsmInfo", "Func": "isValidFirstChar", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114236, "Length": 30, "Cover_Rate": 1.0} {"Template_token": ["", "return", "new", "MCCodeEmitter", "(", "MCII", ",", "MRI", ",", "Ctx", ")", ";"], "ground_truth": ["}"], "File": "HSAILMCCodeEmitter", "Func": "createHSAILMCCodeEmitter", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114237, "Length": 12, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "return", "new", "MCCodeEmitter", "(", "MCII", ",", "MRI", ",", "Ctx", ")", ";"], "ground_truth": ["}"], "File": "HSAILMCCodeEmitter", "Func": "createHSAILMCCodeEmitter", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114238, "Length": 12, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "DummyMCCodeEmitter", "(", "const", "MCInstrInfo", "&", "II", ",", "const", "MCRegisterInfo", "&", "MRI", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "MCContext", "&", "Ctx", ")", ":", "m_ii", "(", "II", ")", ",", "m_sti", "(", "STI", ")", ",", "m_ctx", "(", "Ctx", ")", "{"], "ground_truth": ["}"], "File": "HSAILMCCodeEmitter", "Func": "DummyMCCodeEmitter", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114239, "Length": 38, "Cover_Rate": 1.0} {"Template_token": ["", "DummyMCCodeEmitter", "(", "const", "MCInstrInfo", "&", "II", ",", "const", "MCRegisterInfo", "&", "MRI", ",", "const", "MCSubtargetInfo", "&", "STI", ",", "MCContext", "&", "Ctx", ")", ":", "m_ii", "(", "II", ")", ",", "m_sti", "(", "STI", ")", ",", "m_ctx", "(", "Ctx", ")", "{"], "ground_truth": ["}"], "File": "HSAILMCCodeEmitter", "Func": "DummyMCCodeEmitter", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114240, "Length": 38, "Cover_Rate": 1.0} {"Template_token": ["", "void", "MCCodeEmitter", "::", "EmitConstant", "(", "uint64_t", "Val", ",", "unsigned", "Size", ",", "unsigned", "&", "CurByte", ",", "raw_ostream", "&", "OS", ")", "const", "{"], "ground_truth": ["llvm_unreachable", "(", "", ")", ";"], "File": "HSAILMCCodeEmitter", "Func": "EmitConstant", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114242, "Length": 26, "Cover_Rate": 0.9629629629629629} {"Template_token": ["", "void", "MCCodeEmitter", "::", "EmitImmediate", "(", "const", "MCOperand", "&", "DispOp", ",", "unsigned", "Size", ",", "MCFixupKind", "FixupKind", ",", "unsigned", "&", "CurByte", ",", "raw_ostream", "&", "OS", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "int", "ImmOffset", ")", "const", "{", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "HSAILMCCodeEmitter", "Func": "EmitImmediate", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114244, "Length": 42, "Cover_Rate": 1.0} {"Template_token": ["", "void", "MCCodeEmitter", "::", "EmitRegModRMByte", "(", "const", "MCOperand", "&", "ModRMReg", ",", "unsigned", "RegOpcodeFld", ",", "unsigned", "&", "CurByte", ",", "raw_ostream", "&", "OS", ")", "const", "{", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "HSAILMCCodeEmitter", "Func": "EmitRegModRMByte", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114245, "Length": 29, "Cover_Rate": 1.0} {"Template_token": ["", "void", "MCCodeEmitter", "::", "EmitRegModRMByte", "(", "const", "MCOperand", "&", "ModRMReg", ",", "unsigned", "RegOpcodeFld", ",", "unsigned", "&", "CurByte", ",", "raw_ostream", "&", "OS", ")", "const", "{"], "ground_truth": ["llvm_unreachable", "(", "", ")", ";"], "File": "HSAILMCCodeEmitter", "Func": "EmitRegModRMByte", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114246, "Length": 28, "Cover_Rate": 0.9655172413793104} {"Template_token": ["", "void", "MCCodeEmitter", "::", "EmitSegmentOverridePrefix", "(", "uint64_t", "TSFlags", ",", "unsigned", "&", "CurByte", ",", "int", "MemOperand", ",", "const", "MCInst", "&", "MI", ",", "raw_ostream", "&", "OS", ")", "const", "{", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "HSAILMCCodeEmitter", "Func": "EmitSegmentOverridePrefix", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114247, "Length": 32, "Cover_Rate": 1.0} {"Template_token": ["", "void", "MCCodeEmitter", "::", "EmitSegmentOverridePrefix", "(", "uint64_t", "TSFlags", ",", "unsigned", "&", "CurByte", ",", "int", "MemOperand", ",", "const", "MCInst", "&", "MI", ",", "raw_ostream", "&", "OS", ")", "const", "{"], "ground_truth": ["llvm_unreachable", "(", "", ")", ";"], "File": "HSAILMCCodeEmitter", "Func": "EmitSegmentOverridePrefix", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114248, "Length": 31, "Cover_Rate": 0.96875} {"Template_token": ["", "void", "MCCodeEmitter", "::", "EmitSIBByte", "(", "unsigned", "SS", ",", "unsigned", "Index", ",", "unsigned", "Base", ",", "unsigned", "&", "CurByte", ",", "raw_ostream", "&", "OS", ")", "const", "{"], "ground_truth": ["llvm_unreachable", "(", "", ")", ";"], "File": "HSAILMCCodeEmitter", "Func": "EmitSIBByte", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114249, "Length": 29, "Cover_Rate": 0.9666666666666667} {"Template_token": ["", "void", "MCCodeEmitter", "::", "encodeInstruction", "(", "const", "MCInst", "&", "MI", ",", "raw_ostream", "&", "OS", ",", "SmallVectorImpl", "<", "MCFixup", ">", "&", "Fixups", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "const", "{"], "ground_truth": ["llvm_unreachable", "(", "", ")", ";"], "File": "HSAILMCCodeEmitter", "Func": "encodeInstruction", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114250, "Length": 33, "Cover_Rate": 0.9705882352941176} {"Template_token": ["", "MCCodeEmitter", "(", "const", "MCInstrInfo", "&", "mcii", ",", "const", "MCRegisterInfo", "&", "mri", ",", "MCContext", "&", "ctx", ")", ":", "MCII", "(", "mcii", ")", ",", "MRI", "(", "mri", ")", ",", "Ctx", "(", "ctx", ")", "{"], "ground_truth": ["}"], "File": "HSAILMCCodeEmitter", "Func": "HSAILMCCodeEmitter", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114251, "Length": 33, "Cover_Rate": 1.0} {"Template_token": ["", "MCCodeEmitter", "(", "const", "MCInstrInfo", "&", "mcii", ",", "const", "MCRegisterInfo", "&", "mri", ",", "MCContext", "&", "ctx", ")", ":", "MCII", "(", "mcii", ")", ",", "MRI", "(", "mri", ")", ",", "Ctx", "(", "ctx", ")", "{"], "ground_truth": ["}"], "File": "HSAILMCCodeEmitter", "Func": "HSAILMCCodeEmitter", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114252, "Length": 33, "Cover_Rate": 1.0} {"Template_token": ["", "~", "DummyMCCodeEmitter", "(", ")", "override", "{"], "ground_truth": ["}"], "File": "HSAILMCCodeEmitter", "Func": "~DummyMCCodeEmitter", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114253, "Length": 7, "Cover_Rate": 1.0} {"Template_token": ["", "~", "DummyMCCodeEmitter", "(", ")", "override", "{"], "ground_truth": ["}"], "File": "HSAILMCCodeEmitter", "Func": "~DummyMCCodeEmitter", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114254, "Length": 7, "Cover_Rate": 1.0} {"Template_token": ["", "~", "MCCodeEmitter", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILMCCodeEmitter", "Func": "~HSAILMCCodeEmitter", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114255, "Length": 6, "Cover_Rate": 1.0} {"Template_token": ["", "~", "MCCodeEmitter", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILMCCodeEmitter", "Func": "~HSAILMCCodeEmitter", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114256, "Length": 6, "Cover_Rate": 1.0} {"Template_token": ["", "MCInstLower", "::", "MCInstLower", "(", "MCContext", "&", "ctx", ",", "const", "AsmPrinter", "&", "ap", ")", ":", "Ctx", "(", "ctx", ")", ",", "AP", "(", "ap", ")", "{"], "ground_truth": ["}"], "File": "HSAILMCInstLower", "Func": "HSAILMCInstLower", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114257, "Length": 25, "Cover_Rate": 1.0} {"Template_token": ["", "MCInstLower", "::", "MCInstLower", "(", "MCContext", "&", "ctx", ",", "const", "AsmPrinter", "&", "ap", ")", ":", "Ctx", "(", "ctx", ")", ",", "AP", "(", "ap", ")", "{"], "ground_truth": ["}"], "File": "HSAILMCInstLower", "Func": "HSAILMCInstLower", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114258, "Length": 25, "Cover_Rate": 1.0} {"Template_token": ["", "llvm_unreachable", "(", "", ")", ";", "case", "MachineOperand", "::", "MO_FPImmediate", ":", "{", "const", "APFloat", "&", "FloatValue", "=", "MO", ".", "getFPImm", "(", ")", "->", "getValueAPF", "(", ")", ";", "if", "(", "&", "FloatValue", ".", "getSemantics", "(", ")", "==", "&", "APFloat", "::", "IEEEsingle", ")", "MCOp", "=", "MCOperand", "::", "createFPImm", "(", "FloatValue", ".", "convertToFloat", "(", ")", ")", ";", "else", "if", "(", "&", "FloatValue", ".", "getSemantics", "(", ")", "==", "&", "APFloat", "::", "IEEEdouble", ")", "MCOp", "=", "MCOperand", "::", "createFPImm", "(", "FloatValue", ".", "convertToDouble", "(", ")", ")", ";", "else", "llvm_unreachable", "(", "", ")", ";", "break", ";", "}", "case", "MachineOperand", "::", "MO_Immediate", ":", "MCOp", "=", "MCOperand", "::", "createImm", "(", "MO", ".", "getImm", "(", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_Register", ":", "MCOp", "=", "MCOperand", "::", "createReg", "(", "MO", ".", "getReg", "(", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_MachineBasicBlock", ":", "MCOp", "=", "MCOperand", "::", "createExpr", "(", "MCSymbolRefExpr", "::", "create", "(", "MO", ".", "getMBB", "(", ")", "->", "getSymbol", "(", ")", ",", "Ctx", ")", ")", ";", "break", ";", "case", "MachineOperand", "::", "MO_GlobalAddress", ":", "{", "const", "GlobalValue", "*", "GV", "=", "MO", ".", "getGlobal", "(", ")", ";", "SmallString", "<", "", ">", "Name", ";", "AP", ".", "getMangledName", "(", "Name", ",", "GV", ")", ";", "MCSymbol", "*", "Sym", "=", "Ctx", ".", "getOrCreateSymbol", "(", "Name", ")", ";", "MCOp", "=", "MCOperand", "::", "createExpr", "(", "MCSymbolRefExpr", "::", "create", "(", "Sym", ",", "Ctx", ")", ")", ";", "break", ";", "}", "case", "MachineOperand", "::", "MO_ExternalSymbol", ":", "{", "MCSymbol", "*", "Sym", "=", "Ctx", ".", "getOrCreateSymbol", "(", "Twine", "(", "'%'", ")", "+", "MO", ".", "getSymbolName", "(", ")", ")", ";", "MCOp", "=", "MCOperand", "::", "createExpr", "(", "MCSymbolRefExpr", "::", "create", "(", "Sym", ",", "Ctx", ")", ")", ";", "break", ";", "}", "case", "MachineOperand", "::", "MO_MCSymbol", ":", "{", "MCSymbol", "*", "Sym", "=", "MO", ".", "getMCSymbol", "(", ")", ";", "MCOp", "=", "MCOperand", "::", "createExpr", "(", "MCSymbolRefExpr", "::", "create", "(", "Sym", ",", "Ctx", ")", ")", ";", "break", ";", "}", "case", "MachineOperand", "::", "MO_TargetIndex", ":", "{", "llvm_unreachable", "(", "", ")", ";", "break", ";", "}", "}", "OutMI", ".", "addOperand", "(", "MCOp", ")", ";"], "ground_truth": ["}"], "File": "HSAILMCInstLower", "Func": "lower", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114259, "Length": 326, "Cover_Rate": 0.8534031413612565} {"Template_token": ["", "return", "createBRIGDwarfStreamer", "(", "Ctx", ",", "TAB", ",", "*", "RVOS", ",", "Emitter", ",", "RelaxAll", ")", ";"], "ground_truth": ["}"], "File": "HSAILMCTargetDesc", "Func": "createBRIGStreamer", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114260, "Length": 16, "Cover_Rate": 0.38095238095238093} {"Template_token": ["", "RawVectorOstream", "*", "RVOS", "=", "new", "RawVectorOstream", "(", "&", "OS", ")", ";", "return", "createBRIGDwarfStreamer", "(", "Ctx", ",", "TAB", ",", "*", "RVOS", ",", "Emitter", ",", "RelaxAll", ")", ";"], "ground_truth": ["}"], "File": "HSAILMCTargetDesc", "Func": "createBRIGStreamer", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114261, "Length": 27, "Cover_Rate": 0.6428571428571429} {"Template_token": ["", "MCCodeGenInfo", "*", "X", "=", "new", "MCCodeGenInfo", "(", ")", ";"], "ground_truth": ["X", "->", "initMCCodeGenInfo", "(", "RM", ",", "CM", ",", "OL", ")", ";"], "File": "HSAILMCTargetDesc", "Func": "createHSAILMCCodeGenInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114263, "Length": 20, "Cover_Rate": 0.4} {"Template_token": ["", "static", "MCInstPrinter", "*", "createMCInstPrinter", "(", "const", "Triple", "&", "TT", ",", "unsigned", "SyntaxVariant", ",", "const", "MCAsmInfo", "&", "MAI", ",", "const", "MCInstrInfo", "&", "MII", ",", "const", "MCRegisterInfo", "&", "MRI", ")", "{", "return", "new", "InstPrinter", "(", "MAI", ",", "MII", ",", "MRI", ")", ";"], "ground_truth": ["}"], "File": "HSAILMCTargetDesc", "Func": "createHSAILMCInstPrinter", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114264, "Length": 41, "Cover_Rate": 1.0} {"Template_token": ["", "InitMCInstrInfo", "(", "X", ")", ";"], "ground_truth": ["return", "X", ";"], "File": "HSAILMCTargetDesc", "Func": "createHSAILMCInstrInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114265, "Length": 8, "Cover_Rate": 0.32} {"Template_token": ["", "MCRegisterInfo", "*", "X", "=", "new", "MCRegisterInfo", "(", ")", ";"], "ground_truth": ["InitMCRegisterInfo", "(", "X", ",", "", ")", ";"], "File": "HSAILMCTargetDesc", "Func": "createHSAILMCRegisterInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114266, "Length": 16, "Cover_Rate": 0.5161290322580645} {"Template_token": ["", "static", "MCRegisterInfo", "*", "createMCRegisterInfo", "(", "const", "Triple", "&", "TT", ")", "{"], "ground_truth": ["MCRegisterInfo", "*", "X", "=", "new", "MCRegisterInfo", "(", ")", ";"], "File": "HSAILMCTargetDesc", "Func": "createHSAILMCRegisterInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114267, "Length": 20, "Cover_Rate": 0.6451612903225806} {"Template_token": ["", "static", "MCSubtargetInfo", "*", "createMCSubtargetInfo", "(", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ")", "{", "return", "createMCSubtargetInfoImpl", "(", "TT", ",", "CPU", ",", "FS", ")", ";"], "ground_truth": ["}"], "File": "HSAILMCTargetDesc", "Func": "createHSAILMCSubtargetInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114269, "Length": 28, "Cover_Rate": 1.0} {"Template_token": ["", "MCTargetStreamer", "*", "createObjectTargetStreamer", "(", "MCStreamer", "&", "S", ",", "const", "MCSubtargetInfo", "&", "STI", ")", "{", "return", "new", "TargetStreamer", "(", "S", ")", ";"], "ground_truth": ["}"], "File": "HSAILMCTargetDesc", "Func": "createHSAILObjectTargetStreamer", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114271, "Length": 22, "Cover_Rate": 1.0} {"Template_token": ["", "void", "LLVMInitializeTargetMC", "(", ")", "{", "for", "(", "Target", "*", "T", ":", "{", "&", "The_32Target", ",", "&", "The_64Target", "}", ")", "{", "RegisterMCAsmInfo", "<", "MCAsmInfo", ">", "X", "(", "*", "T", ")", ";", "TargetRegistry", "::", "RegisterMCCodeGenInfo", "(", "*", "T", ",", "createMCCodeGenInfo", ")", ";", "TargetRegistry", "::", "RegisterMCInstrInfo", "(", "*", "T", ",", "createMCInstrInfo", ")", ";", "TargetRegistry", "::", "RegisterMCRegInfo", "(", "*", "T", ",", "createMCRegisterInfo", ")", ";", "TargetRegistry", "::", "RegisterMCSubtargetInfo", "(", "*", "T", ",", "createMCSubtargetInfo", ")", ";"], "ground_truth": ["TargetRegistry", "::", "RegisterMCInstPrinter", "(", "*", "T", ",", "createMCInstPrinter", ")", ";"], "File": "HSAILMCTargetDesc", "Func": "LLVMInitializeHSAILTargetMC", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114272, "Length": 80, "Cover_Rate": 0.7142857142857143} {"Template_token": ["", "mPrintfOffset", "+=", "offset", ";"], "ground_truth": ["}"], "File": "HSAILModuleInfo", "Func": "add_printf_offset", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114273, "Length": 5, "Cover_Rate": 0.4166666666666667} {"Template_token": ["", "const", "ConstPtr", "*", "curConst", "=", "getConstPtr", "(", "krnl", ",", "Arg", ")", ";", "if", "(", "!", "curConst", ")", "{", "return", "", ";", "}"], "ground_truth": ["return", "curConst", "->", "cbNum", ";"], "File": "HSAILModuleInfo", "Func": "getConstPtrCB", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114275, "Length": 27, "Cover_Rate": 0.6428571428571429} {"Template_token": ["", "if", "(", "mFuncNames", ".", "find", "(", "func", ")", "==", "mFuncNames", ".", "end", "(", ")", ")", "{", "id", "=", "mFuncNames", ".", "size", "(", ")", "+", "RESERVED_FUNCS", "+", "mFuncPtrNames", ".", "size", "(", ")", ";", "mFuncNames", "[", "func", "]", "=", "id", ";", "}", "else", "{"], "ground_truth": ["id", "=", "mFuncNames", "[", "func", "]", ";"], "File": "HSAILModuleInfo", "Func": "getOrCreateFunctionID", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114277, "Length": 49, "Cover_Rate": 0.6363636363636364} {"Template_token": ["", "uint32_t", "get_printf_offset", "(", ")", "{", "return", "mPrintfOffset", ";"], "ground_truth": ["}"], "File": "HSAILModuleInfo", "Func": "get_printf_offset", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114278, "Length": 9, "Cover_Rate": 1.0} {"Template_token": ["", "ModuleInfo", "::", "ModuleInfo", "(", "const", "MachineModuleInfo", "&", "MMI", ")", "{", "mMMI", "=", "&", "MMI", ";"], "ground_truth": ["mOffset", "=", "", ";"], "File": "HSAILModuleInfo", "Func": "HSAILModuleInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114280, "Length": 19, "Cover_Rate": 0.475} {"Template_token": ["", "mMMI", "=", "&", "MMI", ";", "mOffset", "=", "", ";", "mReservedBuffs", "=", "", ";", "symTab", "=", "nullptr", ";", "mCurrentCPOffset", "=", "", ";", "mPrintfOffset", "=", "", ";", "mProcessed", "=", "false", ";"], "ground_truth": ["}"], "File": "HSAILModuleInfo", "Func": "HSAILModuleInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114281, "Length": 30, "Cover_Rate": 0.75} {"Template_token": ["", "bool", "ModuleInfo", "::", "isReadOnlyImage", "(", "StringRef", "name", ",", "uint32_t", "iID", ")", "const", "{", "const", "StringMap", "<", "Kernel", "*", ">", "::", "const_iterator", "kiter", "=", "mKernels", ".", "find", "(", "name", ")", ";", "if", "(", "kiter", "==", "mKernels", ".", "end", "(", ")", ")", "{", "return", "false", ";", "}"], "ground_truth": ["return", "kiter", "->", "second", "->", "readOnly", ".", "count", "(", "iID", ")", ";"], "File": "HSAILModuleInfo", "Func": "isReadOnlyImage", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114282, "Length": 57, "Cover_Rate": 0.9827586206896551} {"Template_token": ["", "bool", "ModuleInfo", "::", "isWriteOnlyImage", "(", "StringRef", "name", ",", "uint32_t", "iID", ")", "const", "{", "const", "StringMap", "<", "Kernel", "*", ">", "::", "const_iterator", "kiter", "=", "mKernels", ".", "find", "(", "name", ")", ";", "if", "(", "kiter", "==", "mKernels", ".", "end", "(", ")", ")", "{", "return", "false", ";"], "ground_truth": ["}"], "File": "HSAILModuleInfo", "Func": "isWriteOnlyImage", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114283, "Length": 45, "Cover_Rate": 0.7758620689655172} {"Template_token": ["", "mSTM", "=", "mTM", "->", "getSubtargetImpl", "(", ")", ";"], "ground_truth": ["if", "(", "mProcessed", ")", "{"], "File": "HSAILModuleInfo", "Func": "processModule", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114284, "Length": 13, "Cover_Rate": 0.35135135135135137} {"Template_token": ["", "void", "ModuleInfo", "::", "processModule", "(", "const", "Module", "*", "M", ",", "const", "TargetMachine", "*", "mTM", ")", "{"], "ground_truth": ["mSTM", "=", "mTM", "->", "getSubtargetImpl", "(", ")", ";"], "File": "HSAILModuleInfo", "Func": "processModule", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114285, "Length": 24, "Cover_Rate": 0.6486486486486487} {"Template_token": ["", "bool", "ModuleInfo", "::", "usesHWConstant", "(", "const", "Kernel", "*", "krnl", ",", "StringRef", "arg", ")", "{"], "ground_truth": ["const", "ConstPtr", "*", "curConst", "=", "getConstPtr", "(", "krnl", ",", "arg", ")", ";"], "File": "HSAILModuleInfo", "Func": "usesHWConstant", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114286, "Length": 26, "Cover_Rate": 0.6190476190476191} {"Template_token": ["", "kb", "!=", "ke", ";", "++", "kb", ")", "{", "Kernel", "*", "ptr", "=", "kb", "->", "getValue", "(", ")", ";"], "ground_truth": ["delete", "ptr", ";"], "File": "HSAILModuleInfo", "Func": "~HSAILModuleInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114287, "Length": 21, "Cover_Rate": 0.38181818181818183} {"Template_token": ["", "kb", "!=", "ke", ";", "++", "kb", ")", "{", "Kernel", "*", "ptr", "=", "kb", "->", "getValue", "(", ")", ";"], "ground_truth": ["delete", "ptr", ";"], "File": "HSAILModuleInfo", "Func": "~HSAILModuleInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114288, "Length": 21, "Cover_Rate": 0.38181818181818183} {"Template_token": ["", "return", "StringSwitch", "<", "OpaqueType", ">", "(", "ST", "->", "getName", "(", ")", ")", ".", "Cases", "(", "", ",", "", ",", "I1D", ")", ".", "Cases", "(", "", ",", "", ",", "I1DA", ")", ".", "Cases", "(", "", ",", "", ",", "I1DB", ")", ".", "Cases", "(", "", ",", "", ",", "I2D", ")", ".", "Cases", "(", "", ",", "", ",", "I2DA", ")", ".", "Cases", "(", "", ",", "", ",", "I3D", ")", ".", "Cases", "(", "", ",", "", ",", "I2DDepth", ")", ".", "Cases", "(", "", ",", "", ",", "I2DADepth", ")", ".", "Case", "(", "", ",", "Sampler", ")", ".", "Cases", "(", "", ",", "", ",", "Event", ")", ".", "Case", "(", "", ",", "C32", ")", ".", "Case", "(", "", ",", "C64", ")", ".", "Case", "(", "", ",", "Sema", ")", ".", "Case", "(", "", ",", "ReserveId", ")", ".", "Case", "(", "", ",", "CLKEventT", ")", ".", "Case", "(", "", ",", "QueueT", ")", ".", "Default", "(", "UnknownOpaque", ")", ";"], "ground_truth": ["}"], "File": "HSAILOpaqueTypes", "Func": "GetOpaqueType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114289, "Length": 149, "Cover_Rate": 0.6081632653061224} {"Template_token": ["", "inline", "bool", "IsSampler", "(", "const", "Type", "*", "T", ")", "{", "return", "GetOpaqueType", "(", "T", ")", "==", "Sampler", ";"], "ground_truth": ["}"], "File": "HSAILOpaqueTypes", "Func": "IsSampler", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114293, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "unsigned", "ParamManager", "::", "addArgumentParam", "(", "unsigned", "AS", ",", "const", "Argument", "&", "Arg", ",", "const", "StringRef", "ParamName", ")", "{", "unsigned", "Param", "=", "addParam", "(", "(", "AS", "==", "", ")", "?", "_PARAM_TYPE_ARGUMENT", ":", "_PARAM_TYPE_KERNARG", ",", "Arg", ".", "getType", "(", ")", ",", "ParamName", ")", ";"], "ground_truth": ["AllParams", ".", "find", "(", "Param", ")", "->", "second", ".", "Arg", "=", "&", "Arg", ";"], "File": "HSAILParamManager", "Func": "addArgumentParam", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114295, "Length": 56, "Cover_Rate": 0.9032258064516129} {"Template_token": ["", "unsigned", "ParamManager", "::", "addCallArgParam", "(", "Type", "*", "Ty", ",", "const", "StringRef", "ParamName", ")", "{"], "ground_truth": ["return", "addParam", "(", "_PARAM_TYPE_CALL_PARAM", ",", "Ty", ",", "ParamName", ")", ";"], "File": "HSAILParamManager", "Func": "addCallArgParam", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114297, "Length": 24, "Cover_Rate": 0.96} {"Template_token": ["", "unsigned", "ParamManager", "::", "addCallRetParam", "(", "Type", "*", "Ty", ",", "const", "StringRef", "ParamName", ")", "{", "return", "addParam", "(", "_PARAM_TYPE_CALL_RET", ",", "Ty", ",", "ParamName", ")", ";"], "ground_truth": ["}"], "File": "HSAILParamManager", "Func": "addCallRetParam", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114299, "Length": 25, "Cover_Rate": 1.0} {"Template_token": ["", "case", "_PARAM_TYPE_CALL_PARAM", ":", "ParamList", "=", "&", "CallArgParams", ";", "DefName", "=", "", ";", "break", ";", "case", "_PARAM_TYPE_CALL_RET", ":", "ParamList", "=", "&", "CallRetParams", ";", "DefName", "=", "", ";", "break", ";", "}", "if", "(", "ParamName", ".", "empty", "(", ")", ")", "{", "Name", "=", "DefName", ";", "Name", "+=", "utostr", "(", "ParamList", "->", "size", "(", ")", ")", ";", "}", "else", "{", "Name", "=", "ParamName", ";", "}", "unsigned", "prev_offset", "=", "", ";", "unsigned", "prev_size", "=", "", ";", "if", "(", "ParamList", "->", "size", "(", ")", ">", "", ")", "{", "unsigned", "prev_param", "=", "(", "*", "ParamList", ")", "[", "ParamList", "->", "size", "(", ")", "-", "", "]", ";", "prev_offset", "=", "getParamOffset", "(", "prev_param", ")", ";", "prev_size", "=", "getParamSize", "(", "prev_param", ")", ";", "}", "if", "(", "prev_offset", "==", "UINT_MAX", "||", "GetOpaqueType", "(", "Ty", ")", ")", "{", "Param", ".", "Offset", "=", "UINT_MAX", ";", "}", "else", "{", "unsigned", "alignment", "=", "DL", "->", "getABITypeAlignment", "(", "Ty", ")", ";", "if", "(", "ParamType", "==", "_PARAM_TYPE_KERNARG", "&&", "Ty", "->", "isVectorTy", "(", ")", ")", "alignment", "=", "DL", "->", "getABITypeAlignment", "(", "Ty", "->", "getVectorElementType", "(", ")", ")", ";", "assert", "(", "alignment", "!=", "", ")", ";", "Param", ".", "Offset", "=", "(", "prev_offset", "+", "prev_size", "+", "alignment", "-", "", ")", "&", "~", "(", "alignment", "-", "", ")", ";", "}", "unsigned", "Index", "=", "AllParams", ".", "size", "(", ")", ";"], "ground_truth": ["AllParams", "[", "Index", "]", "=", "Param", ";"], "File": "HSAILParamManager", "Func": "addParam", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114300, "Length": 215, "Cover_Rate": 0.649546827794562} {"Template_token": ["", "break", ";", "}", "if", "(", "ParamName", ".", "empty", "(", ")", ")", "{", "Name", "=", "DefName", ";", "Name", "+=", "utostr", "(", "ParamList", "->", "size", "(", ")", ")", ";", "}", "else", "{", "Name", "=", "ParamName", ";", "}", "unsigned", "prev_offset", "=", "", ";", "unsigned", "prev_size", "=", "", ";", "if", "(", "ParamList", "->", "size", "(", ")", ">", "", ")", "{", "unsigned", "prev_param", "=", "(", "*", "ParamList", ")", "[", "ParamList", "->", "size", "(", ")", "-", "", "]", ";", "prev_offset", "=", "getParamOffset", "(", "prev_param", ")", ";", "prev_size", "=", "getParamSize", "(", "prev_param", ")", ";", "}", "if", "(", "prev_offset", "==", "UINT_MAX", "||", "GetOpaqueType", "(", "Ty", ")", ")", "{", "Param", ".", "Offset", "=", "UINT_MAX", ";", "}", "else", "{", "unsigned", "alignment", "=", "DL", "->", "getABITypeAlignment", "(", "Ty", ")", ";", "if", "(", "ParamType", "==", "_PARAM_TYPE_KERNARG", "&&", "Ty", "->", "isVectorTy", "(", ")", ")", "alignment", "=", "DL", "->", "getABITypeAlignment", "(", "Ty", "->", "getVectorElementType", "(", ")", ")", ";", "assert", "(", "alignment", "!=", "", ")", ";", "Param", ".", "Offset", "=", "(", "prev_offset", "+", "prev_size", "+", "alignment", "-", "", ")", "&", "~", "(", "alignment", "-", "", ")", ";"], "ground_truth": ["}"], "File": "HSAILParamManager", "Func": "addParam", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114301, "Length": 173, "Cover_Rate": 0.5226586102719033} {"Template_token": ["", "void", "ParamManager", "::", "addParamName", "(", "std", "::", "string", "Name", ",", "unsigned", "Index", ")", "{"], "ground_truth": ["char", "*", "name", "=", "(", "char", "*", ")", "malloc", "(", "Name", ".", "length", "(", ")", "+", "", ")", ";"], "File": "HSAILParamManager", "Func": "addParamName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114302, "Length": 33, "Cover_Rate": 0.6346153846153846} {"Template_token": ["", "void", "ParamManager", "::", "addParamType", "(", "Type", "*", "pTy", ",", "unsigned", "Index", ")", "{", "ParamTypes", "[", "Index", "]", "=", "pTy", ";"], "ground_truth": ["}"], "File": "HSAILParamManager", "Func": "addParamType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114303, "Length": 21, "Cover_Rate": 1.0} {"Template_token": ["", "return", "addParam", "(", "_PARAM_TYPE_RETURN", ",", "Ty", ",", "ParamName", ")", ";"], "ground_truth": ["}"], "File": "HSAILParamManager", "Func": "addReturnParam", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114306, "Length": 11, "Cover_Rate": 0.44} {"Template_token": ["", "param_iterator", "arg_begin", "(", ")", "const", "{"], "ground_truth": ["return", "ArgumentParams", ".", "begin", "(", ")", ";"], "File": "HSAILParamManager", "Func": "arg_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114307, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "param_iterator", "arg_end", "(", ")", "const", "{"], "ground_truth": ["return", "ArgumentParams", ".", "end", "(", ")", ";"], "File": "HSAILParamManager", "Func": "arg_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114310, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "return", "CallArgParams", ".", "end", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILParamManager", "Func": "call_arg_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114313, "Length": 8, "Cover_Rate": 0.5714285714285714} {"Template_token": ["", "return", "CallArgParams", ".", "end", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILParamManager", "Func": "call_arg_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114314, "Length": 8, "Cover_Rate": 0.5714285714285714} {"Template_token": ["", "return", "CallRetParams", ".", "begin", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILParamManager", "Func": "call_ret_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114316, "Length": 8, "Cover_Rate": 0.5714285714285714} {"Template_token": ["", "param_iterator", "call_ret_end", "(", ")", "const", "{"], "ground_truth": ["return", "CallRetParams", ".", "end", "(", ")", ";"], "File": "HSAILParamManager", "Func": "call_ret_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114317, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "return", "AllParams", ".", "find", "(", "Param", ")", "->", "second", ".", "Arg", ";"], "ground_truth": ["}"], "File": "HSAILParamManager", "Func": "getParamArg", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114319, "Length": 13, "Cover_Rate": 0.35135135135135137} {"Template_token": ["", "const", "Argument", "*", "getParamArg", "(", "unsigned", "Param", ")", "const", "{", "assert", "(", "AllParams", ".", "count", "(", "Param", ")", "==", "", "&&", "", ")", ";"], "ground_truth": ["return", "AllParams", ".", "find", "(", "Param", ")", "->", "second", ".", "Arg", ";"], "File": "HSAILParamManager", "Func": "getParamArg", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114320, "Length": 36, "Cover_Rate": 0.972972972972973} {"Template_token": ["", "unsigned", "getParamByOffset", "(", "int64_t", "&", "Offset", ")", "const", "{", "if", "(", "Offset", ">=", "UINT_MAX", "||", "Offset", "<", "", ")", "return", "UINT_MAX", ";", "unsigned", "o", "=", "(", "unsigned", ")", "Offset", ";", "unsigned", "r", "=", "getParamByOffset", "(", "o", ")", ";", "Offset", "=", "o", ";"], "ground_truth": ["return", "r", ";"], "File": "HSAILParamManager", "Func": "getParamByOffset", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114321, "Length": 45, "Cover_Rate": 0.9782608695652174} {"Template_token": ["", "const", "char", "*", "getParamName", "(", "unsigned", "Param", ")", "const", "{"], "ground_truth": ["assert", "(", "AllParams", ".", "count", "(", "Param", ")", "==", "", "&&", "", ")", ";"], "File": "HSAILParamManager", "Func": "getParamName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114322, "Length": 24, "Cover_Rate": 0.6857142857142857} {"Template_token": ["", "return", "ParamNames", ".", "find", "(", "Param", ")", "->", "second", ";"], "ground_truth": ["}"], "File": "HSAILParamManager", "Func": "getParamName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114323, "Length": 11, "Cover_Rate": 0.3142857142857143} {"Template_token": ["", "unsigned", "getParamSize", "(", "unsigned", "Param", ")", "const", "{"], "ground_truth": ["return", "DL", "->", "getTypeStoreSize", "(", "getParamType", "(", "Param", ")", ")", ";"], "File": "HSAILParamManager", "Func": "getParamSize", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114326, "Length": 19, "Cover_Rate": 0.95} {"Template_token": ["", "assert", "(", "AllParams", ".", "count", "(", "Param", ")", "==", "", "&&", "", ")", ";", "return", "ParamTypes", ".", "find", "(", "Param", ")", "->", "second", ";"], "ground_truth": ["}"], "File": "HSAILParamManager", "Func": "getParamType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114328, "Length": 25, "Cover_Rate": 0.7352941176470589} {"Template_token": ["", "Type", "*", "getParamType", "(", "unsigned", "Param", ")", "const", "{"], "ground_truth": ["assert", "(", "AllParams", ".", "count", "(", "Param", ")", "==", "", "&&", "", ")", ";"], "File": "HSAILParamManager", "Func": "getParamType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114329, "Length": 23, "Cover_Rate": 0.6764705882352942} {"Template_token": ["", "Mang", "->", "getNameWithPrefix", "(", "NameStr", ",", "ArgName", ",", "DL", ")", ";", "}", "return", "std", "::", "move", "(", "NameStrStorage", ")", ";"], "ground_truth": ["}"], "File": "HSAILParamManager", "Func": "mangleArg", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114332, "Length": 21, "Cover_Rate": 0.328125} {"Template_token": ["", "param_iterator", "ret_begin", "(", ")", "const", "{", "return", "ReturnParams", ".", "begin", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILParamManager", "Func": "ret_begin", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114333, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "param_iterator", "ret_end", "(", ")", "const", "{", "return", "ReturnParams", ".", "end", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILParamManager", "Func": "ret_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114335, "Length": 14, "Cover_Rate": 1.0} {"Template_token": ["", "return", "ReturnParams", ".", "end", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILParamManager", "Func": "ret_end", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114336, "Length": 8, "Cover_Rate": 0.5714285714285714} {"Template_token": ["", "unsigned", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "MachineFunction", "*", "MF", "=", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "MachineFrameInfo", "*", "MFI", "=", "MF", "->", "getFrameInfo", "(", ")", ";", "MCContext", "&", "Ctx", "=", "MF", "->", "getContext", "(", ")", ";", "assert", "(", "", "(", "Opcode", ",", "", "::", "address", ")", "==", "static_cast", "<", "int", ">", "(", "FIOperandNum", ")", "&&", "", ")", ";", "MachineOperand", "&", "Base", "=", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ";", "int", "FrameIndex", "=", "Base", ".", "getIndex", "(", ")", ";", "if", "(", "Opcode", "==", "", ")", "lowerSpillB1", "(", "II", ",", "FrameIndex", ")", ";", "else", "if", "(", "Opcode", "==", "", ")", "lowerRestoreB1", "(", "II", ",", "FrameIndex", ")", ";", "StringRef", "SymName", "=", "MFI", "->", "isSpillSlotObjectIndex", "(", "FrameIndex", ")", "?", "", ":", "", ";"], "ground_truth": ["MCSymbol", "*", "Sym", "=", "Ctx", ".", "getOrCreateSymbol", "(", "SymName", ")", ";"], "File": "HSAILRegisterInfo", "Func": "eliminateFrameIndex", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114337, "Length": 138, "Cover_Rate": 0.71875} {"Template_token": ["", "unsigned", "Opcode", "=", "MI", ".", "getOpcode", "(", ")", ";", "MachineFunction", "*", "MF", "=", "MI", ".", "getParent", "(", ")", "->", "getParent", "(", ")", ";", "const", "MachineFrameInfo", "*", "MFI", "=", "MF", "->", "getFrameInfo", "(", ")", ";", "MCContext", "&", "Ctx", "=", "MF", "->", "getContext", "(", ")", ";", "assert", "(", "", "(", "Opcode", ",", "", "::", "address", ")", "==", "static_cast", "<", "int", ">", "(", "FIOperandNum", ")", "&&", "", ")", ";"], "ground_truth": ["MachineOperand", "&", "Base", "=", "MI", ".", "getOperand", "(", "FIOperandNum", ")", ";"], "File": "HSAILRegisterInfo", "Func": "eliminateFrameIndex", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114338, "Length": 77, "Cover_Rate": 0.4010416666666667} {"Template_token": ["", "static", "const", "uint16_t", "CalleeSavedRegs", "[", "]", "=", "{", "", "}", ";"], "ground_truth": ["return", "CalleeSavedRegs", ";"], "File": "HSAILRegisterInfo", "Func": "getCalleeSavedRegs", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114339, "Length": 14, "Cover_Rate": 0.4827586206896552} {"Template_token": ["", "static", "const", "uint16_t", "CalleeSavedRegs", "[", "]", "=", "{", "", "}", ";", "return", "CalleeSavedRegs", ";"], "ground_truth": ["}"], "File": "HSAILRegisterInfo", "Func": "getCalleeSavedRegs", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114340, "Length": 15, "Cover_Rate": 0.5172413793103449} {"Template_token": ["", "for", "(", "const", "TargetRegisterClass", "*", "BaseClass", ":", "BaseClasses", ")", "{", "if", "(", "BaseClass", "->", "contains", "(", "Reg", ")", ")", "return", "BaseClass", ";"], "ground_truth": ["}"], "File": "HSAILRegisterInfo", "Func": "getPhysRegClass", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114343, "Length": 23, "Cover_Rate": 0.30666666666666664} {"Template_token": ["", "for", "(", "const", "TargetRegisterClass", "*", "BaseClass", ":", "BaseClasses", ")", "{", "if", "(", "BaseClass", "->", "contains", "(", "Reg", ")", ")", "return", "BaseClass", ";", "}"], "ground_truth": ["return", "nullptr", ";"], "File": "HSAILRegisterInfo", "Func": "getPhysRegClass", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114344, "Length": 26, "Cover_Rate": 0.3466666666666667} {"Template_token": ["", "if", "(", "RC", "==", "&", "", ")", "{", "return", "Reg32PressureLimit", ";", "}", "if", "(", "RC", "==", "&", "", ")", "{", "return", "Reg64PressureLimit", ";"], "ground_truth": ["}"], "File": "HSAILRegisterInfo", "Func": "getRegPressureLimit", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114345, "Length": 24, "Cover_Rate": 0.5} {"Template_token": ["", "return", "Reg32PressureLimit", ";", "}", "if", "(", "RC", "==", "&", "", ")", "{", "return", "Reg64PressureLimit", ";", "}", "return", "", ";"], "ground_truth": ["}"], "File": "HSAILRegisterInfo", "Func": "getRegPressureLimit", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114346, "Length": 20, "Cover_Rate": 0.4166666666666667} {"Template_token": ["", "MachineFunctionInfo", "*", "MFI", "=", "const_cast", "<", "MachineFunctionInfo", "*", ">", "(", "MF", ".", "getInfo", "<", "MachineFunctionInfo", ">", "(", ")", ")", ";", "unsigned", "NumSlotsTotal", "=", "", ".", "getNumRegs", "(", ")", ";", "unsigned", "RegSlots", "=", "NumSlotsTotal", "/", "", ";", "if", "(", "MFI", "->", "getRegisterPartitioning", "(", ")", "==", "", ")", "{", "const", "MachineRegisterInfo", "&", "RI", "=", "MF", ".", "getRegInfo", "(", ")", ";", "unsigned", "rc32", "=", "", ",", "rc64", "=", "", ";", "for", "(", "unsigned", "i", "=", "", ",", "e", "=", "RI", ".", "getNumVirtRegs", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "{", "switch", "(", "RI", ".", "getRegClass", "(", "index2VirtReg", "(", "i", ")", ")", "->", "getSize", "(", ")", ")", "{", "case", "", ":", "rc32", "++", ";", "break", ";", "case", "", ":", "rc64", "++", ";", "break", ";", "}", "}", "if", "(", "RegSlots", ">", "", ")", "{", "RegSlots", "=", "RegSlots", ";", "}", "else", "{", "if", "(", "rc64", "<", "(", "NumSlotsTotal", "-", "RegSlots", ")", "&&", "rc32", ">", "(", "RegSlots", "*", "", ")", ")", "{", "RegSlots", "=", "NumSlotsTotal", "-", "rc64", ";", "}", "else", "if", "(", "rc32", "<", "(", "RegSlots", "*", "", ")", "&&", "rc64", ">", "(", "NumSlotsTotal", "-", "RegSlots", ")", ")", "{", "RegSlots", "=", "(", "rc32", "+", "", ")", "/", "", ";", "}", "}", "if", "(", "RegSlots", "<", "", ")", "RegSlots", "=", "", ";"], "ground_truth": ["else", "if", "(", "RegSlots", ">", "(", "NumSlotsTotal", "-", "", ")", ")", "RegSlots", "=", "NumSlotsTotal", "-", "", ";"], "File": "HSAILRegisterInfo", "Func": "getReservedRegs", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114348, "Length": 224, "Cover_Rate": 0.5530864197530864} {"Template_token": ["", "RegisterInfo", "::", "RegisterInfo", "(", "Subtarget", "&", "st", ")", ":", "GenRegisterInfo", "(", "", ",", "", ")", ",", "ST", "(", "st", ")", "{"], "ground_truth": ["}"], "File": "HSAILRegisterInfo", "Func": "HSAILRegisterInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114349, "Length": 22, "Cover_Rate": 1.0} {"Template_token": ["", "RegisterInfo", "::", "RegisterInfo", "(", "Subtarget", "&", "st", ")", ":", "GenRegisterInfo", "(", "", ",", "", ")", ",", "ST", "(", "st", ")", "{"], "ground_truth": ["}"], "File": "HSAILRegisterInfo", "Func": "HSAILRegisterInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114350, "Length": 22, "Cover_Rate": 1.0} {"Template_token": ["", "unsigned", "DestReg", "=", "MI", ".", "getOperand", "(", "", ")", ".", "getReg", "(", ")", ";", "const", "InstrInfo", "*", "TII", "=", "ST", ".", "getInstrInfo", "(", ")", ";", "MachineRegisterInfo", "&", "MRI", "=", "MBB", "->", "getParent", "(", ")", "->", "getRegInfo", "(", ")", ";", "unsigned", "TempGPR32", "=", "MRI", ".", "createVirtualRegister", "(", "&", "", ")", ";", "BuildMI", "(", "*", "MBB", ",", "++", "II", ",", "DL", ",", "TII", "->", "get", "(", "", ")", ",", "DestReg", ")", ".", "addImm", "(", "", ")", ".", "addImm", "(", "", ")", ".", "addImm", "(", "BRIG_TYPE_B1", ")", ".", "addImm", "(", "BRIG_TYPE_U32", ")", ".", "addReg", "(", "TempGPR32", ",", "RegState", "::", "Kill", ")", ";", "MI", ".", "setDesc", "(", "TII", "->", "get", "(", "", ")", ")", ";", "MI", ".", "getOperand", "(", "", ")", ".", "setReg", "(", "TempGPR32", ")", ";", "MI", ".", "getOperand", "(", "", ")", ".", "setIsDef", "(", ")", ";"], "ground_truth": ["MachineOperand", "*", "TypeOp", "=", "TII", "->", "getNamedOperand", "(", "MI", ",", "", "::", "TypeLength", ")", ";"], "File": "HSAILRegisterInfo", "Func": "lowerRestoreB1", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114351, "Length": 149, "Cover_Rate": 0.7233009708737864} {"Template_token": ["", "unsigned", "TempGPR32", "=", "MRI", ".", "createVirtualRegister", "(", "&", "", ")", ";", "DebugLoc", "DL", "=", "MI", ".", "getDebugLoc", "(", ")", ";", "BuildMI", "(", "*", "MBB", ",", "II", ",", "DL", ",", "TII", "->", "get", "(", "", ")", ",", "TempGPR32", ")", ".", "addImm", "(", "", ")", ".", "addImm", "(", "", ")", ".", "addImm", "(", "BRIG_TYPE_U32", ")", ".", "addImm", "(", "BRIG_TYPE_B1", ")", ".", "addOperand", "(", "MI", ".", "getOperand", "(", "", ")", ")", ";", "MI", ".", "setDesc", "(", "TII", "->", "get", "(", "", ")", ")", ";", "MI", ".", "getOperand", "(", "", ")", ".", "setReg", "(", "TempGPR32", ")", ";", "MI", ".", "getOperand", "(", "", ")", ".", "setIsKill", "(", ")", ";", "MachineOperand", "*", "TypeOp", "=", "TII", "->", "getNamedOperand", "(", "MI", ",", "", "::", "TypeLength", ")", ";"], "ground_truth": ["TypeOp", "->", "setImm", "(", "BRIG_TYPE_U32", ")", ";"], "File": "HSAILRegisterInfo", "Func": "lowerSpillB1", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114352, "Length": 126, "Cover_Rate": 0.6363636363636364} {"Template_token": ["", "bool", "RegisterInfo", "::", "requiresFrameIndexScavenging", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{", "const", "MachineFunctionInfo", "*", "Info", "=", "MF", ".", "getInfo", "<", "MachineFunctionInfo", ">", "(", ")", ";", "return", "Info", "->", "hasSpilledCRs", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILRegisterInfo", "Func": "requiresFrameIndexScavenging", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114353, "Length": 34, "Cover_Rate": 1.0} {"Template_token": ["", "const", "MachineFunctionInfo", "*", "Info", "=", "MF", ".", "getInfo", "<", "MachineFunctionInfo", ">", "(", ")", ";"], "ground_truth": ["return", "Info", "->", "hasSpilledCRs", "(", ")", ";"], "File": "HSAILRegisterInfo", "Func": "requiresFrameIndexScavenging", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114354, "Length": 21, "Cover_Rate": 0.6176470588235294} {"Template_token": ["", "bool", "RegisterInfo", "::", "requiresRegisterScavenging", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{"], "ground_truth": ["return", "true", ";"], "File": "HSAILRegisterInfo", "Func": "requiresRegisterScavenging", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114355, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "bool", "RegisterInfo", "::", "saveScavengerRegister", "(", "MachineBasicBlock", "&", "MBB", ",", "MachineBasicBlock", "::", "iterator", "I", ",", "MachineBasicBlock", "::", "iterator", "&", "UseMI", ",", "const", "TargetRegisterClass", "*", "RC", ",", "unsigned", "Reg", ")", "const", "{", "MachineFunction", "*", "MF", "=", "MBB", ".", "getParent", "(", ")", ";", "MachineFunctionInfo", "*", "Info", "=", "MF", "->", "getInfo", "<", "MachineFunctionInfo", ">", "(", ")", ";", "MCContext", "&", "Ctx", "=", "MF", "->", "getContext", "(", ")", ";", "const", "InstrInfo", "*", "TII", "=", "ST", ".", "getInstrInfo", "(", ")", ";"], "ground_truth": ["assert", "(", "RC", "==", "&", "", "&&", "", ")", ";"], "File": "HSAILRegisterInfo", "Func": "saveScavengerRegister", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114356, "Length": 84, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "bool", "RegisterInfo", "::", "trackLivenessAfterRegAlloc", "(", "const", "MachineFunction", "&", "MF", ")", "const", "{"], "ground_truth": ["return", "true", ";"], "File": "HSAILRegisterInfo", "Func": "trackLivenessAfterRegAlloc", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114358, "Length": 15, "Cover_Rate": 0.9375} {"Template_token": ["", "size_t", "dataSizeInBytes", "(", ")", "{"], "ground_truth": ["return", "OS", ".", "str", "(", ")", ".", "size", "(", ")", ";"], "File": "HSAILStoreInitializer", "Func": "dataSizeInBytes", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114360, "Length": 16, "Cover_Rate": 0.9411764705882353} {"Template_token": ["", "size_t", "elementCount", "(", ")", "{"], "ground_truth": ["return", "dataSizeInBytes", "(", ")", "/", "InitEltSize", ";"], "File": "HSAILStoreInitializer", "Func": "elementCount", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114363, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "switch", "(", "InitEltSize", ")", "{", "case", "", ":", "{", "uint32_t", "Tmp", ";", "std", "::", "memcpy", "(", "&", "Tmp", ",", "Ptr", ",", "", ")", ";", "if", "(", "IsFPElt", ")", "printFloat", "(", "Tmp", ",", "O", ")", ";", "else", "O", "<<", "Tmp", ";", "break", ";", "}", "case", "", ":", "{", "uint64_t", "Tmp", ";", "std", "::", "memcpy", "(", "&", "Tmp", ",", "Ptr", ",", "", ")", ";", "if", "(", "IsFPElt", ")", "printDouble", "(", "Tmp", ",", "O", ")", ";", "else", "O", "<<", "Tmp", ";", "break", ";", "}", "case", "", ":", "{", "uint16_t", "Tmp", ";"], "ground_truth": ["std", "::", "memcpy", "(", "&", "Tmp", ",", "Ptr", ",", "", ")", ";"], "File": "HSAILStoreInitializer", "Func": "print", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114364, "Length": 100, "Cover_Rate": 0.37735849056603776} {"Template_token": ["", "if", "(", "I", "!=", "", ")", "O", "<<", "", ";", "O", "<<", "(", "static_cast", "<", "int", ">", "(", "Str", "[", "I", "]", ")", "&", "", ")", ";", "}", "return", ";", "}", "for", "(", "unsigned", "I", "=", "", ",", "E", "=", "Str", ".", "size", "(", ")", ";", "I", "!=", "E", ";", "I", "+=", "InitEltSize", ")", "{", "if", "(", "I", "!=", "", ")", "O", "<<", "", ";", "const", "char", "*", "Ptr", "=", "&", "Str", ".", "data", "(", ")", "[", "I", "]", ";", "switch", "(", "InitEltSize", ")", "{", "case", "", ":", "{", "uint32_t", "Tmp", ";", "std", "::", "memcpy", "(", "&", "Tmp", ",", "Ptr", ",", "", ")", ";", "if", "(", "IsFPElt", ")", "printFloat", "(", "Tmp", ",", "O", ")", ";", "else", "O", "<<", "Tmp", ";", "break", ";", "}", "case", "", ":", "{", "uint64_t", "Tmp", ";", "std", "::", "memcpy", "(", "&", "Tmp", ",", "Ptr", ",", "", ")", ";", "if", "(", "IsFPElt", ")", "printDouble", "(", "Tmp", ",", "O", ")", ";", "else", "O", "<<", "Tmp", ";", "break", ";", "}", "case", "", ":", "{", "uint16_t", "Tmp", ";", "std", "::", "memcpy", "(", "&", "Tmp", ",", "Ptr", ",", "", ")", ";", "assert", "(", "!", "IsFPElt", "&&", "", ")", ";", "O", "<<", "Tmp", ";", "break", ";", "}", "default", ":", "llvm_unreachable", "(", "", ")", ";", "}", "}"], "ground_truth": ["}"], "File": "HSAILStoreInitializer", "Func": "print", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114365, "Length": 205, "Cover_Rate": 0.7735849056603774} {"Template_token": ["", "O", "<<", "format", "(", "", "PRIx64", ",", "Val", ")", ";"], "ground_truth": ["}"], "File": "HSAILStoreInitializer", "Func": "printDouble", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114367, "Length": 11, "Cover_Rate": 0.4583333333333333} {"Template_token": ["", "void", "StoreInitializer", "::", "printFloat", "(", "uint32_t", "Val", ",", "raw_ostream", "&", "O", ")", "{"], "ground_truth": ["O", "<<", "format", "(", "", "PRIx32", ",", "Val", ")", ";"], "File": "HSAILStoreInitializer", "Func": "printFloat", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114368, "Length": 23, "Cover_Rate": 0.9583333333333334} {"Template_token": ["", "StoreInitializer", "::", "StoreInitializer", "(", "Type", "*", "EltTy", ",", "AsmPrinter", "&", "AP", ")", ":", "DL", "(", "AP", ".", "getDataLayout", "(", ")", ")", ",", "AP", "(", "AP", ")", ",", "InitEltSize", "(", "DL", ".", "getTypeAllocSize", "(", "EltTy", ")", ")", ",", "IsFPElt", "(", "EltTy", "->", "isFloatingPointTy", "(", ")", ")", ",", "m_data", "(", ")", ",", "OS", "(", "m_data", ")", ",", "LE", "(", "OS", ")", "{"], "ground_truth": ["}"], "File": "HSAILStoreInitializer", "Func": "StoreInitializer", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114370, "Length": 61, "Cover_Rate": 1.0} {"Template_token": ["", "StoreInitializer", "::", "StoreInitializer", "(", "Type", "*", "EltTy", ",", "AsmPrinter", "&", "AP", ")", ":", "DL", "(", "AP", ".", "getDataLayout", "(", ")", ")", ",", "AP", "(", "AP", ")", ",", "InitEltSize", "(", "DL", ".", "getTypeAllocSize", "(", "EltTy", ")", ")", ",", "IsFPElt", "(", "EltTy", "->", "isFloatingPointTy", "(", ")", ")", ",", "m_data", "(", ")", ",", "OS", "(", "m_data", ")", ",", "LE", "(", "OS", ")", "{"], "ground_truth": ["}"], "File": "HSAILStoreInitializer", "Func": "StoreInitializer", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114371, "Length": 61, "Cover_Rate": 1.0} {"Template_token": ["", "StringRef", "str", "(", ")", "{", "return", "OS", ".", "str", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILStoreInitializer", "Func": "str", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114372, "Length": 13, "Cover_Rate": 1.0} {"Template_token": ["", "StringRef", "str", "(", ")", "{"], "ground_truth": ["return", "OS", ".", "str", "(", ")", ";"], "File": "HSAILStoreInitializer", "Func": "str", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114373, "Length": 12, "Cover_Rate": 0.9230769230769231} {"Template_token": ["", "return", "makeArrayRef", "(", "VarInitAddresses", ")", ";"], "ground_truth": ["}"], "File": "HSAILStoreInitializer", "Func": "varInitAddresses", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114374, "Length": 7, "Cover_Rate": 0.4375} {"Template_token": ["", "return", "makeArrayRef", "(", "VarInitAddresses", ")", ";"], "ground_truth": ["}"], "File": "HSAILStoreInitializer", "Func": "varInitAddresses", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114375, "Length": 7, "Cover_Rate": 0.4375} {"Template_token": ["", "VarInitOffset", "(", "uint64_t", "Offset", ",", "const", "MCExpr", "*", "E", ")", ":", "BaseOffset", "(", "Offset", ")", ",", "Expr", "(", "E", ")", "{"], "ground_truth": ["}"], "File": "HSAILStoreInitializer", "Func": "VarInitOffset", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114376, "Length": 22, "Cover_Rate": 1.0} {"Template_token": ["", "VarInitOffset", "(", "uint64_t", "Offset", ",", "const", "MCExpr", "*", "E", ")", ":", "BaseOffset", "(", "Offset", ")", ",", "Expr", "(", "E", ")", "{"], "ground_truth": ["}"], "File": "HSAILStoreInitializer", "Func": "VarInitOffset", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114377, "Length": 22, "Cover_Rate": 1.0} {"Template_token": ["", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "Samplers", ".", "size", "(", ")", ";", "i", "++", ")", "{", "if", "(", "getSamplerSymbol", "(", "i", ")", ".", "empty", "(", ")", ")", "{", "sprintf", "(", "buf", ",", "", ",", "", ",", "index", ")", ";", "Samplers", "[", "i", "]", "->", "setSym", "(", "buf", ")", ";", "index", "++", ";", "}"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "finalize", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114380, "Length": 57, "Cover_Rate": 0.8028169014084507} {"Template_token": ["", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "ImageArgs", ".", "size", "(", ")", ";", "i", "++", ")", "{", "if", "(", "ImageArgs", "[", "i", "]", "==", "symStr", ")", "{", "return", "i", ";", "}"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "findOrCreateImageHandle", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114381, "Length": 34, "Cover_Rate": 0.4927536231884058} {"Template_token": ["", "StringRef", "getDeviceName", "(", ")", "const", "{"], "ground_truth": ["return", "DevName", ";"], "File": "HSAILSubtarget", "Func": "getDeviceName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114382, "Length": 9, "Cover_Rate": 0.9} {"Template_token": ["", "return", "&", "FrameLowering", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "getFrameLowering", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114383, "Length": 5, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "const", "FrameLowering", "*", "getFrameLowering", "(", ")", "const", "override", "{"], "ground_truth": ["return", "&", "FrameLowering", ";"], "File": "HSAILSubtarget", "Func": "getFrameLowering", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114384, "Length": 13, "Cover_Rate": 0.9285714285714286} {"Template_token": ["", "return", "imageHandles", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "getImageHandles", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114385, "Length": 4, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "assert", "(", "index", "<", "ImageArgs", ".", "size", "(", ")", "&&", "", ")", ";"], "ground_truth": ["return", "ImageArgs", "[", "index", "]", ";"], "File": "HSAILSubtarget", "Func": "getImageSymbol", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114386, "Length": 19, "Cover_Rate": 0.6129032258064516} {"Template_token": ["", "assert", "(", "index", "<", "ImageArgs", ".", "size", "(", ")", "&&", "", ")", ";"], "ground_truth": ["return", "ImageArgs", "[", "index", "]", ";"], "File": "HSAILSubtarget", "Func": "getImageSymbol", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114387, "Length": 19, "Cover_Rate": 0.6129032258064516} {"Template_token": ["", "const", "InstrInfo", "*", "getInstrInfo", "(", ")", "const", "override", "{"], "ground_truth": ["return", "InstrInfo", ".", "get", "(", ")", ";"], "File": "HSAILSubtarget", "Func": "getInstrInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114388, "Length": 16, "Cover_Rate": 0.9411764705882353} {"Template_token": ["", "return", "InstrInfo", ".", "get", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "getInstrInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114389, "Length": 8, "Cover_Rate": 0.47058823529411764} {"Template_token": ["", "const", "RegisterInfo", "*", "getRegisterInfo", "(", ")", "const", "override", "{", "return", "&", "getInstrInfo", "(", ")", "->", "getRegisterInfo", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "getRegisterInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114391, "Length": 20, "Cover_Rate": 1.0} {"Template_token": ["", "SmallVector", "<", "SamplerHandle", "*", ",", "", ">", "getSamplerHandles", "(", ")", "{", "return", "Samplers", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "getSamplerHandles", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114393, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "assert", "(", "index", "<", "Samplers", ".", "size", "(", ")", "&&", "", ")", ";", "return", "Samplers", "[", "index", "]", "->", "getSym", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "getSamplerSymbol", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114394, "Length": 24, "Cover_Rate": 0.6857142857142857} {"Template_token": ["", "assert", "(", "index", "<", "Samplers", ".", "size", "(", ")", "&&", "", ")", ";"], "ground_truth": ["return", "Samplers", "[", "index", "]", "->", "getVal", "(", ")", ";"], "File": "HSAILSubtarget", "Func": "getSamplerValue", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114396, "Length": 23, "Cover_Rate": 0.696969696969697} {"Template_token": ["", "assert", "(", "index", "<", "Samplers", ".", "size", "(", ")", "&&", "", ")", ";"], "ground_truth": ["return", "Samplers", "[", "index", "]", "->", "getVal", "(", ")", ";"], "File": "HSAILSubtarget", "Func": "getSamplerValue", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114397, "Length": 23, "Cover_Rate": 0.696969696969697} {"Template_token": ["", "inline", "std", "::", "string", "getSym", "(", ")", "{", "return", "mSym", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "getSym", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114398, "Length": 12, "Cover_Rate": 1.0} {"Template_token": ["", "return", "mSym", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "getSym", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114399, "Length": 4, "Cover_Rate": 0.3333333333333333} {"Template_token": ["", "return", "TLInfo", ".", "get", "(", ")", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "getTargetLowering", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114400, "Length": 8, "Cover_Rate": 0.47058823529411764} {"Template_token": ["", "return", "mVal", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "getVal", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114402, "Length": 4, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "return", "mVal", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "getVal", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114403, "Length": 4, "Cover_Rate": 0.36363636363636365} {"Template_token": ["", "return", "HasImages", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "hasImages", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114405, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "ImageHandles", "(", ")", "{", "index", "=", "", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "HSAILImageHandles", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114407, "Length": 9, "Cover_Rate": 1.0} {"Template_token": ["", "SamplerHandle", "(", "unsigned", "int", "u", ")", "{", "mVal", "=", "u", ";", "mIsRO", "=", "false", ";"], "ground_truth": ["mEmitted", "=", "false", ";"], "File": "HSAILSubtarget", "Func": "HSAILSamplerHandle", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114408, "Length": 19, "Cover_Rate": 0.95} {"Template_token": ["", "SamplerHandle", "(", "unsigned", "int", "u", ")", "{"], "ground_truth": ["mVal", "=", "u", ";"], "File": "HSAILSubtarget", "Func": "HSAILSamplerHandle", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114409, "Length": 11, "Cover_Rate": 0.55} {"Template_token": ["", "ParseSubtargetFeatures", "(", "GPU", ",", "FS", ")", ";", "return", "*", "this", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "initializeSubtargetDependencies", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114410, "Length": 12, "Cover_Rate": 0.48} {"Template_token": ["", "return", "mEmitted", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "isEmitted", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114412, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "inline", "bool", "isEmitted", "(", ")", "{", "return", "mEmitted", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "isEmitted", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114413, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "return", "IsLargeModel", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "isLargeModel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114415, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "inline", "bool", "isRO", "(", ")", "{", "return", "mIsRO", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "isRO", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114418, "Length": 10, "Cover_Rate": 1.0} {"Template_token": ["", "bool", "ImageHandles", "::", "isSamplerSym", "(", "std", "::", "string", "sym", ")", "{", "for", "(", "unsigned", "i", "=", "", ";", "i", "<", "Samplers", ".", "size", "(", ")", ";", "i", "++", ")", "{", "if", "(", "getSamplerSymbol", "(", "i", ")", "==", "sym", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "isSamplerSym", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114419, "Length": 49, "Cover_Rate": 1.0} {"Template_token": ["", "return", "!", "IsLargeModel", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "isSmallModel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114420, "Length": 5, "Cover_Rate": 0.45454545454545453} {"Template_token": ["", "bool", "isSmallModel", "(", ")", "const", "{"], "ground_truth": ["return", "!", "IsLargeModel", ";"], "File": "HSAILSubtarget", "Func": "isSmallModel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114421, "Length": 10, "Cover_Rate": 0.9090909090909091} {"Template_token": ["", "mEmitted", "=", "true", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "setEmitted", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114422, "Length": 5, "Cover_Rate": 0.45454545454545453} {"Template_token": ["", "inline", "void", "setEmitted", "(", ")", "{", "mEmitted", "=", "true", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "setEmitted", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114423, "Length": 11, "Cover_Rate": 1.0} {"Template_token": ["", "mIsRO", "=", "true", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "setRO", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114424, "Length": 5, "Cover_Rate": 0.45454545454545453} {"Template_token": ["", "inline", "void", "setSym", "(", "std", "::", "string", "str", ")", "{"], "ground_truth": ["mSym", "=", "str", ";"], "File": "HSAILSubtarget", "Func": "setSym", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114426, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "inline", "void", "setSym", "(", "std", "::", "string", "str", ")", "{"], "ground_truth": ["mSym", "=", "str", ";"], "File": "HSAILSubtarget", "Func": "setSym", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114427, "Length": 14, "Cover_Rate": 0.9333333333333333} {"Template_token": ["", "return", "true", ";"], "ground_truth": ["}"], "File": "HSAILSubtarget", "Func": "supportMetadata30", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114428, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "bool", "supportMetadata30", "(", ")", "const", "{"], "ground_truth": ["return", "true", ";"], "File": "HSAILSubtarget", "Func": "supportMetadata30", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114429, "Length": 9, "Cover_Rate": 0.9} {"Template_token": ["", "void", "LLVMInitializeTargetInfo", "(", ")", "{", "RegisterTarget", "<", "Triple", "::", "hsail", ",", "false", ">", "Target32", "(", "The_32Target", ",", "", ",", "", ")", ";"], "ground_truth": ["RegisterTarget", "<", "Triple", "::", "hsail64", ",", "false", ">", "Target64", "(", "The_64Target", ",", "", ",", "", ")", ";"], "File": "HSAILTargetInfo", "Func": "LLVMInitializeHSAILTargetInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114431, "Length": 39, "Cover_Rate": 0.975} {"Template_token": ["", "addPass", "(", "createISelDag", "(", "HSATM", ")", ")", ";", "addPass", "(", "&", "DeadMachineInstructionElimID", ")", ";", "if", "(", "EnableUniformOps", ")", "{", "addPass", "(", "createUniformOperations", "(", "HSATM", ")", ")", ";", "}", "return", "false", ";"], "ground_truth": ["}"], "File": "HSAILTargetMachine", "Func": "addInstSelector", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114432, "Length": 32, "Cover_Rate": 0.64} {"Template_token": ["", "void", "PassConfig", "::", "addIRPasses", "(", ")", "{", "addPass", "(", "createAlwaysInlinePass", "(", ")", ")", ";"], "ground_truth": ["addPass", "(", "createAlwaysInlinerPass", "(", ")", ")", ";"], "File": "HSAILTargetMachine", "Func": "addIRPasses", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114433, "Length": 21, "Cover_Rate": 0.75} {"Template_token": ["", "addPass", "(", "createAlwaysInlinePass", "(", ")", ")", ";", "addPass", "(", "createAlwaysInlinerPass", "(", ")", ")", ";"], "ground_truth": ["TargetPassConfig", "::", "addIRPasses", "(", ")", ";"], "File": "HSAILTargetMachine", "Func": "addIRPasses", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114434, "Length": 20, "Cover_Rate": 0.7142857142857143} {"Template_token": ["", "return", "LLVMTargetMachine", "::", "addPassesToEmitFile", "(", "PM", ",", "Out", ",", "FT", ",", "DisableVerify", ",", "StartAfter", ",", "StopAfter", ",", "MFInitializer", ")", ";"], "ground_truth": ["}"], "File": "HSAILTargetMachine", "Func": "addPassesToEmitFile", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114436, "Length": 21, "Cover_Rate": 0.3888888888888889} {"Template_token": ["", "void", "PassConfig", "::", "addPostRegAlloc", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILTargetMachine", "Func": "addPostRegAlloc", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114437, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "void", "PassConfig", "::", "addPostRegAlloc", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILTargetMachine", "Func": "addPostRegAlloc", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114438, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "void", "PassConfig", "::", "addPreEmitPass", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILTargetMachine", "Func": "addPreEmitPass", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114439, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "void", "PassConfig", "::", "addPreEmitPass", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILTargetMachine", "Func": "addPreEmitPass", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114440, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "addPass", "(", "createLCSSAPass", "(", ")", ")", ";", "return", "true", ";"], "ground_truth": ["}"], "File": "HSAILTargetMachine", "Func": "addPreISel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114441, "Length": 11, "Cover_Rate": 0.6111111111111112} {"Template_token": ["", "bool", "PassConfig", "::", "addPreISel", "(", ")", "{"], "ground_truth": ["addPass", "(", "createLCSSAPass", "(", ")", ")", ";"], "File": "HSAILTargetMachine", "Func": "addPreISel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114442, "Length": 14, "Cover_Rate": 0.7777777777777778} {"Template_token": ["", "void", "PassConfig", "::", "addPreRegAlloc", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILTargetMachine", "Func": "addPreRegAlloc", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114443, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "void", "PassConfig", "::", "addPreRegAlloc", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILTargetMachine", "Func": "addPreRegAlloc", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114444, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "static", "StringRef", "computeDataLayout", "(", "const", "Triple", "&", "T", ")", "{", "if", "(", "T", ".", "getArch", "(", ")", "==", "Triple", "::", "hsail64", ")", "{", "return", "", "", "", "", "", ";", "}"], "ground_truth": ["return", "", "", "", "", ";"], "File": "HSAILTargetMachine", "Func": "computeDataLayout", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114445, "Length": 37, "Cover_Rate": 0.9736842105263158} {"Template_token": ["", "return", "new", "PassConfig", "(", "this", ",", "PM", ")", ";"], "ground_truth": ["}"], "File": "HSAILTargetMachine", "Func": "createPassConfig", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114447, "Length": 10, "Cover_Rate": 0.47619047619047616} {"Template_token": ["", "return", "&", "IntrinsicInfo", ";"], "ground_truth": ["}"], "File": "HSAILTargetMachine", "Func": "getIntrinsicInfo", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114450, "Length": 5, "Cover_Rate": 0.35714285714285715} {"Template_token": ["", "const", "Subtarget", "*", "getSubtargetImpl", "(", "const", "Function", "&", ")", "const", "override", "{", "return", "&", "Subtarget", ";"], "ground_truth": ["}"], "File": "HSAILTargetMachine", "Func": "getSubtargetImpl", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114452, "Length": 17, "Cover_Rate": 1.0} {"Template_token": ["", "const", "Subtarget", "*", "getSubtargetImpl", "(", "const", "Function", "&", ")", "const", "override", "{"], "ground_truth": ["return", "&", "Subtarget", ";"], "File": "HSAILTargetMachine", "Func": "getSubtargetImpl", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114453, "Length": 16, "Cover_Rate": 0.9411764705882353} {"Template_token": ["", "if", "(", "TT", ".", "getOS", "(", ")", "!=", "Triple", "::", "UnknownOS", ")", "TT", ".", "setOS", "(", "Triple", "::", "UnknownOS", ")", ";", "return", "TT", ";"], "ground_truth": ["}"], "File": "HSAILTargetMachine", "Func": "getTripleNoOS", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114454, "Length": 25, "Cover_Rate": 0.7352941176470589} {"Template_token": ["", "PassConfig", "(", "TargetMachine", "*", "TM", ",", "PassManagerBase", "&", "PM", ")", ":", "TargetPassConfig", "(", "TM", ",", "PM", ")", "{"], "ground_truth": ["}"], "File": "HSAILTargetMachine", "Func": "HSAILPassConfig", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114455, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "PassConfig", "(", "TargetMachine", "*", "TM", ",", "PassManagerBase", "&", "PM", ")", ":", "TargetPassConfig", "(", "TM", ",", "PM", ")", "{"], "ground_truth": ["}"], "File": "HSAILTargetMachine", "Func": "HSAILPassConfig", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114456, "Length": 19, "Cover_Rate": 1.0} {"Template_token": ["", "_32TargetMachine", "::", "_32TargetMachine", "(", "const", "Target", "&", "T", ",", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Reloc", "::", "Model", "RM", ",", "CodeModel", "::", "Model", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ")", ":", "TargetMachine", "(", "T", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "RM", ",", "CM", ",", "OL", ")", "{"], "ground_truth": ["if", "(", "TT", ".", "getArch", "(", ")", "==", "Triple", "::", "hsail64", ")", "{"], "File": "HSAILTargetMachine", "Func": "HSAIL_32TargetMachine", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114458, "Length": 73, "Cover_Rate": 0.8202247191011236} {"Template_token": ["", "_32TargetMachine", "::", "_32TargetMachine", "(", "const", "Target", "&", "T", ",", "const", "Triple", "&", "TT", ",", "StringRef", "CPU", ",", "StringRef", "FS", ",", "const", "TargetOptions", "&", "Options", ",", "Reloc", "::", "Model", "RM", ",", "CodeModel", "::", "Model", "CM", ",", "CodeGenOpt", "::", "Level", "OL", ")", ":", "TargetMachine", "(", "T", ",", "TT", ",", "CPU", ",", "FS", ",", "Options", ",", "RM", ",", "CM", ",", "OL", ")", "{", "if", "(", "TT", ".", "getArch", "(", ")", "==", "Triple", "::", "hsail64", ")", "{", "errs", "(", ")", "<<", "", "<<", "TT", ".", "str", "(", ")", "<<", "", ";", "}"], "ground_truth": ["}"], "File": "HSAILTargetMachine", "Func": "HSAIL_32TargetMachine", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114459, "Length": 89, "Cover_Rate": 1.0} {"Template_token": ["", "RegisterTargetMachine", "<", "_32TargetMachine", ">", "X", "(", "The_32Target", ")", ";", "RegisterTargetMachine", "<", "_64TargetMachine", ">", "Y", "(", "The_64Target", ")", ";"], "ground_truth": ["}"], "File": "HSAILTargetMachine", "Func": "LLVMInitializeHSAILTarget", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114461, "Length": 19, "Cover_Rate": 0.7916666666666666} {"Template_token": ["", "MCSection", "*", "getExplicitSectionGlobal", "(", "const", "GlobalValue", "*", "GV", ",", "SectionKind", "Kind", ",", "Mangler", "&", "Mang", ",", "const", "TargetMachine", "&", "TM", ")", "const", "override", "{", "return", "DataSection", ";"], "ground_truth": ["}"], "File": "HSAILTargetObjectFile", "Func": "getExplicitSectionGlobal", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114466, "Length": 28, "Cover_Rate": 1.0} {"Template_token": ["", "MCSection", "*", "getExplicitSectionGlobal", "(", "const", "GlobalValue", "*", "GV", ",", "SectionKind", "Kind", ",", "Mangler", "&", "Mang", ",", "const", "TargetMachine", "&", "TM", ")", "const", "override", "{", "return", "DataSection", ";"], "ground_truth": ["}"], "File": "HSAILTargetObjectFile", "Func": "getExplicitSectionGlobal", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114467, "Length": 28, "Cover_Rate": 1.0} {"Template_token": ["", "MCSection", "*", "getSectionForConstant", "(", "const", "DataLayout", "&", "DL", ",", "SectionKind", "Kind", ",", "const", "Constant", "*", "C", ")", "const", "override", "{"], "ground_truth": ["return", "ReadOnlySection", ";"], "File": "HSAILTargetObjectFile", "Func": "getSectionForConstant", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114468, "Length": 23, "Cover_Rate": 0.9583333333333334} {"Template_token": ["", "TargetObjectFile", "::", "TargetObjectFile", "(", ")", "{", "TextSection", "=", "nullptr", ";", "DataSection", "=", "nullptr", ";", "BSSSection", "=", "nullptr", ";", "ReadOnlySection", "=", "nullptr", ";", "StaticCtorSection", "=", "nullptr", ";", "StaticDtorSection", "=", "nullptr", ";", "LSDASection", "=", "nullptr", ";", "EHFrameSection", "=", "nullptr", ";", "DwarfAbbrevSection", "=", "nullptr", ";", "DwarfInfoSection", "=", "nullptr", ";", "DwarfLineSection", "=", "nullptr", ";", "DwarfFrameSection", "=", "nullptr", ";", "DwarfPubTypesSection", "=", "nullptr", ";", "DwarfDebugInlineSection", "=", "nullptr", ";", "DwarfStrSection", "=", "nullptr", ";", "DwarfLocSection", "=", "nullptr", ";", "DwarfARangesSection", "=", "nullptr", ";"], "ground_truth": ["DwarfRangesSection", "=", "nullptr", ";"], "File": "HSAILTargetObjectFile", "Func": "HSAILTargetObjectFile", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114469, "Length": 78, "Cover_Rate": 0.9873417721518988} {"Template_token": ["", "DwarfFrameSection", "=", "new", "Section", "(", "MCSection", "::", "SV_ELF", ",", "SectionKind", "::", "getMetadata", "(", ")", ")", ";", "DwarfPubTypesSection", "=", "new", "Section", "(", "MCSection", "::", "SV_ELF", ",", "SectionKind", "::", "getMetadata", "(", ")", ")", ";", "DwarfDebugInlineSection", "=", "new", "Section", "(", "MCSection", "::", "SV_ELF", ",", "SectionKind", "::", "getMetadata", "(", ")", ")", ";", "DwarfStrSection", "=", "new", "Section", "(", "MCSection", "::", "SV_ELF", ",", "SectionKind", "::", "getMetadata", "(", ")", ")", ";", "DwarfLocSection", "=", "new", "Section", "(", "MCSection", "::", "SV_ELF", ",", "SectionKind", "::", "getMetadata", "(", ")", ")", ";", "DwarfARangesSection", "=", "new", "Section", "(", "MCSection", "::", "SV_ELF", ",", "SectionKind", "::", "getMetadata", "(", ")", ")", ";", "DwarfRangesSection", "=", "new", "Section", "(", "MCSection", "::", "SV_ELF", ",", "SectionKind", "::", "getMetadata", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "HSAILTargetObjectFile", "Func": "Initialize", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114470, "Length": 113, "Cover_Rate": 0.3610223642172524} {"Template_token": ["", "BRIG32_DwarfTargetObjectFile", "::", "~", "BRIG32_DwarfTargetObjectFile", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILTargetObjectFile", "Func": "~BRIG32_DwarfTargetObjectFile", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114473, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "BRIG32_DwarfTargetObjectFile", "::", "~", "BRIG32_DwarfTargetObjectFile", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILTargetObjectFile", "Func": "~BRIG32_DwarfTargetObjectFile", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114474, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "BRIG64_DwarfTargetObjectFile", "::", "~", "BRIG64_DwarfTargetObjectFile", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILTargetObjectFile", "Func": "~BRIG64_DwarfTargetObjectFile", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114475, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "BRIG64_DwarfTargetObjectFile", "::", "~", "BRIG64_DwarfTargetObjectFile", "(", ")", "{"], "ground_truth": ["}"], "File": "HSAILTargetObjectFile", "Func": "~BRIG64_DwarfTargetObjectFile", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114476, "Length": 8, "Cover_Rate": 1.0} {"Template_token": ["", "TargetAsmStreamer", "::", "TargetAsmStreamer", "(", "MCStreamer", "&", "S", ")", ":", "TargetStreamer", "(", "S", ")", "{"], "ground_truth": ["}"], "File": "HSAILTargetStreamer", "Func": "HSAILTargetAsmStreamer", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114477, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "TargetAsmStreamer", "::", "TargetAsmStreamer", "(", "MCStreamer", "&", "S", ")", ":", "TargetStreamer", "(", "S", ")", "{"], "ground_truth": ["}"], "File": "HSAILTargetStreamer", "Func": "HSAILTargetAsmStreamer", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114478, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "TargetStreamer", "::", "TargetStreamer", "(", "MCStreamer", "&", "S", ")", ":", "MCTargetStreamer", "(", "S", ")", "{"], "ground_truth": ["}"], "File": "HSAILTargetStreamer", "Func": "HSAILTargetStreamer", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114479, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "TargetStreamer", "::", "TargetStreamer", "(", "MCStreamer", "&", "S", ")", ":", "MCTargetStreamer", "(", "S", ")", "{"], "ground_truth": ["}"], "File": "HSAILTargetStreamer", "Func": "HSAILTargetStreamer", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114480, "Length": 15, "Cover_Rate": 1.0} {"Template_token": ["", "EltTy", "=", "AT", "->", "getElementType", "(", ")", ";", "AT", "=", "dyn_cast", "<", "ArrayType", ">", "(", "EltTy", ")", ";", "}", "unsigned", "EltElts", "=", "~", "", ";", "Type", "*", "Tmp", "=", "analyzeType", "(", "EltTy", ",", "EltElts", ",", "DL", ")", ";", "if", "(", "EltElts", "!=", "", ")", "NElts", "*=", "EltElts", ";", "return", "Tmp", ";", "}", "if", "(", "VectorType", "*", "VT", "=", "dyn_cast", "<", "VectorType", ">", "(", "Ty", ")", ")", "{", "Type", "*", "EltTy", "=", "VT", "->", "getElementType", "(", ")", ";", "NElts", "=", "DL", ".", "getTypeAllocSize", "(", "Ty", ")", "/", "DL", ".", "getTypeAllocSize", "(", "EltTy", ")", ";", "assert", "(", "NElts", ">=", "VT", "->", "getNumElements", "(", ")", ")", ";", "if", "(", "EltTy", "->", "isIntegerTy", "(", "", ")", ")", "report_fatal_error", "(", "", ")", ";", "return", "EltTy", ";", "}", "if", "(", "isa", "<", "StructType", ">", "(", "Ty", ")", ")", "{", "NElts", "=", "DL", ".", "getTypeAllocSize", "(", "Ty", ")", ";", "return", "Type", "::", "getInt8Ty", "(", "Ty", "->", "getContext", "(", ")", ")", ";", "}", "assert", "(", "!", "Ty", "->", "isAggregateType", "(", ")", ")", ";", "NElts", "=", "", ";", "if", "(", "Ty", "->", "isIntegerTy", "(", "", ")", ")", "return", "Type", "::", "getInt8Ty", "(", "Ty", "->", "getContext", "(", ")", ")", ";"], "ground_truth": ["return", "Ty", ";"], "File": "HSAILUtilityFunctions", "Func": "analyzeType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114481, "Length": 193, "Cover_Rate": 0.7782258064516129} {"Template_token": ["", "Type", "*", "Tmp", "=", "analyzeType", "(", "EltTy", ",", "EltElts", ",", "DL", ")", ";", "if", "(", "EltElts", "!=", "", ")", "NElts", "*=", "EltElts", ";", "return", "Tmp", ";", "}", "if", "(", "VectorType", "*", "VT", "=", "dyn_cast", "<", "VectorType", ">", "(", "Ty", ")", ")", "{", "Type", "*", "EltTy", "=", "VT", "->", "getElementType", "(", ")", ";", "NElts", "=", "DL", ".", "getTypeAllocSize", "(", "Ty", ")", "/", "DL", ".", "getTypeAllocSize", "(", "EltTy", ")", ";", "assert", "(", "NElts", ">=", "VT", "->", "getNumElements", "(", ")", ")", ";", "if", "(", "EltTy", "->", "isIntegerTy", "(", "", ")", ")", "report_fatal_error", "(", "", ")", ";"], "ground_truth": ["return", "EltTy", ";"], "File": "HSAILUtilityFunctions", "Func": "analyzeType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114482, "Length": 96, "Cover_Rate": 0.3870967741935484} {"Template_token": ["", "if", "(", "ArrayType", "*", "ATy", "=", "dyn_cast", "<", "ArrayType", ">", "(", "ty", ")", ")", "ty", "=", "ATy", "->", "getElementType", "(", ")", ";"], "ground_truth": ["if", "(", "IsImage", "(", "ty", ")", "||", "IsSampler", "(", "ty", ")", ")", "return", "", ";"], "File": "HSAILUtilityFunctions", "Func": "getAlignTypeQualifier", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114483, "Length": 37, "Cover_Rate": 0.30833333333333335} {"Template_token": ["", "return", "BRIG_TYPE_NONE", ";", "case", "Type", "::", "FloatTyID", ":", "return", "BRIG_TYPE_F32", ";", "case", "Type", "::", "DoubleTyID", ":", "return", "BRIG_TYPE_F64", ";", "case", "Type", "::", "IntegerTyID", ":", "if", "(", "type", "->", "isIntegerTy", "(", "", ")", ")", "{", "return", "Signed", "?", "BRIG_TYPE_S8", ":", "BRIG_TYPE_U8", ";", "}", "else", "if", "(", "type", "->", "isIntegerTy", "(", "", ")", ")", "{", "return", "Signed", "?", "BRIG_TYPE_S16", ":", "BRIG_TYPE_U16", ";", "}", "else", "if", "(", "type", "->", "isIntegerTy", "(", "", ")", ")", "{", "return", "Signed", "?", "BRIG_TYPE_S32", ":", "BRIG_TYPE_U32", ";", "}", "else", "if", "(", "type", "->", "isIntegerTy", "(", "", ")", ")", "{", "return", "Signed", "?", "BRIG_TYPE_S64", ":", "BRIG_TYPE_U64", ";", "}", "else", "if", "(", "type", "->", "isIntegerTy", "(", "", ")", ")", "{", "return", "BRIG_TYPE_B1", ";", "}", "else", "llvm_unreachable", "(", "", ")", ";", "break", ";", "case", "Type", "::", "PointerTyID", ":", "{", "if", "(", "OpaqueType", "OT", "=", "GetOpaqueType", "(", "type", ")", ")", "{", "if", "(", "IsImage", "(", "OT", ")", ")", "return", "BRIG_TYPE_RWIMG", ";", "if", "(", "OT", "==", "Sampler", ")", "return", "BRIG_TYPE_SAMP", ";", "}", "unsigned", "AS", "=", "cast", "<", "PointerType", ">", "(", "type", ")", "->", "getAddressSpace", "(", ")", ";", "return", "DL", ".", "getPointerSize", "(", "AS", ")", "==", "", "?", "BRIG_TYPE_U64", ":", "BRIG_TYPE_U32", ";", "}", "case", "Type", "::", "StructTyID", ":", "return", "BRIG_TYPE_U8_ARRAY", ";", "case", "Type", "::", "VectorTyID", ":", "return", "static_cast", "<", "BrigType", ">", "(", "getBrigType", "(", "type", "->", "getScalarType", "(", ")", ",", "DL", ",", "Signed", ")", "|", "BRIG_TYPE_ARRAY", ")", ";", "case", "Type", "::", "ArrayTyID", ":", "return", "static_cast", "<", "BrigType", ">", "(", "getBrigType", "(", "cast", "<", "ArrayType", ">", "(", "type", ")", "->", "getElementType", "(", ")", ",", "DL", ",", "Signed", ")", "|", "BRIG_TYPE_ARRAY", ")", ";", "default", ":", "type", "->", "dump", "(", ")", ";", "llvm_unreachable", "(", "", ")", ";", "}"], "ground_truth": ["}"], "File": "HSAILUtilityFunctions", "Func": "getBrigType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114484, "Length": 272, "Cover_Rate": 0.9006622516556292} {"Template_token": ["", "break", ";", "case", "Type", "::", "PointerTyID", ":", "{", "if", "(", "OpaqueType", "OT", "=", "GetOpaqueType", "(", "type", ")", ")", "{", "if", "(", "IsImage", "(", "OT", ")", ")", "return", "BRIG_TYPE_RWIMG", ";", "if", "(", "OT", "==", "Sampler", ")", "return", "BRIG_TYPE_SAMP", ";", "}", "unsigned", "AS", "=", "cast", "<", "PointerType", ">", "(", "type", ")", "->", "getAddressSpace", "(", ")", ";", "return", "DL", ".", "getPointerSize", "(", "AS", ")", "==", "", "?", "BRIG_TYPE_U64", ":", "BRIG_TYPE_U32", ";", "}", "case", "Type", "::", "StructTyID", ":", "return", "BRIG_TYPE_U8_ARRAY", ";", "case", "Type", "::", "VectorTyID", ":", "return", "static_cast", "<", "BrigType", ">", "(", "getBrigType", "(", "type", "->", "getScalarType", "(", ")", ",", "DL", ",", "Signed", ")", "|", "BRIG_TYPE_ARRAY", ")", ";", "case", "Type", "::", "ArrayTyID", ":", "return", "static_cast", "<", "BrigType", ">", "(", "getBrigType", "(", "cast", "<", "ArrayType", ">", "(", "type", ")", "->", "getElementType", "(", ")", ",", "DL", ",", "Signed", ")", "|", "BRIG_TYPE_ARRAY", ")", ";", "default", ":", "type", "->", "dump", "(", ")", ";", "llvm_unreachable", "(", "", ")", ";"], "ground_truth": ["}"], "File": "HSAILUtilityFunctions", "Func": "getBrigType", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114485, "Length": 151, "Cover_Rate": 0.5} {"Template_token": ["", "static", "inline", "bool", "isConv", "(", "const", "MachineInstr", "*", "MI", ")", "{"], "ground_truth": ["return", "MI", "->", "getDesc", "(", ")", ".", "TSFlags", "&", "", ";"], "File": "HSAILUtilityFunctions", "Func": "isConv", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114486, "Length": 22, "Cover_Rate": 0.88} {"Template_token": ["", "return", "MI", "->", "getDesc", "(", ")", ".", "TSFlags", "&", "", ";"], "ground_truth": ["}"], "File": "HSAILUtilityFunctions", "Func": "isConv", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114487, "Length": 12, "Cover_Rate": 0.48} {"Template_token": ["", "StringRef", "GVname", "=", "GV", "->", "getName", "(", ")", ";"], "ground_truth": ["return", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", "||", "GVname", ".", "startswith", "(", "", ")", ";"], "File": "HSAILUtilityFunctions", "Func": "isIgnoredGV", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114488, "Length": 108, "Cover_Rate": 0.6585365853658537} {"Template_token": ["", "static", "inline", "bool", "isImageInst", "(", "const", "MachineInstr", "*", "MI", ")", "{"], "ground_truth": ["return", "MI", "->", "getDesc", "(", ")", ".", "TSFlags", "&", "", ";"], "File": "HSAILUtilityFunctions", "Func": "isImageInst", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114490, "Length": 22, "Cover_Rate": 0.88} {"Template_token": ["", "if", "(", "CallingConv", "::", "SPIR_KERNEL", "==", "F", "->", "getCallingConv", "(", ")", ")", "return", "true", ";"], "ground_truth": ["return", "isKernelFunc", "(", "F", "->", "getName", "(", ")", ")", ";"], "File": "HSAILUtilityFunctions", "Func": "isKernelFunc", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114491, "Length": 25, "Cover_Rate": 0.7142857142857143} {"Template_token": ["", "if", "(", "CallingConv", "::", "SPIR_KERNEL", "==", "F", "->", "getCallingConv", "(", ")", ")", "return", "true", ";"], "ground_truth": ["return", "isKernelFunc", "(", "F", "->", "getName", "(", ")", ")", ";"], "File": "HSAILUtilityFunctions", "Func": "isKernelFunc", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114492, "Length": 25, "Cover_Rate": 0.7142857142857143} {"Template_token": ["", "bool", "isSPIRModule", "(", "const", "Module", "&", "M", ")", "{"], "ground_truth": ["return", "M", ".", "getNamedMetadata", "(", "", ")", ";"], "File": "HSAILUtilityFunctions", "Func": "isSPIRModule", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114493, "Length": 17, "Cover_Rate": 0.9444444444444444} {"Template_token": ["", "bool", "notUsedInKernel", "(", "const", "GlobalVariable", "*", "GV", ")", "{", "SmallVector", "<", "const", "User", "*", ",", "", ">", "worklist", ";", "worklist", ".", "append", "(", "GV", "->", "user_begin", "(", ")", ",", "GV", "->", "user_end", "(", ")", ")", ";", "while", "(", "!", "worklist", ".", "empty", "(", ")", ")", "{", "const", "User", "*", "user", "=", "worklist", ".", "pop_back_val", "(", ")", ";"], "ground_truth": ["if", "(", "const", "GlobalValue", "*", "GUser", "=", "dyn_cast", "<", "GlobalValue", ">", "(", "user", ")", ")", "{"], "File": "HSAILUtilityFunctions", "Func": "notUsedInKernel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114495, "Length": 73, "Cover_Rate": 0.5793650793650794} {"Template_token": ["", "SmallVector", "<", "const", "User", "*", ",", "", ">", "worklist", ";", "worklist", ".", "append", "(", "GV", "->", "user_begin", "(", ")", ",", "GV", "->", "user_end", "(", ")", ")", ";", "while", "(", "!", "worklist", ".", "empty", "(", ")", ")", "{", "const", "User", "*", "user", "=", "worklist", ".", "pop_back_val", "(", ")", ";"], "ground_truth": ["if", "(", "const", "GlobalValue", "*", "GUser", "=", "dyn_cast", "<", "GlobalValue", ">", "(", "user", ")", ")", "{"], "File": "HSAILUtilityFunctions", "Func": "notUsedInKernel", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114496, "Length": 64, "Cover_Rate": 0.5079365079365079} {"Template_token": ["", "Name", "=", "Name", ".", "drop_front", "(", "", ")", ";", "}", "size_t", "p", "=", "", ";", "size_t", "q", "=", "", ";", "while", "(", "q", "!=", "StringRef", "::", "npos", ")", "{", "q", "=", "Name", ".", "find_first_not_of", "(", "Syntax", ",", "p", ")", ";", "if", "(", "q", "!=", "p", ")", "{", "NewName", "+=", "Name", ".", "slice", "(", "p", ",", "q", ")", ";", "}", "if", "(", "q", "==", "StringRef", "::", "npos", ")", "break", ";"], "ground_truth": ["NewName", "+=", "'_'", ";"], "File": "HSAILUtilityFunctions", "Func": "sanitizedGlobalValueName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114497, "Length": 73, "Cover_Rate": 0.35436893203883496} {"Template_token": ["", "NewName", "+=", "'_'", ";", "Name", "=", "Name", ".", "drop_front", "(", "", ")", ";", "}", "size_t", "p", "=", "", ";", "size_t", "q", "=", "", ";", "while", "(", "q", "!=", "StringRef", "::", "npos", ")", "{", "q", "=", "Name", ".", "find_first_not_of", "(", "Syntax", ",", "p", ")", ";", "if", "(", "q", "!=", "p", ")", "{", "NewName", "+=", "Name", ".", "slice", "(", "p", ",", "q", ")", ";", "}", "if", "(", "q", "==", "StringRef", "::", "npos", ")", "break", ";", "NewName", "+=", "'_'", ";", "p", "=", "q", "+", "", ";", "}", "if", "(", "Name", ".", "empty", "(", ")", "||", "Digits", ".", "find", "(", "Name", "[", "", "]", ")", "!=", "StringRef", "::", "npos", "||", "!", "Name", ".", "equals", "(", "NewName", ")", ")", "{", "Out", ".", "append", "(", "NewName", ".", "begin", "(", ")", ",", "NewName", ".", "end", "(", ")", ")", ";"], "ground_truth": ["return", "true", ";"], "File": "HSAILUtilityFunctions", "Func": "sanitizedGlobalValueName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114498, "Length": 135, "Cover_Rate": 0.6553398058252428} {"Template_token": ["", "bool", "sanitizeGlobalValueName", "(", "GlobalValue", "*", "GV", ")", "{", "SmallString", "<", "", ">", "NewName", ";", "if", "(", "sanitizedGlobalValueName", "(", "GV", "->", "getName", "(", ")", ",", "NewName", ")", ")", "{", "GV", "->", "setName", "(", "Twine", "(", "", ")", "+", "Twine", "(", "NewName", ")", ")", ";", "return", "true", ";", "}", "return", "false", ";"], "ground_truth": ["}"], "File": "HSAILUtilityFunctions", "Func": "sanitizeGlobalValueName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114499, "Length": 51, "Cover_Rate": 1.0} {"Template_token": ["", "if", "(", "sanitizedGlobalValueName", "(", "GV", "->", "getName", "(", ")", ",", "NewName", ")", ")", "{", "GV", "->", "setName", "(", "Twine", "(", "", ")", "+", "Twine", "(", "NewName", ")", ")", ";", "return", "true", ";", "}", "return", "false", ";"], "ground_truth": ["}"], "File": "HSAILUtilityFunctions", "Func": "sanitizeGlobalValueName", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114500, "Length": 37, "Cover_Rate": 0.7254901960784313} {"Template_token": ["", "uint64_t", "RawVectorOstream", "::", "current_pos", "(", ")", "const", "{"], "ground_truth": ["return", "static_cast", "<", "uint64_t", ">", "(", "Position", ")", ";"], "File": "RawVectorOstream", "Func": "current_pos", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114502, "Length": 17, "Cover_Rate": 0.9444444444444444} {"Template_token": ["", "return", "StringRef", "(", "Data", ".", "data", "(", ")", ",", "Data", ".", "size", "(", ")", ")", ";"], "ground_truth": ["}"], "File": "RawVectorOstream", "Func": "getData", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114504, "Length": 17, "Cover_Rate": 0.7391304347826086} {"Template_token": ["", "return", "Other", ";"], "ground_truth": ["}"], "File": "RawVectorOstream", "Func": "getOtherStream", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114505, "Length": 4, "Cover_Rate": 0.4} {"Template_token": ["", "void", "RawVectorOstream", "::", "pwrite_impl", "(", "const", "char", "*", "Ptr", ",", "size_t", "Size", ",", "uint64_t", "Offset", ")", "{", "flush", "(", ")", ";", "memcpy", "(", "Data", ".", "data", "(", ")", "+", "Offset", ",", "Ptr", ",", "Size", ")", ";", "if", "(", "Other", ")", "Other", "->", "pwrite", "(", "Ptr", ",", "Size", ",", "Offset", ")", ";"], "ground_truth": ["}"], "File": "RawVectorOstream", "Func": "pwrite_impl", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114506, "Length": 52, "Cover_Rate": 1.0} {"Template_token": ["", "RawVectorOstream", "::", "RawVectorOstream", "(", "raw_pwrite_stream", "*", "other", ")", ":", "Data", "(", "AllocationChunk", ")", ",", "Position", "(", "", ")", ",", "Other", "(", "other", ")", "{"], "ground_truth": ["}"], "File": "RawVectorOstream", "Func": "RawVectorOstream", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114507, "Length": 25, "Cover_Rate": 1.0} {"Template_token": ["", "RawVectorOstream", "::", "RawVectorOstream", "(", "raw_pwrite_stream", "*", "other", ")", ":", "Data", "(", "AllocationChunk", ")", ",", "Position", "(", "", ")", ",", "Other", "(", "other", ")", "{"], "ground_truth": ["}"], "File": "RawVectorOstream", "Func": "RawVectorOstream", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114508, "Length": 25, "Cover_Rate": 1.0} {"Template_token": ["", "void", "RawVectorOstream", "::", "releaseStream", "(", ")", "{", "if", "(", "Other", ")", "{"], "ground_truth": ["Other", "->", "flush", "(", ")", ";"], "File": "RawVectorOstream", "Func": "releaseStream", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114509, "Length": 18, "Cover_Rate": 0.75} {"Template_token": ["", "Other", "->", "flush", "(", ")", ";", "}"], "ground_truth": ["Other", "=", "", ";"], "File": "RawVectorOstream", "Func": "releaseStream", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114510, "Length": 11, "Cover_Rate": 0.4583333333333333} {"Template_token": ["", "releaseStream", "(", ")", ";", "Other", "=", "other", ";"], "ground_truth": ["}"], "File": "RawVectorOstream", "Func": "setOtherStream", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114512, "Length": 9, "Cover_Rate": 0.47368421052631576} {"Template_token": ["", "}", "std", "::", "copy", "(", "Ptr", ",", "Ptr", "+", "Size", ",", "Data", ".", "begin", "(", ")", "+", "Position", ")", ";", "Position", "+=", "Size", ";", "if", "(", "Other", ")", "{"], "ground_truth": ["Other", "->", "write", "(", "Ptr", ",", "Size", ")", ";"], "File": "RawVectorOstream", "Func": "write_impl", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114513, "Length": 38, "Cover_Rate": 0.4175824175824176} {"Template_token": ["", "flush", "(", ")", ";", "Other", "->", "flush", "(", ")", ";"], "ground_truth": ["}"], "File": "RawVectorOstream", "Func": "~RawVectorOstream", "Target": "HSAIL", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 114514, "Length": 11, "Cover_Rate": 0.36666666666666664}