Home
last modified time | relevance | path

Searched refs:StringValue (Results 1 – 25 of 29) sorted by relevance

12

/llvm-project/llvm/include/llvm/CodeGen/
H A DMIRYamlMapping.h34 struct StringValue { struct
38 StringValue() = default; argument
39 StringValue(std::string Value) : Value(std::move(Value)) {} in StringValue() argument
40 StringValue(const char Val[]) : Value(Val) {} in StringValue() argument
42 bool operator==(const StringValue &Other) const {
47 template <> struct ScalarTraits<StringValue> {
48 static void output(const StringValue &S, void *, raw_ostream &OS) {
52 static StringRef input(StringRef Scalar, void *Ctx, StringValue &S) {
63 struct FlowStringValue : StringValue {
65 FlowStringValue(std::string Value) : StringValue(st
[all...]
/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/
H A DCSKYELFStreamer.h27 std::string StringValue; member
64 Item->StringValue = std::string(Value); in setAttributeItem()
73 StringRef StringValue, bool OverwriteExisting) { in setAttributeItems() argument
80 Item->StringValue = std::string(StringValue); in setAttributeItems()
86 std::string(StringValue)}); in setAttributeItems()
H A DCSKYELFStreamer.cpp122 Streamer.emitBytes(item.StringValue); in finishAttributeSection()
127 Streamer.emitBytes(item.StringValue); in finishAttributeSection()
148 Result += item.StringValue.size() + 1; // string + '\0' in calculateContentSize()
153 Result += item.StringValue.size() + 1; // string + '\0'; in calculateContentSize()
/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIMachineFunctionInfo.h94 StringValue RegisterName;
104 new (&RegisterName) StringValue(Other.RegisterName); in SIArgument()
114 new (&RegisterName) StringValue();
116 RegisterName.~StringValue();
128 RegisterName.~StringValue(); in createArgument()
278 SmallVector<StringValue, 2> SpillPhysVGPRS;
279 SmallVector<StringValue> WWMReservedRegs;
281 StringValue ScratchRSrcReg = "$private_rsrc_reg";
282 StringValue FrameOffsetReg = "$fp_reg";
283 StringValue StackPtrOffsetRe
[all...]
H A DSIMachineFunctionInfo.cpp633 static yaml::StringValue regToString(Register Reg, in convertArgumentInfo()
635 yaml::StringValue Dest; in convertArgumentInfo()
H A DAMDGPUTargetMachine.cpp1733 auto parseRegister = [&](const yaml::StringValue &RegName, Register &RegVal) {
1744 auto parseOptionalRegister = [&](const yaml::StringValue &RegName,
1759 auto diagnoseRegisterClass = [&](const yaml::StringValue &RegName) {
/llvm-project/llvm/unittests/Support/
H A DCSKYAttributeParserTest.cpp20 const char *StringValue; member
28 Value.StringValue = value; in CSKYAttributeSection()
57 << (uint8_t)(16 + strlen(Value.StringValue)) << (uint8_t)0 << (uint8_t)0 in writeString()
65 << (uint8_t)(6 + strlen(Value.StringValue)) << (uint8_t)0 << (uint8_t)0 in writeString()
69 // StringValue in writeString()
70 << Value.StringValue << '\0'; in writeString()
H A DScopedPrinterTest.cpp898 const std::string StringValue = "Value"; in TEST_F() local
901 W.printString("String", StringValue); in TEST_F()
/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMIRParser.cpp132 const yaml::StringValue &RegisterSource,
142 const yaml::StringValue &VarStr,
143 const yaml::StringValue &ExprStr,
144 const yaml::StringValue &LocStr);
166 const yaml::StringValue &Source);
170 const yaml::StringValue &Source);
173 const yaml::StringValue &Source);
917 const yaml::StringValue &Name = Object.Name; in parseCalleeSavedRegister()
980 const yaml::StringValue &RegisterSource, bool IsRestored, int FrameIdx) { in parseMDNode()
996 const yaml::StringValue in initializeConstantPool()
[all...]
H A DMILexer.h191 StringRef StringValue;
240 StringRef stringValue() const { return StringValue; } in integerValue()
189 StringRef StringValue; global() member
H A DMILexer.cpp69 StringValue = StrVal; in setStringValue()
75 StringValue = StringValueStorage; in setOwnedStringValue()
H A DMIParser.cpp464 bool parseIRConstant(StringRef::iterator Loc, StringRef StringValue,
1885 static bool parseIRConstant(StringRef::iterator Loc, StringRef StringValue, in parseIRConstant()
1888 auto Source = StringValue.str(); // The source has to be null terminated. in parseIRConstant()
1897 bool MIParser::parseIRConstant(StringRef::iterator Loc, StringRef StringValue, in parseIRConstant()
1900 Loc, StringValue, PFS, C, in parseIRConstant()
1878 parseIRConstant(StringRef::iterator Loc,StringRef StringValue,PerFunctionMIParsingState & PFS,const Constant * & C,ErrorCallbackType ErrCB) parseIRConstant() argument
1890 parseIRConstant(StringRef::iterator Loc,StringRef StringValue,const Constant * & C) parseIRConstant() argument
/llvm-project/llvm/lib/MC/
H A DMCELFStreamer.cpp662 Item->StringValue = std::string(Value); in setAttributeItem()
673 StringRef StringValue, in setAttributeItem()
681 Item->StringValue = std::string(StringValue); in setAttributeItems()
687 IntValue, std::string(StringValue)}; in setAttributeItems()
712 Result += Item.StringValue.size() + 1; // string + '\0' in calculateContentSize()
717 Result += Item.StringValue.size() + 1; // string + '\0'; in calculateContentSize()
772 emitBytes(Item.StringValue); in createAttributesSection()
777 emitBytes(Item.StringValue); in createAttributesSection()
833 emitBytes(Item.StringValue);
682 setAttributeItems(unsigned Attribute,unsigned IntValue,StringRef StringValue,bool OverwriteExisting) setAttributeItems() argument
[all...]
/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVTargetStreamer.h58 StringRef StringValue);
76 StringRef StringValue) override;
H A DRISCVTargetStreamer.cpp53 StringRef StringValue) {} in emitIntTextAttribute() argument
168 StringRef StringValue) {} in emitIntTextAttribute() argument
H A DRISCVELFStreamer.cpp70 StringRef StringValue) { in emitTextAttribute()
71 getStreamer().setAttributeItems(Attribute, IntValue, StringValue,
74 emitIntTextAttribute(unsigned Attribute,unsigned IntValue,StringRef StringValue) emitIntTextAttribute() argument
H A DRISCVELFStreamer.h50 StringRef StringValue) override;
/llvm-project/llvm/include/llvm/MC/
H A DMCELFStreamer.h107 std::string StringValue;
109 : Type(Ty), Tag(Tg), IntValue(IV), StringValue(SV) {}
128 StringRef StringValue, bool OverwriteExisting);
104 std::string StringValue; global() member
/llvm-project/llvm/lib/BinaryFormat/
H A DAMDGPUMetadataVerifier.cpp39 StringRef StringValue = Node.getString(); in verifyScalar() local
40 Node.fromString(StringValue); in verifyScalar()
/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMELFStreamer.cpp94 StringRef StringValue) override;
224 StringRef StringValue) { in emitIntTextAttribute() argument
229 if (!StringValue.empty()) in emitIntTextAttribute()
230 OS << ", \"" << StringValue << "\""; in emitIntTextAttribute()
416 StringRef StringValue) override;
807 StringRef StringValue) { in emitIntTextAttribute()
808 getStreamer().setAttributeItems(Attribute, IntValue, StringValue, in emitIntTextAttribute()
809 emitIntTextAttribute(unsigned Attribute,unsigned IntValue,StringRef StringValue) emitIntTextAttribute() argument
H A DARMTargetStreamer.cpp110 StringRef StringValue) {} in emitIntTextAttribute() argument
/llvm-project/llvm/lib/Target/CSKY/AsmParser/
H A DCSKYAsmParser.cpp1570 StringRef StringValue; in parseDirectiveAttribute()
1590 StringValue = Parser.getTok().getStringContents(); in parseDirectiveAttribute()
1600 getTargetStreamer().emitTextAttribute(Tag, StringValue); in parseDirectiveAttribute()
1603 ? CSKY::parseArch(StringValue) in parseDirectiveAttribute()
1604 : CSKY::parseCPUArch(StringValue); in parseDirectiveAttribute()
1610 getTargetStreamer().emitTextAttribute(Tag, StringValue); in parseDirectiveAttribute()
1572 StringRef StringValue; parseDirectiveAttribute() local
/llvm-project/llvm/tools/llvm-objcopy/
H A DObjcopyOptions.cpp601 StringRef StringValue; in parseObjcopyOptions()
603 StringValue = ArgValue.substr(2); in parseObjcopyOptions()
605 StringValue = ArgValue.substr(1); in parseObjcopyOptions()
617 if (StringValue.empty()) in parseObjcopyOptions()
622 auto LMAValue = getAsInteger<int64_t>(StringValue); in parseObjcopyOptions()
626 ArgValue.slice(0, 2) + " is " + StringValue + in parseObjcopyOptions()
557 StringRef StringValue; parseChangeSectionLMA() local
/llvm-project/llvm/lib/CodeGen/
H A DMIRPrinter.cpp194 static void printRegMIR(unsigned Reg, yaml::StringValue &Dest, in print()
302 static void printRegClassOrBank(unsigned Reg, yaml::StringValue &Dest, in printStackObjectDbgInfo()
499 yaml::StringValue Reg; in convertStackObjects()
/llvm-project/llvm/unittests/FileCheck/
H A DFileCheckTest.cpp628 StringRef StringValue = "925"; in TEST_F() local
629 FooVar.setValue(APInt(64, 925u), StringValue); in TEST_F()
634 EXPECT_EQ(StringValue.begin(), FooVar.getStringValue()->begin()); in TEST_F()
635 EXPECT_EQ(StringValue.end(), FooVar.getStringValue()->end()); in TEST_F()

12