{"ground_truth": ["", "bool", "DirectXTargetMachine", "::", "addPassesToEmitFile", "(", "PassManagerBase", "&", "PM", ",", "raw_pwrite_stream", "&", "Out", ",", "raw_pwrite_stream", "*", "DwoOut", ",", "CodeGenFileType", "FileType", ",", "bool", "DisableVerify", ",", "MachineModuleInfoWrapperPass", "*", "MMIWP", ")", "{", "PM", ".", "add", "(", "createDXILPrepareModulePass", "(", ")", ")", ";", "switch", "(", "FileType", ")", "{", "case", "CGFT_AssemblyFile", ":", "PM", ".", "add", "(", "createPrintModulePass", "(", "Out", ",", "\"\"", ",", "true", ")", ")", ";", "break", ";", "case", "CGFT_ObjectFile", ":", "PM", ".", "add", "(", "createBitcodeWriterPass", "(", "Out", ",", "true", ",", "false", ",", "false", ")", ")", ";", "break", ";", "case", "CGFT_Null", ":", "break", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Add", "passes", "to", "the", "specified", "pass", "manager", "to", "get", "the", "specified", "file", "emitted", "."], "TS_V_token": ["DirectX", "DXIL", "\"\""], "File": "DirectXTargetMachine1", "Func": "addPassesToEmitFile", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12130, "Length": 92} {"ground_truth": ["", "bool", "DirectXTargetMachine", "::", "addPassesToEmitFile", "(", "PassManagerBase", "&", "PM", ",", "raw_pwrite_stream", "&", "Out", ",", "raw_pwrite_stream", "*", "DwoOut", ",", "CodeGenFileType", "FileType", ",", "bool", "DisableVerify", ",", "MachineModuleInfoWrapperPass", "*", "MMIWP", ")", "{", "PM", ".", "add", "(", "createDXILOpLoweringLegacyPass", "(", ")", ")", ";", "PM", ".", "add", "(", "createDXILPrepareModulePass", "(", ")", ")", ";", "PM", ".", "add", "(", "createDXILTranslateMetadataPass", "(", ")", ")", ";", "switch", "(", "FileType", ")", "{", "case", "CGFT_AssemblyFile", ":", "PM", ".", "add", "(", "createPrintModulePass", "(", "Out", ",", "\"\"", ",", "true", ")", ")", ";", "break", ";", "case", "CGFT_ObjectFile", ":", "PM", ".", "add", "(", "createDXILWriterPass", "(", "Out", ")", ")", ";", "break", ";", "case", "CGFT_Null", ":", "break", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Add", "passes", "to", "the", "specified", "pass", "manager", "to", "get", "the", "specified", "file", "emitted", "."], "TS_V_token": ["DirectX", "DXIL", "DXIL", "DXIL", "\"\"", "DXIL"], "File": "DirectXTargetMachine2", "Func": "addPassesToEmitFile", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12131, "Length": 104} {"ground_truth": ["", "bool", "DirectXTargetMachine", "::", "addPassesToEmitFile", "(", "PassManagerBase", "&", "PM", ",", "raw_pwrite_stream", "&", "Out", ",", "raw_pwrite_stream", "*", "DwoOut", ",", "CodeGenFileType", "FileType", ",", "bool", "DisableVerify", ",", "MachineModuleInfoWrapperPass", "*", "MMIWP", ")", "{", "switch", "(", "FileType", ")", "{", "case", "CGFT_AssemblyFile", ":", "PM", ".", "add", "(", "createPrintModulePass", "(", "Out", ",", "\"\"", ",", "true", ")", ")", ";", "break", ";", "case", "CGFT_ObjectFile", ":", "PM", ".", "add", "(", "createBitcodeWriterPass", "(", "Out", ",", "true", ",", "false", ",", "false", ")", ")", ";", "break", ";", "case", "CGFT_Null", ":", "break", ";", "}", "return", "false", ";", "}", ""], "natrual_language": ["Add", "passes", "to", "the", "specified", "pass", "manager", "to", "get", "the", "specified", "file", "emitted", "."], "TS_V_token": ["DirectX", "\"\""], "File": "DirectXTargetMachine", "Func": "addPassesToEmitFile", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12132, "Length": 83} {"ground_truth": ["", "bool", "DirectXTargetMachine", "::", "addPassesToEmitMC", "(", "PassManagerBase", "&", "PM", ",", "MCContext", "*", "&", "Ctx", ",", "raw_pwrite_stream", "&", "Out", ",", "bool", "DisableVerify", ")", "{", "return", "true", ";", "}", ""], "natrual_language": ["Add", "passes", "to", "the", "specified", "pass", "manager", "to", "get", "machine", "code", "emitted", "with", "the", "MCJIT", "."], "TS_V_token": ["DirectX"], "File": "DirectXTargetMachine", "Func": "addPassesToEmitMC", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12133, "Length": 26} {"ground_truth": ["", "TargetPassConfig", "*", "DirectXTargetMachine", "::", "createPassConfig", "(", "PassManagerBase", "&", "PM", ")", "{", "return", "new", "DirectXPassConfig", "(", "*", "this", ",", "PM", ")", ";", "}", ""], "natrual_language": ["Create", "a", "pass", "configuration", "object", "to", "be", "used", "by", "addPassToEmitX", "methods", "for", "generating", "a", "pipeline", "of", "CodeGen", "passes", "."], "TS_V_token": ["DirectX"], "File": "DirectXTargetMachine", "Func": "createPassConfig", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12134, "Length": 22} {"ground_truth": ["", "FunctionPass", "*", "createTargetRegisterAllocator", "(", "bool", ")", "override", "{", "return", "nullptr", ";", "}", ""], "natrual_language": ["createTargetRegisterAllocator", "-", "Create", "the", "register", "allocator", "pass", "for", "this", "target", "at", "the", "current", "optimization", "level", "."], "TS_V_token": ["DirectX"], "File": "DirectXTargetMachine", "Func": "createTargetRegisterAllocator", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12135, "Length": 12} {"ground_truth": ["", "MCSection", "*", "getExplicitSectionGlobal", "(", "const", "GlobalObject", "*", "GO", ",", "SectionKind", "Kind", ",", "const", "TargetMachine", "&", "TM", ")", "const", "override", "{", "llvm_unreachable", "(", "\"Not supported!\"", ")", ";", "}", ""], "natrual_language": ["Targets", "should", "implement", "this", "method", "to", "assign", "a", "section", "to", "globals", "with", "an", "explicit", "section", "specfied", "."], "TS_V_token": ["DirectX", "\"Not supported!\""], "File": "DirectXTargetMachine", "Func": "getExplicitSectionGlobal", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12136, "Length": 26} {"ground_truth": ["", "TargetLoweringObjectFile", "*", "getObjFileLowering", "(", ")", "const", "override", "{", "return", "TLOF", ".", "get", "(", ")", ";", "}", ""], "natrual_language": ["Return", "information", "about", "object", "file", "lowering", "."], "TS_V_token": ["DirectX"], "File": "DirectXTargetMachine", "Func": "getObjFileLowering", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12137, "Length": 16} {"ground_truth": ["", "const", "DirectXSubtarget", "*", "DirectXTargetMachine", "::", "getSubtargetImpl", "(", "const", "Function", "&", ")", "const", "{", "return", "Subtarget", ".", "get", "(", ")", ";", "}", ""], "natrual_language": ["Virtual", "method", "implemented", "by", "subclasses", "that", "returns", "a", "reference", "to", "that", "target", "'s", "TargetSubtargetInfo-derived", "member", "variable", "."], "TS_V_token": ["DirectX"], "File": "DirectXTargetMachine", "Func": "getSubtargetImpl", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12138, "Length": 21} {"ground_truth": ["", "TargetTransformInfo", "DirectXTargetMachine", "::", "getTargetTransformInfo", "(", "const", "Function", "&", "F", ")", "const", "{", "return", "TargetTransformInfo", "(", "DirectXTTIImpl", "(", "this", ",", "F", ")", ")", ";", "}", ""], "natrual_language": ["Get", "a", "TargetTransformInfo", "implementation", "for", "the", "target", "."], "TS_V_token": ["DirectX"], "File": "DirectXTargetMachine", "Func": "getTargetTransformInfo", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12139, "Length": 24} {"ground_truth": ["", "const", "DirectXTargetLowering", "*", "getTLI", "(", ")", "const", "{", "return", "TLI", ";", "}", ""], "natrual_language": ["Getter", "for", "generic", "TargetLowering", "class", "."], "TS_V_token": ["DirectX"], "File": "DirectXTargetTransformInfo", "Func": "getTLI", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12140, "Length": 12} {"ground_truth": ["", "void", "BitcodeWriter", "::", "copyStrtab", "(", "StringRef", "Strtab", ")", "{", "writeBlob", "(", "bitc", "::", "STRTAB_BLOCK_ID", ",", "bitc", "::", "STRTAB_BLOB", ",", "Strtab", ")", ";", "WroteStrtab", "=", "true", ";", "}", ""], "natrual_language": ["Copy", "the", "string", "table", "for", "another", "module", "into", "this", "bitcode", "file", "."], "TS_V_token": ["DirectX"], "File": "DXILBitcodeWriter", "Func": "copyStrtab", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12141, "Length": 27} {"ground_truth": ["", "void", "DXILBitcodeWriter", "::", "write", "(", ")", "{", "Stream", ".", "EnterSubblock", "(", "bitc", "::", "MODULE_BLOCK_ID", ",", "3", ")", ";", "DXILBitcodeWriter", "::", "writeModuleVersion", "(", ")", ";", "writeBlockInfo", "(", ")", ";", "writeAttributeGroupTable", "(", ")", ";", "writeAttributeTable", "(", ")", ";", "writeTypeTable", "(", ")", ";", "writeComdats", "(", ")", ";", "writeModuleInfo", "(", ")", ";", "writeModuleConstants", "(", ")", ";", "writeModuleMetadataKinds", "(", ")", ";", "writeModuleMetadata", "(", ")", ";", "writeFunctionLevelValueSymbolTable", "(", "M", ".", "getValueSymbolTable", "(", ")", ")", ";", "if", "(", "VE", ".", "shouldPreserveUseListOrder", "(", ")", ")", "writeUseListBlock", "(", "nullptr", ")", ";", "for", "(", "const", "Function", "&", "F", ":", "M", ")", "if", "(", "!", "F", ".", "isDeclaration", "(", ")", ")", "writeFunction", "(", "F", ")", ";", "Stream", ".", "ExitBlock", "(", ")", ";", "}", ""], "natrual_language": ["Write", "the", "profile", "to", "a", "string", "output", "stream", "OS", "."], "TS_V_token": ["DirectX", "DXIL", "3", "DXIL"], "File": "DXILBitcodeWriter", "Func": "write", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12142, "Length": 112} {"ground_truth": ["", "void", "BitcodeWriter", "::", "writeModule", "(", "const", "Module", "&", "M", ")", "{", "assert", "(", "!", "WroteStrtab", ")", ";", "assert", "(", "M", ".", "isMaterialized", "(", ")", ")", ";", "Mods", ".", "push_back", "(", "const_cast", "<", "Module", "*", ">", "(", "&", "M", ")", ")", ";", "DXILBitcodeWriter", "ModuleWriter", "(", "M", ",", "Buffer", ",", "StrtabBuilder", ",", "*", "Stream", ")", ";", "ModuleWriter", ".", "write", "(", ")", ";", "}", ""], "natrual_language": ["Write", "the", "specified", "module", "to", "the", "buffer", "specified", "at", "construction", "time", "."], "TS_V_token": ["DirectX", "DXIL"], "File": "DXILBitcodeWriter", "Func": "writeModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12143, "Length": 61} {"ground_truth": ["", "void", "BitcodeWriter", "::", "writeStrtab", "(", ")", "{", "assert", "(", "!", "WroteStrtab", ")", ";", "std", "::", "vector", "<", "char", ">", "Strtab", ";", "StrtabBuilder", ".", "finalizeInOrder", "(", ")", ";", "Strtab", ".", "resize", "(", "StrtabBuilder", ".", "getSize", "(", ")", ")", ";", "StrtabBuilder", ".", "write", "(", "(", "uint8_t", "*", ")", "Strtab", ".", "data", "(", ")", ")", ";", "writeBlob", "(", "bitc", "::", "STRTAB_BLOCK_ID", ",", "bitc", "::", "STRTAB_BLOB", ",", "{", "Strtab", ".", "data", "(", ")", ",", "Strtab", ".", "size", "(", ")", "}", ")", ";", "WroteStrtab", "=", "true", ";", "}", ""], "natrual_language": ["Write", "the", "bitcode", "file", "'s", "string", "table", "."], "TS_V_token": ["DirectX"], "File": "DXILBitcodeWriter", "Func": "writeStrtab", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12144, "Length": 83} {"ground_truth": ["", "void", "BitcodeWriter", "::", "writeSymtab", "(", ")", "{", "assert", "(", "!", "WroteStrtab", "&&", "!", "WroteSymtab", ")", ";", "for", "(", "Module", "*", "M", ":", "Mods", ")", "{", "if", "(", "M", "->", "getModuleInlineAsm", "(", ")", ".", "empty", "(", ")", ")", "continue", ";", "}", "WroteSymtab", "=", "true", ";", "SmallVector", "<", "char", ",", "0", ">", "Symtab", ";", "if", "(", "Error", "E", "=", "irsymtab", "::", "build", "(", "Mods", ",", "Symtab", ",", "StrtabBuilder", ",", "Alloc", ")", ")", "{", "consumeError", "(", "std", "::", "move", "(", "E", ")", ")", ";", "return", ";", "}", "writeBlob", "(", "bitc", "::", "SYMTAB_BLOCK_ID", ",", "bitc", "::", "SYMTAB_BLOB", ",", "{", "Symtab", ".", "data", "(", ")", ",", "Symtab", ".", "size", "(", ")", "}", ")", ";", "}", ""], "natrual_language": ["Attempt", "to", "write", "a", "symbol", "table", "to", "the", "bitcode", "file", "."], "TS_V_token": ["DirectX", "0"], "File": "DXILBitcodeWriter", "Func": "writeSymtab", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12145, "Length": 110} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"DXIL Op Lowering\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["DirectX", "\"DXIL Op Lowering\""], "File": "DXILOpLowering", "Func": "getPassName", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12146, "Length": 11} {"ground_truth": ["", "PreservedAnalyses", "run", "(", "Module", "&", "M", ",", "ModuleAnalysisManager", "&", ")", "{", "if", "(", "lowerIntrinsics", "(", "M", ")", ")", "return", "PreservedAnalyses", "::", "none", "(", ")", ";", "return", "PreservedAnalyses", "::", "all", "(", ")", ";", "}", ""], "natrual_language": ["Run", "the", "analysis", "pass", "over", "a", "function", "and", "produce", "a", "dominator", "tree", "."], "TS_V_token": ["DirectX"], "File": "DXILOpLowering", "Func": "run", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12147, "Length": 33} {"ground_truth": ["", "bool", "runOnModule", "(", "Module", "&", "M", ")", "override", "{", "return", "lowerIntrinsics", "(", "M", ")", ";", "}", ""], "natrual_language": ["runOnModule", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "process", "the", "module", "being", "operated", "on", "."], "TS_V_token": ["DirectX"], "File": "DXILOpLowering", "Func": "runOnModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12148, "Length": 16} {"ground_truth": ["", "static", "bool", "classof", "(", "const", "Type", "*", "T", ")", "{", "return", "T", "->", "getTypeID", "(", ")", "==", "DXILPointerTyID", ";", "}", ""], "natrual_language": ["Methods", "for", "support", "type", "inquiry", "through", "isa", ",", "cast", ",", "and", "dyn_cast", ":"], "TS_V_token": ["DirectX", "DXIL"], "File": "DXILPointerType", "Func": "classof", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12149, "Length": 20} {"ground_truth": ["", "TypedPointerType", "*", "TypedPointerType", "::", "get", "(", "Type", "*", "EltTy", ",", "unsigned", "AddressSpace", ")", "{", "assert", "(", "EltTy", "&&", "\"Can't get a pointer to type!\"", ")", ";", "assert", "(", "isValidElementType", "(", "EltTy", ")", "&&", "\"Invalid type for pointer element!\"", ")", ";", "llvm", "::", "Any", "&", "TargetData", "=", "EltTy", "->", "getContext", "(", ")", ".", "getTargetData", "(", ")", ";", "if", "(", "!", "TargetData", ".", "hasValue", "(", ")", ")", "TargetData", "=", "Any", "{", "std", "::", "make_shared", "<", "TypedPointerTracking", ">", "(", ")", "}", ";", "assert", "(", "any_isa", "<", "std", "::", "shared_ptr", "<", "TypedPointerTracking", ">>", "(", "TargetData", ")", "&&", "\"Unexpected target data type\"", ")", ";", "std", "::", "shared_ptr", "<", "TypedPointerTracking", ">", "Tracking", "=", "any_cast", "<", "std", "::", "shared_ptr", "<", "TypedPointerTracking", ">>", "(", "TargetData", ")", ";", "std", "::", "unique_ptr", "<", "TypedPointerType", ">", "&", "Entry", "=", "AddressSpace", "==", "0", "?", "Tracking", "->", "PointerTypes", "[", "EltTy", "]", ":", "Tracking", "->", "ASPointerTypes", "[", "std", "::", "make_pair", "(", "EltTy", ",", "AddressSpace", ")", "]", ";", "if", "(", "!", "Entry", ")", "Entry", "=", "std", "::", "unique_ptr", "<", "TypedPointerType", ">", "(", "new", "TypedPointerType", "(", "EltTy", ",", "AddressSpace", ")", ")", ";", "return", "Entry", ".", "get", "(", ")", ";", "}", ""], "natrual_language": ["Get", "the", "generated", "Value", "for", "a", "given", "VPValue", "and", "given", "Part", "and", "Lane", "."], "TS_V_token": ["DirectX", "\"Can't get a pointer to type!\"", "\"Invalid type for pointer element!\"", "\"Unexpected target data type\"", "0"], "File": "DXILPointerType", "Func": "get", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12150, "Length": 172} {"ground_truth": ["", "unsigned", "getAddressSpace", "(", ")", "const", "{", "return", "getSubclassData", "(", ")", ";", "}", ""], "natrual_language": ["Return", "the", "address", "space", "of", "the", "Pointer", "type", "."], "TS_V_token": ["DirectX"], "File": "DXILPointerType", "Func": "getAddressSpace", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12151, "Length": 12} {"ground_truth": ["", "Type", "*", "getElementType", "(", ")", "const", "{", "return", "PointeeTy", ";", "}", ""], "natrual_language": ["Returns", "the", "vector", "'s", "element", "type", ".", "Only", "valid", "for", "vector", "types", "."], "TS_V_token": ["DirectX"], "File": "DXILPointerType", "Func": "getElementType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12152, "Length": 11} {"ground_truth": ["", "bool", "TypedPointerType", "::", "isValidElementType", "(", "Type", "*", "ElemTy", ")", "{", "return", "!", "ElemTy", "->", "isVoidTy", "(", ")", "&&", "!", "ElemTy", "->", "isLabelTy", "(", ")", "&&", "!", "ElemTy", "->", "isMetadataTy", "(", ")", "&&", "!", "ElemTy", "->", "isTokenTy", "(", ")", "&&", "!", "ElemTy", "->", "isX86_AMXTy", "(", ")", ";", "}", ""], "natrual_language": ["Return", "true", "if", "the", "specified", "type", "is", "valid", "as", "a", "element", "type", "."], "TS_V_token": ["DirectX"], "File": "DXILPointerType", "Func": "isValidElementType", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12153, "Length": 47} {"ground_truth": ["", "bool", "runOnModule", "(", "Module", "&", "M", ")", "override", "{", "PointerTypeMap", "PointerTypes", "=", "PointerTypeAnalysis", "::", "run", "(", "M", ")", ";", "AttributeMask", "AttrMask", ";", "for", "(", "Attribute", "::", "AttrKind", "I", "=", "Attribute", "::", "None", ";", "I", "!=", "Attribute", "::", "EndAttrKinds", ";", "I", "=", "Attribute", "::", "AttrKind", "(", "I", "+", "1", ")", ")", "{", "if", "(", "!", "isValidForDXIL", "(", "I", ")", ")", "AttrMask", ".", "addAttribute", "(", "I", ")", ";", "}", "for", "(", "auto", "&", "F", ":", "M", ".", "functions", "(", ")", ")", "{", "F", ".", "removeFnAttrs", "(", "AttrMask", ")", ";", "F", ".", "removeRetAttrs", "(", "AttrMask", ")", ";", "for", "(", "size_t", "Idx", "=", "0", ",", "End", "=", "F", ".", "arg_size", "(", ")", ";", "Idx", "<", "End", ";", "++", "Idx", ")", "F", ".", "removeParamAttrs", "(", "Idx", ",", "AttrMask", ")", ";", "for", "(", "auto", "&", "BB", ":", "F", ")", "{", "IRBuilder", "<", ">", "Builder", "(", "&", "BB", ")", ";", "for", "(", "auto", "&", "I", ":", "make_early_inc_range", "(", "BB", ")", ")", "{", "if", "(", "I", ".", "getOpcode", "(", ")", "==", "Instruction", "::", "FNeg", ")", "{", "Builder", ".", "SetInsertPoint", "(", "&", "I", ")", ";", "Value", "*", "In", "=", "I", ".", "getOperand", "(", "0", ")", ";", "Value", "*", "Zero", "=", "ConstantFP", "::", "get", "(", "In", "->", "getType", "(", ")", ",", "-", "0.0", ")", ";", "I", ".", "replaceAllUsesWith", "(", "Builder", ".", "CreateFSub", "(", "Zero", ",", "In", ")", ")", ";", "I", ".", "eraseFromParent", "(", ")", ";", "continue", ";", "}", "if", "(", "!", "M", ".", "getContext", "(", ")", ".", "hasSetOpaquePointersValue", "(", ")", ")", "continue", ";", "if", "(", "auto", "LI", "=", "dyn_cast", "<", "LoadInst", ">", "(", "&", "I", ")", ")", "{", "if", "(", "Value", "*", "NoOpBitcast", "=", "maybeGenerateBitcast", "(", "Builder", ",", "PointerTypes", ",", "I", ",", "LI", "->", "getPointerOperand", "(", ")", ",", "LI", "->", "getType", "(", ")", ")", ")", "{", "LI", "->", "replaceAllUsesWith", "(", "Builder", ".", "CreateLoad", "(", "LI", "->", "getType", "(", ")", ",", "NoOpBitcast", ")", ")", ";", "LI", "->", "eraseFromParent", "(", ")", ";", "}", "continue", ";", "}", "if", "(", "auto", "SI", "=", "dyn_cast", "<", "StoreInst", ">", "(", "&", "I", ")", ")", "{", "if", "(", "Value", "*", "NoOpBitcast", "=", "maybeGenerateBitcast", "(", "Builder", ",", "PointerTypes", ",", "I", ",", "SI", "->", "getPointerOperand", "(", ")", ",", "SI", "->", "getValueOperand", "(", ")", "->", "getType", "(", ")", ")", ")", "{", "SI", "->", "replaceAllUsesWith", "(", "Builder", ".", "CreateStore", "(", "SI", "->", "getValueOperand", "(", ")", ",", "NoOpBitcast", ")", ")", ";", "SI", "->", "eraseFromParent", "(", ")", ";", "}", "continue", ";", "}", "if", "(", "auto", "GEP", "=", "dyn_cast", "<", "GetElementPtrInst", ">", "(", "&", "I", ")", ")", "{", "if", "(", "Value", "*", "NoOpBitcast", "=", "maybeGenerateBitcast", "(", "Builder", ",", "PointerTypes", ",", "I", ",", "GEP", "->", "getPointerOperand", "(", ")", ",", "GEP", "->", "getResultElementType", "(", ")", ")", ")", "GEP", "->", "setOperand", "(", "0", ",", "NoOpBitcast", ")", ";", "continue", ";", "}", "}", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["runOnModule", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "process", "the", "module", "being", "operated", "on", "."], "TS_V_token": ["DirectX", "1", "DXIL", "0", "0", "0.0", "0"], "File": "DXILPrepare1", "Func": "runOnModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12154, "Length": 450} {"ground_truth": ["", "bool", "runOnModule", "(", "Module", "&", "M", ")", "override", "{", "AttributeMask", "AttrMask", ";", "for", "(", "Attribute", "::", "AttrKind", "I", "=", "Attribute", "::", "None", ";", "I", "!=", "Attribute", "::", "EndAttrKinds", ";", "I", "=", "Attribute", "::", "AttrKind", "(", "I", "+", "1", ")", ")", "{", "if", "(", "!", "isValidForDXIL", "(", "I", ")", ")", "AttrMask", ".", "addAttribute", "(", "I", ")", ";", "}", "for", "(", "auto", "&", "F", ":", "M", ".", "functions", "(", ")", ")", "{", "F", ".", "removeFnAttrs", "(", "AttrMask", ")", ";", "F", ".", "removeRetAttrs", "(", "AttrMask", ")", ";", "for", "(", "size_t", "Idx", "=", "0", ";", "Idx", "<", "F", ".", "arg_size", "(", ")", ";", "++", "Idx", ")", "F", ".", "removeParamAttrs", "(", "Idx", ",", "AttrMask", ")", ";", "for", "(", "auto", "&", "BB", ":", "F", ")", "{", "IRBuilder", "<", ">", "Builder", "(", "&", "BB", ")", ";", "for", "(", "auto", "&", "I", ":", "make_early_inc_range", "(", "BB", ")", ")", "{", "if", "(", "I", ".", "getOpcode", "(", ")", "==", "Instruction", "::", "FNeg", ")", "{", "Builder", ".", "SetInsertPoint", "(", "&", "I", ")", ";", "Value", "*", "In", "=", "I", ".", "getOperand", "(", "0", ")", ";", "Value", "*", "Zero", "=", "ConstantFP", "::", "get", "(", "In", "->", "getType", "(", ")", ",", "-", "0.0", ")", ";", "I", ".", "replaceAllUsesWith", "(", "Builder", ".", "CreateFSub", "(", "Zero", ",", "In", ")", ")", ";", "I", ".", "eraseFromParent", "(", ")", ";", "}", "}", "}", "}", "return", "true", ";", "}", ""], "natrual_language": ["runOnModule", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "process", "the", "module", "being", "operated", "on", "."], "TS_V_token": ["DirectX", "1", "DXIL", "0", "0", "0.0"], "File": "DXILPrepare", "Func": "runOnModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12155, "Length": 219} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"DXIL Metadata Emit\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["DirectX", "\"DXIL Metadata Emit\""], "File": "DXILTranslateMetadata", "Func": "getPassName", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12156, "Length": 11} {"ground_truth": ["", "bool", "DXILTranslateMetadata", "::", "runOnModule", "(", "Module", "&", "M", ")", "{", "if", "(", "MDNode", "*", "ValVerMD", "=", "cast_or_null", "<", "MDNode", ">", "(", "M", ".", "getModuleFlag", "(", "ValVerKey", ")", ")", ")", "{", "auto", "ValVer", "=", "loadDXILValidatorVersion", "(", "ValVerMD", ")", ";", "if", "(", "!", "ValVer", ".", "empty", "(", ")", ")", "ValidatorVer", "=", "ValVer", ";", "}", "emitDXILValidatorVersion", "(", "M", ",", "ValidatorVer", ")", ";", "cleanModule", "(", "M", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["runOnModule", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "process", "the", "module", "being", "operated", "on", "."], "TS_V_token": ["DirectX", "DXIL", "DXIL", "DXIL"], "File": "DXILTranslateMetadata", "Func": "runOnModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12157, "Length": 68} {"ground_truth": ["", "LLVM_DUMP_METHOD", "void", "ValueEnumerator", "::", "dump", "(", ")", "const", "{", "print", "(", "dbgs", "(", ")", ",", "ValueMap", ",", "\"Default\"", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ";", "print", "(", "dbgs", "(", ")", ",", "MetadataMap", ",", "\"MetaData\"", ")", ";", "dbgs", "(", ")", "<<", "'\\n'", ";", "}", ""], "natrual_language": ["Dump", "the", "plan", "to", "stderr", "(", "for", "debugging", ")", "."], "TS_V_token": ["DirectX", "\"Default\"", "\"MetaData\""], "File": "DXILValueEnumerator", "Func": "dump", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12158, "Length": 44} {"ground_truth": ["", "const", "Metadata", "*", "get", "(", "ArrayRef", "<", "const", "Metadata", "*", ">", "MDs", ")", "const", "{", "assert", "(", "ID", "&&", "\"Expected non-zero ID\"", ")", ";", "assert", "(", "ID", "<=", "MDs", ".", "size", "(", ")", "&&", "\"Expected valid ID\"", ")", ";", "return", "MDs", "[", "ID", "-", "1", "]", ";", "}", ""], "natrual_language": ["Get", "the", "generated", "Value", "for", "a", "given", "VPValue", "and", "given", "Part", "and", "Lane", "."], "TS_V_token": ["DirectX", "\"Expected non-zero ID\"", "\"Expected valid ID\"", "1"], "File": "DXILValueEnumerator", "Func": "get", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12159, "Length": 44} {"ground_truth": ["", "void", "getFunctionConstantRange", "(", "unsigned", "&", "Start", ",", "unsigned", "&", "End", ")", "const", "{", "Start", "=", "FirstFuncConstantID", ";", "End", "=", "FirstInstID", ";", "}", ""], "natrual_language": ["getFunctionConstantRange", "-", "Return", "the", "range", "of", "values", "that", "corresponds", "to", "function-local", "constants", "."], "TS_V_token": ["DirectX"], "File": "DXILValueEnumerator", "Func": "getFunctionConstantRange", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12160, "Length": 22} {"ground_truth": ["", "unsigned", "ValueEnumerator", "::", "getGlobalBasicBlockID", "(", "const", "BasicBlock", "*", "BB", ")", "const", "{", "unsigned", "&", "Idx", "=", "GlobalBasicBlockIDs", "[", "BB", "]", ";", "if", "(", "Idx", "!=", "0", ")", "return", "Idx", "-", "1", ";", "IncorporateFunctionInfoGlobalBBIDs", "(", "BB", "->", "getParent", "(", ")", ",", "GlobalBasicBlockIDs", ")", ";", "return", "getGlobalBasicBlockID", "(", "BB", ")", ";", "}", ""], "natrual_language": ["getGlobalBasicBlockID", "-", "This", "returns", "the", "function-specific", "ID", "for", "the", "specified", "basic", "block", "."], "TS_V_token": ["DirectX", "0", "1"], "File": "DXILValueEnumerator", "Func": "getGlobalBasicBlockID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12161, "Length": 50} {"ground_truth": ["", "ArrayRef", "<", "const", "Metadata", "*", ">", "getMDStrings", "(", ")", "const", "{", "return", "makeArrayRef", "(", "MDs", ")", ".", "slice", "(", "NumModuleMDs", ",", "NumMDStrings", ")", ";", "}", ""], "natrual_language": ["Get", "the", "MDString", "metadata", "for", "this", "block", "."], "TS_V_token": ["DirectX"], "File": "DXILValueEnumerator", "Func": "getMDStrings", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12162, "Length": 25} {"ground_truth": ["", "ArrayRef", "<", "const", "Metadata", "*", ">", "getNonMDStrings", "(", ")", "const", "{", "return", "makeArrayRef", "(", "MDs", ")", ".", "slice", "(", "NumModuleMDs", ")", ".", "slice", "(", "NumMDStrings", ")", ";", "}", ""], "natrual_language": ["Get", "the", "non-MDString", "metadata", "for", "this", "block", "."], "TS_V_token": ["DirectX"], "File": "DXILValueEnumerator", "Func": "getNonMDStrings", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12163, "Length": 28} {"ground_truth": ["", "unsigned", "getTypeID", "(", "Type", "*", "T", ")", "const", "{", "TypeMapType", "::", "const_iterator", "I", "=", "TypeMap", ".", "find", "(", "T", ")", ";", "assert", "(", "I", "!=", "TypeMap", ".", "end", "(", ")", "&&", "\"Type not in ValueEnumerator!\"", ")", ";", "return", "I", "->", "second", "-", "1", ";", "}", ""], "natrual_language": ["Return", "the", "type", "id", "for", "the", "type", "."], "TS_V_token": ["DirectX", "\"Type not in ValueEnumerator!\"", "1"], "File": "DXILValueEnumerator", "Func": "getTypeID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12164, "Length": 42} {"ground_truth": ["", "unsigned", "ValueEnumerator", "::", "getValueID", "(", "const", "Value", "*", "V", ")", "const", "{", "if", "(", "auto", "*", "MD", "=", "dyn_cast", "<", "MetadataAsValue", ">", "(", "V", ")", ")", "return", "getMetadataID", "(", "MD", "->", "getMetadata", "(", ")", ")", ";", "ValueMapType", "::", "const_iterator", "I", "=", "ValueMap", ".", "find", "(", "V", ")", ";", "assert", "(", "I", "!=", "ValueMap", ".", "end", "(", ")", "&&", "\"Value not in slotcalculator!\"", ")", ";", "return", "I", "->", "second", "-", "1", ";", "}", ""], "natrual_language": ["Return", "an", "ID", "for", "the", "concrete", "type", "of", "this", "object", "."], "TS_V_token": ["DirectX", "\"Value not in slotcalculator!\"", "1"], "File": "DXILValueEnumerator", "Func": "getValueID", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12165, "Length": 69} {"ground_truth": ["", "bool", "hasMDs", "(", ")", "const", "{", "return", "NumModuleMDs", "<", "MDs", ".", "size", "(", ")", ";", "}", ""], "natrual_language": ["Check", "whether", "the", "current", "block", "has", "any", "metadata", "to", "emit", "."], "TS_V_token": ["DirectX"], "File": "DXILValueEnumerator", "Func": "hasMDs", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12166, "Length": 16} {"ground_truth": ["", "std", "::", "pair", "<", "unsigned", ",", "bool", ">", "lookup", "(", "const", "Value", "*", "V", ")", "const", "{", "return", "IDs", ".", "lookup", "(", "V", ")", ";", "}", ""], "natrual_language": ["This", "method", "finds", "the", "value", "with", "the", "given", "Name", "in", "the", "the", "symbol", "table", "."], "TS_V_token": ["DirectX"], "File": "DXILValueEnumerator", "Func": "lookup", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12167, "Length": 26} {"ground_truth": ["", "void", "ValueEnumerator", "::", "print", "(", "raw_ostream", "&", "OS", ",", "const", "MetadataMapType", "&", "Map", ",", "const", "char", "*", "Name", ")", "const", "{", "OS", "<<", "\"Map Name: \"", "<<", "Name", "<<", "\"\\n\"", ";", "OS", "<<", "\"Size: \"", "<<", "Map", ".", "size", "(", ")", "<<", "\"\\n\"", ";", "for", "(", "const", "auto", "&", "I", ":", "Map", ")", "{", "const", "Metadata", "*", "MD", "=", "I", ".", "first", ";", "OS", "<<", "\"Metadata: slot = \"", "<<", "I", ".", "second", ".", "ID", "<<", "\"\\n\"", ";", "OS", "<<", "\"Metadata: function = \"", "<<", "I", ".", "second", ".", "F", "<<", "\"\\n\"", ";", "MD", "->", "print", "(", "OS", ")", ";", "OS", "<<", "\"\\n\"", ";", "}", "}", ""], "natrual_language": ["print", "-", "Print", "a", "debug", "representation", "of", "the", "operand", "to", "the", "given", "stream", "."], "TS_V_token": ["DirectX", "\"Map Name: \"", "\"\\n\"", "\"Size: \"", "\"\\n\"", "\"Metadata: slot = \"", "\"\\n\"", "\"Metadata: function = \"", "\"\\n\"", "\"\\n\""], "File": "DXILValueEnumerator", "Func": "print", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12168, "Length": 97} {"ground_truth": ["", "void", "ValueEnumerator", "::", "purgeFunction", "(", ")", "{", "for", "(", "unsigned", "i", "=", "NumModuleValues", ",", "e", "=", "Values", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "ValueMap", ".", "erase", "(", "Values", "[", "i", "]", ".", "first", ")", ";", "for", "(", "unsigned", "i", "=", "NumModuleMDs", ",", "e", "=", "MDs", ".", "size", "(", ")", ";", "i", "!=", "e", ";", "++", "i", ")", "MetadataMap", ".", "erase", "(", "MDs", "[", "i", "]", ")", ";", "for", "(", "const", "BasicBlock", "*", "BB", ":", "BasicBlocks", ")", "ValueMap", ".", "erase", "(", "BB", ")", ";", "Values", ".", "resize", "(", "NumModuleValues", ")", ";", "MDs", ".", "resize", "(", "NumModuleMDs", ")", ";", "BasicBlocks", ".", "clear", "(", ")", ";", "NumMDStrings", "=", "0", ";", "}", ""], "natrual_language": ["After", "calling", "incorporateFunction", ",", "use", "this", "method", "to", "remove", "the", "most", "recently", "incorporated", "function", "from", "the", "SlotTracker", "."], "TS_V_token": ["DirectX", "0"], "File": "DXILValueEnumerator", "Func": "purgeFunction", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12169, "Length": 114} {"ground_truth": ["", "unsigned", "size", "(", ")", "const", "{", "return", "IDs", ".", "size", "(", ")", ";", "}", ""], "natrual_language": ["The", "number", "of", "name/type", "pairs", "is", "returned", "."], "TS_V_token": ["DirectX"], "File": "DXILValueEnumerator", "Func": "size", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12170, "Length": 14} {"ground_truth": ["", "void", "getAnalysisUsage", "(", "AnalysisUsage", "&", "AU", ")", "const", "override", "{", "AU", ".", "setPreservesAll", "(", ")", ";", "}", ""], "natrual_language": ["getAnalysisUsage", "-", "Subclasses", "that", "override", "getAnalysisUsage", "must", "call", "this", "."], "TS_V_token": ["DirectX"], "File": "DXILWriterPass", "Func": "getAnalysisUsage", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12171, "Length": 17} {"ground_truth": ["", "StringRef", "getPassName", "(", ")", "const", "override", "{", "return", "\"Bitcode Writer\"", ";", "}", ""], "natrual_language": ["getPassName", "-", "Return", "a", "nice", "clean", "name", "for", "a", "pass", "."], "TS_V_token": ["DirectX", "\"Bitcode Writer\""], "File": "DXILWriterPass", "Func": "getPassName", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12172, "Length": 11} {"ground_truth": ["", "bool", "runOnModule", "(", "Module", "&", "M", ")", "override", "{", "WriteDXILToFile", "(", "M", ",", "OS", ")", ";", "return", "false", ";", "}", ""], "natrual_language": ["runOnModule", "-", "Virtual", "method", "overriden", "by", "subclasses", "to", "process", "the", "module", "being", "operated", "on", "."], "TS_V_token": ["DirectX", "DXIL"], "File": "DXILWriterPass", "Func": "runOnModule", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12173, "Length": 20} {"ground_truth": ["", "PointerTypeMap", "PointerTypeAnalysis", "::", "run", "(", "const", "Module", "&", "M", ")", "{", "PointerTypeMap", "Map", ";", "for", "(", "auto", "&", "G", ":", "M", ".", "globals", "(", ")", ")", "{", "if", "(", "G", ".", "getType", "(", ")", "->", "isOpaquePointerTy", "(", ")", ")", "Map", "[", "&", "G", "]", "=", "classifyPointerType", "(", "&", "G", ")", ";", "}", "for", "(", "auto", "&", "F", ":", "M", ")", "{", "classifyFunctionType", "(", "F", ",", "Map", ")", ";", "for", "(", "const", "auto", "&", "B", ":", "F", ")", "{", "for", "(", "const", "auto", "&", "I", ":", "B", ")", "{", "if", "(", "I", ".", "getType", "(", ")", "->", "isOpaquePointerTy", "(", ")", ")", "Map", "[", "&", "I", "]", "=", "classifyPointerType", "(", "&", "I", ")", ";", "}", "}", "}", "return", "Map", ";", "}", ""], "natrual_language": ["Run", "the", "analysis", "pass", "over", "a", "function", "and", "produce", "a", "dominator", "tree", "."], "TS_V_token": ["DirectX"], "File": "PointerTypeAnalysis", "Func": "run", "Target": "DirectX", "Target_Clf": "Virtual ISA", "Compiler_Type": "LLVM", "Idx": 12174, "Length": 119}