Lines Matching defs:Result
30 std::string Result;
31 raw_string_ostream Tmp(Result);
363 Type *Result = 0;
365 NumberedTypes[TypeID], Result)) return true;
367 if (!isa<StructType>(Result)) {
371 Entry.first = Result;
390 Type *Result = 0;
392 NamedTypes[Name], Result)) return true;
394 if (!isa<StructType>(Result)) {
398 Entry.first = Result;
498 bool LLParser::ParseMDString(MDString *&Result) {
501 Result = MDString::get(Context, Str);
510 bool LLParser::ParseMDNodeID(MDNode *&Result, unsigned &SlotNo) {
516 Result = NumberedMetadata[SlotNo];
518 Result = 0;
522 bool LLParser::ParseMDNodeID(MDNode *&Result) {
525 if (ParseMDNodeID(Result, MID)) return true;
528 if (Result) return false;
537 Result = FwdNode;
1065 bool LLParser::ParseStringConstant(std::string &Result) {
1068 Result = Lex.getStrVal();
1553 bool LLParser::ParseType(Type *&Result, bool AllowVoid) {
1560 Result = Lex.getTyVal();
1565 if (ParseAnonStructType(Result, false))
1571 if (ParseArrayVectorType(Result, false))
1578 if (ParseAnonStructType(Result, true) ||
1581 } else if (ParseArrayVectorType(Result, true))
1594 Result = Entry.first;
1611 Result = Entry.first;
1622 if (!AllowVoid && Result->isVoidTy())
1628 if (Result->isLabelTy())
1630 if (Result->isVoidTy())
1632 if (!PointerType::isValidElementType(Result))
1634 Result = PointerType::getUnqual(Result);
1640 if (Result->isLabelTy())
1642 if (Result->isVoidTy())
1644 if (!PointerType::isValidElementType(Result))
1651 Result = PointerType::get(Result, AddrSpace);
1657 if (ParseFunctionType(Result))
1784 bool LLParser::ParseFunctionType(Type *&Result) {
1787 if (!FunctionType::isValidReturnType(Result))
1808 Result = FunctionType::get(Result, ArgListTy, isVarArg);
1814 bool LLParser::ParseAnonStructType(Type *&Result, bool Packed) {
1818 Result = StructType::get(Context, Elts, Packed);
1919 bool LLParser::ParseArrayVectorType(Type *&Result, bool isVector) {
1946 Result = VectorType::get(EltTy, unsigned(Size));
1950 Result = ArrayType::get(EltTy, Size);
3195 default: llvm_unreachable("Unknown ParseInstruction result!");
3200 // With a normal result, we check to see if the instruction is followed by
3389 return Error(TypeLoc, "value doesn't match function result type '" +
3400 return Error(TypeLoc, "value doesn't match function result type '" +
3564 return Error(RetTypeLoc, "Invalid result type for LLVM function");
3970 return Error(RetTypeLoc, "Invalid result type for LLVM function");