Lines Matching refs:getOperand
39 Metadata *Op = MD1->getOperand(0);
53 EXPECT_TRUE(mdconst::hasa<ConstantInt>(R1->getOperand(0)));
54 EXPECT_TRUE(mdconst::hasa<ConstantInt>(R1->getOperand(1)));
55 ConstantInt *C0 = mdconst::extract<ConstantInt>(R1->getOperand(0));
56 ConstantInt *C1 = mdconst::extract<ConstantInt>(R1->getOperand(1));
67 EXPECT_EQ(R0->getOperand(0), R0);
68 EXPECT_EQ(R1->getOperand(0), R1);
69 EXPECT_TRUE(R0->getNumOperands() == 1 || R0->getOperand(1) == nullptr);
70 EXPECT_TRUE(R1->getNumOperands() == 1 || R1->getOperand(1) == nullptr);
78 EXPECT_TRUE(isa<MDString>(R0->getOperand(0)));
79 EXPECT_EQ(cast<MDString>(R0->getOperand(0))->getString(), "Root");
80 EXPECT_TRUE(R0->getNumOperands() == 1 || R0->getOperand(1) == nullptr);
95 EXPECT_TRUE(isa<MDString>(N0->getOperand(0)));
96 EXPECT_TRUE(isa<MDString>(N1->getOperand(0)));
97 EXPECT_TRUE(isa<MDString>(N2->getOperand(0)));
98 EXPECT_EQ(cast<MDString>(N0->getOperand(0))->getString(), "Node");
99 EXPECT_EQ(cast<MDString>(N1->getOperand(0))->getString(), "edoN");
100 EXPECT_EQ(cast<MDString>(N2->getOperand(0))->getString(), "Node");
101 EXPECT_EQ(N0->getOperand(1), R);
102 EXPECT_EQ(N1->getOperand(1), R);
103 EXPECT_EQ(N2->getOperand(1), R);
104 EXPECT_TRUE(mdconst::hasa<ConstantInt>(N2->getOperand(2)));
105 EXPECT_EQ(mdconst::extract<ConstantInt>(N2->getOperand(2))->getZExtValue(),