• Home
  • Raw
  • Download

Lines Matching refs:Val

404                                          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
750 slangAssert(!Val.isUninit() && "Not a valid initializer"); in genInitPrimitiveExportVariable()
753 genInitValue(Val, false); in genInitPrimitiveExportVariable()
759 const clang::APValue &Val) { in genInitExportVariable() argument
760 slangAssert(!Val.isUninit() && "Not a valid initializer"); in genInitExportVariable()
767 genInitBoolExportVariable(VarName, Val); in genInitExportVariable()
769 genInitPrimitiveExportVariable(VarName, Val); in genInitExportVariable()
774 if (!Val.isInt() || Val.getInt().getSExtValue() != 0) in genInitExportVariable()
781 switch (Val.getKind()) { in genInitExportVariable()
786 genInitPrimitiveExportVariable(Name, Val); in genInitExportVariable()
798 static_cast<unsigned>(EVT->getNumElement()), Val.getVectorLength()); in genInitExportVariable()
800 const clang::APValue &ElementVal = Val.getVectorElt(i); in genInitExportVariable()
831 slangAssert((Val.getKind() == clang::APValue::Vector) && in genInitExportVariable()
845 if (InitIndex > Val.getVectorLength()) in genInitExportVariable()
849 Val.getVectorElt(InitIndex++)); in genInitExportVariable()
1870 const clang::APValue &Val = EV->getInit(); in genPrimitiveTypeExportVariable() local
1871 genInitValue(Val, EPT->getType() == DataTypeBoolean); in genPrimitiveTypeExportVariable()
1918 void RSReflectionJava::genInitValue(const clang::APValue &Val, bool asBool) { in genInitValue() argument
1919 switch (Val.getKind()) { in genInitValue()
1921 const llvm::APInt &api = Val.getInt(); in genInitValue()
1935 const llvm::APFloat &apf = Val.getFloat(); in genInitValue()