Home
last modified time | relevance | path

Searched refs:Val (Results 1 – 10 of 10) sorted by relevance

/frameworks/compile/slang/
Dslang_rs_reflection_cpp.cpp920 const clang::APValue &Val) { in genInitExportVariable() argument
921 slangAssert(!Val.isUninit() && "Not a valid initializer"); in genInitExportVariable()
928 genInitBoolExportVariable(VarName, Val); in genInitExportVariable()
930 genInitPrimitiveExportVariable(VarName, Val); in genInitExportVariable()
935 if (!Val.isInt() || Val.getInt().getSExtValue() != 0) in genInitExportVariable()
942 switch (Val.getKind()) { in genInitExportVariable()
947 genInitPrimitiveExportVariable(Name, Val); in genInitExportVariable()
953 static_cast<unsigned>(EVT->getNumElement()), Val.getVectorLength()); in genInitExportVariable()
955 const clang::APValue &ElementVal = Val.getVectorElt(i); in genInitExportVariable()
1006 const clang::APValue &Val) { in genInitPrimitiveExportVariable() argument
[all …]
Dslang_rs_reflection_cpp.h82 void genInitValue(const clang::APValue &Val, bool asBool = false);
119 const clang::APValue &Val);
122 const clang::APValue &Val);
124 const clang::APValue &Val);
Dslang_rs_export_var.h58 inline const clang::APValue &getInit() const { return mInit.Val; } in getInit()
64 return mInitArray[i].Val; in getInitArray()
Dslang_rs_reflection.h215 const clang::APValue &Val);
217 const clang::APValue &Val);
219 const clang::APValue &Val);
220 void genInitValue(const clang::APValue &Val, bool asBool);
304 size_t Val, ReflectionState::Val32 Val32);
Dslang_rs_reflection.cpp404 size_t Val, ReflectionState::Val32 Val32) { in genConditionalVal() argument
405 if (Prefix.empty() || (Val != 0) || (Val32.first && (Val32.second != 0 ))) { in genConditionalVal()
408 if (!Val32.first || (Val == Val32.second)) { in genConditionalVal()
411 mOut << Val; in genConditionalVal()
418 mOut << " ? " << Val << " : " << Val32.second; in genConditionalVal()
737 const clang::APValue &Val) { in genInitBoolExportVariable() argument
738 slangAssert(!Val.isUninit() && "Not a valid initializer"); in genInitBoolExportVariable()
739 slangAssert((Val.getKind() == clang::APValue::Int) && in genInitBoolExportVariable()
744 mOut << ((Val.getInt().getSExtValue() == 0) ? "false" : "true") << ";\n"; in genInitBoolExportVariable()
749 const clang::APValue &Val) { in genInitPrimitiveExportVariable() argument
[all …]
Dslang_rs_reflection_state.cpp152 const auto &Val = Record->getValue(); in dump() local
154 << " allocSize=" << Val.mAllocSize in dump()
155 << " postPadding=" << Val.mPostPadding in dump()
156 << " ordinary=" << Val.mOrdinary in dump()
157 << " matchedByName=" << Val.mMatchedByName in dump()
159 const size_t NumFields = Val.mFieldCount; in dump()
161 const auto &field = Val.mFields[fieldIdx]; in dump()
Dslang_rs_export_var.cpp51 mInit.Val = clang::APValue(llvm::APSInt(1)); in RSExportVar()
Dslang_rs_pragma_handler.cpp542 llvm::APInt Val(32, 0); in handleIntegerParamPragma() local
543 NumericLiteral.GetIntegerValue(Val); in handleIntegerParamPragma()
544 this->handleInt(PP, PragmaToken, static_cast<int>(Val.getSExtValue())); in handleIntegerParamPragma()
/frameworks/compile/libbcc/bcinfo/BitReader_3_0/
DBitcodeReader.cpp98 Value *Val = EHSel->getArgOperand(j); in TransferClausesToLandingPadInst() local
99 if (!Val->hasName() || Val->getName() != "llvm.eh.catch.all.value") { in TransferClausesToLandingPadInst()
102 GlobalVariable *GV = cast<GlobalVariable>(Val); in TransferClausesToLandingPadInst()
129 Value *Val = EHSel->getArgOperand(j); in TransferClausesToLandingPadInst() local
130 if (!Val->hasName() || Val->getName() != "llvm.eh.catch.all.value") { in TransferClausesToLandingPadInst()
133 GlobalVariable *GV = cast<GlobalVariable>(Val); in TransferClausesToLandingPadInst()
668 static GlobalValue::LinkageTypes getDecodedLinkage(unsigned Val) { in getDecodedLinkage() argument
669 switch (Val) { in getDecodedLinkage()
707 static GlobalValue::VisibilityTypes GetDecodedVisibility(unsigned Val) { in GetDecodedVisibility() argument
708 switch (Val) { in GetDecodedVisibility()
[all …]
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/
DBitcodeReader.cpp431 static GlobalValue::LinkageTypes getDecodedLinkage(unsigned Val) { in getDecodedLinkage() argument
432 switch (Val) { in getDecodedLinkage()
470 static GlobalValue::VisibilityTypes GetDecodedVisibility(unsigned Val) { in GetDecodedVisibility() argument
471 switch (Val) { in GetDecodedVisibility()
479 static GlobalVariable::ThreadLocalMode GetDecodedThreadLocalMode(unsigned Val) { in GetDecodedThreadLocalMode() argument
480 switch (Val) { in GetDecodedThreadLocalMode()
490 static GlobalVariable::UnnamedAddr getDecodedUnnamedAddrType(unsigned Val) { in getDecodedUnnamedAddrType() argument
491 switch (Val) { in getDecodedUnnamedAddrType()
499 static int GetDecodedCastOpcode(unsigned Val) { in GetDecodedCastOpcode() argument
500 switch (Val) { in GetDecodedCastOpcode()
[all …]