当前位置: 首页>>代码示例>>C++>>正文


C++ FoldingSetNodeID::AddInteger方法代码示例

本文整理汇总了C++中FoldingSetNodeID::AddInteger方法的典型用法代码示例。如果您正苦于以下问题:C++ FoldingSetNodeID::AddInteger方法的具体用法?C++ FoldingSetNodeID::AddInteger怎么用?C++ FoldingSetNodeID::AddInteger使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FoldingSetNodeID的用法示例。


在下文中一共展示了FoldingSetNodeID::AddInteger方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: Profile

/// Profile - Gather unique data for the object.
///
void MachineMemOperand::Profile(FoldingSetNodeID &ID) const {
  ID.AddInteger(getOffset());
  ID.AddInteger(Size);
  ID.AddPointer(getOpaqueValue());
  ID.AddInteger(getFlags());
  ID.AddInteger(getBaseAlignment());
}
开发者ID:CTSRD-CHERI,项目名称:llvm,代码行数:9,代码来源:MachineOperand.cpp

示例2:

void
ARMConstantPoolValue::AddSelectionDAGCSEId(FoldingSetNodeID &ID) {
  ID.AddPointer(CVal);
  ID.AddPointer(S);
  ID.AddInteger(LabelId);
  ID.AddInteger(PCAdjust);
}
开发者ID:HenderOrlando,项目名称:clamav-bytecode-compiler,代码行数:7,代码来源:ARMConstantPoolValue.cpp

示例3: Profile

/// Profile - Used to gather unique data for the abbreviation folding set.
///
void DIEAbbrev::Profile(FoldingSetNodeID &ID) const {
  ID.AddInteger(Tag);
  ID.AddInteger(ChildrenFlag);

  // For each attribute description.
  for (unsigned i = 0, N = Data.size(); i < N; ++i)
    Data[i].Profile(ID);
}
开发者ID:baatar,项目名称:llvm-duetto,代码行数:10,代码来源:DIE.cpp

示例4: profileFunction

/// Creates a hash-code for the function which is the same for any two
/// functions that will compare equal, without looking at the instructions
/// inside the function.
static unsigned profileFunction(const Function *F) {
  FunctionType *FTy = F->getFunctionType();

  FoldingSetNodeID ID;
  ID.AddInteger(F->size());
  ID.AddInteger(F->getCallingConv());
  ID.AddBoolean(F->hasGC());
  ID.AddBoolean(FTy->isVarArg());
  ID.AddInteger(getTypeIDForHash(FTy->getReturnType()));
  for (unsigned i = 0, e = FTy->getNumParams(); i != e; ++i)
    ID.AddInteger(getTypeIDForHash(FTy->getParamType(i)));
  return ID.ComputeHash();
}
开发者ID:compnerd,项目名称:llvm,代码行数:16,代码来源:MergeFunctions.cpp

示例5: Profile

/// Profile - Gather unique data for the object.
///
void MachineMemOperand::Profile(FoldingSetNodeID &ID) const {
  ID.AddInteger(Offset);
  ID.AddInteger(Size);
  ID.AddPointer(V);
  ID.AddInteger(Flags);
}
开发者ID:jdmdj,项目名称:llvm-work,代码行数:8,代码来源:MachineInstr.cpp

示例6: Profile

/// Profile - Used to gather unique data for the folding set.
///
void DWLabel::Profile(FoldingSetNodeID &ID) const {
  ID.AddString(Tag);
  ID.AddInteger(Number);
}
开发者ID:HenderOrlando,项目名称:clamav-bytecode-compiler,代码行数:6,代码来源:DwarfLabel.cpp

示例7: Profile

/// Profile - Used to gather unique data for the abbreviation folding set.
///
void DIEAbbrevData::Profile(FoldingSetNodeID &ID) const {
  // Explicitly cast to an integer type for which FoldingSetNodeID has
  // overloads.  Otherwise MSVC 2010 thinks this call is ambiguous.
  ID.AddInteger(unsigned(Attribute));
  ID.AddInteger(unsigned(Form));
}
开发者ID:Bigcheese,项目名称:llvm,代码行数:8,代码来源:DIE.cpp

示例8: Profile

 static void Profile(FoldingSetNodeID &ID, const AttributeWithIndex *Attr,
                     unsigned NumAttrs) {
   for (unsigned i = 0; i != NumAttrs; ++i)
     ID.AddInteger(uint64_t(Attr[i].Attrs) << 32 | unsigned(Attr[i].Index));
 }
开发者ID:pombredanne,项目名称:llvm-mirror,代码行数:5,代码来源:Attributes.cpp

示例9: Profile

 static void Profile(FoldingSetNodeID &ID, ArrayRef<AttributeWithIndex> Attrs){
   for (unsigned i = 0, e = Attrs.size(); i != e; ++i) {
     ID.AddInteger(Attrs[i].Attrs.Raw());
     ID.AddInteger(Attrs[i].Index);
   }
 }
开发者ID:leckiepeng,项目名称:llvm,代码行数:6,代码来源:Attributes.cpp

示例10: addSelectionDAGCSEId

void SystemZConstantPoolValue::addSelectionDAGCSEId(FoldingSetNodeID &ID) {
  ID.AddPointer(GV);
  ID.AddInteger(Modifier);
}
开发者ID:7heaven,项目名称:softart,代码行数:4,代码来源:SystemZConstantPoolValue.cpp

示例11: Profile

void ConstantInt::Profile(FoldingSetNodeID &ID, const Type *Ty,
                          const int &Val) {
  ID.Add(Ty);
  ID.AddInteger(Val);
}
开发者ID:ezhangle,项目名称:rhine,代码行数:5,代码来源:Constant.cpp


注:本文中的FoldingSetNodeID::AddInteger方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。